|
Thanks for your suggestion. Any particular reasons for your reccomendation. I have read several adverse comments about this book?
|
|
|
|
|
Hey there,
Ooh, I'm hard-pressed to come up with a -single- book that suits your needs, but I'll go just a bit out on a limb and suggest _Inside_COM_, by Dale Rogerson. This book is, for me, the best introductory book on COM, and it was the -only- book I used for years (until I started writing my own itty-bitty COM ports to non-MS platforms). For learning COM, I can't reccomend the book too strongly, because it's both a very concise and easy-to-understand book on the fundamentals, and it covers the true goings-on at the binary level, rather than just glossing over those details: D.R. has a great way of describing these fundamentals in such a way that it all seems quite easy to implement - and it doesn't take too much longer to "get it." (Yes, there was a lag between implmentation and "getting it," but this seems to be the MO with COM developers.)
But, there's two major caveats. First, Rogerson devotes few pages in _Inside Com_ to DCOM. Basically, he covers pretty-much just the minimal to code and use COM objects over a remote network using DCOM, but that's about it. Actually, I haven't used DCOM, so he may cover it to as big an extent as necessary, but I somehow doubt it. Second, if you're going to be coding in Visual Basic or Java, or just building "turnkey" ATL COM objects, then Rogerson's book is probably too low-level: given the constraint of one book, I'd probably try find one that more focuses on the COM Wizards and such....
But, all that being said, _Inside_COM_ is a great book with which to get started - and you'll probably come to the reasonable conclusion that "one book for all COM" probably isn't the way to go (didn't the Bible have over ~30 books?). If that hits you, then I'd quickly run out and get Don Box's _Essential_COM_. Don Box is the Johnny Appleseed of COM technology, and his book can help grow your understanding of COM by leaps and bounds. In many ways, Box takes off where Rogerson stops: he focuses more on the distributed aspects of COM, as well as optimized coding strategies that may lead to higher performance software.
Finally, the web is also a great source of COM info - you can't miss wonderful articles like The COM Programmer's Cookbook, and Smart Pointers Considered More Harmful (or whatever it is called). These papers, and many more, are available on the web - and at the right price (free).
Hope this helps.
-andrew
|
|
|
|
|
Thanks very much for your help
|
|
|
|
|
Hi all,
I want to make a COM server that can be used with Power Builder.
Does anyone know if it is ok to have my interface inherited oly from IUnknown or do I need to inherit it from IDispatch???
In other words how does powerbuilder bind to a COM object.
Thanks a lot.
Please mail me as well...
Alberto Gattegno
Software Engineer
http://www.itginc.com
|
|
|
|
|
Hi,
I am desiging an ActiveX control.
It is working fine when it is placed in the word document.
But if user selects "design mode" , which is there in the MSWord,
the control is getting selected and when he double clicking on it,
it is going to VBScript mode.
This behaviour should not be there for my control.
-anil krishna
|
|
|
|
|
hi,dear all
Without using #import in the source code of client side , I want to get the interface point from the com server during the running of client .
For instance , through the menu operation , I locate the file which consists of the com-object .Then how can I get the interface point? The com-object does not implement the interface of IPersistFile.
Thanks a lot
|
|
|
|
|
Hello,
An ATL component control(intended to work with Excel and Word) is working in Win 95/98 but not working in WinNT. when i tried to debug it, control is not coming into the program even into the OnDraw(),even MessageBox() is not getting displayed with Excel. but it's working fine with Word. Please help me
Thankx in Advance
|
|
|
|
|
I think we need more information to be able to help,
What kind of control is it? Which option of the ATL wizard did you use? What version of ATL? Does the project include MFC? Which version of Visual studio?
When you debug the control, what line of code does it fail on? Is there an error code?
What version of Excel and Word ?
Does the control work in the ActiveX control test container?
Michael
|
|
|
|
|
Hi,
MFC ,is not included and ATL 3.0 and VC++ 6.0.
I think it(Excel ) is not recoginizing it as a control, and it is showing only the control image.
any help?
thanks.
-anil krishna
|
|
|
|
|
Hi,
MFC ,is not included and ATL 3.0 and VC++ 6.0.
I think it(Excel ) is not recoginizing it as a control, and it is showing only the control image.
any help?
thanks.
-dhanush
|
|
|
|
|
Hi Michael,
Thaks for responding.It didn't include MFC,it's ATL 3.0 full control, Wizard options default and VC++ 6.0. Behaving in the same manner for both Word/Excel 97, i.e. fine with word but failing with Excel. I think it(Excel ) is not recoginizing it as a control, and it is showing only the control image.
any help, urgent plz?
thanks.
-dhanush
|
|
|
|
|
Have you tried debugging the control through visual studio when it is embedded in Excel. What does it fail on in the code?
Does it fail on all Windows 2000 machines or just one?
Michael
|
|
|
|
|
hi michael, thank u for u r response
I tried to debug in VC++ IDE, but the control is not coming into the code.Yes, it's failed on some combinations like WinNT 4 + Excel 97/2K. It's displaying the control content(which some image), but it's not responding to the events on it like mouse clicks even the messageboxes that i placed in OnDraw() & control's constructor are not prompted. As i think Excel is not recognizing it as a control, but why it's so i don't know if u can plz help.
lastly is there any diff between containment behavior of word and Excel, because the same control is working in all Word Versions.
Thanx in advance hoping that u will respond.
|
|
|
|
|
I've developed ActiveX Dll in VB6. Now I am trying to use it as DCOM server in win2000. Client machine is WinNT. DCOM population for .DLL is made by Windows 2000 'COMPONENT SERVICES' administrative tool. While running VB client application in remote WinNT system I get 'Run-time error (800401fd): Automation error Object is not connected to server'. If anybody knows solution for this problem, please write. Thank you in advance.
|
|
|
|
|
Hello,
i did program, in which i used 5 dialogboxes of which one is the main dlg. Whenever i show a dialogbox otherthan maindlg i should hide&restore the maindlg.I did it in MFC by with the help of AfxGetMainWnd() & showwindow().but when i told to do the same program as ATL Component, i am not able to hide&restore the main dlg(i tried with GetActiveWindow()& ShowWindow()). Is there any solution for my problem, please help me.
Thanx in advance
|
|
|
|
|
Hi
I am developing a web application using ASP and VB. I developed a dll to make some database operations, and i call its methods in my ASP pages. So for so good. My problem is that i define a type in the dll, which i make public, but i don't seem to be able to use it in my ASP. If i use the same dll in another VB aplication i have no problem whatsoever. Also, the dll public methods are visible and working fine in the ASP...just the type is missing. To make the dll i used VB's dll wizzard, the type is public, and to access the dll in asp i use the folowing code:
<%
obj = Server.CreateObject("dllname");
obj.method1(); // Works fine
var x = new dllpublictype; // doesn't work...
%>
Thanks in Advance
Pedro
|
|
|
|
|
I have created a number of Active X controls useing MFC and I have tested them in the Active X control Container and they work fine - but when i try to get them to work in IE they don't seem to work.
Does anyone have any examples of what needs to be done to get the active x control to work in IE?
thanks
|
|
|
|
|
Hi,
There is a very nice article in MSDN: "Internet First Steps: Upgrading an Existing ActiveX Control". It describes all needed steps like packaging, making control "safe", licensing and so on. Read it... I think you will be able to find all the answers...
Regards,
Alex Gorev,
Dundas Software.
|
|
|
|
|
hai All,
can anyone tell me how to add e menu to a composite control. Thanx in advance.
|
|
|
|
|
Hi all.
I want to know what is different between ATL Dialog and MFC Dialog ???
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
HELP PLEASE
I have created a simple COM Server (.exe) using the VC++ Wizard.
I have modified it to be a singleton by adding the following code to my COM class's .h file
DECLARE_CLASSFACTORY_SINGLETON(SiteStatus)
Where SiteStatus is the name of my class
This works fine on 2 machines, ie only 1 instance of the COM Server is created regardless of how many clients use it.
The problem is on one machine it does not act as a singleton, ie more than one instance of the server is created.
Anybody have any ideas why ?
I am puzzled
Thanks
Adrian
|
|
|
|
|
Hi,
I'm trying to use a VB activex dll in a vc app. Everything works out OK until I try to create and use the component from inside a thread of my MFC client.The app crashes. My idea is that since an vb dll is Aparament threaded(STA) the problem occurs as I'm trying to use MTA. Is this so? Would the problem go away if I used a vb activex exe, cause it runs in it's own thread. I'd appreciate some explainations from the gurus here.
TIA.
Hush..Hush.. thought I heard you calling my name now...
|
|
|
|
|
That must not be a problem. Check if u have intialised COM on ur creater thread.
|
|
|
|
|
I make some file downloading activex component with atl
and this component call dll because there need some modification at file
but asp page test
this component call 3times at one submit(request)
and dll method call three times at one page reguest..
why? --;
|
|
|
|
|
How do we draw ActiveX window (visible ActiveX) on to a window using "win32 SDK"(I mean not using Microsoft Foundation Classes !)?
Thanks and Best regards,
Deepu
|
|
|
|