Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / CodeWarrior / January 2004



Tip: Looking for answers? Try searching our database.

Building Windows DLL from CW Dev Studio 9

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gordon Tillman - 13 Jan 2004 19:58 GMT
Hello All,

Just a quick note to maybe save someone else some time...

I needed to build a Windows DLL to implement a Java JNI function.  I
used the latest version of CW Dev Studio on my Mac.  When I tested on a
Windows XP box it was crashing like crazy.

I copied my CW project over to the Windows machine and rebuilt it with
an older (CW8) version of CW and it worked fine.

Back on the Mac side I rebuilt all my libraries and then rebuilt the
Windows DLL.  This fixed the problem!

So if you are doing any Windows build from the Mac IDE and things are
acting strange, you may want to do the same thing and see if it fixes
the problem.

Regards,

--gordon
MW Ron - 14 Jan 2004 15:24 GMT
>Hello All,
>
[quoted text clipped - 13 lines]
>acting strange, you may want to do the same thing and see if it fixes
>the problem.

My first GUESS is that there was a difference in the precompiled headers
and the Libraries  perhaps when you updated to 8.3 you didn't rebuild
the Windows libraries or precompiled headers.

Ron

Signature

Metrowerks, maker of CodeWarrior   -  "Software Starts Here"  
Ron Liechty - MWRon@metrowerks.com - <http://www.metrowerks.com>

Gordon Tillman - 21 Jan 2004 18:26 GMT
Howdy Ron!

> My first GUESS is that there was a difference in the precompiled headers
> and the Libraries  perhaps when you updated to 8.3 you didn't rebuild
> the Windows libraries or precompiled headers.

'tis possible!  It was a really strange deal because native calls to
the dll that either didn't return anything, or only returned an int ran
just fine.  But native calls functions that returned a String crashed
big time...

--g
MW Ron - 21 Jan 2004 19:59 GMT
>Howdy Ron!
>
[quoted text clipped - 6 lines]
>just fine.  But native calls functions that returned a String crashed
>big time...

You have the wrong headers.  C doesn't require a prototype, so it made
one up  using the default return type as an int.  So anything that
returned a string or pointer etc  don't work.

Ron

Signature

Metrowerks, maker of CodeWarrior   -  "Software Starts Here"  
Ron Liechty - MWRon@metrowerks.com - <http://www.metrowerks.com>

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.