Results 1 to 4 of 4

Thread: registration

  1. #1

    Thread Starter
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606

    Question does somebody know this one????

    how can i register dll and ocx in vc++

  2. #2
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    Use the Tools->Register Control option
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  3. #3

    Thread Starter
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606

    Unhappy yeah, ok , but...............

    i mean at run time !(sorry)

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    You need to use the LoadLibrary function. Code similar to this should be used: (warning...this will probably not compile):
    Code:
    HMODULE hDLL = LoadLibrary("file.ocx")
    *(STDAPI)(void) hDLLProc = GetProcAddress(hDLL, "DllRegisterServer");
    if(hDLLProc)
        (*hDLLProc)();
    FreeLibrary(hDLL);
    I'm not too sure about the function pointer definition, though. Does anyone else have the exact details?
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

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