Click here to Skip to main content
15,902,189 members
Home / Discussions / COM
   

COM

 
Generalerror C2259 Pin
Krishnatv8-Jan-08 18:35
Krishnatv8-Jan-08 18:35 
AnswerRe: error C2259 Pin
Lim Bio Liong9-Jan-08 0:20
Lim Bio Liong9-Jan-08 0:20 
GeneralRe: error C2259 Pin
Krishnatv9-Jan-08 17:53
Krishnatv9-Jan-08 17:53 
GeneralRe: error C2259 Pin
Lim Bio Liong9-Jan-08 19:35
Lim Bio Liong9-Jan-08 19:35 
QuestionHow to access member functions of coclass from its Interface Pin
mandanani8-Jan-08 16:32
mandanani8-Jan-08 16:32 
AnswerRe: How to access member functions of coclass from its Interface Pin
mandanani8-Jan-08 20:42
mandanani8-Jan-08 20:42 
AnswerRe: How to access member functions of coclass from its Interface Pin
prasad_som9-Jan-08 1:29
prasad_som9-Jan-08 1:29 
QuestionHow to using C# Class Library in VC++/COM Pin
Member 42194196-Jan-08 23:45
Member 42194196-Jan-08 23:45 
I have created a class library in C# .Net 2005. I'm not able to create an instance of C# interface class in VC++/or COM dll. It gives an error
0x80040154 "Class not registered"
I also tried registering using regasm. It gives the message Types registered success
I'm not sure if i'm doing it right. Your help will be appreciated. I have attached the code snippet
C#
AssemplyInfo.cs
[assembly: ComVisible(true)]
[assembly: Guid("A4B0A925-5F27-42f3-B8D0-028248A7C210")]
ProcessClass.cs
amespace analyst1
[Guid(ProcName.InterfaceId)]
[InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
public interface INewInFace
{
[DispId(1)] void BatchStart();
}

[Guid(ProcName.ClassId)]
[ClassInterface(ClassInterfaceType.None)]
public class ProcName : INewInFace
{
internal const string ClassId = "0129FAAF-456E-4e4b-9A72-9685841EAB66";
internal const string InterfaceId = "A2F72F34-0340-49f5-8FDF-7A23A74CC370";
internal const string EventsId = "46C617A1-C148-4c9a-B064-285892110FC4";

public void BatchStart() { }
}

VC++ code
#import "..\\analyst1.tlb" no_namespace named_guids
the follwoing line gives error message "Class Not registered"
INewInFacePtr cp (__uuidof(INewInFace));
GeneralRe: How to using C# Class Library in VC++/COM Pin
Mike Dimmick7-Jan-08 11:00
Mike Dimmick7-Jan-08 11:00 
GeneralCOM on MAC Operating System Pin
Gupta Suraj6-Jan-08 22:08
Gupta Suraj6-Jan-08 22:08 
GeneralATL_NO_VTABLE means ..... Pin
tasumisra6-Jan-08 18:18
tasumisra6-Jan-08 18:18 
GeneralRe: ATL_NO_VTABLE means ..... Pin
CPallini6-Jan-08 22:00
mveCPallini6-Jan-08 22:00 
GeneralRe: ATL_NO_VTABLE means ..... Pin
Mike Dimmick6-Jan-08 23:58
Mike Dimmick6-Jan-08 23:58 
QuestionHow to call a function in DLL Pin
chaitannya_m4-Jan-08 4:12
chaitannya_m4-Jan-08 4:12 
QuestionVS2008, MIDL compiler bug Pin
Gary Wheeler4-Jan-08 4:10
Gary Wheeler4-Jan-08 4:10 
GeneralRe: VS2008, MIDL compiler bug Pin
Mike Dimmick6-Jan-08 8:27
Mike Dimmick6-Jan-08 8:27 
GeneralRe: VS2008, MIDL compiler bug Pin
Gary Wheeler7-Jan-08 1:16
Gary Wheeler7-Jan-08 1:16 
GeneralRe: VS2008, MIDL compiler bug Pin
Mike Dimmick7-Jan-08 10:58
Mike Dimmick7-Jan-08 10:58 
GeneralRe: VS2008, MIDL compiler bug Pin
Gary Wheeler8-Jan-08 0:52
Gary Wheeler8-Jan-08 0:52 
GeneralRe: VS2008, MIDL compiler bug Pin
Mike Dimmick8-Jan-08 9:40
Mike Dimmick8-Jan-08 9:40 
GeneralRe: Calling ActiveX DLL from MFC - passing arrays Pin
mla1543-Jan-08 10:05
mla1543-Jan-08 10:05 
GeneralRe: Calling ActiveX DLL from MFC - passing arrays Pin
CPallini3-Jan-08 10:53
mveCPallini3-Jan-08 10:53 
GeneralRe: Calling ActiveX DLL from MFC - passing arrays Pin
mla1543-Jan-08 11:17
mla1543-Jan-08 11:17 
QuestionRe: Calling ActiveX DLL from MFC - passing arrays Pin
CPallini3-Jan-08 21:11
mveCPallini3-Jan-08 21:11 
GeneralRe: Calling ActiveX DLL from MFC - passing arrays Pin
mla1544-Jan-08 3:39
mla1544-Jan-08 3:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.