Guest_imported
New member
- Jan 1, 1970
- 0
Hi all,
I'm using PowerCobol 3.0 to call a function called WINHLLAPI from a DLL that belongs to a Windows program.
I've got even the .LIB file from the DLL.
The way I call it is the folowing:
CALL "WINHLLAPI" WITH C LINKAGE USING BY VALUE FUN-NUMBER BY REFERENCE FUN-STRING BY VALUE FUN-LENGTH BY VALUE FUN-RET
END-CALL
It compiles ok but I've got the following error during linking:
error LNK2001: unresolved external symbol _WINHLLAPI
I've tried the following but nothing works:
1) Write the name of the DLL in COBOL85.CBR
2) Add the .LIB to the project
Can you help me????
I'm using PowerCobol 3.0 to call a function called WINHLLAPI from a DLL that belongs to a Windows program.
I've got even the .LIB file from the DLL.
The way I call it is the folowing:
CALL "WINHLLAPI" WITH C LINKAGE USING BY VALUE FUN-NUMBER BY REFERENCE FUN-STRING BY VALUE FUN-LENGTH BY VALUE FUN-RET
END-CALL
It compiles ok but I've got the following error during linking:
error LNK2001: unresolved external symbol _WINHLLAPI
I've tried the following but nothing works:
1) Write the name of the DLL in COBOL85.CBR
2) Add the .LIB to the project
Can you help me????