c# - How to specify a "COM" class, when multiple "COM" class has same name in C++? -


i have defined com interface shown below(c#):

using system.runtime.interopservices; namespace commoninterop.hello {  [comvisible(true)]  [guid("24484884-daae-4b24-b0bd-c7b9aeb3d70d")]  public interface icominterop  {     int plus1(int x);  } } 

and again same interface defined different namespace , guid:

using system.runtime.interopservices; namespace commoninterop.world {  [comvisible(true)]  [guid("66664884-daae-4b24-b0bd-c7b9aeb34444")]  public interface icominterop  {     int plus1(int x);  } } 

usage in c++:

in c++ pointer object show below if 1 of com class defined:

icominteropptr m_interop;  // ,  void setsome(icominteropptr); 

but have 2 "com" class has same class name. how can tell c++ use specific "com" class?

im noob in c++, tell me explain further if question not specific enough.


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -