CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2001
    Posts
    33

    How to pass _ConnectionPtr pConn to dll

    I want to pass _ConnectionPtr pConn to dll as argument in interface and there i want to use this connection object instead of making new object because to connect database it take more time.so how can do?


  2. #2
    Join Date
    Jul 2001
    Location
    Ukraine
    Posts
    15

    Re: How to pass _ConnectionPtr pConn to dll

    Try this:
    -----------------
    _ConnectionPtr m_pConn;
    ------------------
    // Dll function:
    void put_ActiveConnection(LPDISPATCH lConn)
    {
    m_pConn=lConn;
    }


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured