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

Managed C++/CLI

 
AnswerRe: Vector list Pin
OrcBighter23-Aug-06 20:07
OrcBighter23-Aug-06 20:07 
QuestionProblem including C++ code in C# assembly. Pin
OrcBighter23-Aug-06 15:42
OrcBighter23-Aug-06 15:42 
AnswerRe: Problem including C++ code in C# assembly. Pin
Milton Karimbekallil4-Aug-06 2:06
Milton Karimbekallil4-Aug-06 2:06 
No way, your mc++ declaration says the constans are static. static are not considered as constants. Thats why teh error.

static const int maxFooBars = MAX_FOOBARS;
static const String* FooBarName = FOOBAR_NAME;

So to overcome this, you have to remove taht static. but then you cant use the values without creating the instance. so the alternative is to declare an enum for that insted of a class.

public enum class SMyManagedClass<br />
{<br />
   maxFooBars = MAX_FOOBARS<br />
}


But here inside enum u cant use strings. So for string items u can create a managed class and inside a hash table to host all tthe strings. then an index enum can puul the corresponding string,...

cheers..Milton Kb
GeneralRe: Problem including C++ code in C# assembly. Pin
OrcBighter26-Aug-06 18:27
OrcBighter26-Aug-06 18:27 
QuestionHow to integrate best an MFC-component in .Net? Pin
gunag3-Aug-06 3:06
gunag3-Aug-06 3:06 
AnswerRe: How to integrate best an MFC-component in .Net? Pin
Milton Karimbekallil4-Aug-06 1:22
Milton Karimbekallil4-Aug-06 1:22 
AnswerRe: How to integrate best an MFC-component in .Net? Pin
gunag5-Aug-06 0:53
gunag5-Aug-06 0:53 
GeneralRe: How to integrate best an MFC-component in .Net? Pin
Milton Karimbekallil7-Aug-06 0:00
Milton Karimbekallil7-Aug-06 0:00 
QuestionAsyncCallback constructor error Pin
DQ843-Aug-06 1:44
DQ843-Aug-06 1:44 
QuestionCan any "macro" take variable number of arguments? Pin
Pradosh Tapan Datta2-Aug-06 22:49
Pradosh Tapan Datta2-Aug-06 22:49 
AnswerRe: Can any "macro" take variable number of arguments? Pin
toxcct2-Aug-06 23:57
toxcct2-Aug-06 23:57 
AnswerRe: Can any "macro" take variable number of arguments? Pin
Michael Dunn4-Aug-06 14:10
sitebuilderMichael Dunn4-Aug-06 14:10 
GeneralRe: Can any "macro" take variable number of arguments? Pin
Pradosh Tapan Datta6-Aug-06 21:27
Pradosh Tapan Datta6-Aug-06 21:27 
QuestionConfusion about % vs. &amp; Pin
Joe Woodbury2-Aug-06 17:14
professionalJoe Woodbury2-Aug-06 17:14 
AnswerRe: Confusion about % vs. & Pin
Michael Dunn4-Aug-06 17:47
sitebuilderMichael Dunn4-Aug-06 17:47 
QuestionCin and Cout- Class or object Pin
Shamnar2-Aug-06 1:46
Shamnar2-Aug-06 1:46 
AnswerRe: Cin and Cout- Class or object Pin
NrmMyth2-Aug-06 5:52
NrmMyth2-Aug-06 5:52 
GeneralRe: Cin and Cout- Class or object Pin
toxcct2-Aug-06 6:07
toxcct2-Aug-06 6:07 
GeneralRe: Cin and Cout- Class or object Pin
NrmMyth2-Aug-06 19:58
NrmMyth2-Aug-06 19:58 
AnswerRe: Cin and Cout- Class or object Pin
toxcct2-Aug-06 6:10
toxcct2-Aug-06 6:10 
AnswerRe: Cin and Cout- Class or object [modified] Pin
gdoupanguoqing12-Aug-06 11:32
gdoupanguoqing12-Aug-06 11:32 
Questioneventhandlers created at run time for new menuitems Pin
yiwpyos1-Aug-06 23:48
yiwpyos1-Aug-06 23:48 
QuestionSplash Window in Managed C++ Pin
Pavan Rao1-Aug-06 21:34
Pavan Rao1-Aug-06 21:34 
GeneralRe: Splash Window in Managed C++ Pin
prasad_som3-Aug-06 3:10
prasad_som3-Aug-06 3:10 
GeneralRe: Splash Window in Managed C++ Pin
Pavan Rao3-Aug-06 3:27
Pavan Rao3-Aug-06 3:27 

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.