I’ve taken on a project to create a DLL for a third-party
program called TradeStation. I’ve seen all the postings that
the search engine can retrieve under that word-name and I’ve
also searched the entire site again looking for references to
using ‘C Declarations’.
To a large extent, there is a lot of information in this forum,
but none of it is in one place and nothing I’ve seen has tried
to cover all the bases by providing a complete reference.
In the hope that I’ll be able to change a “C-definitions.h” file
to the syntax that the PBWIN compiler will understand, I’ve
created an understanding of what I think I’ve learned from
working through all those forum messages.
If someone who is knowledgeable about converting “C” syntax to PB
syntax could look at the tables listed below and flag where I
need to make corrections, if any, I’ll edit the posting and the
forum will have a good cross reference in one place. Once that
is done, I’ll take on the challenge of trying to convert the
complete “.h” file and will create a DLL skeleton that I’ll post
as I get pieces to work so others who will also want to take
this on for themselves will have a solid reference.
Any advice is appreciated.
Thanks,
------------------
Roger...
(Mail to rdrines at SpamCop dot Net)
program called TradeStation. I’ve seen all the postings that
the search engine can retrieve under that word-name and I’ve
also searched the entire site again looking for references to
using ‘C Declarations’.
To a large extent, there is a lot of information in this forum,
but none of it is in one place and nothing I’ve seen has tried
to cover all the bases by providing a complete reference.
In the hope that I’ll be able to change a “C-definitions.h” file
to the syntax that the PBWIN compiler will understand, I’ve
created an understanding of what I think I’ve learned from
working through all those forum messages.
If someone who is knowledgeable about converting “C” syntax to PB
syntax could look at the tables listed below and flag where I
need to make corrections, if any, I’ll edit the posting and the
forum will have a good cross reference in one place. Once that
is done, I’ll take on the challenge of trying to convert the
complete “.h” file and will create a DLL skeleton that I’ll post
as I get pieces to work so others who will also want to take
this on for themselves will have a solid reference.
Code:
32-bit Windows C data-type Name to PB data-type Name Cross Reference: Fundamental DATA Types: ----------------------- C/C++ Names: PB Names: ------------ --------- BYTE BYTE (IF C Bytes are unsigned) char STRING INT LONG WORD INT LONG LONG DWORD DWORD float SINGLE DOUBLE DOUBLE bool <no clue> (BYTE would seem TO DO the same work, but...) Variants DATA Types: -------------------- C/C++ Names: PB Names: ------------ --------- unsigned LONG DWORD void %NULL POINTER DATA Types: -------------------- C/C++ Names: PB Names: ------------ --------- LPBYTE BYVAL(DWORD) LPINT BYVAL(DWORD) LPWORD BYVAL(DWORD) LPLONG BYVAL(DWORD) LPDWORD BYVAL(DWORD) LPFLOAT BYVAL(DWORD) LPDOUBLE BYVAL(DWORD) LPSTR BYVAL(DWORD)
Thanks,
------------------
Roger...
(Mail to rdrines at SpamCop dot Net)
Comment