dll interface problem

Discussion in 'MFC' started by GT, Sep 15, 2006.

  1. GT

    GT New Member

    Joined:
    Sep 15, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Can anyone help me with this, or perhaps point me to a better newsgroup? I have a DLL created in Visual C++ v5 and I am trying to use it in a new Visual Studio .net 2002 application (C++) in the same way as I called it in my Visual Studio V5 (C+) application. I get the following warnings hundreds of times. Now, they are only warnings and can be ignored, but the app just won't run past a DLL class or function call!.

    d:\Tassc\Flamingo\Model\ScopeBuffer.h(111): warning C4251:
    'ScopeBuffer::m_iAbstraction' : class 'CUIntArray' needs to have dll-interface to be used by clients of class 'ScopeBuffer'

    d:\Tassc\Flamingo\Model\TEDaoTableClass.h(85): warning C4251:
    'TEDaoTableClass::m_recordset' : class 'CDaoRecordset' needs to have dll-interface to be used by clients of class 'TEDaoTableClass'

    I did get the same error regarding the CString class, but a web search told me to add these 2 lines to my stdafx.h and it has fixed the problem. Is there more lines I can add to my stdafx to fix the CUIntArray class problem and the CDaoRecordSet problems.

    template class __declspec(dllimport) CStringT<TCHAR, StrTraitMFC<TCHAR,
    ChTraitsCRT<TCHAR> > >;

    template class __declspec(dllimport) CSimpleStringT<TCHAR>;

    Have the CUIntArray class and the CDaoDatabase classes gone the same way - template classes? If so, what do I have to do?!?

    Thanks in advance,
    GT
     
  2. fghi532

    fghi532 New Member

    Joined:
    Jan 17, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    That's fantastic!

    That's fantastic! ; D
     
  3. invarie09

    invarie09 New Member

    Joined:
    Oct 4, 2009
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    United States
    Location:
    United States
    Home Page:
    http://russian-brides-best.com/
    it is corel script editor.my dll file was created by it,but i don’t know whether it is of use.l just writed a function, then make the script dll file.and set them in the same floder .thx
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice