Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Regular MFC dlls

Regular MFC dlls

Scheduled Pinned Locked Moved C / C++ / MFC
c++performancehelpquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mangesh Sardesai
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups