Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I access a form from my source code?
Message
De
15/09/1998 20:03:35
 
 
À
15/09/1998 07:52:39
Mark Kessler
U.S.M.C. - Network Operation Center
Quantico, Virginie, États-Unis
Information générale
Forum:
Visual C++
Catégorie:
Autre
Divers
Thread ID:
00136310
Message ID:
00137076
Vues:
17
So, is your VB form an ActiveX? Don't you have a C++ class generated by the import wizard from your VB form? This is the class you have to use. Eg: create an instance of this class (declaring a static variable of type your class or allocate it using the "new" operator) and call the one of the Create() member functions for your new object. After that you can access its properties and methods. (if your VB form is an ActiveX, for each property in VB you will have a pair of Get/Set functions in C++).

Vlad

>I mean that I created a form inside of Visual Basic and then imported it into Visual C++. That part was successful. The problem which I have come across is that I cannot figure out how to access the methonds/events of the form inside of
>VC++. The other problem lies in accessing the form from my source code (.CPP).
>
>How could I do either of the two problems?
>
>>What do you mean by "imported"? Is your VB form an ACtiveX?
>>
>>Vlad
>>
>>>I imported in a form from VB 5.0 . I couldn't figure out how to edit the methods/events of the form and I cannot figure out how to access the form from my CPP source code.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform