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

Managed C++/CLI

 
GeneralRe: Linker errors Pin
Slaru22-Jul-03 7:49
Slaru22-Jul-03 7:49 
GeneralRe: Linker errors Pin
jspano22-Jul-03 15:14
jspano22-Jul-03 15:14 
GeneralRe: Linker errors Pin
Slaru22-Jul-03 17:10
Slaru22-Jul-03 17:10 
GeneralSerial COM port in Managed C++ Pin
icdma21-Jul-03 6:37
icdma21-Jul-03 6:37 
GeneralRe: Serial COM port in Managed C++ Pin
icdma26-Jul-03 7:43
icdma26-Jul-03 7:43 
Generalstrange compiler error Pin
Slaru20-Jul-03 13:06
Slaru20-Jul-03 13:06 
GeneralRe: strange compiler error Pin
Nemanja Trifunovic20-Jul-03 15:10
Nemanja Trifunovic20-Jul-03 15:10 
Generalstatic __gc[] @#$@ Pin
leppie19-Jul-03 22:04
leppie19-Jul-03 22:04 
Hi all

HTF do you declare it? Now I know why it is called C++, like C, but you are require to do 2 things extra for every bloody thing@!!!

OK so I had this in C:
static Int32 rNums[512] = { 123,1231,....,2131};
In MC++ I try:
static Int32 rNums __gc[] = {123,1231,....,2131};

No luck, Int32 is defined. The error messages are useless as usual! Compiling as C++ with /clr.

at the declaration:
randtable.c(71) : error C2146: syntax error : missing ';' before identifier 'rNums'
randtable.c(71) : error C3150: '[' : '__gc' can only be applied to a class, struct, interface, array or pointer

at the end of the array:
randtable.c(123) : error C2501: 'leppie::RandomNumbers::rNums' : missing storage-class or type specifiers
randtable.c(123) : error C3845: 'leppie::RandomNumbers::rNums' : only static data members can be initialized inside a __gc class or value type

ANy one?

leppie::AllocCPArticle(Generic DFA State Machine for .NET);
GeneralRe: static __gc[] @#$@ Pin
leppie19-Jul-03 22:31
leppie19-Jul-03 22:31 
GeneralSolved :) Pin
leppie19-Jul-03 23:14
leppie19-Jul-03 23:14 
GeneralRe: static __gc[] @#$@ Pin
Tom Archer20-Jul-03 3:32
Tom Archer20-Jul-03 3:32 
GeneralRe: static __gc[] @#$@ Pin
leppie20-Jul-03 5:01
leppie20-Jul-03 5:01 
GeneralRe: static __gc[] @#$@ Pin
Tom Archer20-Jul-03 5:10
Tom Archer20-Jul-03 5:10 
GeneralProblem Compiling MFC under VC++ .NET Pin
Cristi76200019-Jul-03 4:40
Cristi76200019-Jul-03 4:40 
GeneralRe: Problem Compiling MFC under VC++ .NET Pin
Tom Archer20-Jul-03 3:37
Tom Archer20-Jul-03 3:37 
GeneralRe: Problem Compiling MFC under VC++ .NET Pin
Anonymous20-Jul-03 20:14
Anonymous20-Jul-03 20:14 
GeneralConvert a String to a char array Pin
Slaru18-Jul-03 12:51
Slaru18-Jul-03 12:51 
GeneralRe: Convert a String to a char array Pin
Tom Archer19-Jul-03 4:26
Tom Archer19-Jul-03 4:26 
GeneralRe: Convert a String to a char array Pin
leppie19-Jul-03 22:59
leppie19-Jul-03 22:59 
GeneralRe: Convert a String to a char array Pin
Tom Archer20-Jul-03 3:26
Tom Archer20-Jul-03 3:26 
GeneralRe: Convert a String to a char array Pin
leppie20-Jul-03 5:04
leppie20-Jul-03 5:04 
GeneralRe: Convert a String to a char array Pin
Tom Archer20-Jul-03 5:11
Tom Archer20-Jul-03 5:11 
GeneralRe: Convert a String to a char array Pin
Anthony_Yio24-Jul-03 22:29
Anthony_Yio24-Jul-03 22:29 
Generaldebug managed and unmanaged code Pin
jspano17-Jul-03 4:28
jspano17-Jul-03 4:28 
GeneralRe: debug managed and unmanaged code Pin
leppie17-Jul-03 7:37
leppie17-Jul-03 7:37 

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.