Results 1 to 3 of 3

Thread: How to convert a ActiveX control to a DLL

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 1999
    Location
    Princeton, New Jersey
    Posts
    46
    Anybody have any thoughts on how to convert an ActiveX control to an ActiveX DLL?

    I have a control that consists of a Module and a User Control. (I didnt write the Control).

    I want to convert the control to a DLL that I can call from script.

    Are there any caveats to be aware of?

    So far I have created a test.exe project and an ActiveX DLL. In the DLL I have Class1 with public methods. The DLL also has a module with similar code to the Control.

    In the test.exe, I create an instance of the object(DLL), call its methods, and it works great. However when I compile the DLL and create the object from script the particular methods fail.

    Anyone have any ideas?

    I realize this is difficult to analyze without code, I would be happy to paste it (Long) or send the whole project zipped.

    The nature of the project involves the JournalRecord API and its purpose is legitimate, recording mouse and keystrokes for playback and testing.

    Thanks,
    Dale.

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    The interface you know as usercontrol in OCX is not avalable when you work with a class, i hope you understand that. You have to remove/replace anything that have to do with the usercontrol properties. Otherways you could as well copy everything from the control to the class
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3

    Thread Starter
    Member
    Join Date
    Nov 1999
    Location
    Princeton, New Jersey
    Posts
    46
    Thanks for the replies.

    I definitely weeded out everything that had to do with the Property Let Set etc. Usercontrol stuff.

    The problem is that there is that AddressOf assignment to deal with. So I moved that code into a module and am playing with it some more now.

    Thanks.

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