Click here to Skip to main content
15,912,299 members
Home / Discussions / COM
   

COM

 
GeneralSTAThread stop my app Pin
~toki17-Feb-03 13:09
~toki17-Feb-03 13:09 
Generalcom client as a console application Pin
karanba17-Feb-03 9:52
karanba17-Feb-03 9:52 
GeneralRe: com client as a console application Pin
geo_m17-Feb-03 23:05
geo_m17-Feb-03 23:05 
GeneralRe: com client as a console application Pin
karanba18-Feb-03 11:13
karanba18-Feb-03 11:13 
GeneralRe: com client as a console application Pin
geo_m18-Feb-03 12:25
geo_m18-Feb-03 12:25 
GeneralRe: com client as a console application Pin
karanba19-Feb-03 0:07
karanba19-Feb-03 0:07 
GeneralDHTMLEdit vs. MSHTML Pin
Jonas Follesø16-Feb-03 15:33
Jonas Follesø16-Feb-03 15:33 
GeneralInvalidCastException from remote object that use COM Pin
itay_k16-Feb-03 4:44
itay_k16-Feb-03 4:44 
Hello,

I created a COM DLL. (with VC++.NET but this is not important).
And created some assembly the has a function, that create instance from the
COM class, and call some function from the COM object.

When I call the functions of the assembly as simple as possible, from some
console app, this is work.!
But if I do it via remoting, it isn't work!! and give this exception:

Unhandled Exception: System.InvalidCastException: QueryInterface for
interface ScreenCamaraASM.IScreenCapturing failed.

Server stack trace:
at ScreenCamaraASM.CScreenCapturingClass.GetNumber()
at RCServerNP.RCServer.GetScreenPicture() in d:\mydocs\visual studio
projects
\remotecommunication\rcserver\rcserver.cs:line 24
at
System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(M
ethodBase mb, Object[] args, Object server, Int32 methodPtr, Boolean
fExecuteInC
ontext, Object[]& outArgs)
at
System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMes
sage msg, Int32 methodPtr, Boolean fExecuteInContext)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
req
Msg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgDa
ta, Int32 type)
at RCServerNP.RCServer.GetScreenPicture() in d:\mydocs\visual studio
projects
\remotecommunication\rcserver\rcserver.cs:line 21
at Testing.Class1.Main(String[] args) in D:\MyDocs\Visual Studio
Projects\Rem
oteCommunication\Testing\Class1.cs:line 36.







Please, any solution?
Thank's, Itay.
GeneralIClassFactory2 Pin
Raphael Amorim14-Feb-03 9:26
professionalRaphael Amorim14-Feb-03 9:26 
GeneralProblem with registering Transport Event Sink for the SMTP Service Pin
Muslima14-Feb-03 3:49
Muslima14-Feb-03 3:49 
QuestionHow to grab text from text-based apps/objects?!?!!? Solution = money! Pin
Tommy Svensson13-Feb-03 23:44
Tommy Svensson13-Feb-03 23:44 
Generalabstracting to IDispatch Pin
Zizilamoroso13-Feb-03 23:03
Zizilamoroso13-Feb-03 23:03 
GeneralCOM+ queue permissions Pin
solidstore13-Feb-03 3:15
solidstore13-Feb-03 3:15 
GeneralDeleting COM+ Queued Applications Pin
solidstore13-Feb-03 3:11
solidstore13-Feb-03 3:11 
GeneralASP and COM Pin
drugfreak12-Feb-03 5:40
sussdrugfreak12-Feb-03 5:40 
GeneralCrating a COM for WM 4.7 Pin
SQ_Lusi11-Feb-03 21:03
SQ_Lusi11-Feb-03 21:03 
GeneralCOM+ & .NET Pin
sss_dr11-Feb-03 0:33
sss_dr11-Feb-03 0:33 
QuestionHow to learn COM??? Pin
shanksprasad7-Feb-03 23:46
shanksprasad7-Feb-03 23:46 
AnswerRe: How to learn COM??? Pin
David Wulff8-Feb-03 17:25
David Wulff8-Feb-03 17:25 
AnswerRe: How to learn COM??? Pin
Giles13-Feb-03 3:26
Giles13-Feb-03 3:26 
GeneralRe: How to learn COM??? Pin
thowra24-Mar-03 4:21
thowra24-Mar-03 4:21 
GeneralMultiple versions of ActiveX Control Pin
Brad Bruce7-Feb-03 7:16
Brad Bruce7-Feb-03 7:16 
QuestionHow to get notified about the out-of-process server crashed ? Pin
vipsy7-Feb-03 1:59
vipsy7-Feb-03 1:59 
AnswerRe: How to get notified about the out-of-process server crashed ? Pin
Dudi Avramov1-Mar-03 21:55
Dudi Avramov1-Mar-03 21:55 
GeneralVB6 COM book Pin
Davy Mitchell5-Feb-03 1:41
Davy Mitchell5-Feb-03 1:41 

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.