![]() |
![]() |
![]() |
codewarrior and visual studio .DLLs on Windows Anyone ever have any problems between writing a program in Codewarrior and a .DLL in visual studio? The .DLL interface seems to corrupt some values, but leave others intact... I get a bunch of 1 bits set, like it is doing some weird sign extension thing, but not really.
Rob
Try searching on http://weblogs.asp.net/oldnewthing/
Nitin Bhide
What languages are you using? Name mangling may vary by compiler, and I don't think there is yet a standard accepted ABI for C++ in use on Windows.
anon
CodeWarrior's Win32 DLL calling convention is based directly on VC++s. including name mangling and parameter passing. However, if you pass standard library objects across the DLL boundary; for example calling malloc() to allocate space in the DLL, but using free() in the client program, you'll have problems, as CW and VC++ use different standard libraries and runtime libraries.
Ben Combee
I had few strange experiences with DLLs, but I think the
VPC
|