Regular MFC dlls
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Let me confess that I am a novice VC++ programmer. I wrote seperate functions in regular MFC dll having following signatures - 1. extern "C" ADODB::_RecordsetPtr declspec(dllexport) GetRs() 2. extern "C" declspec(dllexport) GetRsEx(ADODB::_RecordsetPtr &rs) Both the functions work as expected when accessed through the exe created in VC++.(i.e I am able to access the recordset) However when i try accessing them through the VB application the #2 work as expected but the #1 gives memory error.(Probably bcoz of the _RecordsetPtr going out scope which i have declared inside the function). Can any one explain the way in which i can return the recordset instead of using parameter by reference(OR using the #1 declaration)? thanks and regards, MS