10-02-2008 11:10 AM - edited 10-02-2008 11:20 AM
I am trying to build an application in CVI 5.0 that interacts with a new ARINC 429 card. When we try to initialize the card we get a -4 error (bad file format) for pci429.lib.
I next tried including the .lib file in the CVI project but then I receive a 'Bad header encountered when reading external module: PCI429.dll.' message.
We noticed that the pci429.lib file we are using is different than an older version of the file that we found on another machine.
We think the trouble relates to the .dll file being 32-bit while 5.0 is 16-bit. It looks as if the the newer .lib file may only be 32-bit where as the older version may support both 32 and 16. Are we correct in our assumption? Is there any way of supporting the newer.lib file without a 'thunking' DLL?
10-03-2008 10:19 AM
Hello Eatmontr,
I believe this KnowledgeBase article may help you:
http://digital.ni.com/public.nsf/allkb/6A381D116E127FBE862566890072B3AE?OpenDocument
I found this document by searching "bad header encountered" at ni.com.
Please let me know if this does not solve your issue.