LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Making DLL with C++ builder to use in Labview

 

  Anybody knows how to make DLL in C++ builder to use in Labview?? 

 

  Regards,

 

0 Kudos
Message 1 of 5
(2,620 Views)

Please don't start a new post to ask the same question.  It is confusing to those trying to help you.

 

http://forums.ni.com/t5/LabVIEW/Do-I-need-Developer-studio-C-programming-language-in-my-computer/td-...

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019 - Unfortunately now moving back to C#, .NET, Python due to forced change to subscription model by NI. 8^{
0 Kudos
Message 2 of 5
(2,614 Views)

This is a good question that does not appear to be addressed in that other thread.

0 Kudos
Message 3 of 5
(2,562 Views)

@MCFSE wrote:

This is a good question that does not appear to be addressed in that other thread.


But is addressed via several NI KnowledgeBase articles and NI Community examples. For example: https://decibel.ni.com/content/docs/DOC-14564

0 Kudos
Message 4 of 5
(2,559 Views)

@smercurio_fc wrote:

@MCFSE wrote:

This is a good question that does not appear to be addressed in that other thread.


But is addressed via several NI KnowledgeBase articles and NI Community examples. For example: https://decibel.ni.com/content/docs/DOC-14564


Well not verbatim, as that document refers to Visual Studio, not C Builder. But creating DLLs in C Builder for use in LabVIEW is no different than creating DLLs in C Builder for any other programming environment that can call unmanaged DLLs. How to configure C Builder to create a DLL, is really beyond the tasks anyone from NI should be required to explain. This requires someone who is familiar with C Builder and requesting a supplier to have specific experience with tool X goes a bit far. NI and most others are using Visual Studio so that is what gets explained. If some C Builder crack would come up with a tutorial targeted at integration with LabVIEW and post that here or someplace else, that would be of course great, but alas, nobody so far has felt the desire to step up to the challenge. There is no inherent difficulty with C Builder created DLLs to be used by LabVIEW, but apparently some difficulty of people to understand how to use C Builder to create working DLLs at all. Similar problems can appear for beginners with Visual Studio and since this is the tool mostly used here around, there are several tutorial style documents available that try to handhold the beginner to get a DLL at all.

 

Personally I'm not sure that is ideal either, since those people usually know very little about C programming, or more precise if they know about C programming, they will be able to learn to use the tool in question, with some simple, non LabVIEW oriented examples from elsewhere and then easily apply that knowledge to LabVIEW with the help of the Visual Studio examples posted in quite big numbers, even if they use a different tool than Visual Studio.

 

Other even more challenging topics would be to use CygWin, MingW, Bloodshed Dev C++ and similar compilers and write tutorials about them. However the challenges with all of these is to get them even installed well on your development system and to figure out various configuration hassles, also when trying to distribute the result later on.

 

Rolf Kalbermatter
My Blog
0 Kudos
Message 5 of 5
(2,549 Views)