@Mike,
The Windows32 SDK bears the scars of excessive type specification. Dealing with these makes type matching more complicated but I hope it should be easy enough to lift hunks of C code and headers and get them to work in Oxygen. When I come across succinct examples from MSDN I will include them with the examples.
To override a type and get the integer value directly you can use "?" as a prefix. Example: ? MyBstr will yield the integer value of the BSTR (a pointer) instead of its string content.
@John.
So far I've got automatic value to string conversion but I have not been so successful going from string to value.
This is largely due to function overloading rules, which allow functions of the same name but different prototypes to be supported. The compiler cannot always make the correct decision which function to use if it is over-enthusiastic about type conversion. Perhaps String-to-number conversion could be attempted as a last resort. This is where things a not so complex for ScriptBasic as it is able to make such decisions at run-time based on the string content.
Charles