Click here to Skip to main content
15,913,487 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: System::Object _gc * _gc * Pin
BAIJUMAX25-Sep-04 20:54
professionalBAIJUMAX25-Sep-04 20:54 
GeneralOPC Automation Pin
Anonymous23-Sep-04 3:47
Anonymous23-Sep-04 3:47 
GeneralNewbie: Undeclared Identifier Pin
jblau22-Sep-04 13:22
jblau22-Sep-04 13:22 
GeneralRe: Newbie: Undeclared Identifier Pin
AnsGe26-Sep-04 19:01
AnsGe26-Sep-04 19:01 
Generalwrapper for C dll - newbie Pin
nina80222-Sep-04 13:14
nina80222-Sep-04 13:14 
GeneralRe: wrapper for C dll - newbie Pin
BAIJUMAX22-Sep-04 20:56
professionalBAIJUMAX22-Sep-04 20:56 
GeneralRe: wrapper for C dll - newbie Pin
nina80229-Sep-04 10:58
nina80229-Sep-04 10:58 
GeneralSTL in a C++ managed DLL Pin
Anonymous21-Sep-04 9:55
Anonymous21-Sep-04 9:55 
All what I want is to use the STL string class in a class library. I tried with a console application and all things work fine. Than I created a class library and tried it again and got link error.

LINK : error LNK2020: unresolved token (0A000006) _CxxThrowException
LINK : error LNK2020: unresolved token (0A000015) delete

The code:
#using <mscorlib.dll>

using namespace System;
#include < string >
#include < iostream >

using namespace std;

namespace Lib
{
__nogc class Class1
{
// TODO: Add your methods for this class here.
void printOut()
{
std::string s = "abc";
cout << s;
}
};
}
I checked the project options and they seem similar! What's wrong?

I use Visual Studio .NET 2003!
GeneralRe: STL in a C++ managed DLL Pin
George L. Jackson1-Oct-04 19:24
George L. Jackson1-Oct-04 19:24 
GeneralConversion problems.Please help Pin
benibo21-Sep-04 9:08
benibo21-Sep-04 9:08 
GeneralRe: Conversion problems.Please help Pin
Christian Graus21-Sep-04 13:57
protectorChristian Graus21-Sep-04 13:57 
GeneralRe: Conversion problems.Please help Pin
Christian Graus21-Sep-04 14:10
protectorChristian Graus21-Sep-04 14:10 
GeneralRe: Conversion problems.Please help Pin
benibo21-Sep-04 14:46
benibo21-Sep-04 14:46 
GeneralRe: Conversion problems.Please help Pin
BAIJUMAX21-Sep-04 17:22
professionalBAIJUMAX21-Sep-04 17:22 
QuestionVB.NET control in MCF App?? Pin
Imager7921-Sep-04 1:51
Imager7921-Sep-04 1:51 
AnswerRe: VB.NET control in MCF App?? Pin
BAIJUMAX21-Sep-04 17:29
professionalBAIJUMAX21-Sep-04 17:29 
GeneralRe: VB.NET control in MCF App?? Pin
Imager7922-Sep-04 0:57
Imager7922-Sep-04 0:57 
GeneralUsing Arrays help reqd Pin
Aji Varghese21-Sep-04 1:12
Aji Varghese21-Sep-04 1:12 
GeneralCalling parent constructor. Pin
Duncan.Aitken20-Sep-04 6:38
Duncan.Aitken20-Sep-04 6:38 
GeneralRe: Calling parent constructor. Pin
Christian Graus20-Sep-04 11:19
protectorChristian Graus20-Sep-04 11:19 
General[.NET managed c++] Runtime modification of method attributes. Pin
Duncan.Aitken20-Sep-04 6:31
Duncan.Aitken20-Sep-04 6:31 
GeneralConverting CStrings to BSTR Pin
jerrycainjr18-Sep-04 14:48
jerrycainjr18-Sep-04 14:48 
GeneralGenerate Prime #s Pin
hpatel1918-Sep-04 6:01
hpatel1918-Sep-04 6:01 
GeneralRe: Generate Prime #s Pin
anonymous9922-Sep-04 8:40
anonymous9922-Sep-04 8:40 
GeneralRe: Generate Prime #s Pin
hpatel1927-Sep-04 7:38
hpatel1927-Sep-04 7:38 

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.