|
Can you explain what do you mean by executing a URL because that would clarify your needs and help us to understand your problem better. Currently at least I don't get the point of executing a URL and hiding the window. Why to execute if you don't want to see it?
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
well, if he already has a browser window open and he executes a "ShellExecute" in his case it will open a NEW browser window instead
of just re-using the current browser window.
but I'm probably wrong in my translation of the original question.
|
|
|
|
|
OH! Now I see. So probably he should rephrase his Question. That said, I now know the reason for not being able to understand his query.
If IE is currently running don't open it but use the existing window to reflect the content of the URL requested Or else ...( is still in question) Hmm!!!
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
_AnShUmAn_ wrote: OH! Now I see. So probably he should rephrase his Question.
Why? It made perfect sense to me.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
surezu wrote: How to execute a particular URL without creation of new browser window in ShellExecute?
You can't. ShellExecute() is not going to search for running instances of the program associated with the third argument (i.e., the URL in your case).
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
There is no way you can achieve this using ShellExecute .
Probably, you can consider using IWebBrowser2 Interface[^].
|
|
|
|
|
If you really want to stick onto the shellexecute command, may be configuring the browser to force to open in same window may be useful (I won't prefer )
You can change the settings of internet explorer in "Internet Options" to use same window.
for instance in IE7
You can change HKCU\Software\Microsoft\Internet Explorer\TabbedBrowsing -> ShortcutBehavior to 0, 1, 2.
0 is new window
1 is new tab
2 is current tab or window
or disable tabbed browing and resuse same window as
HKCU\Software\Microsoft\Internet Explorer\Main\AllowWindowReuse
Or Automate Running Instance[^]
I prefer to host in my own application using CHtmlView(MFC)
|
|
|
|
|
|
No. When your application terminates (even without closing the port properly) you will have access to the port. Are you sure you have a COM1 ? You should check with HyperTerminal if you can open the port or not.
EDIT: on a side note, just imagine what would happen if that was true. Can you imagine the mess it would be if, by simply forgetting to close the port, that would break the serial port ?
|
|
|
|
|
Hi,
My VC6 (MFC) project folder contains 60-70 files. I want to put all custom controls and common control class files into a folder and add that folder to my project workspace.
I tried adding a new folder to the "file view" tab and then adding the files to it. But when I debug, I get the error that so-and-so file not found.
Please can you tell me the correct way of doing this?
Thanks,
Tara
|
|
|
|
|
Have you tried this?
Create the folder "common" and put all the classes there with the windows explorer. Then go to "project -> add to project" menu and select the files of the folder.
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
I tried it. But sadly it does not work.
Thanks,
Tara
|
|
|
|
|
I am new to this stuff.
I am creating a logging utility. Please help me know what should be included in the initializelog() function. I am also creating a properties file for this from were the initializelog() will read the values. Also what kind of fields should be included in the properties file.
THanks...
|
|
|
|
|
pl_kode wrote: . Please help me know what should be included in the initializelog() function
How would we know that ? what are your requirements ? what are the specifications ?
|
|
|
|
|
pl_kode wrote: Please help me know what should be included in the initializelog() function.
Using my magic eight ball, I foresee initialization-related things going into that function.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
Is there any API exists to convert windows messages such as "WM_CLOSE" into its integer value.
I means when I provide "WM_CLOSE" as a string it should then convert it into its integer value.
Thanks,
Mushq
|
|
|
|
|
Nope, AFAIK. Why do you need it?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
CPallini wrote: Why do you need it?
For Readability purpose
Actually I have got dialog based application that contains an edit box for writing "Windows Message”, so that user should provide "WM_CLOSE" as an input to that edit box instead of its integer value.
Regards,
Mushq
|
|
|
|
|
I think you may build a map with the info extracted from the Windows headers.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Why don't you instead populate a list with the different messages the user can send to the window ? This way you can associate yourself the message text ("WM_CLOSE") with its value. And it is more secure in the sense that the user can only enter valid messages.
|
|
|
|
|
HI all experts,
Win32_SerialPort
Win32_SerialPortConfiguration
Win32_SerialPortSetting
I want to use these APIs to get detail information
about ports.but i m fail to use them in correct way.
plz anyone can send me the Sample source code
or procedure of how to use and get my aim.
I also visit the MSDN for more info.. but still confused.
Please Help me..
I m waiting..
THnaks in Advance.....
|
|
|
|
|
Well, I think MSDN [^] is the best resource for.
What does make you confused?
BTW CP [^] is another good resource.
Sorry, it seems I missed the target.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
modified on Wednesday, April 30, 2008 10:05 AM
|
|
|
|
|
Somesome modified your post .
|
|
|
|
|
It was my double personality, I think. No, wait, I'm not thinking that. Actually, maybe I was just thinking that...
That..., what?
Remember: CPallini abuz...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Man, you are crazy but cool
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|