S
Samant.Trupti
Hi All,
I am facing a problem can anyone help.
I have a function in DLL
void getString(char *string)
{
strcpy(string, "My String);
printf("In Dll %s", string);
}
I am calling this function in my win32 consol app
char mystr[50];
strcpy(mystr, "Test");
getString(myStr);
printf("in main %s", mystr);
The result I am getting is:
In Dll My String
In Main Test
Why DLL is unable to retutn value? If I use this function in main it
is working fine. DLL not working.
Can anyone please explain?
Thanks
Trupti
I am facing a problem can anyone help.
I have a function in DLL
void getString(char *string)
{
strcpy(string, "My String);
printf("In Dll %s", string);
}
I am calling this function in my win32 consol app
char mystr[50];
strcpy(mystr, "Test");
getString(myStr);
printf("in main %s", mystr);
The result I am getting is:
In Dll My String
In Main Test
Why DLL is unable to retutn value? If I use this function in main it
is working fine. DLL not working.
Can anyone please explain?
Thanks
Trupti