Interview Question in Visual Studio 2005
Interview Question :: Passing data to Form VC++ |
I'm trying to access struct instances declared at my main code file (where the main is located). I'm using a global pointer, also declared at my main code file to try to access them.
This is from my Form.h code.
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
lsbRQProcNum->Items->Add(TEMPRQ->process... //ListBox
lsbRQDesc->Items->Add(TEMPRQ->descriptio...
lsbRQReqTime->Items->Add(TEMPRQ->totalti...
}
I get these errors:
Error 1 error C2065: 'TEMPRQ' : undeclared identifier c:\users\xavier\documents\vis... studio 2005\projects\cpu sim\cpu sim\Form1.h 360
Error 2 error C2227: left of '->processnum' must point to class/struct/union/generic type c:\users\xavier\documents\visual studio 2005\projects\cpu sim\cpu sim\Form1.h 360
I'll appreciate some help, thanks |
|
|
|

Loading ...