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

Managed C++/CLI

 
Questionprint current screen in c++ Pin
manish_27184520-Feb-06 17:22
manish_27184520-Feb-06 17:22 
AnswerRe: print current screen in c++ Pin
George L. Jackson21-Feb-06 13:36
George L. Jackson21-Feb-06 13:36 
QuestionPrinting using printdialog / printDocument HELP needed! Pin
ArianN20-Feb-06 15:36
ArianN20-Feb-06 15:36 
QuestionAuthentication Daemon in C/C++ Pin
Blessed_2320-Feb-06 12:07
Blessed_2320-Feb-06 12:07 
QuestionCreating a simple multi threaded server.. Pin
maluguy20-Feb-06 7:15
maluguy20-Feb-06 7:15 
Questionstruct problem Pin
super_pointer19-Feb-06 3:48
super_pointer19-Feb-06 3:48 
AnswerRe: struct problem Pin
George L. Jackson19-Feb-06 6:11
George L. Jackson19-Feb-06 6:11 
AnswerRe: struct problem Pin
George L. Jackson19-Feb-06 7:33
George L. Jackson19-Feb-06 7:33 
Since you placed your posted problem here, you get a C++/CLI answer:

using namespace System;
using namespace System::Reflection;

public ref struct Record
{
String ^ name;
int age;
};

int main(array<System::String ^> ^args)
{
Record ^ rec = gcnew Record;
rec->name = "George Washington";
rec->age = 274;
array<FieldInfo ^> ^ fieldInfo;
Type ^ recordType = Record::typeid;

fieldInfo = recordType->GetFields(
static_cast<BindingFlags>(
BindingFlags::Public | BindingFlags::Instance));

for (int i = 0; i < fieldInfo->Length; ++i)
{
Console::WriteLine("{0} = {1}",
fieldInfo[i]->Name,
fieldInfo[i]->GetValue(rec));
}

return 0;
}

-- modified at 13:34 Sunday 19th February, 2006
QuestionMessage Only Window Error Pin
Peter Charlesworth19-Feb-06 2:57
Peter Charlesworth19-Feb-06 2:57 
AnswerRe: Message Only Window Error Pin
Peter Charlesworth19-Feb-06 2:59
Peter Charlesworth19-Feb-06 2:59 
AnswerRe: Message Only Window Error Pin
mbue19-Feb-06 12:18
mbue19-Feb-06 12:18 
GeneralRe: Message Only Window Error Pin
Peter Charlesworth20-Feb-06 6:47
Peter Charlesworth20-Feb-06 6:47 
QuestionPrint Combinations Pin
RockyJames18-Feb-06 9:48
RockyJames18-Feb-06 9:48 
AnswerRe: Print Combinations Pin
Michael Dunn18-Feb-06 11:18
sitebuilderMichael Dunn18-Feb-06 11:18 
AnswerRe: Print Combinations Pin
willbetter22-Feb-06 15:39
willbetter22-Feb-06 15:39 
Questionsrand( ) function Pin
chrizpl17-Feb-06 23:10
chrizpl17-Feb-06 23:10 
AnswerRe: srand( ) function Pin
George L. Jackson18-Feb-06 1:12
George L. Jackson18-Feb-06 1:12 
GeneralRe: srand( ) function Pin
chrizpl18-Feb-06 1:49
chrizpl18-Feb-06 1:49 
GeneralRe: srand( ) function Pin
George L. Jackson18-Feb-06 2:46
George L. Jackson18-Feb-06 2:46 
QuestionSpanning Tree Algorithm Implementation Pin
techno_brains17-Feb-06 4:30
techno_brains17-Feb-06 4:30 
AnswerRe: Spanning Tree Algorithm Implementation Pin
Cedric Moonen17-Feb-06 9:30
Cedric Moonen17-Feb-06 9:30 
AnswerRe: Spanning Tree Algorithm Implementation Pin
George L. Jackson17-Feb-06 12:07
George L. Jackson17-Feb-06 12:07 
QuestionGetting a list of controls from another process (application) Pin
Virtek17-Feb-06 3:21
Virtek17-Feb-06 3:21 
AnswerRe: Getting a list of controls from another process (application) Pin
Virtek17-Feb-06 7:38
Virtek17-Feb-06 7:38 
QuestionNumbering Puzzle in C++ Pin
chrizpl17-Feb-06 1:47
chrizpl17-Feb-06 1:47 

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.