Blitz 3D SDK V104 B2 Cannot Open B3D.DLL

Everything else that doesn't fall into one of the other PB categories.
akj
Enthusiast
Enthusiast
Posts: 668
Joined: Mon Jun 09, 2003 10:08 pm
Location: Nottingham

Blitz 3D SDK V104 B2 Cannot Open B3D.DLL

Post by akj »

I cannot open the Blitz 3D SDK file B3D.DLL using:

Code: Select all

Global b3ddll = OpenLibrary(#PB_Any, "C:\Windows\System32\b3d.dll")
If b3ddll = 0
  MessageRequester ("Fatal error!", "Failed to open b3d.dll")
  End
EndIf
The OpenLibrary() statement always returns 0.
Redownloading the SDK package made no difference.

I am using version 104 beta 2 of the SDK package under Windows ME and PureBasic 4.30.

Can anyone else with Windows ME/98 get the DLL file to open?
Last edited by akj on Sun Jan 25, 2009 1:18 am, edited 1 time in total.
Anthony Jordan
Pupil
Enthusiast
Enthusiast
Posts: 715
Joined: Fri Apr 25, 2003 3:56 pm

Post by Pupil »

The path might be wrong? Have you tried "C:\windows\system32\b3d.dll"?
ABBKlaus
Addict
Addict
Posts: 1143
Joined: Sat Apr 10, 2004 1:20 pm
Location: Germany

Post by ABBKlaus »

there´s no need to use a path, what does getlasterror say ?

Code: Select all

Global b3ddll = OpenLibrary(#PB_Any, "b3d.dll") 
If b3ddll = 0 
  err=GetLastError_()
  MessageRequester ("Fatal error!", "Failed to open b3d.dll"+Chr(13)+"Error code "+Str(err)) 
  End 
EndIf
akj
Enthusiast
Enthusiast
Posts: 668
Joined: Mon Jun 09, 2003 10:08 pm
Location: Nottingham

Post by akj »

@Pupil:

Sorry, that was a typo. I've now corrected it in the first post, but the OpenLibrary() call still fails.
Anthony Jordan
akj
Enthusiast
Enthusiast
Posts: 668
Joined: Mon Jun 09, 2003 10:08 pm
Location: Nottingham

Post by akj »

@ABBKlaus:

Thank you for your suggestion. The error code returned is 31 which appears to mean "A device attached to the system is not functioning.".

But this message doesn't make much sense.

The code I used to get the textual error message was:

Code: Select all

Procedure.s GetLastError() ; AKJ  18-Oct-08
; Return last system error as a string
Protected size, error$, flags
size = #FORMAT_MESSAGE_MAX_WIDTH_MASK-2 ; 253
error$ = Space(size)
flags = #FORMAT_MESSAGE_FROM_SYSTEM|#FORMAT_MESSAGE_MAX_WIDTH_MASK	
FormatMessage_(flags, #Null, GetLastError_(), 0, @error$, size, #Null)
ProcedureReturn Trim(error$)
EndProcedure
Anthony Jordan
ABBKlaus
Addict
Addict
Posts: 1143
Joined: Sat Apr 10, 2004 1:20 pm
Location: Germany

Post by ABBKlaus »

akj
Enthusiast
Enthusiast
Posts: 668
Joined: Mon Jun 09, 2003 10:08 pm
Location: Nottingham

Post by akj »

@ABBKlaus:

Unfortunately the 'Experts Exchange' website does not help me because in order to see the solution I am required to enter my credit card details, but I am not willing to do this.
Anthony Jordan
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Post by Kaeru Gaman »

what a nepp! :lol:

this is ridiculous:
Image
oh... and have a nice day.
ABBKlaus
Addict
Addict
Posts: 1143
Joined: Sat Apr 10, 2004 1:20 pm
Location: Germany

Post by ABBKlaus »

oh well i just google´d and found that page, heres what they said :

Code: Select all

This error occurs if the dll you want to load uses any function from another dll (i.e. any MFC dll or C-runtime dll) which cannot be be found in this dll. This may happen if you have different versions of this dll (i.e. running a application developed with VC6 on a machine which has the MFC DLLs for VC4.x installed).

You should use dependency walker (depends.exe) to check versions of the imported dlls. With this tool you can see also from which path the dlls will be loaded.
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Post by lexvictory »

Kaeru Gaman wrote:what a nepp! :lol:
you used to be able to disable cookies and scoll past all the categories to see the solution. (thats how googlebot can see them)
But they appear to have removed that - so use google's cache!
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

akj wrote:@ABBKlaus:

Unfortunately the 'Experts Exchange' website does not help me because in order to see the solution I am required to enter my credit card details, but I am not willing to do this.
Just scroll to the bottom of the page to see the answers or use http://www.stackoverflow.com

EDIT: infact just dont bother with expert exchange and go straight for stackoverflow
--Kale

Image
Post Reply