Results 1 to 4 of 4

Thread: How does it work?

  1. #1

    Thread Starter
    New Member Trace7r's Avatar
    Join Date
    Jan 2003
    Location
    Somewhere between heaven and earth....
    Posts
    4

    Question How does it work?

    Hallo everybody,

    I've made some nice games in VB, using all my expirience as beginner, but now I wanna learn to use ActiveX in VB6.0, I understand what it does but I don't know how to implement it into VB.
    Just wanna know how I have to call the dll in a selfmade form (and how to make the dll... ), I'm gonna try to find the solution myself but this is sometin I can't seem to find some good examples of...
    Can someone give me the base of using ActiveX in VB

    Already thx for helpin me....

  2. #2
    Frenzied Member usamaalam's Avatar
    Join Date
    Nov 2002
    Location
    Karachi
    Posts
    1,308
    When you start new project in VB, select ActiveX dll, then write your methods and properties in the dll you want to perform. You can save your dll from the File menu.

    After saving it, register your dll.

    C:\>regsvr32 abc.dll

    When the dll is being registered, you can find it in the references in the project menu.

    In your program where your want to call the dll, add it from the references, create an instance of the class.

    Now properties and methods of your dll are ready to use.

  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    Originally posted by usamaalam
    When you start new project in VB, select ActiveX dll, then write your methods and properties in the dll you want to perform. You can save your dll from the File menu.

    After saving it, register your dll.

    C:\>regsvr32 abc.dll

    When the dll is being registered, you can find it in the references in the project menu.

    In your program where your want to call the dll, add it from the references, create an instance of the class.

    Now properties and methods of your dll are ready to use.
    It's simpler than that. As soonas you compile the DLL (which you have to do anyways to make it usefull) VB will register it for you.
    Hint: Right click on the Project's node in the Explorer in vB, and select the "Your Project Name" Properties. Change the PRoject description as this is what will show up in the References dialog... makes it easier to find it.
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  4. #4

    Thread Starter
    New Member Trace7r's Avatar
    Join Date
    Jan 2003
    Location
    Somewhere between heaven and earth....
    Posts
    4
    Wanna thank everybody for the quick response, will let you know what I did, but that will probebly not be this week, have to learn for (adult-) school this week...

    thx again, all of ya...
    If you wanna do it, do it good, that's what I try to do... :-)

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