05-16-2014 10:42 AM
This question refers to creating a CVI code module from TestStand 2013.
If I leave "None" selected in the "Code Template" dropdown. The generated function is
__declspec(dllexport) void FunctionName(...
If I generate the module from any of the TestStand default templates, I get
void __declspec(dllexport) __stdcall FunctionName(...
Now, if I want to use a Default template but pass in some extra parameters, I set the "Code Template" dropdown to the template and then back to none so I can add parameters to the function while retaining the default Teststand parameters. The problem comes when i generate the function in CVI I get
__declspec(dllexport) void FunctionName(...
Where is the CVI code template for a "None" Selection?
05-19-2014 09:27 AM
The prototype you get when the template is set to "None" is dynamically generated based on the prototype you specify in the pane. There is no file you can edit to change this. I agree that it's odd that the way the prototype is specified is different, however it generally should not matter. Is there a reason why you need the prototype to be __stdcall?
-Doug