|
this error is always or now and this error is for all your programs or only for this program
whitesky
|
|
|
|
|
|
Hi,
Is there a way to close an invisible web browser? how do i detect the web browser and close it??
Thanks!!
|
|
|
|
|
You have to do COM Programming. Interface of Internet Explorer com object is IWebBrowser2. You have to get the invisile instance of IE by calling CoGetObject() COM API. Then you can call it's interface methods to close the Invisible Browser.
Once you get the COM instance of API. Then call the COM method ExecWB of IWebBrowser2 with parameter OLECMDID_CLOSE. Then the invisible browser will be closed.
OK ?
Regards,
Benoy Bose
|
|
|
|
|
Hmm ok.. but i cant find CoGetObject in MSDN library. May I know where can i find the declarations?
Thanks!
|
|
|
|
|
KongHL wrote: Is there a way to close an invisible web browser? how do i detect the web browser and close it??
Are you sure there is Invisble Webbrowser
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Yes.. U can create IWebBrowser2 object and make it visible or invisible..
|
|
|
|
|
KongHL wrote: U can create IWebBrowser2 object and make it visible or invisible..
your Answer is hidden in this object!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
??
The problem is i created the browser in a dll (in a thread).. when i tried to terminate the thread, the browser is not closed via the quit() function.
Hence I am trying to close in in the main program.. but this way, i dun have the instance of it.. I need to find it and close it right?
|
|
|
|
|
KongHL wrote: The problem is i created the browser in a dll (in a thread).. when i tried to terminate the thread, the browser is not closed via the quit() function.
Hence I am trying to close in in the main program.. but this way, i dun have the instance of it.. I need to find it and close it right?
Why Not have that Variable of Webbrowser as Class member and pass the current instance of class object to thread, and using that Variable so that you can manipulate the browser from teh Main program..
don't forget to add CoInitialize(NULL)
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Dear all,
How to place SDL ( simple Directmedia layer) in MFC application.So that we can view sample movie from the screen
Manjunath S
GESL
Bangalore
|
|
|
|
|
you answer to many quesitons SDL
Is SDL class?
whitesky
|
|
|
|
|
Manjunath S wrote: How to place SDL ( simple Directmedia layer) in MFC application.So that we can view sample movie from the screen
1) Create your MFC application project.
2) Download SDL runtime library (SDL.DLL) from HERE[^].
3) Copy SDL.DLL into your project folder.
4) Read those documents at SDL website, such as THIS[^] and THIS[^] ...
Maxwell Chen
|
|
|
|
|
|
toxcct wrote: are you kidding ??????
Control your Anger buddy, otherwise i have to call FireFighter
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
it's his 4th post ask with the same stupidity...
and after that, one ask me not to call him "idiot" ?!
damn it
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
Tox sorry to say this. Yes, *YOU* cannot call him an idiot. Its because you have got *MORE* reputation than what you think you have here. People love you *MORE* than what you know here. David Crow asked you not to call him idiot because he was concerned about your reputation. You have a good intellect and a nice helping mind. May be you don't even know me. How many members are there as of now? *A LOT* know you but. So, as David already pointed out, please ignore such posts. Keep your good job up.
|
|
|
|
|
Aljechin wrote: David Crow asked you not to call him idiot because he was concerned about your reputation. You have a good intellect and a nice helping mind. May be you don't even know me. How many members are there as of now? *A LOT* know you but. So, as David already pointed out, please ignore such posts. Keep your good job up.
Yeap you are 100% right! %thumbs Up%
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
toxcct wrote: damn it
Calm down Buddy, thats my only advice to you!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
toxcct wrote: it's his 4th post ask with the same stupidity...
Yeah I've read his previous posts on this topic. I think he hasn't known how to use those Internets search engines such as Google or Yahoo, and that's why I provided him the link to download SDL.DLL ...
Maxwell Chen
|
|
|
|
|
Hi All,
I am having a request xml (SOAP). It has to be HTML Encoded . In my search i got all URL encoding results.
Can any one help me to do HTML encoding. Is there any separate API for it?
Thanks in advance,
Poornima
|
|
|
|
|
Can somebody please point me what are disadvantages of MultipleInheritance.
|
|
|
|
|
|
Hi,
I have the file named "mobi.avi",
I used fopen() with the prama mode is "w+" to open this file for my checking in my function, but while this file is opening by the orther program as Window Media then the function will show the error is file can not access. But my problem is when I stop play the file with Window Media, the file removed.
So, I want to ask you how can i do with not remove the file when open error,
Please help me!
Thank in advacnce
|
|
|
|
|
<edit>
In general, try MSDN for this kind of problems (and heaps of other information).
http://msdn1.microsoft.com/en-us/default.aspx[^]
From MSDN:
The character string mode specifies the type of access requested for the file, as follows:
"r"
Opens for reading. If the file does not exist or cannot be found, the fopen call fails.
"w"
Opens an empty file for writing. If the given file exists, its contents are destroyed.
"a"
Opens for writing at the end of the file (appending) without removing the EOF marker before writing new data to the file; creates the file first if it doesn’t exist.
"r+"
Opens for both reading and writing. (The file must exist.)
"w+"
Opens an empty file for both reading and writing. If the given file exists, its contents are destroyed.
"a+"
Opens for reading and appending; the appending operation includes the removal of the EOF marker before new data is written to the file and the EOF marker is restored after writing is complete; creates the file first if it doesn’t exist.
When a file is opened with the "a" or "a+" access type, all write operations occur at the end of the file. The file pointer can be repositioned using fseek or rewind, but is always moved back to the end of the file before any write operation is carried out. Thus, existing data cannot be overwritten.
Probably you want to use "r"
|
|
|
|