|
-
Oct 29th, 2002, 11:50 AM
#1
Thread Starter
Junior Member
ActiveX problem
I am using VC++6 and creating an MFC dialog based application with 1 custom ActiveX. When i insert the ActiveX into the dialog C++ creates a wrapper class for me. If i want to modify the ActiveX itself i will need to recreate this wrapper class. How do i do this? If it cannot be recreated what is the best way to remove and re-insert the ActiveX into the project. I have tried removing it from the dialog, deleting the member variable and any references but i get linker errors.
-
Oct 29th, 2002, 02:39 PM
#2
There's nothing the wizard can do you cannot. If you learn how an ActiveX wrapper class is structured you can write one yourself with ease. But why do you have to replace the class only because you edited the ActiveX?
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 30th, 2002, 04:56 AM
#3
Thread Starter
Junior Member
When you make any changes to the activeX the ID numbers used in the InvokeHelper call are regenerated. To do it manually means using the COM viewer and noting down all the method ID's and re-entering them into the class. This would take a lot of time and is very easy to make a mistake. At the top of the VC generated class there is a comment saying '/ NOTE: Do not modify the contents of this file. If this class is regenerated by
// Microsoft Visual C++, your modifications will be overwritten.
' This implies that VC should regenerate this class for you.
InvokeHelper(0x6003001a , DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
Movecard, TimeOut);
-
Oct 30th, 2002, 10:22 AM
#4
Yes, it does seem so.
Sorry, don't know how.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
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
|