Click here to Skip to main content
16,005,491 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
QuestionTrain free @Microsoft Pin
vikas amin4-Nov-05 22:43
vikas amin4-Nov-05 22:43 
QuestionHow to set initial size of SDI window? Pin
SheriMarie4-Nov-05 4:57
SheriMarie4-Nov-05 4:57 
Questionwant to include <windows.h> in windows forms app Pin
9ine4-Nov-05 4:49
9ine4-Nov-05 4:49 
AnswerRe: want to include <windows.h> in windows forms app Pin
Sheng Jiang 蒋晟4-Nov-05 7:10
Sheng Jiang 蒋晟4-Nov-05 7:10 
GeneralRe: want to include <windows.h> in windows forms app Pin
9ine6-Nov-05 22:43
9ine6-Nov-05 22:43 
GeneralRe: want to include <windows.h> in windows forms app Pin
9ine7-Nov-05 0:15
9ine7-Nov-05 0:15 
GeneralRe: want to include <windows.h> in windows forms app Pin
Sheng Jiang 蒋晟7-Nov-05 4:50
Sheng Jiang 蒋晟7-Nov-05 4:50 
Questionlinker errors porting from .NET 1.1 to 2.0 Pin
chucker754-Nov-05 2:30
chucker754-Nov-05 2:30 
Hi Folks,

I got a Wrapper Dll around a native C++ static library. In .NET 1.1 this
worked fine. When moving to .NET 2.0 I get a couple of unresolved externals /
linker errors:

Error 16 error LNK2028: unresolved token (0A000007) "extern "C" void
__clrcall ___CxxCallUnwindDtor(void (__clrcall*)(void *),void *)"
(?___CxxCallUnwindDtor@@$$J0YMXP6MXPAX@Z0@Z) referenced in function "public:
virtual __thiscall std::logic_error::~logic_error(void)"
(??1logic_error@std@@$$FUAE@XZ) Parameter.obj
Error 17 error LNK2028: unresolved token (0A000007) "extern "C" void
__clrcall ___CxxCallUnwindDtor(void (__clrcall*)(void *),void *)"
(?___CxxCallUnwindDtor@@$$J0YMXP6MXPAX@Z0@Z) referenced in function "public:
__thiscall std::bad_alloc::bad_alloc(char const *)"
(??0bad_alloc@std@@$$FQAE@PBD@Z) Imagic.obj
Error 18 error LNK2028: unresolved token (0A000008) "extern "C" void
__clrcall ___CxxCallUnwindDtor(void (__clrcall*)(void *),void *)"
(?___CxxCallUnwindDtor@@$$J0YMXP6MXPAX@Z0@Z) referenced in function "public:
virtual __thiscall std::logic_error::~logic_error(void)"
(??1logic_error@std@@$$FUAE@XZ) Align2D.obj
Error 19 error LNK2028: unresolved token (0A000347) "void __clrcall `eh
vector destructor iterator'(void *,unsigned int,int,void (__clrcall*)(void
*))" (??_M@$$FYMXPAXIHP6MX0@Z@Z) referenced in function "public: virtual void
* __thiscall std::logic_error::`vector deleting destructor'(unsigned int)"
(??_Elogic_error@std@@$$FUAEPAXI@Z) Parameter.obj
Error 20 error LNK2028: unresolved token (0A0003D3) "void __clrcall `eh
vector destructor iterator'(void *,unsigned int,int,void (__clrcall*)(void
*))" (??_M@$$FYMXPAXIHP6MX0@Z@Z) referenced in function "public: virtual void
* __thiscall std::bad_alloc::`vector deleting destructor'(unsigned int)"
(??_Ebad_alloc@std@@$$FUAEPAXI@Z) Imagic.obj
Error 21 error LNK2028: unresolved token (0A000358) "void __clrcall `eh
vector destructor iterator'(void *,unsigned int,int,void (__clrcall*)(void
*))" (??_M@$$FYMXPAXIHP6MX0@Z@Z) referenced in function "public: virtual void
* __thiscall std::logic_error::`vector deleting destructor'(unsigned int)"
(??_Elogic_error@std@@$$FUAEPAXI@Z) Align2D.obj
Error 22 error LNK2001: unresolved external symbol "?.cctor@@$$FYMXXZ"
(?.cctor@@$$FYMXXZ) Align2D.obj
Error 23 error LNK2001: unresolved external symbol "?.cctor@@$$FYMXXZ"
(?.cctor@@$$FYMXXZ) AssemblyInfo.obj
Error 24 error LNK2001: unresolved external symbol "?.cctor@@$$FYMXXZ"
(?.cctor@@$$FYMXXZ) Imagic.obj
Error 25 error LNK2001: unresolved external symbol "?.cctor@@$$FYMXXZ"
(?.cctor@@$$FYMXXZ) Parameter.obj
Error 26 error LNK2019: unresolved external symbol "extern "C" void
__clrcall ___CxxCallUnwindDtor(void (__clrcall*)(void *),void *)"
(?___CxxCallUnwindDtor@@$$J0YMXP6MXPAX@Z0@Z) referenced in function "public:
virtual __thiscall std::logic_error::~logic_error(void)"
(??1logic_error@std@@$$FUAE@XZ) Align2D.obj
Error 27 error LNK2001: unresolved external symbol "extern "C" void
__clrcall ___CxxCallUnwindDtor(void (__clrcall*)(void *),void *)"
(?___CxxCallUnwindDtor@@$$J0YMXP6MXPAX@Z0@Z) Imagic.obj
Error 28 error LNK2001: unresolved external symbol "extern "C" void
__clrcall ___CxxCallUnwindDtor(void (__clrcall*)(void *),void *)"
(?___CxxCallUnwindDtor@@$$J0YMXP6MXPAX@Z0@Z) Parameter.obj
Error 29 error LNK2019: unresolved external symbol "void __clrcall `eh
vector destructor iterator'(void *,unsigned int,int,void (__clrcall*)(void
*))" (??_M@$$FYMXPAXIHP6MX0@Z@Z) referenced in function "public: virtual void
* __thiscall std::logic_error::`vector deleting destructor'(unsigned int)"
(??_Elogic_error@std@@$$FUAEPAXI@Z) Align2D.obj
Error 30 error LNK2001: unresolved external symbol "void __clrcall `eh
vector destructor iterator'(void *,unsigned int,int,void (__clrcall*)(void
*))" (??_M@$$FYMXPAXIHP6MX0@Z@Z) Imagic.obj
Error 31 error LNK2001: unresolved external symbol "void __clrcall `eh
vector destructor iterator'(void *,unsigned int,int,void (__clrcall*)(void
*))" (??_M@$$FYMXPAXIHP6MX0@Z@Z) Parameter.obj
Error 32 fatal error LNK1120: 9 unresolved externals Debug\empDll.dll

In my .NET 1.1 Project I had to make the following Linker Settings to build
the DLL:

1.) Additional Dependencies: mscoree.lib msvcrt.lib (or msvcrtd.lib for
debug version) mystaticlib.lib

2.) Ignore Specific Library: nochkclr.obj

3.) Force Symbol Reference: __DllMainCRTStartup@12

In my Wrapper Classes I had to add the following:

#using <mscorlib.dll>

using namespace System;
using namespace System::Runtime::InteropServices;

This does not work any longer with the new Visual Studio and the new .NET
Framework.

The only article that I was able to find on this subject:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvs05/html/TransGuide.asp

Doesn´t mention Linker settings at all.

Could anybody please help me or tell me where to go for further reading?
Thanks in Advance for your efforts.

Chucker
QuestionPOLINK: error: Symbol '_main' is multiply defined. Pin
lonejew4-Nov-05 1:10
lonejew4-Nov-05 1:10 
AnswerRe: POLINK: error: Symbol '_main' is multiply defined. Pin
toxcct4-Nov-05 1:57
toxcct4-Nov-05 1:57 
Questionhow to clone a stream Pin
IsaacB3-Nov-05 14:32
IsaacB3-Nov-05 14:32 
AnswerRe: how to clone a stream Pin
toxcct3-Nov-05 21:13
toxcct3-Nov-05 21:13 
QuestionHelp Required With Ordered list.cc part 1 Pin
The_Lone_Wolf3-Nov-05 4:53
The_Lone_Wolf3-Nov-05 4:53 
QuestionCan I resize my tabs within an SDI application? Pin
SheriMarie3-Nov-05 3:15
SheriMarie3-Nov-05 3:15 
AnswerRe: Can I resize my tabs within an SDI application? Pin
Sheng Jiang 蒋晟4-Nov-05 7:13
Sheng Jiang 蒋晟4-Nov-05 7:13 
QuestionOverloading [] to handle multidimentional arrays Pin
Pegasus Kiddo3-Nov-05 0:03
Pegasus Kiddo3-Nov-05 0:03 
AnswerRe: Overloading [] to handle multidimentional arrays Pin
toxcct3-Nov-05 0:16
toxcct3-Nov-05 0:16 
GeneralRe: Overloading [] to handle multidimentional arrays Pin
S. Senthil Kumar4-Nov-05 22:34
S. Senthil Kumar4-Nov-05 22:34 
AnswerRe: Overloading [] to handle multidimentional arrays Pin
Kevin McFarlane6-Nov-05 4:46
Kevin McFarlane6-Nov-05 4:46 
QuestionOverwriting struct in binary file Pin
scrname2-Nov-05 19:03
scrname2-Nov-05 19:03 
AnswerRe: Overwriting struct in binary file Pin
willy_total3-Nov-05 8:55
willy_total3-Nov-05 8:55 
QuestionNeed HELP with code Pin
pacificeve2-Nov-05 13:24
pacificeve2-Nov-05 13:24 
QuestionLauching jar as a process from C++ Pin
carsten8011-Nov-05 21:04
carsten8011-Nov-05 21:04 
AnswerRe: Lauching jar as a process from C++ Pin
toxcct1-Nov-05 23:45
toxcct1-Nov-05 23:45 
QuestionRe: Lauching jar as a process from C++ Pin
carsten8012-Nov-05 3:07
carsten8012-Nov-05 3:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.