Well, I do not really understand your question here, but following should help:
- Public enum definitions need to have their own uuid to be really public.
- I've seen that those enum definitions don't go into the type-library unless they are actually used in some interface method. I do not know the reason for this, probably I missed something simple (like adding that enum to a library block, or whatever).
short
usually means a short integer, not a single-precision floating-point number.
- The equivalent of
float
is single
in VB, but as I've seen on other questions of you, I suspect you actually meant replacing single
with float
.
By the way, I'd recommend to post one minimal (compilable) IDL file (stripped of most definitions), which resembles more or less what you're trying to compile. This helps against some confusion, as you're for instance using IS8Simulation
in your text, but S8SimObject
in your copied IDL snippet. And it would also help if you specify the expected result, and the unexpected (for you) error.
Edit
Well, this compile error you now inserted is simple: S8SimObject
is not defined. You need to always refer to the interface in the method declarations (IS8Simulation
), never to the coclass which implements the interface.
As you said you're changing an existing IDL file here: What is the basic goal? If the original IDL file always uses S8SimObject
, maybe the only problem is that the definition of S8SimObject
is not included at the top of the IDL file? If you've the type-library defining S8SimObject
around, you can export the IDL of this interface by using OleView.