Tymoteusz C.
Kwidzyn, Pomorskie
Aug 16, 2018
5
Posts
Re: USB-5830 driver. Errors during DLL import, project opening and when running compiled EXE file. Data Type not recognized.
Hello,
I have a problem with Advantech USB-5830 driver. When I add DLL for this device and later - when I open the project or try to run compiled EXE file I get couple of messages:
"TypeLib error Unsupported type found in symbol 'BDaqOcxLib.Channels.pVal'"
As you can see in picture in attachment - pVal variable type is "Watch[]*" in this DLL Library.
Unfortunately this type is not supported as it has this "*" in name. I don't use controls that use this variable so for me the main problem is that I want to get rid of error messages.
Is there a way to suppress those type of messages or make a type that would be valid for this DLL? As those Controls comes from DLL - they are read-only and I cannot change or delete them.
Link to driver and DLL file
https://drive.google.com/open?id=1Wi1iy5mTeE0thEfxbFyPJB8BR-6ugyRZ
File Attachment:
library_invalid_pointer_type.JPG
Yiftach N.
Newport Coast, CA
Aug 16, 2018
2
Posts
Re: USB-5830 driver. Errors during DLL import, project opening and when running compiled EXE file. Data Type not recognized.
Hi Tymoteusz,
I uploaded the driver and DLL to ATEasy and did not get the same error as you. See picture attached.
I registered the DLL and imported into ATEasy and did not get any error.
1) What version of ATEasy are you using?
2) Can you give me a step by step process of how you are adding the DLL library?
Best Regards,
Yiftach
File Attachment:
Capture4.PNG
Tymoteusz C.
Kwidzyn, Pomorskie
Aug 17, 2018
5
Posts
Re: USB-5830 driver. Errors during DLL import, project opening and when running compiled EXE file. Data Type not recognized.
Hello Yiftach,
I have ATEasy 8.0 (Build 146b).
I have added the library by "Insert Library" window. In tab "ActiveX Controls" I searched for "Advantech DAQNavi Device ActiveX Controls" and click Insert button. After that I get couple of error messages about "pVal" variable mentioned in previous post and that's it. If I reopen the project or try to run compiled EXE - I also receive those messages.
Should I insert this library in different way?
I tried with "DLL" tab instead of ActiveX tab but I don't get anything (no Controls, Classes or Types) as I think it need *.h file to properly import it in that way.
File Attachment:
error_box.JPG