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

Managed C++/CLI

 
Generaldeclaring arrays in function (please help) Pin
Toximus19-Dec-04 6:06
Toximus19-Dec-04 6:06 
GeneralRe: declaring arrays in function (please help) Pin
Christian Graus20-Dec-04 9:31
protectorChristian Graus20-Dec-04 9:31 
Generalwant the source code of this riddle! Pin
babur khan18-Dec-04 22:03
babur khan18-Dec-04 22:03 
GeneralRe: want the source code of this riddle! Pin
SteveKing27-Dec-04 5:56
SteveKing27-Dec-04 5:56 
GeneralNetwork related Pin
Rawshid18-Dec-04 20:24
Rawshid18-Dec-04 20:24 
Generalsingle words Pin
Johny Smith18-Dec-04 8:14
Johny Smith18-Dec-04 8:14 
GeneralCombo box item - using variable values Pin
Rich Wright16-Dec-04 22:24
Rich Wright16-Dec-04 22:24 
GeneralNET syntax takes some getting used to Pin
ursus zeta18-Dec-04 11:06
ursus zeta18-Dec-04 11:06 
This is really, like you guessed, a simple thing.
You're using Visual C++ .NET, probably to compile a Managed Application, and you've declared a simple char [] array to use with .NET objects and methods.
We all make a similar mistake when first writing a managed app: the char [] is a user-defined type. It is not a CLR type. This means that your char [] is an unmanaged type, and as a consequence, all .NET (I'm oversimplifying here) types and their methods will find this type incompatible, and the compiler will produce error messages.
The cryptic __gc message just tells you to use the "__gc" keyword (this is a Microsoft-specific language keyword) that indicates that the type following is a managed type (garbage collected).
Read this:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmxspec/html/vcManagedExtensionsSpec_4_5.asp[^]

You might find this CodeProject article even more helpful:
http://www.codeproject.com/managedcpp/csarrays01.asp[^]
GeneralRe: NET syntax takes some getting used to Pin
Rich Wright24-Dec-04 4:15
Rich Wright24-Dec-04 4:15 
GeneralC++ and Oracle Pin
jithen_dt16-Dec-04 20:17
jithen_dt16-Dec-04 20:17 
GeneralRe: C++ and Oracle Pin
Christian Graus17-Dec-04 19:38
protectorChristian Graus17-Dec-04 19:38 
GeneralConverting int to Hex String Pin
MKlucher16-Dec-04 8:49
MKlucher16-Dec-04 8:49 
GeneralRe: Converting int to Hex String Pin
wwwhb200016-Dec-04 17:11
wwwhb200016-Dec-04 17:11 
GeneralRe: Converting int to Hex String Pin
VKatti17-Dec-04 2:18
VKatti17-Dec-04 2:18 
GeneralRe: Converting int to Hex String Pin
MKlucher17-Dec-04 20:32
MKlucher17-Dec-04 20:32 
GeneralRe: Converting int to Hex String Pin
wb18-Dec-04 9:41
wb18-Dec-04 9:41 
GeneralRe: Converting int to Hex String Pin
MKlucher19-Dec-04 10:56
MKlucher19-Dec-04 10:56 
GeneralRe: Converting int to Hex String Pin
S. Senthil Kumar27-Dec-04 7:34
S. Senthil Kumar27-Dec-04 7:34 
GeneralC++/CLI Community in Orkut Pin
Majid Shahabfar16-Dec-04 0:17
Majid Shahabfar16-Dec-04 0:17 
GeneralBlank Control ID when invoking Add Member Variable Wizard Pin
Anonymous14-Dec-04 0:36
Anonymous14-Dec-04 0:36 
GeneralOpenoffice.org COM interface Pin
Munchausen12-Dec-04 1:26
Munchausen12-Dec-04 1:26 
GeneralExample of RegDeleteKey Pin
jonavon blakly10-Dec-04 17:57
jonavon blakly10-Dec-04 17:57 
GeneralRe: Example of RegDeleteKey Pin
TigerNinja_13-Dec-04 3:49
TigerNinja_13-Dec-04 3:49 
Generalhelppp Pin
James19859-Dec-04 16:01
James19859-Dec-04 16:01 
GeneralRe: helppp Pin
TigerNinja_13-Dec-04 2:44
TigerNinja_13-Dec-04 2:44 

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.