|
-
July 7th, 2009, 06:27 AM
#5
Re: Declaration of office
 Originally Posted by Alex F
No, you need Form1 instance for this. It looks like you started to work with C++/CLI without C++ experience. I suggest you to learn C++ first.
In Motory.cpp you need to have variable of type Form1^, which must be initialized to existing Form1 reference. Having this reference, you can call class methods. I cannot show exactly how to do this, because I don't know your program structure.
How do I create a global pointer to Form1, which provide access to its methods?
I tried: public: System:: Windows:: Forms:: Form ^ Fun;
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|