I can answer your question by directing you to codeproject.com. Th
Tetris example has a raw form and namespace created that overcomes th
Interface problem. I have a question. The reason I don't want to answe
your question personally is because this same problem caused mor
complications for me but you might have an answer. If you have worke
with MDI forms, than creating a class in the same project outside th
namespace will create unified access by child forms and will lock out
forward declaration in the namespace. I accidentally fixed the proble
without declaring ::Form using the same Tetris example and it jus
worked in one compile. Don't do that if you want to be able to create
form project using the IDE and want to access class variables public o
otherwise (using get set methods, etc.). If you solve the proble
please post it. To recap the question. Create a new winform project g
to an mdi "app type" and add a class object. When instancing the clas
in the top form, access the class variables using any legal method an
it should work without forward declarations or __value, than using
duplicate declaration in the extended namepsace of the child form, i
should allow clean access as follows ..
TopForm::instanceClass->variable, from the child form. "Sometimes i
works sometimes it doesn't." obviously my error. I pushed the compile
and really confused myself. So I am trying to get that to work. P.S.
don't want to confuse you but forward declaration the way I made use o
the concept is to instance the object in the topform namespace just a
you would have to have a static managed type initialization in a __g
class. I understand it is not exactly the problem you have but th
syntax is extremely important and the Tetris example is an SDI app
that allows you to see the top form re-defined in each extension to th
namespace that is per source and or header file. Also P.S. your proble
in this way is having to access managed c++ functions to use CO
Interfaces :). It is not necesary if you do a 'clean' conversion t
__gc types. :). I hope it helps
--
k_briz
-----------------------------------------------------------------------
k_brizs's Profile:
http://www.msusenet.com/member.php?userid=255
View this thread:
http://www.msusenet.com/t-187055783