|
Hello,
I had a problem in registering a sink I made.I made the dll and
make a client com to test that the dll is registerd correctly
then I register the sink using the smtpreg.vbs
but when I send an e-mail from another terminal my sink wasnot called
I donot know why??Could you help??
By the way I have a network 2 pcs I installed win2000 Advanced server
and Exchange 2000 server on one and made it the server and installed
win2000 professional on the other and I use visual studio.net to make
the sink ATL Project.
|
|
|
|
|
Hi everybody,
I've asked this question before, and I'M NOW WILLING TO PAY (with PayPal) for a solution that fits my needs because time is not a thing I have in abundance and I need this thing quickly!
Here's, from a user point of view, what I want the resulting solution app to do:
####
When pressing a modifier key (ctrl for example), clicking (right or left mouse) ANY text-based string in ANY application or object (folder names, titles, list items, etc) in the operating system (win95+), a small window should appear next to the clicked-on text informing the user what text he/she has clicked on.
####
Two approaches (as far as I know) are possible: Either you can go the OCR (Optical Character Recognition) way where you actually capture and analyze what the screen pixels look like. An OCR engine is hard to develop yourself and expensive to license or buy. Or you can use the MS Accessibility API to do this... (fairly undocumented but supposed to do the trick). This is an API used for developing apps that for instance can read text on the screen out loud.
Anyone with the appropriate knowledge and skills who want to take this on?
We can discuss the details more privately when a first contact has been established. Thx everybody and thx for a great forum!
/Tommy
|
|
|
|
|
I've already posted this on the main c++ forum. I didn't notice this COM forum first. Sorry for that.
I want to use the internet explorer inside my application. This works fine:
AtlAxWinInit();
HWND hwndChild=::CreateWindow( "AtlAxWin",
"Shell.Explorer.1",
WS_CHILD|WS_VISIBLE,
0,0,0,0,
hwnd,NULL,
::GetModuleHandle(NULL),
NULL);
IUnknown *pUnk=NULL;
AtlAxGetControl(hwndChild,&pUnk);
CComPtr<IWebBrowser2> spBrowser;
pUnk->QueryInterface(IID_IWebBrowser2,(void**)&spBrowser);
if(spBrowser)
spBrowser->put_Visible(VARIANT_TRUE);
But, I want this to be more abstract. How can I use the interface IDispatch instead.
My attempt to abstract it returned a DISP_E_UNKNOWNNAME while calling GetIDsOfNames with "Visible" and VARIANT_TRUE.
It has to be something like that...
using: [VISUAL STUDIO 6.0] [WIN98/2]
|
|
|
|
|
We have a COM+ server application that runs under a local user account. The application is marked as queued which automatically creates some MSMQ private queues. However the system does to add the required permissions for the user (Full Control) to the queues. Is this a bug? Or do we have to set these permissions ourselves? Can this be done programatically?
|
|
|
|
|
As part of our installation we programatically create serveral COM+ applications one of which is marked as queued. When marked as queued the system automatically creates several private MSMQ queues. However during un-installation when we remove the COM+ applications the queues are left. Is this be design? What is the best way to delete this queues?
|
|
|
|
|
helo
i have an COMserver-app and now i will speak with them over ASP.....
i will get returns from COM with ASP. how i can get them?
is there anywhere a link or some tutorials or so?
thanky a lot
|
|
|
|
|
Hi there
I have to test the Windows Messenger 4.7 API for Add-Ins. Actually, i fail at the first step of the getting-started instruction of the API:
1. Create a Component Object Model (COM) component. Your add-in component should be implemented as a COM component. The classes in your add-in component that implement specific add-in features should inherit the interfaces that describe the feature you plan to implement. When creating your COM component make sure to create it as a LocalServer and not InProc. Messenger Add-Ins are not supported as InProc COM components.
I am quite a neewbie on the subject of COM objects, so anybody got give me a hint?
I am working with .Net at the moment, maybe it would be better to change to visual c++? (i would prefer working in c++ rather than in VB)
thx a lot, Lusi
btw, here the link to get the api's, if one is interessted:
http://msdn.microsoft.com/downloads/default.asp?url=/downloads/topic.asp?url=/msdn-files/028/001/359/topic.xml
|
|
|
|
|
Hi, all!
Would you like to help me, plz?
Have the folow:
I want to create COM+ component with help c#, so, it will use the external(usual) dll-file(my.dll), where contents some logic (com-objects).
This dll good work in usual application, when add it as reference - all ok.
(a have not source for this dll file)
But when i try to link up it in my developed com+ app., - got folow answer from compiler:
"Assembly generation failed -- Referenced assembly 'name of my.dll' does not have a strong name"
is it have not 'strong name'????
i try the next:
al /out:my.dll "?" /keyfile:my_dll.snk
but it don't want to work... i do not understand want is this "?"
and is it right way to solve this problem? and what i must do in this case?
in any case thx.
|
|
|
|
|
hi,
I am new to COM,but i want to learn it completely.when i start searching for the tutorials,i am very much confused which is better than what.Can any one of u please guide me how to go forward,so that i can learn COM better in steps without any confusion.I know VB and C++.
Thanks for all in advance
|
|
|
|
|
|
Developers guide to ATL and COM
http://www.amazon.co.uk/exec/obidos/ASIN/1556227043/202-2451278-4678239[^]
This book is the best by a long shot.
It takes you though what com is about - interfaces, and before you even touch com works you though making interfaces in pure C++. Later you make a com dll in pure c++, and its not hard once its explained well. Then it moves on to using IDL(interface definition language) and how ti helps. Then finanlly once you know the fundamantals, it shows you how to use ATL properly, from In process DLL's to out of process objects in an EXE possibly even on another machine with DCOM. As well as that it clearly explains call backs and connection points, COM error handling.
If you want to learn COM get this. It has to be one of my best all time buys.
Don't be put off by the version. ATL skipped from 3.0 to 7, but there is no difference in the COM area of ATL. The main only thing I see in ATL7 that is not the same with ATL3 is NT Services, and all they have done there is make it easier.
Hope this helps.
|
|
|
|
|
"Developer's Workshop to COM and ATL 3.0"
I fully agree that it's a great book. As Giles says, the approach it takes is what makes it so good. Probably one of the best Technical books I've ever bought
"The folly of man is that he dreams of what he can never achieve rather than dream of what he can."
"If you think education is expensive, try ignorance."
|
|
|
|
|
I have encapsulated a "view" into an ActiveX control.
I realized that if my testers ran the production version of my program they might get the test version of my control or vice-versa. In order to fix the problem, I re-register all .ocx and .dll files found in the program directory.
The problem is... When a user launches the production version, then the test version, then opens the "view" in production they get the test version (registered last)
Do I need to constantly be updating GUIDs or is there an easier way to do this with a compile time switch?
|
|
|
|
|
Hi all,
could anybody advise me a reading or help me to solve the problem:
How to COM client to get known about the server it uses crashed without polling on some interface method of this server waiting for error ? I mean, is there some back notification mechanism ?
Best regards,
Vipsy
|
|
|
|
|
If you create the server process, then you have its process's handle.
Therefore, create a worker thread that waits on the handle:
WaitForSingleObject(...).
If you didn't create that process, then you can get the process handle by
using my tool:
How to get handle to any running process by its name
Goodluck,
Dudi
|
|
|
|
|
|
I think Wrox used to publish one, what are you looking to do?
Nick Parker
The only man who never makes a mistake is the man who never does anything. - Theodore Roosevelt
|
|
|
|
|
Is it wise to create a critical section in the constructor, and delete it in the destructor? I once read that I should use FinalRelease, however I am unsure about it. Could someone offer some advice?
Jeremy.
Jeremy Pullicino
Professional C++ Developer
Done any hacking lately?
|
|
|
|
|
The big difference between the constructor/destructor and finalconstruct/finalrelease is that in final* you can return a value.
If something goes wrong in the constructor, you can not tell it to the client, but if you use finalconstruct instead you can return E_FAIL, and the client know there was an error.
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
No return value in FinalRelease(). Think about it, who're you going to return to?
--
Yeeeeehaaaaawwwwd!
|
|
|
|
|
Oops
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
The biggest advantage over FinalXXX over ctor/dtor is that you can compile with _ATL_MIN_CRT and not having to worry whether your global objects constructors/destructors are called or not. And you can signal error through HRESULT in the FinalConstruct method, causing CoCreateInstance() to report the failure. In C++ you'd have to throw something for that, and we all know that exceptions and COM doesn't really go hand in hand.
Of course, you could bypass the _ATL_MIN_CRT effect with placement new/explicit destructor calls in select places. However, FinalXXX is safer and produces more maintainable code, IMHO.
--
Yeeeeehaaaaawwwwd!
|
|
|
|
|
Hello everyone!
I've been searching for a tutorial about creating ActiveX controles on a website (no asp.. just html & javascript)
One of my friends said that i should use "COM", but i haven't found anything that worked.. I've seen one here with cookies in ASP, but when i'm not using ASP, it's kinda hard..
maybe someone has a small source for an ActiceX control that returns a string.. like
This is a test: (call function from ActiveX control)-> "Test string returned from an ActiveX control"
I hope someone can help me or direct me to a good tutorial..
Ice
|
|
|
|
|
you cant create an ActiveX controls on websites but you can embedd it on a web page. You must create your custom activex by VC++ or VB. Then embedd it with one of web page design programs such as front page or composer.
A. Riazi
|
|
|
|
|
I've got that far.. Now, how do i make the activex control? I'm using VC++ 6.0.. so which projekt should i use?
|
|
|
|