PCAN_Basic DLL file error

This forum covers issues concerning multiple software products.

PCAN_Basic DLL file error

Postby Habeb » Mon 2. Nov 2015, 11:59

I am using PCAN_USB first time. I am using QT framework in Window7 prof x64 environment.

I am getting error
File not recognized:file format not recognized
C:\MyDevelopment\build-PcanPortLinker-Desktop_Qt_5_5_0_MinGW_32bit-Debug\debug\Pcanbasic.dll

IN my code (in .pro file) path to DLL file is as following

LIBS += "C:/MyDevelopment/PcanLinker/build-PcanPortLinker-Desktop_Qt_5_5_0_MinGW_32bit-Debug/debug/PCANBasic.dll"

this is how i am calling function in my cpp file to initialize PCAN.
result = CAN_Initialize(PCAN_USBBUS1, PCAN_BAUD_250K);

I downloaded the PCAN_BASIC API version for windows and copy DLL file form x64/PCANBasic.dll

I am not using .lib file into my application.
Habeb
 
Posts: 2
Joined: Mon 2. Nov 2015, 11:36

Re: PCAN_Basic DLL file error

Postby M.Maidhof » Mon 2. Nov 2015, 14:16

Hi,

please remove all PCANBasic.dlls from your local directory, and copy them as written in the readme.txt of PCANBasic API:

Windows 32-bit systems:
32-bit DLL > Windows\System32

Windows 64-bit systems:
32-bit DLL > Windows\SysWOW64
64-bit DLL > Windows\System32

For me it looks like you want to use a 32bit application with a 64bit dll.

best regards

Michael
M.Maidhof
Support
Support
 
Posts: 1238
Joined: Wed 22. Sep 2010, 13:00
Location: Darmstadt, Germany


Return to Software



cron

This website uses cookies for analytics, for logins to the online shop and the forum, and for the handling of an order. By browsing this website you agree to the use of cookies. Detailed information on their use can be found in our privacy policy.

OKPrivacy Policy