USB-card with CppBuilder XE2

Hi,
we intend too buy the latest CppBuilder ( (XE2)) and run it with your USB-card K8055. I can compile without any errors. I have add the latest K8055.dll. But the project will not run. If I try with our older CppBuilder 6 it will run properly. I have Windows 7, and I run CppBuilder as an administrator.

Best Regards
Bernt-Arne

[quote]I can compile without any errors[/quote]What are you compiling? Your own software or a sample source code provided by us?

[quote]I have add the latest K8055.dll[/quote]What do you mean by ‘added the latest K8055.dll’? Added it to your project, to your search path?..

[quote]But the project will not run.[/quote]Then what does it do? Please be more precise

[quote=“VEL448”][quote]I can compile without any errors[/quote]What are you compiling? Your own software or a sample source code provided by us?

[quote]I have add the latest K8055.dll[/quote]What do you mean by ‘added the latest K8055.dll’? Added it to your project, to your search path?..

I have added K8055.dll to the project, as I did in my old CppBuilder6. No errors reported when I compile or build the project. But when I try to run the project, nothing happends.

To get things clear, when you run your application, the application terminates immediately or C++ Builder refuses to run the application?

If the application terminates, try settings breakpoints to see where and why it exits.

Are there any messages in the log window when trying to run the application?

By adding the DLL to your project I assume you mean you moved the K8055D.dll to your project’s root directory

Hi,
yes I placed the K8055.dll in the project root directory. No meesages in the log window. I then tried to run your demo-project and there where a lots of error message. If I run the project with my older CppBuilder 6 ,the both project will run proberly.

best regards
Bernt-Arne

What error messages are you getting? Error messages are important, they give information of what is wrong

Hi, I added K8055D.lib to the project. I tried to compile your Demo. I have replaced the K8055D.dll with what I think is a newer one. I got a lot of error messages .
The beginning of the messages are:
Checking project dependencies…
Building K8055_Demo.cbproj (Debug, Win32)
bcc32 command line for “Unit1.cpp”
c:\program\embarcadero\rad studio\9.0\bin\bcc32.exe -D_DEBUG;NO_STRICT;;NO_STRICT; -D_RTLDLL;USEPACKAGES -nDebug_Build -I…..\Bin;…\Omat\USBif;
“c:\program\embarcadero\rad studio\9.0\include”;“c:\program\embarcadero\rad studio\9.0\include\vcl”;“c:\program\embarcadero\rad
studio\9.0\include\dinkumware”;“c:\program\embarcadero\rad studio\9.0\include\windows\vcl”;“c:\program\embarcadero\rad studio\9.0\include”;
“c:\program\embarcadero\rad studio\9.0\include\dinkumware”;“c:\program\embarcadero\rad studio\9.0\include\windows\crtl”;“c:\program\embarcadero\rad
studio\9.0\include\windows\sdk”;“c:\program\embarcadero\rad studio\9.0\include\windows\rtl”;“c:\program\embarcadero\rad
studio\9.0\include\windows\vcl” -y -c -tM -tW -Hc -C8 -oDebug_Build\Unit1.obj -Od -v -vi- -H=Debug_Build\K8055_Demo.pch -H -tWM -Vx -r- -k -Ve -k
Unit1.cpp
[BCC32 Warning] W8123 Path ‘c:\program\embarcadero\rad studio\9.0\include\vcl’ not found - path ignored in option ‘-I’
[BCC32 Warning] Unit1.cpp(39): W8057 Parameter ‘Sender’ is never used
[BCC32 Warning] Unit1.cpp(45): W8057 Parameter ‘Sender’ is never used
[BCC32 Warning] Unit1.cpp(45): W8057 Parameter ‘Action’ is never used

Best regards
Bernt-Arne

[quote][BCC32 Warning] W8123 Path ‘c:\program\embarcadero\rad studio\9.0\include\vcl’ not found - path ignored in option ‘-I’
[BCC32 Warning] Unit1.cpp(39): W8057 Parameter ‘Sender’ is never used
[BCC32 Warning] Unit1.cpp(45): W8057 Parameter ‘Sender’ is never used
[BCC32 Warning] Unit1.cpp(45): W8057 Parameter ‘Action’ is never used[/quote]Those are all warnings not errors, eg. “Warning”

[quote=“VEL448”][quote][BCC32 Warning] W8123 Path ‘c:\program\embarcadero\rad studio\9.0\include\vcl’ not found - path ignored in option ‘-I’
[BCC32 Warning] Unit1.cpp(39): W8057 Parameter ‘Sender’ is never used
[BCC32 Warning] Unit1.cpp(45): W8057 Parameter ‘Sender’ is never used
[BCC32 Warning] Unit1.cpp(45): W8057 Parameter ‘Action’ is never used[/quote]Those are all warnings not errors, eg. “Warning”[/quote]
Hi again,
trying to run the project ( yoyr demo-project) Lot’s of errors:
Checking project dependencies…
Compiling K8055_Demo.cbproj (Debug, Win32)
brcc32 command line for “K8055_Demo.vrc”
c:\program\embarcadero\rad studio\9.0\bin\cgrc.exe -c65001 “K8055_Demo.vrc” -foK8055_Demo.res
ilink32 command line
c:\program\embarcadero\rad studio\9.0\bin\ilink32.exe -LDebug_Build;“c:\program\embarcadero\rad studio\9.0\lib\debug”;…\Bin;…\Omat\USBif;
“c:\program\embarcadero\rad studio\9.0\lib\obj”;“c:\program\embarcadero\rad studio\9.0\lib”;“c:\program\embarcadero\rad studio\9.0\lib\psdk”;
…\Bin;…\Omat\USBif;“c:\program\embarcadero\rad studio\9.0\lib\obj”;“c:\program\embarcadero\rad studio\9.0\lib”;“c:\program\embarcadero\rad
studio\9.0\lib\psdk”;“c:\program\embarcadero\rad studio\9.0\lib\win32\release”;“c:\program\embarcadero\rad studio\9.0\lib\win32\release\psdk”;
“C:\Documents and Settings\All Users\Dokument\RAD Studio\9.0\DCP” -jDebug_Build;“c:\program\embarcadero\rad studio\9.0\lib\debug”;…\Bin;
…\Omat\USBif;“c:\program\embarcadero\rad studio\9.0\lib\obj”;“c:\program\embarcadero\rad studio\9.0\lib”;“c:\program\embarcadero\rad
studio\9.0\lib\psdk”;…\Bin;…\Omat\USBif;“c:\program\embarcadero\rad studio\9.0\lib\obj”;“c:\program\embarcadero\rad studio\9.0\lib”;
“c:\program\embarcadero\rad studio\9.0\lib\psdk”;“c:\program\embarcadero\rad studio\9.0\lib\win32\release”;“c:\program\embarcadero\rad
studio\9.0\lib\win32\release\psdk”;“C:\Documents and Settings\All Users\Dokument\RAD Studio\9.0\DCP” -l. -v -Gn
-GA"C:\DOCUME~1\hbg-bjo\LOKALA~1\Temp\vfs2F23.tmp"=“H:\My Documents\VellemanTest\Examples\K8055DemoBCB\Unit1.dfm” -aa -V5.0 -G8 -Tpe c0w32 rtl.bpi
memmgr.lib sysinit.obj Debug_Build\K8055_Demo.obj Debug_Build\Unit1.obj , .\K8055_Demo.exe , .\K8055_Demo.map , vcle.lib vcl.lib rtl.lib import32.lib
cp32mti.lib , , K8055_Demo.res K8055_Demo.res
[ILINK32 Error] Error: Unresolved external ‘OpenDevice’ referenced from H:\MY DOCUMENTS\VELLEMANTEST\EXAMPLES\K8055DEMOBCB\DEBUG_BUILD\UNIT1.OBJ
[ILINK32 Error] Error: Unresolved external ‘CloseDevice’ referenced from H:\MY DOCUMENTS\VELLEMANTEST\EXAMPLES\K8055DEMOBCB\DEBUG_BUILD\UNIT1.OBJ
[ILINK32 Error] Error: Unresolved external ‘SetAllDigital’ referenced from H:\MY DOCUMENTS\VELLEMANTEST\EXAMPLES\K8055DEMOBCB\DEBUG_BUILD\UNIT1.OBJ
[ILINK32 Error] Error: Unresolved external ‘ClearAllDigital’ referenced from H:\MY DOCUMENTS\VELLEMANTEST\EXAMPLES\K8055DEMOBCB\DEBUG_BUILD\UNIT1.OBJ
[ILINK32 Error] Error: Unresolved external ‘SetAllAnalog’ referenced from H:\MY DOCUMENTS\VELLEMANTEST\EXAMPLES\K8055DEMOBCB\DEBUG_BUILD\UNIT1.OBJ
[ILINK32 Error] Error: Unresolved external ‘OutputAnalogChannel’ referenced from H:\MY DOCUMENTS\VELLEMANTEST\EXAMPLES\K8055DEMOBCB\DEBUG_BUILD\UNIT1.OBJ
[ILINK32 Error] Error: Unresolved external ‘ClearAllAnalog’ referenced from H:\MY DOCUMENTS\VELLEMANTEST\EXAMPLES\K8055DEMOBCB\DEBUG_BUILD\UNIT1.OBJ
[ILINK32 Error] Error: Unresolved external ‘ReadAllAnalog’ referenced from H:\MY DOCUMENTS\VELLEMANTEST\EXAMPLES\K8055DEMOBCB\DEBUG_BUILD\UNIT1.OBJ
[ILINK32 Error] Error: Unresolved external ‘ReadCounter’ referenced from H:\MY DOCUMENTS\VELLEMANTEST\EXAMPLES\K8055DEMOBCB\DEBUG_BUILD\UNIT1.OBJ
[ILINK32 Error] Error: Unresolved external ‘ReadAllDigital’ referenced from H:\MY DOCUMENTS\VELLEMANTEST\EXAMPLES\K8055DEMOBCB\DEBUG_BUILD\UNIT1.OBJ
[ILINK32 Error] Error: Unresolved external ‘ResetCounter’ referenced from H:\MY DOCUMENTS\VELLEMANTEST\EXAMPLES\K8055DEMOBCB\DEBUG_BUILD\UNIT1.OBJ
[ILINK32 Error] Error: Unresolved external ‘SetCounterDebounceTime’ referenced from H:\MY DOCUMENTS\VELLEMANTEST\EXAMPLES\K8055DEMOBCB\DEBUG_BUILD\UNIT1.OBJ
[ILINK32 Error] Error: Unresolved external ‘ClearDigitalChannel’ referenced from H:\MY DOCUMENTS\VELLEMANTEST\EXAMPLES\K8055DEMOBCB\DEBUG_BUILD\UNIT1.OBJ
[ILINK32 Error] Error: Unresolved external ‘SetDigitalChannel’ referenced from H:\MY DOCUMENTS\VELLEMANTEST\EXAMPLES\K8055DEMOBCB\DEBUG_BUILD\UNIT1.OBJ
[ILINK32 Error] Error: Unresolved external ‘SearchDevices’ referenced from H:\MY DOCUMENTS\VELLEMANTEST\EXAMPLES\K8055DEMOBCB\DEBUG_BUILD\UNIT1.OBJ
[ILINK32 Error] Error: Unresolved external ‘SetCurrentDevice’ referenced from H:\MY DOCUMENTS\VELLEMANTEST\EXAMPLES\K8055DEMOBCB\DEBUG_BUILD\UNIT1.OBJ
[ILINK32 Error] Error: Unresolved external ‘Version’ referenced from H:\MY DOCUMENTS\VELLEMANTEST\EXAMPLES\K8055DEMOBCB\DEBUG_BUILD\UNIT1.OBJ
[ILINK32 Error] Error: Unable to perform link
Failed
Elapsed time: 00:00:13.3

Best regards
Bernt-Arne

Did you add the .lib file of the K8055 dll to your project?

Hi, agian
Yes, but I have been in contact with the Swedish reseller of RAD Studio XE2 . They don’t think that XE products support 3-part product from Velleman. So I have to keep to my older CppBuilder 6.

Best regards
Bernt-Arne

Hi, agian
Yes, but I have been in contact with the Swedish reseller of RAD Studio XE2 . They don’t think that XE products support 3-part product from Velleman. So I have to keep to my older CppBuilder 6.

Best regards
Bernt-Arne[/quote]

Which version of CppBuilder will compile and run your product? The K8055D.dll and k8055D.lib are from October 2010.

Best regards
Bernt-Arne