Results 1 to 4 of 4

Thread: ActiveX problem

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2002
    Location
    UK
    Posts
    18

    Talking 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.

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Mar 2002
    Location
    UK
    Posts
    18
    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);

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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
  •  



Click Here to Expand Forum to Full Width