Tuesday, July 28, 2009

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-%26gt;Items-%26gt;Add(TEMPRQ-%26gt;process... //ListBox


lsbRQDesc-%26gt;Items-%26gt;Add(TEMPRQ-%26gt;descriptio...


lsbRQReqTime-%26gt;Items-%26gt;Add(TEMPRQ-%26gt;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 '-%26gt;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

Passing data to Form VC++?
Make someone else do it for you. That would be a lot easier and better for your apparently low self esteem.

survey research

No comments:

Post a Comment