11-08-2015 09:40 PM - edited 11-08-2015 09:42 PM
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!
11-11-2015 05:45 PM
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.