Results 1 to 13 of 13

Thread: Creating Unregistered Objects

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    Is There a Way of creating an Object from an Unregistered ActiveX dll?

    I know CreateObject Can Do It If they're Registered but Can You do It just From the dll File, without having to register it?

  2. #2
    Addicted Member
    Join Date
    Feb 2000
    Posts
    224

    That's Impossible!


    WHen you are Registering an activex dll you are
    informing Windows Several things among which CLASS-ID is
    Important !

    SO Without that Knowledge You cannot reuse the class
    contained in that dll.

    You have to register.
    If you can't pronounce my name, call me GURU

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    But Surley when you Regester the Class that information Comes from Indide the dll, can't I extract the Information Needed from the dll at run time and use that? If not why not?

  4. #4
    Addicted Member
    Join Date
    Feb 2000
    Posts
    224

    Cool

    Good Question..

    But do you think..It is enough if your program and the dll
    concerned alone know the class information ?
    Won't you give a chance for windows to know about
    what you are going to do with the dll and allocate
    resources accordingly. The very act of informing the
    OS about this dll is called 'Registration'. It doesn't
    matter if you do it from an external application like
    Regsvr32.exe or from your own app. When you do register
    you are saying like ...this dll will access these kind of
    resources, wants to load at this particular region of
    memmory avoiding the default ....etc...



    If you can't pronounce my name, call me GURU

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    possibly

  6. #6

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    I'm Not Really bothered about that, We're trying to use the dll Files in the Same Way you'd use a text file, we need Loads and Loads of them with the user able to add and remove them at any time, the Program wants to check what dlls are there and use those, I think it's completly pointless registering them all. Especially as they will only be used by this Program.


    Having Said that, is there a way of unregistering the dll?

  7. #7
    Addicted Member LAURENS's Avatar
    Join Date
    Jan 2000
    Location
    Utrecht, the Netherlands
    Posts
    138
    Yep, DllUnregisterServer.
    Regards,
    Laurens

    Using VB5 Enterprise edition SP3
    VB6 Enterprise edition SP5

  8. #8

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    Lovley, Thanks a Lot.

  9. #9
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658
    Never heard of DLLRegisterServer / DllUnregisterServer. What exactly does it do?

    I would have thought regsvr32 was the tool to use. use the /u option to specify that you would like to unregister.
    Iain, thats with an i by the way!

  10. #10
    Addicted Member LAURENS's Avatar
    Join Date
    Jan 2000
    Location
    Utrecht, the Netherlands
    Posts
    138
    Hey Sam, it is really DllUnregisterServer. I'm not being nasty.
    Regards,
    Laurens

    Using VB5 Enterprise edition SP3
    VB6 Enterprise edition SP5

  11. #11
    Randalf the Red honeybee's Avatar
    Join Date
    Jun 2000
    Location
    off others' brains
    Posts
    4,345

    Well ....

    I think the question was meant to be a little different than discussed by you people. If I am mistaken, treat this question as my own.

    Registering a dll allows us to use it in other applications as well. I have a dll that only my application uses, and no one else. I want to use the dll without registering it at any time. Is THIS possible?

    This means I am not using any DLLRegisterServer or something to register the dll at runtime.
    I am not a complete idiot. Some parts are still missing.
    Check out the rtf-help tutorial
    General VB Faq Thread
    Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
    Get more power for your floppy disks. ; View honeybee's Elite Club:
    Use meaningfull thread titles. And add "[Resolved]" in the thread title when you have got a satisfactory response.
    And if that response was mine, please think about giving me a rep. I like to collect them!

  12. #12
    Hyperactive Member
    Join Date
    Jan 1999
    Location
    Rotterdam, Netherlands
    Posts
    386
    If you want to use ActiveX dll's, no you can't.
    Hope this helps

    Crazy D

  13. #13
    Randalf the Red honeybee's Avatar
    Join Date
    Jun 2000
    Location
    off others' brains
    Posts
    4,345

    Well ....

    Crazy D,

    You said it was not possible using ActiveX dll files. Is there a way to do this using some other way? Do you mean it is not possible using VB, but may be possible with C++ or some other language?
    I am not a complete idiot. Some parts are still missing.
    Check out the rtf-help tutorial
    General VB Faq Thread
    Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
    Get more power for your floppy disks. ; View honeybee's Elite Club:
    Use meaningfull thread titles. And add "[Resolved]" in the thread title when you have got a satisfactory response.
    And if that response was mine, please think about giving me a rep. I like to collect them!

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