Click here to Skip to main content
15,867,308 members
Home / Discussions / COM
   

COM

 
AnswerRe: Unable to cast COM object of type 'magic.magicClass' to interface type 'magic.Dmagic'. Pin
KarstenK14-Dec-09 22:42
mveKarstenK14-Dec-09 22:42 
QuestionHow to hide one of the pins in the DirectShow Source Filter ? Pin
Raja Bose C Leo8-Dec-09 21:42
Raja Bose C Leo8-Dec-09 21:42 
QuestionExcel.exe is not getting killed implicitly Pin
KTTransfer7-Dec-09 18:40
KTTransfer7-Dec-09 18:40 
AnswerRe: Excel.exe is not getting killed implicitly Pin
serzh8316-Dec-09 5:21
serzh8316-Dec-09 5:21 
Questionusing interface Pin
Chiman15-Dec-09 1:09
Chiman15-Dec-09 1:09 
AnswerRe: using interface Pin
Jonathan Davies5-Dec-09 5:03
Jonathan Davies5-Dec-09 5:03 
AnswerRe: using interface Pin
«_Superman_»5-Dec-09 5:04
professional«_Superman_»5-Dec-09 5:04 
QuestionCalling Com object From C# to add 2 numbers Pin
Chrispie1232-Dec-09 7:47
Chrispie1232-Dec-09 7:47 
Good Morning,
I need to call a dll from C# that was generated by magic edeveloper. I think it is a C dll.
It is a program that takes in 3 parameters all integers. Adds the first to and pass the sum to the 3rd parameter.
I have registered the dll in windows and I can add a reference in visual studio via the Project  Add Reference menu.
I have the following code in my project
int a = 5;
int b = 6;            
int sum = 0;
double sumDouble = 0;
sumdll.sumdllClass sdc = new sumdll.sumdllClass();
sumDouble = sdc2.sumdll(ref a, ref b, ref sum);

But if I run it I get the error
Unable to cast COM object of type 'sumdll.sumdllClass' to interface type 'sumdll.Dsumdll'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{3DC9FCBA-9E72-49AA-B597-F9B2603D5EEA}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).

the following is available from the intellisense
sumdll.sumdllClass sdc = new sumdll.   
	Dsumdll  		which is an interface
	Sumdll		which is an interface
	sumdllClas		which is a class

And in the line
sumDouble = sdc2.sumdll(
			ref int input1, ref int input2, ref @input)

Does anyone know I am getting this error? Or how to call the dll correctly.
Regards,
Christiaan Pieters
AnswerRe: Calling Com object From C# to add 2 numbers Pin
Chrispie1233-Dec-09 18:32
Chrispie1233-Dec-09 18:32 
AnswerRe: Calling Com object From C# to add 2 numbers Pin
KarstenK14-Dec-09 22:48
mveKarstenK14-Dec-09 22:48 
AnswerRe: Calling Com object From C# to add 2 numbers Pin
Md. Marufuzzaman15-Dec-09 4:04
professionalMd. Marufuzzaman15-Dec-09 4:04 
QuestionIs it possible to attach the manifest info to a dll for SxS? Pin
levinp29-Nov-09 21:41
levinp29-Nov-09 21:41 
QuestionUsing COM component invalid pointer error Pin
Ash_VCPP27-Nov-09 1:19
Ash_VCPP27-Nov-09 1:19 
AnswerRe: Using COM component invalid pointer error Pin
KarstenK27-Nov-09 1:34
mveKarstenK27-Nov-09 1:34 
GeneralRe: Using COM component invalid pointer error Pin
Ash_VCPP27-Nov-09 2:15
Ash_VCPP27-Nov-09 2:15 
AnswerRe: Using COM component invalid pointer error Pin
User 121625727-Nov-09 2:24
User 121625727-Nov-09 2:24 
GeneralRe: Using COM component invalid pointer error Pin
Ash_VCPP27-Nov-09 2:31
Ash_VCPP27-Nov-09 2:31 
GeneralRe: Using COM component invalid pointer error Pin
KarstenK27-Nov-09 2:50
mveKarstenK27-Nov-09 2:50 
GeneralRe: Using COM component invalid pointer error Pin
Richard MacCutchan27-Nov-09 3:46
mveRichard MacCutchan27-Nov-09 3:46 
QuestionCOM Error: error LNK2001: unresolved external symbol "public: virtual long __stdcall Pin
Ash_VCPP25-Nov-09 23:09
Ash_VCPP25-Nov-09 23:09 
AnswerRe: COM Error: error LNK2001: unresolved external symbol "public: virtual long __stdcall Pin
cariolihome27-Nov-09 10:20
cariolihome27-Nov-09 10:20 
Questionnew to COM Pin
mailgirish99@yahoo.com25-Nov-09 4:26
mailgirish99@yahoo.com25-Nov-09 4:26 
AnswerRe: new to COM Pin
Stuart Dootson25-Nov-09 21:33
professionalStuart Dootson25-Nov-09 21:33 
Questioncom component in asp.net Pin
pravinmishra24-Nov-09 5:42
pravinmishra24-Nov-09 5:42 
QuestionIn Socket server How insert into Oracle? Pin
TheCodeVB21-Nov-09 16:03
TheCodeVB21-Nov-09 16:03 

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.