LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

The pascal calling convention is not supported in the WIN32 version of CVI.

Hello Derrick,

Tanx.What ever u told according to that i did in my project then i am not facing this error "The pascal calling convention is not supported in the WIN32 version of CVI".I created one dll for that project and i includeed .h file and .dll file in to my project.what ever functions in dll i am not able to use in my project.I facing linker error saying that "Undefined symbol '_DeInstallInterruptHandler' referenced in "AUTO_CHK.C"".i created dll by using LabWindows/CVI Environment.While creating dll i followed what ever procedure we have in LabWindows/CVI for creating dll.

Regards

Pradeep

0 Kudos
Message 11 of 19
(1,971 Views)
Hi Pradeep,
 
It sounds like you are wanting to statically link to your DLL. In that case, the project that is calling your DLL needs to have the header file and the import library file (.lib) included.  Check out another post here that I replied to describing your options of linking to DLLs in CVI. It points to several tutorials and knowledgebases as well.
 
Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 12 of 19
(1,962 Views)

Hai Jonathan N,

I Created Dll in Release mode.I added .h,.lib,.dll files in to the project folder.then also i m getting undefined symbol error in my project.

0 Kudos
Message 13 of 19
(1,937 Views)

Hello Derrick,

Tanx a lot for your ideas.My project compiled.If i face any problems i will mail you please consider those and give me reply.

Regards,

Pradeep.

 

0 Kudos
Message 14 of 19
(1,924 Views)
No problem, Pradeep!  I'm glad that Jonathan and I could help.  Good luck with the rest of your application and let us know how we can assist you as it progresses!  We're always happy to help.
Derrick S.
Product Manager
NI DIAdem
National Instruments
0 Kudos
Message 15 of 19
(1,914 Views)

Hai Jonathan N,

I Created One dll for my current project.This project previously developed in LabWindows/CVI 4.0 version by our seniors in pascal.for this project they used one dll with pascal notation.now i am trying to use same functions for my project.Is there any changes i have to do for this dll for current version?

Regards

Pradeep. 

0 Kudos
Message 16 of 19
(1,883 Views)
Pradeep,

Aside from the issue of the calling convention (which we already addressed), you should be okay with your new version of the DLL. 


Message Edited by Derrick S on 04-02-2008 01:21 PM
Derrick S.
Product Manager
NI DIAdem
National Instruments
0 Kudos
Message 17 of 19
(1,863 Views)

I am trying to create dll by using LabWindows/CVi.for creating dll i am following the procedure given in help.how to create .lib for my dll.

if u have any manul to cretae dll send me.

0 Kudos
Message 18 of 19
(1,850 Views)
Pradeep,

There is a great example that shows our users how to create and then use DLLs in LabWindows/CVI.  This is probably the best place to start!

If you are using LabWindows/CVI 8.5, this example is found at C:\Documents and Settings\All Users\Documents\National Instruments\CVI85\samples\dll\basic.

If you are using a previous version of LabWindows/CVI, you can find the example on disk at C:\Program Files\National Instruments\<Your CVI Version>\samples\dll\basic.

Make sure you read the readme.txt file to get started!  The example is well commented and should show you exactly how to create and use a DLL and *.lib file.
Derrick S.
Product Manager
NI DIAdem
National Instruments
0 Kudos
Message 19 of 19
(1,833 Views)