Connecting Tech Pros Worldwide Help | Site Map

Not a able to return value from a dll

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 22nd, 2005, 05:10 AM
Venkat
Guest
 
Posts: n/a
Default Not a able to return value from a dll

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








  #2  
Old July 22nd, 2005, 05:10 AM
tom_usenet
Guest
 
Posts: n/a
Default Re: Not a able to return value from a dll

On Tue, 13 Jan 2004 17:32:50 +0530, "Venkat" <venkat_kp@yahoo.com>
wrote:
[color=blue]
>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.[/color]
[color=blue]
>int CIDPDBInstall::IDPInstallCSVFile(const std::string m_CSVFileName)
>{
>.....
>.....
>.....
>}
>
>Application
>
>{
>
>......
>ret1 = obj->IDPInstallCSVFile(m_CSVFileName);
>}[/color]

This is not a C++ problem, rather a DLL problem. Ask in a group for
your platform, such as microsoft.public.vc.stl (since string's
destructor is probably causing the problem).

(hint, have you linked both the DLL and the EXE against the
Multithreaded DLL version of the CRT?)

Tom

C++ FAQ: http://www.parashift.com/c++-faq-lite/
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,840 network members.