dll-interface problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • GT

    #1

    dll-interface problem

    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\Flamin go\Model\ScopeB uffer.h(111): warning C4251:
    'ScopeBuffer::m _iAbstraction' : class 'CUIntArray' needs to have
    dll-interface to be used by clients of class 'ScopeBuffer'

    d:\Tassc\Flamin go\Model\TEDaoT ableClass.h(85) : warning C4251:
    'TEDaoTableClas s::m_recordset' : class 'CDaoRecordset' needs to have
    dll-interface to be used by clients of class 'TEDaoTableClas s'

    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(dlli mport) CStringT<TCHAR, StrTraitMFC<TCH AR,
    ChTraitsCRT<TCH AR >;

    template class __declspec(dlli mport) 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


  • Marcus Kwok

    #2
    Re: dll-interface problem

    GT <ContactGT_remo ve_@hotmail.com wrote:
    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.
    The FAQ has a list of some newsgroups you could try:


    Try one of the comp.os.ms-windows.program mer.* newsgroups, or
    microsoft.publi c.dotnet.langua ges.vc on msnews.microsof t.com.

    --
    Marcus Kwok
    Replace 'invalid' with 'net' to reply

    Comment

    Working...