In Windows DNA Architacture, three layer,
Every client call COM+ Server,Server create a new process
for this client?
After this client want to create a com object,
a thread in which com object is run is in that process?
Can anybody help me about how to access dll from remote machine. I have used ATL AppWizard to develop dll component.
But when i try to call CoCreateInstanceEx(...)
I get the following error message...
"Class Not Registered"
I'm student. I've to make a plug-in for MS Outlook. This plug-in will take a particular date, and will delete all the attchments of the e-mails which are older than that specific date.
Kindly guide me for the task. Provide/guide me some sample code if possible. I'll be very grateful to you.
Waiting for your kind response.
Watch Your Thoughts for they will become your actions.
Watch Your Actions for they will become your habits.
Watch Your Habits for they will become your beliefs.
Watch Your Beliefs for they will determine your destiny.
I need to put together an ATL COM object making use of connection points to fire Events for a VB client app.
The problem is the Events will need to be fired asyncrously as when I call a particular method it goes of and creates a worker thread. I need to fire events from the worker thread multipe times back to the VB client, problem is that its now in another apartment as far as the origional thread is concerned, so COM will get upset if I user the interface pointer straight off.
From what I can tell it looks like I need to enlist the help of CoMarshalInterThreadInterfaceInStream. Does anyone have any pointers on a problem like this. Its basiclly real time data to a VB client.
As an aside, I know for Excel you can use DDE (tres old) or RTD for a higher though put in Excel XP, but not interested in this yet.
"Je pense, donc je mange." - Rene Descartes 1689 - Just before his mother put his tea on the table.
I have create an ActiveXControl. It runs, but after one cycle it hangs in the memory.
I know that one solution are the functions AddRef() and Release(), but I don't know how I can use this and where. Please help me.
what do you mean " hangs in the memory"? Do you mean after you're done, there's still a floating referance to it somewhere?
You must call Release() on it, basically every time you use a referance to it, you call AddRef, and when you're done, call Release. Technically you're supposed to maintain an "accounting" of all this, but it can lead to insanity. If you're not passing referances to "outside" sources, you should be able to call Release() on it when you're done (the initial AddRef is done automatically).
OR you can use Smart pointers....look up Smart pointers in VC docs, they will do all this automatically.
I have created a ATL COM dll.The component will be used in WINDOWS 2000 machines which will not have Visual Studio.What are the ATL com dlls that I have to distribute along with the COM component?Please help.
I am using script control. when i add a procedure to the script control.if the procedure is error free then it works fine, but if there is a run-time error then a dialog box with the title "Just-In Time Debugging" and containg the option of .Net Studio that do you want to debug it. I want that this dialog box should not be displayed and i can handle this runtime error myself.
I'm relatively new to c++ / com. I'm attempting to use a BHO in an intranet environment to add headers to specific urls. My problem is that using the code below, my new header doesn't turn up at the server (testing with an asp page that dumps all headers + an IP packet sniffer).