Petter Nilsen, Technical Manager 8368 [mailto:[EMAIL PROTECTED]] wrote:
> In this test code, I want find various methods to call COM > componentents using late binding. I've come across a method > which I don't really know if it's using late or early > binding. The code works on that particular COM object, but I > want to make sure it's using late binding. Does anyone here > know? I import the reference to get the IBisComServer interface type. You say you "import the reference"... I assume that means you use tlbimp? How is the interface defined in the COM type library? Is it defined as a pure dispatch interface or dual? I believe the RCW interface will need to be marked with InterfaceTypeAttribute with a value of ComInterfaceType.IsIDispatch, but I'm not sure because according to the docs that only seems to affect how the managed interface would be exposed when exported to a COM type library (tlbexp). HTH, Drew [ .NET MVP | weblog: http://radio.weblogs.com/0104813/ ] You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.