Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Header porting
#1
Who's currently working on this? It would be nice to know who's doing what so there's no redundancy. At current, I've made additions to the following headers:

user32.bi
kernel32.bi

and I've created the following headers:

advapi32.bi
comdlg32.bi

as well as a few "addendum" headers:

fbmsgboxx.bi (makes using MessageBox easier by equating the parameters with more familiar names...instead of using MB_CANCELTRYCONTINUE for example, I added fbCancelTryAgainContinue...IDCANCEL becomes fbCancel, etc)
commondialog.bi (when completed, will allow you to use all common dialog functions, even from a console)

winsock.bi is going to be a royal PITA, so I've stopped working on it for now. It will require a lot of macros, according to the winsock.h file for msvc. Perhaps, as someone suggested, someone could look into the powerbasic version of the winsock header?
I'd knock on wood, but my desk is particle board.
Reply
#2
I will probably do the winsock one, will try to find some time this week if the bug reports get lower, heh

Do you have that win32api.txt plus that APILOAD.EXE tool? Blitz sent me them, seem to be made by M$, that's what i used to make those parts of kernel32 and user32, the changes are minimal as the declarations were made for be used in VB.
Reply
#3
Yeah, it comes with Visual Studio 6. It's pretty good, but there's a better tool out there. Big Grin

http://www.devx.com/vb2themax/CodeDownload/19774

By the way...wtf is up with defines in C being like this:
Code:
#define ERROR_FILE_NOT_FOUND             2L
What's up with the L at the end there?
I'd knock on wood, but my desk is particle board.
Reply
#4
Long?, wild guess..
Reply
#5
nice guess, casts it to long, just like in java:
Reply
#6
Ah ok, so the same thing in FB would be just 2&. Nifty. That makes this so much easier. Big Grin
I'd knock on wood, but my desk is particle board.
Reply
#7
v3cz0r your not going to like doing winsock.h it look nice and small at first but it include's windows.h which in turn includes more stuff.
Reply
#8
I did the serial comms part of winbase.inc , but that #*#!x$%! demo won't work!!!
Antoni
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)