- Not able to return a value from a dll
- Posted by Venkat on January 13th, 2004
Hi,
I got a simple cpp application which calls a dll at runtime.
The application is calling the dll and the dll is also doing the required
thing it suppose to do but
when after dll is done it has to return back to the calling application.
I am having the problem in dll returning back to the calling application.
Infact the application stops once
the dll is called.
Can some one please let me know where i am going wrong.
Sample Code
-------------------
dll
int CIDPDBInstall::IDPInstallCSVFile(const std::string m_CSVFileName)
{
......
......
......
}
Application
{
.......
ret1 = obj->IDPInstallCSVFile(m_CSVFileName);
}
regards,
Venkat
- Posted by Gil Hamilton on January 13th, 2004
"Venkat" <venkat_kp@yahoo.com> wrote in message news:<1074000384.532009@sj-nntpcache-5>...
I don't think we can. There is nothing wrong in theory with what
you're doing. The devil, as they say, is in the details. Very
likely, you're overwriting part of your stack within the DLL so that
the return address has been trashed, resulting in an Access Violation
when you attempt to return.
- GH
- PnPAddDevice Return Value (Drivers) by G.N.Raj
- return value conventions in c (Programming) by John Hanley
- Can you return? (Video & DVD) by buck16
- IRP never return? help! (Drivers) by polybear
- return of the 5400 (Storage Devices) by anonymous

