Fice: I've implemented your DLL into VB. I've tested the functions, but I'm always getting the return value 1 (iow: File not found...)
Here's an example how I give the Filename into the functions:
"C:eye.bmp"
I've had a look at that source (I've got Borland Delphi 2 installed) and saw a constant called 'FICE_FREAKY_NUMBERS' ?
I think I'll spend a lot of time on workin this DLL, but I'm sure, I'll find a way...
Oh, and here's the declaration of glTexImage2D:
glTexImage2D (target As glTextureTargetConstants, level as GLint, internalFormat as GLint, width As GLsizei, height As GLsizei, border As GLint, format As glTIFormatConstants, Type As glPixelTypeConstants, pixels As GLvoid)
- Alhexx
- edit -
Here's how I declared the GetBMPPointer function:
Declare Function GetBMPPointer Lib "Ficetex.dll" (FName As String, Width As Integer, Height As Integer, DataPointer As GLvoid) As Integer
- edit 2 -
I think I know why the files can't be found (Fice: "VB is Crap").
VB handles Strings between two "s. example:
"VB is Crap"
Delphi (and many others) use 's. example:
'VB is crap'
- edit 3 -
I was just browsing the net, searchin' for VB-Delphi tuts and I found sth. like a PChar function that converts Strings to PChars. Could u implement such a function into that DLL: I've tried to implement it and run, but a file called 'cappa.pas' (or sth. like that) was not found...
[This message has been edited by Alhexx (edited August 02, 2001).]