c#: windows application with peak can basic api and yoct api

The free CAN Software API (Application Programming Interface) for Windows®
Post Reply
CarrocciaGiulia
Posts: 2
Joined: Mon 9. May 2016, 17:10

c#: windows application with peak can basic api and yoct api

Post by CarrocciaGiulia » Mon 9. May 2016, 17:23

Hi,
I'm developing, for work, an app and i need to import peak can basic api and yocto api.
When I started debug I had this exception in peak dll: Attempt to load a program with a format not correct. ( Exception from HRESULT : 0x8007000B ).
I searched in internet and I found that the problem was the CPU, so I changed the type of CPU and I restarted the debug but I had the same Exception with yocto api.
I tried to use "Any CPU", but it doesn't work.
How can I solve the problem?

M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: c#: windows application with peak can basic api and yoct

Post by M.Maidhof » Tue 10. May 2016, 10:30

Hi,

please check the correct installation of your PCANBasic dlls:

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

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

please remove all local PCANbasic.dlls from your application directory.

regards

Michael

Post Reply