Programming MS Word and MSL C (4i-8d) [CW11] 
Author Message
 Programming MS Word and MSL C (4i-8d) [CW11]

Greeting,

I am currently experiencing the following _serious_ problem.

When I first starting using the Word API from the MS Word developer's kit,
it referenced the old ANSI (2i) C library from an older CodeWarrior (6 I
think). I updated the project files and replaced the old ANSI (2i) with the
latest one from CodeWarrior 11. Everything worked fine until i recently
added some new code that I had developed externally to the API project file
that made extnesive use of the string.h from the Metrowerks Standard
Library. This project was PPC, whereas the old project had been 68k. I
thought there would be no problems since I used only ANSI calls. However
when I moved my code to the Word API project, I got a link error saying
that the ctype_map could not be found at link time. I replaced the old
Plum-Hall library (ANSI (2i)) with the current MSL (4i-8d) library and the
problem went away.

Now, I have an even worse problem than a link error--As soon as the code
resource loads, Word crashes, the MW de{*filter*} crashes, everything _crashes_
very hard, and the only thing I can think of is that Word doesn't like the
4-byte integers.

Is there a way to get the MSL library to use 2-byte ints so that it won't
crash Word, or is there some other problem here that I am missing. I really
need help on this one!

Thanks,
Dave Sanabria

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * *
* Dave Sanabria,                                        New England Typographic Service, Inc.
* Software Analyst                                      202 W. Newberry Rd., Bloomfield, CT 06002
*                                                       P (860) 242-2251, F (860) 242-9350
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * /



Fri, 31 Mar 2000 03:00:00 GMT  
 Programming MS Word and MSL C (4i-8d) [CW11]


Quote:

>I am currently experiencing the following _serious_ problem.

There is something very confusing below you talk about PPC but then talk
about 68k items (2i )

Quote:
>When I first starting using the Word API from the MS Word developer's kit,
>it referenced the old ANSI (2i) C library from an older CodeWarrior (6 I
>think). I updated the project files and replaced the old ANSI (2i) with the
>latest one from CodeWarrior 11.

replaced the ANSI with ANSI from the obsolete ANSI Librarys folder I assume.

 Everything worked fine until i recently

Quote:
>added some new code that I had developed externally to the API project file
>that made extnesive use of the string.h from the Metrowerks Standard
>Library. This project was PPC, whereas the old project had been 68k. I
>thought there would be no problems since I used only ANSI calls. However
>when I moved my code to the Word API project, I got a link error saying
>that the ctype_map could not be found at link time. I replaced the old
>Plum-Hall library (ANSI (2i)) with the current MSL (4i-8d) library and the
>problem went away.

Now I'm lost, lets ignore the PPC part,  you can't mix the 4i8d with 2i
libraries.  If you are using CW/11 still download the 1.7 IDE Tools
(compiler and linker) updates apply that and download the MSL update and
apply that next.  Part of the MSL update is a utility called Build Apps.
(now called Build MSL Libraries)  and that utility will allow you to build
all of your library versions.  One of the options is 2i

If this is a PPC project though, none of the 68k libraries should work, so
I am a bit confused.  If the Word API is in PPC then you would have no
problem since all integers are 32 bit by default and all doubles are 64,
unlike the 68k system.

If you have more information that would clear up my confusion feel free to
write.  However it seems just applying the patches and creating your own
libraries will solve your immediate needs.

Ron

--
     METROWERKS                                   Ron Liechty



Fri, 31 Mar 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. MS Access 97 ActiveX Controls Sample Database on MSL

2. Delete and Cut fails when programming MS Word if Word not visible

3. Delete and Cut fails when programming MS Word if Word not visible

4. Accessing MS Word's print command inside a Visual C++ program

5. abnormal program termination on MS Word 2002

6. MS Word 2002 - program closes unexpectedly

7. MS Word 2000 adds garbage to end of saved programs

8. Slow closing MS word file and program 97

9. Help: Stating MS-Word from a DOS program

10. Multi Language Program for MS Word 2000


 
Powered by phpBB® Forum Software © phpBB Group