CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    May 2000
    Posts
    37

    How do I get my VB GUI exe to work on Win98

    I created a VB GUI exe and it works on Win 2000 and Me. However, when I run it on Win98, it gives an error msg stating that the oleaut32.dll is out of date and the program requires a newer version. I found another dll with the date of 9/8/2000 and it still gave me the same error. In my burned cd, I included advapi32.dll, gdi32.dll, kernel32.dll, msvbv60.dll, ntdll.dll, ole32.dll, oleaut32.dll, rpcrt4.dll, and user32.dll. I can double clicking on the vb exe on a burned cd with all the dlls. How do I fixed this problem?

    Thanks,

    John


  2. #2
    Join Date
    Apr 2000
    Posts
    737

    Re: How do I get my VB GUI exe to work on Win98

    unfortunately, I think one of the way is to recompile your program in Win98 which might solve your problem.

    cksiow
    http://vblib.virtualave.net - share our codes


  3. #3
    Join Date
    Feb 2001
    Location
    PA
    Posts
    163

    Re: How do I get my VB GUI exe to work on Win98

    Make sure the correct oleaut32.dll is registered on the Win98 machine.


  4. #4
    Join Date
    May 2000
    Posts
    37

    Re: How do I get my VB GUI exe to work on Win98

    How do I make sure that the oleaut32.dll is registered on the Win98 machine. The VB GUI will be run from the cd which will create an ini file. The VB will not be run from the harddrive. No dll will be installed on the harddrive.

    Thanks,

    John


  5. #5
    Join Date
    Feb 2001
    Location
    PA
    Posts
    163

    Re: How do I get my VB GUI exe to work on Win98

    Put the version of oleaut32.dll you need on the CD and use the following code to register it:

    [vbcode]
    ' Put in the general Declarations
    Private Declare Function RegOleaut32 Lib "CD Path\Oleaut32.DLL" Alias "DllRegisterServer" () As Long
    Private Const S_OK = &H0

    ' Call this sub from Sub Main or a Startup Form

    Sub RegisterOleaut32()
    On Error GoTo Err_Registration_Failed


    If RegOleaut32 = S_OK Then
    MsgBox "Oleaut32.Dll Registered Successfully.", 64, "Oleaut32.Dll Register Information"
    Else
    MsgBox "Oleaut32.Dll Not Registered. Register this control manually.", 48, "Oleaut32.Dll Register Information"
    End If

    EndPart:
    Exit Sub

    Err_Registration_Failed:
    MsgBox "Error: " & Err.Number & " " & Err.Description & " " & "Register this control manually"
    Resume EndPart
    End Sub


  6. #6
    Join Date
    May 2000
    Posts
    37

    Re: How do I get my VB GUI exe to work on Win98

    I used the code. I never got to the call to register the dll. I even use regsvr32.exe to register the dll before double clicking on the vb exe. It only does not work on windows 98 first edition. The oleaut32.dll is a few months older than the one install my visual studio. I think that it is using the one loaded into the system. Is there another way to get vb exe to work from a cd in windows 98 first edition?


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