Click to See Complete Forum and Search --> : How do I get my VB GUI exe to work on Win98
jyee
April 12th, 2001, 07:18 PM
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
cksiow
April 12th, 2001, 07:24 PM
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
Cubbie
April 13th, 2001, 07:44 AM
Make sure the correct oleaut32.dll is registered on the Win98 machine.
jyee
April 13th, 2001, 09:40 AM
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
Cubbie
April 13th, 2001, 10:16 AM
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
jyee
April 13th, 2001, 03:16 PM
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?
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.