Controlling the PCSU1000 via C++ in Microsoft Visual Studio

Sorry if this has already been beat to death! :cry:

I am using the PCSU1000 scope in several test measurement applications with the pc_lab2000se software. It works fine and is well liked. I would like to incorporate the startup and configuration of the scope into the primary application which is written in VC++ within the Microsoft Visual Studio 2008 Professional Edition. I know nothing of the Delphi environment! I have incorporated dozens of commercial DLLs into my VC++ programs by adding the library (.lib) and a header (.h) into the project but I am at a complete loss for using the Delphi DLL.

Can someone point me to some help for incorporating the Delphi dll into my MSVS 2008 C++ software? :question:

Regards
Ron H.

You can use the DllImport attribute to access the Delphi DLL functions.
Please see: msdn.microsoft.com/en-us/library/Aa984739

All the DLL functions must be declared static.

You can download this package containing example project where the DllImport is used for other Velleman product (K8055): velleman.eu/downloads/files/ … rsion4.zip
Please see the example project in the subfolder \examples\K8055DemoVC_2008

Here are more details about the DllImport:
msdn.microsoft.com/en-us/library/hscky5e8.aspx

Here is the link to download full working Visual C++ 2008 Express demo using the PCSU1000D.DLL: box.net/shared/hr4ymdr59b

All accompanying files are included in the project folder Debug.

The files needed to run the demo are:
PCSU1000D.dll
DSOLink.dll
PCSU1000GU.exe
pcsu1000.bit
FASTTime32.dll

To run the debug, I noted the file pcsu1000.bit had to be copied to the project folder too.