Is There a way to use the DirectX7 object provided by VB without creating a reference to the DirectX7 for VB Library in your project. I am a huge fan of COM Automation and scripting and I'd prefer not to reference ANYTHING in any of my VB projects. When I use CreateObject to get an instance of the DirectX7 class, I get an object of type 'unknown'. From what I know, the IUnknown interface isn't documented much and isn't really supported in VB! Help! Again!How do you get DirectX 7 for VB to give you access to the object behind that 'unknown' interface?
Let's resolve this overdue question by bringing it to a vote.How do you get DirectX 7 for VB to give you access to the object behind that 'unknown' interface?
IUnknown is the generic Com interface for all Com objects. In genreal you do a QueryInterface on the object and get the interface you need. You can't do anything with the IUnknown interface. Unfotunally you will probably have to reference the DirectX7 Lib to get the needed interfaces, after all that is what it is there for.
You may want to check out Managed DirectX in VB.NET
No comments:
Post a Comment