- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Now that I have enabled the x64 compiler I have managed to start compiling the program. As Steve mentioned in the previous discussion I have had to make all integer variables relating to handles integer(HANDLE) type when using Win32 API calls, also the lparam term of the SendMessage function needs casting as int(xxx,UINT_PTR) kind. There area coupleother issues that I have encountered so farfor which I would be grateful for any advice.
1. the statement !DEC$ OBJCOMMENT LIB:F90SQL.LIB produces a sytax error, "found IDENTIFIER 'F90SQL' when expecting one of:
2. What do you use toreplicate the LOWORD(mesg%lparam) or HIWORD(mesg%lparam) macros, where mesg is the defined as a T_MSG data type. Currently I get a warning that data type of argument does not match the definition [laparm].
Thanks for reading
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
F90SQL.LIB needs to be in quotes- it does need to be a character constant.As it is, unquoted, the compiler thinks it's a symbol. I'm not sure how this compiled previously. Try a space between the ":" and the character string but I think it's the lack of quotes that is the problem.
F90SQL is a 32bit library - you are right, you will get a link error if you try to use that with a x64 application. I am not sure, but I have not seen a 64bit version of that library. If you find one, please let all of us know.
HIWORD and LOWORD require 32bit integers as arguments. You can try:
HIWORD( INT(mesg%lparam,4) ) to convert the 64bit integer to a 32bit integer. However, you are truncating the upper 2 words doing this. Is the data still stored in the lower 2 words of lparam inyour 64bit code? If so this should work.
LOWORD( INT(mesg%lparam,4) ) should work fine, since I assume the data in the lower word is still the same in the 64bit case.
ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Best regards,
Nick Vogel
Canaima Software Inc."
P.O. Box 13162
La Jolla, CA. 92039 U.S.A.
Maybe there is hope yet. Maybe someone out thereknows more.
Regards
Steve (aka dannycat)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page