LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Enum typedef in .h file causes attempt to build VB include file to fail. "Invalid Visual Basic Parameter Type"

I'm trying to generate a Visual Basic Include (.bas) file from an .h that uses a typedef enum. This causes an error: Invalid Visual Basic Parameter Type: 'BmbEnum' Where BmbEnum is a type defined like so;

 

typedef enum BmbEnum{

Invalid,

GasPressure,

TiLan, Rotation,

Pack,

} BmbEnum;

 

The line in the .h that uses it looks like this

 

int __declspec(dllexport) __stdcall Module_Configure(short cbus_pin, BmbEnum bmbOption, char errorMsg[]);

 

I'm not sure what angle to approach this from. Before I had a variable type that wouldn't work so I just dropped in a compatible VB type. But since this is an enum I'm not sure. How would I adapt this to work? Thanks!

0 Kudos
Message 1 of 2
(3,809 Views)

I've been doing some research continuing to try and solve this.

 

It seems that I need to give CVI something to define this as a VB data type. If anyone can help me with how to do that, or atleast what kind of file or setting I need to learn about to do it,  that's probably the solution.

 

I will continue to research this, I think I'm close.

0 Kudos
Message 2 of 2
(3,767 Views)