Results 1 to 2 of 2

Thread: Create MFC DLL error

  1. #1
    jyq
    jyq is offline Registered User
    Name: jiangyueqing
    Organization: sunway co.
    Project: lotto manager
    Join Date
    Dec 2005
    Posts
    2

    Create MFC DLL error

    I can run demo "Hello" in \Ice-3.0.1-VC60\demo\Ice\Hello properly.

    I want to create a MFC DLL, for other application (not in C++/java)to invoke ice service.

    So, I used the MFC dll wizard and included the slice definition and ICE headers. When I compile it, i'm getting the following error:

    Performing Custom Build Step on .\Hello.ice
    Compiling resources...
    Compiling...
    StdAfx.cpp
    Compiling...
    Client.cpp
    hello.cpp
    mydll.cpp
    d:\ice-3.0.1-vc60\include\stlport\stl\debug\_debug.h(166) : warning C4005: '_STLP_DEBUG_CHECK' : macro redefinition
    d:\ice-3.0.1-vc60\include\stlport\stl\_config.h(375) : see previous definition of '_STLP_DEBUG_CHECK'
    d:\ice-3.0.1-vc60\include\stlport\stl\debug\_debug.h(167) : warning C4005: '_STLP_DEBUG_DO' : macro redefinition
    d:\ice-3.0.1-vc60\include\stlport\stl\_config.h(376) : see previous definition of '_STLP_DEBUG_DO'
    d:\ice-3.0.1-vc60\include\stlport\stl\debug\_vector.h(277) : error C2953: 'vector' : template class has already been defined
    d:\ice-3.0.1-vc60\include\stlport\stl\debug\_vector.h(277) : see declaration of 'vector'
    d:\ice-3.0.1-vc60\include\iceutil\mutex.h(141) : error C2065: 'TryEnterCriticalSection' : undeclared identifier
    d:\ice-3.0.1-vc60\include\ice\proxy.h(400) : error C2027: use of undefined type 'Object'
    d:\ice-3.0.1-vc60\include\ice\objectf.h(18) : see declaration of 'Object'
    d:\ice-3.0.1-vc60\include\ice\proxy.h(400) : error C2039: 'ice_newFacet' : is not a member of 'ProxyHandle<class Ice::Object>'
    d:\ice-3.0.1-vc60\include\ice\localexception.h(543) : error C2079: 'badMagic' uses undefined class 'vector<unsigned char,class _STL::allocator<unsigned char> >'
    Generating Code...
    Error executing cl.exe.

    mydll.dll - 5 error(s), 2 warning(s)


    My include file sequence is:
    D:\ICE-3.0.1-VC60\INCLUDE\STLPORT
    D:\ICE-3.0.1-VC60\INCLUDE
    D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE
    D:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE
    D:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE

    How I can fix this?
    Nusource Regical(a applibation service providor in Hangzhou China)
    www.nsregical.com(Not implemented)

  2. #2
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    Take a look at how the MFC demos that accompany the Ice distribution work. They are contained in the demo/Ice/MFC/ directory.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. slice2cpp --dll-export error
    By xdm in forum Bug Reports
    Replies: 1
    Last Post: 11-06-2006, 08:37 AM
  2. Link error when adding MFC header in dll project
    By emoly in forum Help Center
    Replies: 7
    Last Post: 09-12-2005, 07:49 AM
  3. Error report when I use Ice in win32 dll
    By xiehua in forum Help Center
    Replies: 1
    Last Post: 12-01-2003, 06:24 PM
  4. MFC DLL with ICE
    By amrufon in forum Help Center
    Replies: 2
    Last Post: 08-13-2003, 01:18 AM

Posting Permissions

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