[4.20] Compiler not working on Win95

Windows specific forum
Marlin
Enthusiast
Enthusiast
Posts: 406
Joined: Sun Sep 17, 2006 1:24 pm
Location: Germany

[4.20] Compiler not working on Win95

Post by Marlin »

It seems the PureBasic Compiler v4.20 can not be used on Win95.

I just installed it on my Win95 box.

When I try to start the IDE, I get an error message:

Code: Select all

Fehler beim Starten des Programms
Die Datei PBCOMPILER.EXE ist
mit dem fehlenden Export-KERNEL32.DLL:IsDebuggerPresent verknüpft.

English:
Error starting the program
The file PBCOMPILER.EXE is
linked to the missing export KERNEL32.DLL:IsDebuggerPresent.
After that the IDE is shown, but the compile option is disabled.

I did not have any such problem with PB 4.10.

Is Win95 no longer supported by PB?
(I didn't read anything like that yet.)

Could this be solved by some kind of workaround?

Would the PB compiler still work with Win98?
User avatar
Deeem2031
Enthusiast
Enthusiast
Posts: 216
Joined: Sat Sep 20, 2003 3:57 pm
Location: Germany
Contact:

Post by Deeem2031 »

http://msdn.microsoft.com/en-us/library/ms680345.aspx wrote:Requires Windows Vista, Windows XP, or Windows 2000 Professional.
So with this function imported it will also don't work on Win98.
irc://irc.freenode.org/#purebasic
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

@Deeem2031: It works with v4.10 though, so something in the PureBasic
package has changed with v4.20 to no longer support it.
User avatar
Deeem2031
Enthusiast
Enthusiast
Posts: 216
Joined: Sat Sep 20, 2003 3:57 pm
Location: Germany
Contact:

Post by Deeem2031 »

The 4.20 pbcompiler.exe uses IsDebuggerPresent(), SetUnhandledExceptionFilter() and others, which are functions that are not present on Win95/Win98. First i thought it some kind of anti-reverse-engineering, but i did some test and could not determine the purpose of using this functions. Let's see what Fred says :)
irc://irc.freenode.org/#purebasic
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Deeem2031 wrote:
http://msdn.microsoft.com/en-us/library/ms680345.aspx wrote:Requires Windows Vista, Windows XP, or Windows 2000 Professional.
I use PB4.20 without any problems here on NT4 : NT4 may not be in the m$ list, but IsDebuggerPresent() is exported by NT4's kernel32.dll ...
So maybe it's also exported by Win98's kernel32.dll (although it's not a NT family OS) ?!
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Little John
Addict
Addict
Posts: 4807
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Post by Little John »

I don't have Win 95 available, but I can tell that PB 4.20 runs fine here on Win 98.

Regards, Little John
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Little John wrote:I don't have Win 95 available, but I can tell that PB 4.20 runs fine here on Win 98.
Thanks.

You can't always trust MSDN :
http://www.answers.com/topic/isdebuggerpresent
http://www.sgr.info/dev/win32api/IsDebuggerPresent.htm
etc...

I had a similar problem with MakeSureDirectoryPathExists() : MSDN says it's not available on Win 95/98/NT ; the old Win32.hlp SDK help file from the same m$ says "The IMAGEHLP function set is an API for the Windows NT and Windows 95 operating systems" ...
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Little John
Addict
Addict
Posts: 4807
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Post by Little John »

Yes, M$ spreads misinformation about their own operating systems. It's a shame!

Regards, Little John
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

> "The IMAGEHLP function set is an API for the Windows NT and Windows 95 operating systems"
But IMAGEHLP is an optional install, so it's not always available :wink:
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

ts-soft wrote:> "The IMAGEHLP function set is an API for the Windows NT and Windows 95 operating systems"
But IMAGEHLP is an optional install, so it's not always available :wink:
Yes, that's what I am told ; but I saw it on every Win98/NT4 system I checked, and it is on the Win98 install CD.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

ImageHlp is on all versions of Windows. Why they call it "optional" is beyond me.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

I think the imagehlp was installed with the kodak photo ..., this is
default but optional, so you can uncheck the install.
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

ts-soft wrote:I think the imagehlp was installed with the kodak photo ..., this is
default but optional, so you can uncheck the install.
kodak photo !?
If think the 'Image' in ImageHlp is for PE image like in 'Portable Executable' and not like in 'Picture'.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

One of the optional, but default components brings the required dll, but i am
not sure of what component this is.
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Post by Kaeru Gaman »

what is the filename of "ImageHlp" and where should it be located?
... just curious ...
oh... and have a nice day.
Post Reply