|
-
April 21st, 2004, 07:14 AM
#1
Shared Variable in a DLL
I have written WIN32 ( Non MFC ) dll using VC++ 6.0 visual studio. The
exported functions are called by another application which returns
shared variable defined in pragma. This works correctly on my PC.
I have copied the EXE and dll on another PC. The application runs
without any errors but the values returned from the functions are not
correct. Mostly the intialised values are returned (i.e. if boolean is
initialised to TRUE , the it is only returned , if int is intialised
to 0 then 0 is returned)
I put a messagebox to display the values in dll function. It displays
correct values in my PC but 'initialised values' in other PC.
Both PCs have same operating system as Win2K.
Do I have to do something else so that functions behave correcly on
all the machine ?
rgds
Rajesh
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|