CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 1999
    Location
    USA
    Posts
    25

    Not getting registered

    I created a ActiveX control and trying to register it on a system which only have win 95 .....no MS Visual Studio installed ..
    It is not getting registered.....Unload library fail is coming......can somebody help...pls

    thanks guys...


  2. #2
    Join Date
    May 1999
    Posts
    35

    Re: Not getting registered

    Hi,

    use regsvr32 on the command line to register your control.

    Greetings, Jörg



  3. #3
    Join Date
    Mar 1999
    Location
    USA
    Posts
    25

    Re: Not getting registered

    Thanku Jorg.....
    But even that i tried ...it is giving LoadLibrary failed...what will be the reason......
    pls...it is urgent.....

    samantha


  4. #4
    Join Date
    May 1999
    Location
    Toronto, Ontario, Canada
    Posts
    155

    Re: Not getting registered

    As you had said in your previous post, you don't have DevStudio installed, which means it probably don't have all the required libraries installed (MFC42.DLL and MSVCRT.DLL if you are using MFC) installed. To solve your problem, copy all the required DLLs to that system or statically link all the required libraries.

    -Safai

  5. #5
    Join Date
    May 1999
    Posts
    116

    Re: Not getting registered

    There is a program shipped with VC 6 calles depends.exe (in the Visual Studio\Common\Tools) directory. You can use this to see all the dlls that your ocx depends on. And then you must install them on the destination computer (but dont overwrite newer versions on the destination computer.)


  6. #6
    Join Date
    Apr 1999
    Location
    Alabama, USA
    Posts
    261

    Re: Not getting registered

    Run this test program in Debug mode to find out why your dll is failing. It will probably give you a message box that a DLL isn't in the path. Then you can copy the DLL and party on!


    #include <windows.h>

    void main()
    {

    HANDLE h = ::LoadLibrary("C:\\Temp\\MyDLL.Dll");

    LPVOID lpMsgBuf;
    ::FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
    NULL,
    GetLastError(),
    MAKELANGID(LANG_NEUTRAL,SUBLANG_DEFAULT),
    (LPTSTR) &lpMsgBuf,
    0,
    NULL );

    ::MessageBox( NULL, (const char*)lpMsgBuf, "GetLastError", MB_OK | MB_ICONINFORMATION );
    ::LocalFree( lpMsgBuf );

    if( h )
    ::FreeLibrary(h);

    }






  7. #7
    Guest

    Re: Not getting registered

    If you are using mfc then you have to ship mfc dlls with your control. Get from redist directory of visual studio or VC. There are redistributable dlls. You have to ship mfc42.dll, msvcrt.dll ( mfc42d.dll if debug mode ) and make sure your dlls are same version as VC you are using.


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

Featured