04-28-2008 02:07 PM
04-28-2008 02:21 PM
04-28-2008 04:56 PM
04-29-2008 02:11 PM
04-30-2008 06:47 AM
The intrinsic C data types that LabWindows/CVI defines are as follows:
int
long
short
char
unsigned
int
unsigned long
unsigned short
unsigned char
int []
long
[]
short []
char []
unsigned int []
unsigned long []
unsigned
short []
unsigned char []
double
float
double []
float []
char
*
char *[]
void *
04-30-2008 07:54 AM
04-30-2008 09:51 AM
Mikie,
It looks like the custom command is used when the MIDL compiler doesn't recognize a data type, so I believe you are correct in your conclusion about unsigned int * not being a default type. Unfortunately there is not a very well layed out list of types that the compiler will recognize other than the Language Reference page (Note that the MIDL compiler is a Microsoft product so the information is found on MSDN). If you look at the basic types (int, char, etc) it seems as though they are not compatible or usable as pointers by default, though unsigned integers are acceptable. We may be able to use the ptr type but I am not as familiar with this command.
I think the best course of action is to try and replace the problem data types (unsigned int *) with recognizable types and see if we still get the error. If we don't then we know its related to these parameters then we can simply work on getting those parameters fixed. If we do still get an error we may need to conduct some further investigation.
04-30-2008 11:24 AM
04-30-2008 11:59 AM
05-01-2008 09:32 AM
Mike,
The type library is not necessary to simply use a DLL with other programs. Type libraries are used with DLLs when you are compiling the DLL to use as an ActiveX object. The ODL file is used to help generate the type library, so as you mention without this file we can't generate a type library. Therefore if you are just going to be using the DLL in direct calls from other programs and not as an ActiveX object you should have no problems.