1. Have the latest xHarbour Professional
2. Bought FWH 8.11 (but the problem is the same with older FWH either)
If I compile the code as in point 1. using Windows XP OS, everything is normal, as for years now
Also, the same program copied on Windows 7 machine, also works normal!
If I compile on Windows 7 environment, I must use the code as in point 2. Otherwise it will hang up the program!!!
The compilation itself went ok, no problem reported, only when the program tries to use and DLL function as in point 1. it hans up.
Anyone can help me to understand this. My programs use many DLLs to work with, starting with PDF managenent, Mail sending, Internet etc...
Seems I might reprogram the DLLs accessing code, to be able to compile it in Windows 7.
Now, I am using Virtualization and am compiling on "XP Mode" but this seems ridiculous, using the OLD system to be able to work?
The way xHarbour or FWH handle the DLLs calls, seems to be different in Windows 7 than in XP
This is definitely and I tested on sveral combinations. The point 1. DLL functions access doesn't work in Windows 7!!
Have no idea why but is very annoying.
I will appreciate any help or clue
// 1. THIS DOESN'T WORK WHEN COMPILED ON Windows 7 !!!
-----------------------------------------------------------------------
hDLL := LoadLibrary("iSEDQuickPDF.dll")
IF hDLL < 33
MsgInfo("Problem reading 'iSEDQuickPdf.dll'")
RETURN NIL
ENDIF
cFarProc := GetProcAddress(hDLL, "iSEDUnlockKey",.T.,LONG, STRING)
cString := "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"" // This is the UNLOCK key (not real of course
r := CallDLL( cFarProc,cString)
IF r == 0
FreeLib32( hDLL )
MsgInfo("Cannot verify the PassKey !")
RETURN NIL
ENDIF
// 2. THIS WORKS PERFECT WHEN COMPILED ON Windows 7 !!!
cString := "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
r := PDF_Connect( cString )
DLL Function PDF_Connect(wString AS STRING)) AS LONG PASCAL FROM "iSEDUnlockKey" LIB "iSEDQuickPdf.dll"