Make it Simple

Walkthrough: Creating a COM Server Using Wizards

My machine has 32-bit Vista and Visual Studio 2008, so I followed the following article to create a COM server using Wizards.

http://msdn.microsoft.com/en-us/library/dssw0ch4.aspx

Unfortunately, I couldn't compile the test client application. Eventually I found a work around..

  • The 4th line should be  #import "..\MyServer\Debug\MyServer.tlb" no_namespace
  • The 13rd line should be spUnknown.CoCreateInstance(__uuidof(Object1));

 If you are a beginner like me, maybe this will be helpful.

Published Wednesday, July 29, 2009 1:07 AM by supu

Comments

No Comments
Anonymous comments are disabled

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker