|
I highly recommend Developer's Workshop to COM and ATL 3.0 by Andrew Troelsen.
Kuphryn
|
|
|
|
|
please give the internet address out
dupengfei
|
|
|
|
|
That would be tricky, since it's a printed book.
Steve S
|
|
|
|
|
how to know that the view of an activex control has changed?
thanks
regards
|
|
|
|
|
Call IViewObject::Draw twice before and after -- compare results.
I doubt you'll do that though.
"...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..."
Me
|
|
|
|
|
Hi Dears
I have to make a simple COM+ Application programatically to register my ATL COM Component.
Please guide me to build that in VC++ ........
I'll be really thankful.
God bless you.
Kind Regards.
Atif
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.
|
|
|
|
|
Hello,
i have a short question and do not find the answer.
Is it possible that a local server COM module (runs as EXE) can run multiple times? If yes, how can i do it?
Problem: i have a com module as local server. Some requests to the module can take a long amount of time. (Indepth: the module uses another InProcServer com module with threating model "both" that does the real work. "My" com module is only a wrapper that wraps the InProcServer module to a LocalServer module, because i want not to run the com module in the same process as the calling application). The module works fine, but it seems to serialize the requests when used by different applications (which can run under different users in our multiuser environment). Means one application must wait till the request done by the other application is finished...
So my first thought was to configure the module with _ATL_FREE_THREATING that result in a CoInitializeEX(COINIT_MULTITHREADED), but that was not the solution ...
Thanks for your help...
Thomas Maier
|
|
|
|
|
It can be done if you will register your Class Factory with REGCLS_SINGLEUSE. For example, in ATL server
hRes = _Module.RegisterClassObjects(CLSCTX_LOCAL_SERVER,
REGCLS_SINGLEUSE);
With best wishes,
Vita
|
|
|
|
|
Hello,
thanks, works fine...
Thomas Maier
|
|
|
|
|
Hello,
i have a short question and do not find the answer.
Is it possible that a local server COM module (runs as EXE) can run multiple times? If yes, how can i do it?
Problem: i have a com module as local server. Some requests to the module can take a long amount of time. (Indepth: the module uses another InProcServer com module with threating model "both" that does the real work). The module works fine, but it seems to serialize the requests when used by different applications (which can run under different users in our multiuser environment). Means one application must wait till the request done by the other application is finished...
So my first thought was to configure the module with _ATL_FREE_THREATING that result in a CoInitializeEX(COINIT_MULTITHREADED), but that was not the solution ...
Thanks for your help...
Thomas Maier
|
|
|
|
|
How to use MSChart in C#?
|
|
|
|
|
Hi,
I am working on developing a test application in java. I use java for UI only. I use JNI to communicate with a VC MFC DLL. I launch a IE browser instance in one JNI method, which works fine. I store the browser pointer (IWebBrowser2 *) as a C++ class instance variable. BTW, I start a thread on the native side (_beginthread) which in turn calls the method that launches the browser. If I set the navigation URL (Navigate2) in the method that launches the browser then it works fine. But if I add the same code of navigation in some other JNI method then it does not work. It fails with an error code of 0. Why is this happening? Is there any special care to be taken while working with COM pointers? I am using COM smart pointers.
Thanks,
Nikhil
|
|
|
|
|
Hi,
I'm with problems, when I build DCOM componet, I need call back for client but my service is in DCOM and instance for almost clients, ask Do I do the call back ????
|
|
|
|
|
hi there everybody..
wanted some help.
ne ideas what can be the problem with mycontrol...
it gives a dialog "class not registered" followed by an other one "could not open the document"..
any ideas whether there is a problem with the container or the control?
and where to debug from ..ne ideas??
thanks..
|
|
|
|
|
Dear All,
I am developing an application in MFC VC++ Version 6.0 for Windows 2000. The application consists of two modules :
the application itself, and the other module is Autoupdate feature.
I have to integrate the autoupdate application with the application, but at same time there is no major data exchange b/w the two
modules.
I need to pass only two parameters to the autoupdate : The url containing the new exe , the version number and the name of exe.
The autoupdate feature is used to update the application exe. The autoupdate feature itself doesnot need any further upgradations
So is my questions is that whether it is advisable to make :::
a) the autoupdate feature as a COM component. OR
b) the autoupdate module as a seperate EXE which should be called on click of a button from the application OR
c) put whole of the code of autoupdate in the application it self. OR
d) any other way...which i am not thinking of.
Please send your useful suggestions stating what is the most appropriate way .
Feel free to ask any further queries in this regards,
Thanks
Rohit Dhamija
|
|
|
|
|
Why don't you opt for a normal Dll for Autoupdate.exe. Expose a function say "UpdateApp(...)" from that Dll, and it will have 2 parameters as you said.
Whenever you have to update/upgrade/change the EXE/module, call that function of DLL.
Please tell me whether my understanding is wrong.
|
|
|
|
|
Yeah,That will be fine.
Rohit
|
|
|
|
|
Hi
When I pass VARIANT data type throught COM+ event I am getting null data on client. My Event interface I have defined like this
[id[],mehtod("")] HRESULT OnNewClient(VARIANT pVal);
On client side I have tried in _ATL_FUNC_INFO structure VT_ARRAY|VT_BYREF, VT_RECORD|VT_ARRAY|VT_BYREF, VT_BYREF|VT_VARIANT but nothing seems to be working. The client side method I have declared like this
void __stdcall NewClientLoggedIn(VARIANT *pVal); For passing VARIANT data type do I have to modify Fire_OnNewclient(VARIANT pVal) method. Please help in understanding this.
Thanks in Advance
Girish
Girish Nadig
girish_nadig@yahoo.com
|
|
|
|
|
I've created this simple managed c++ class library:
namespace pkFactorialLib
{
public __gc __interface IFactorial
{
int ComputeFactorial(int n);
};
public __gc class Factorial : public IFactorial
{
public:
Factorial()
{
}
public:
int ComputeFactorial(int n)
{
int intFactorial=n;
for(int i=1; i
|
|
|
|
|
Hi, all
recently i'm planing to make an ie plugin to prevent some(not all) scripts running on ie, or even disable download them from the web, i notice norton antivirus 2003 has some kind of function like that -- script blocking. i originally considered the BHO, but there isn't any events about for script running. anybody can let me know that? thanks.
|
|
|
|
|
Hello !
I have some experience with com/webbrowser/mshtml. Recently I run into a very interesting problem, and after spending some days on it(no success) I decided to try geting some answers from other programmers.
So: I wrote a simple browser helper object. On a machine without internet access, when detecting BeforeNavigate2 event, I redirect navigation. For example, if the user enters http://www.google.com, i redirect to http://mygateway/page.aspx?url="http://www.google.com".
This works fine, the problem is I can't redirect the location of the objects in the document (objects; images; flash; etc), and the page can not load them.
I couldn't find an event that fires when a resource download begins, and a mechanism for redirecting these downloads. (please note that implementing a download manager dows not solve this problem; dm objects are invoked only when the user explicitly selects "download targer..." from the context menu for example).
Please let me know if you have any ideas ( is it possible ? is it not ? a source for more info -> i've already read all I could find in msdn and microsoft on this topic and got no answer ).
I don't need specific code / code samples, I only need a hint on how to do it. I'm not interested in parsing the html code and modifying the links. pages may contain flash/applets, and i can't parse them to change the links. I need browser redirection.
As soon as I'll solve this problem, I'll post the project (no mfc; no atl; just pure C++/Com).
All the best,
psangeljg
ps. I did find a solution, but it's not what I want. I figured that mshtml uses wininet (wininet.dll) to access the resources. I could write my own wininet.dll that calls the actual wininet.dll, changing the urls. However, I try to avoid this soultion, since wininet.dll varies with the os version. Performance is also important.
|
|
|
|
|
The problem is most likely due to relative urls.
You need to rewrite all urls in the orignal document to absolute urls.
|
|
|
|
|
Yep, just like Stefan said.
You can obtain a pointer to the HTML document you have loaded after you get the documentComplete event. Trough that pointer you can get and set for example the sources of the images or objects found on the page.
|
|
|
|
|
that's similar to parsing; you can't manage activex controls, links embedded in flash objects and the like;
this works only for good old fashioned html, and that's not the case here;
I need a tool that can handle any web page; the solution I implemented after one week of searching for alternates was using proxy server.
That's also what igor1960 proposed, and it seems to me it's the only answer. Writing a proxy server is not a very complicated task, so it is an acceptable solution.
|
|
|
|
|
Maybe there is way to do that by setting proxy server?.
"...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..."
Me
|
|
|
|