
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