K8000 under Visual C++6

Hello,

(sorry for my poor “frenchie” english)

I have programming my K8000 card with success using C++Builer6 (Borland) with a K8d.lib building with implib.exe using k8d.dll from Velleman and by including dll.h (from Velleman web site).
The execution is OK with K8d.dll , K8000.dll, K8e.exe, DLPORTIO.dll, DLPORTIO.sys in my execution directory.

I have to program this K8000 card [size=150]with VisualC++6[/size]… but the actual K8d.lib is refused on linking phase with error LNK1136 (invalid or corrupt file).
How create or find a correct K8d.lib for VisualC++ (is there an “implib” tool as for builder ?);
Is the dll.h file OK for visual ? ( is the prefix __declspec(dllimport __stdcall correct ?)

Thanks for helping me (there is an user, name dario, who seems to solve this problem… but Dario did not give his solution !)

LO

I think the only solution is to use explicit (run time) linking to the DLL.
Here you’ll find instructions how to do it: http://msdn.microsoft.com/en-us/library/784bt7z7(VS.71).aspx

In this thread there is example code using explicit linking. It is for other product but you see the principle: viewtopic.php?f=3&t=4063

Borland and Microsoft have different formats for their lib files; Borland uses OMF, while Microsoft uses COFF.

Microsoft Visual C++ can’t open Borland C++ Builder lib files.

Hello,

the solution with “run time” calls to the dll (K8d.dll) is OK.

Thanks for helping us !

LO