Originally posted by: Gideon Carr
How do I connect to the server from Java? I.E set obj = new ActiveXObject("????");
Originally posted by: nothingever
TestClient.obj : error LNK2001: unresolved external symbol _IID_IDosCom
TestClient.obj : error LNK2001: unresolved external symbol _CLSID_DosCom
I downloaded the source code and compiled them.And link errors appeared,need some help.
Originally posted by: Sofia Khatoon
This was great help. Please write something about MFC shared dll when you get a chance.
ReplyOriginally posted by: anorld
After running, I find TestServer is living in TaskManager.
I think it should be killed after run over.
Originally posted by: tigerZsn
It a candle for the people who walk on the road of com.
Great work!
Originally posted by: Syed Kashif Bashir
You really did a good job and i found this after a very long search , please write more and more because your way of teaching is quite different from others .
ReplyOriginally posted by: Narasimha Murthy
Iam Thankful to the auther for giving a kick start to my carrer and I wish he continues his hand to so many beginners like me and I feel great if he include few more examples
ReplyOriginally posted by: J�rome A.
...
// interface pointers
IDosCom *pDosCom=NULL;
// com call results
HRESULT hr;
// Initialise COM
hr = CoInitialize(NULL);
// create an instance and get IDosCom pointer
hr =
CoCreateInstance(CLSID_DosCom,
NULL,
CLSCTX_LOCAL_SERVER,
IID_IDosCom,
(VOID FAR **) &pDosCom);
if (FAILED(hr))
{
cout<<"\nCoCreate instance failed for the Demo Object";
return -1;
}
// call the interface method
hr = pDosCom->RunCmd();
...
Reply
Originally posted by: Eskobar
First, never use a wizard when discussing a tutorial unless you elaborate the behind-the-scenes stuff that happens. Second, if you haven't learnt something why make a tutorial about it? Third, the tutorial really doesn't make sense (in a tutorial point of view) for COM newbies. Lastly, there are about a hundred well done COM tutorials out there, so really why bother?
--Mediocrity is second to porn in web content.
Originally posted by: Emmanuel Mogenet
However, for tutorials they are one
You press a couple of buttons, and Voila!
Could someone come up with a COM tutorial
When cranking out production code, wizard
may be (to some people) a great help.
more layer of complexity, and help in
no way the beginner to figure out how
COM really works.
you have 400 line of spaghetti code and
you have no idea where to start with it
nor what it does.
that's coded from scratch, and not with all
that VC++ goo ?