06-09-2005 09:38 AM
06-21-2005 05:05 AM
@Clare wrote:
I am using LabView to create DLLs to call from LabWindows. When using clusters as input/output parameters, the C header files produced have unhelpful structure names given to each cluster such as TD1, TD2, TD3 etc. If you change the order in which your parameters are passed, or want to use the same structure to use in a different VI, the names differ.
Is there a way of getting the structure names the same as the cluster names?
12-21-2005 02:47 AM
Hello!
When you (Rolf) writes that you only use the generated h-file as a template, do you mean that you can do your own h-file with other names of the typ-definitions? But with the same structure ofcourse.
We have a problem because we have 4 different "modules" which we convert to 4 DLLs. When C++ compiles this h-files it ofcourse says that it finds typedefinitions with the same name. I have been told that we cant change the name of the typedefinitions. How to do?
/TJ
12-21-2005 03:18 AM - edited 12-21-2005 03:18 AM
Of course! Changing the names of variables and cluster elements in the C source code (or header) has absolutely no influence on the generated code as long as it is done consistently. Changing the datatype is a completely different issue and will evidently lead to crashes. The only naming you have to watch out are the function names (and albeit rarely used variable names) you would export from your library. They need to stay consistent of course as otherwise you get troubles at link time.
@Thomas Json wrote:
Hello!
When you (Rolf) writes that you only use the generated h-file as a template, do you mean that you can do your own h-file with other names of the typ-definitions? But with the same structure ofcourse.
We have a problem because we have 4 different "modules" which we convert to 4 DLLs. When C++ compiles this h-files it ofcourse says that it finds typedefinitions with the same name. I have been told that we cant change the name of the typedefinitions. How to do?
/TJ
Message Edited by rolfk on 12-21-2005 10:29 AM