|
Which is your default web browser ? Is that IE ?
What is the time delay caused normally when you open a new web browser window , is that 20 seconds average ?
If both the answers are YES; there is no problem with ShellExecute.
Other wise, this should be because the ShellExecute broadcasts a message to already running windows to get an instance of the web browser (or Looking in ROT table[^] for an active object) and waiting for that application instance to respond to the new request. Any way I have now valid links to prove this hypothesis.
|
|
|
|
|
The problem happens with both FireFox and IE and 20 seconds is not the default startup time for the browser.
Is it possible to avoid looking in ROT or to avoid broadcasting messages ?
My goal is to open IE with a specific document... maybe it can be done with something easyest than ShellExecute with "open" parameter.
|
|
|
|
|
ilgale wrote: My goal is to open IE with a specific document...
Is this a big document ? If yes, that's probably the reason why you encounter this delay. Try to open the document manually and see how long it takes to open it.
|
|
|
|
|
The document is very easy.. and if I manually open it... it takes 0 seconds to be opened.
Now we have found a relation with a functionality of a Data Acquisition board made by
National Instruments.
If the thread that perform ShellExecute call has created a counter task for the data acquisition board the WebBroswer takes long time to be opened. If we don't create the
task, the WebBrowser is opened immediately.
We could suppose that National Instruments drives "do" something, maybe in ROT, that create
some problems...
|
|
|
|
|
Have you tried this:
ShellExecute(NULL, "open", fully_qualified_path_to_folder, NULL, NULL, SW_SHOW);
This has always worked fine for me in the past.
|
|
|
|
|
It is the browser start-up time, I suppose.
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
[My articles]
|
|
|
|
|
Hello,there guru
I found a reg file on the website,but I don't know what's its mean?
Can you explain me some detail,thank you very much.
//show.reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\NOHIDDEN]
"RegPath"="Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced"
"Text"="@shell32.dll,-30501"
"Type"="radio"
"CheckedValue"=dword:00000002
"ValueName"="Hidden"
"DefaultValue"=dword:00000002
"HKeyRoot"=dword:80000001
"HelpID"="shell.hlp#51104"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\SHOWALL]
"RegPath"="Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced"
"Text"="@shell32.dll,-30500"
"Type"="radio"
"CheckedValue"=dword:00000001
"ValueName"="Hidden"
"DefaultValue"=dword:00000002
"HKeyRoot"=dword:80000001
"HelpID"="shell.hlp#51105"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\SuperHidden]
"Type"="checkbox"
"Text"="@shell32.dll,-30508"
"WarningIfNotDefault"="@shell32.dll,-28964"
"HKeyRoot"=dword:80000001
"RegPath"="Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced"
"ValueName"="ShowSuperHidden"
"CheckedValue"=dword:00000000
"UncheckedValue"=dword:00000001
"DefaultValue"=dword:00000000
"HelpID"="shell.hlp#51103"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\SuperHidden\Policy]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\SuperHidden\Policy\DontShowSuperHidden]
@=""
//hide.reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden]
"Text"="@shell32.dll,-30499"
"Type"="group"
"Bitmap"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,53,00,\
48,00,45,00,4c,00,4c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,34,00,00,\
00
"HelpID"="shell.hlp#51131"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\NOHIDDEN]
"RegPath"="Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced"
"Text"="@shell32.dll,-30501"
"Type"="radio"
"CheckedValue"=dword:00000002
"ValueName"="Hidden"
"DefaultValue"=dword:00000002
"HKeyRoot"=dword:80000001
"HelpID"="shell.hlp#51104"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\SHOWALL]
"RegPath"="Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced"
"Text"="@shell32.dll,-30500"
"Type"="radio"
"CheckedValue"=hex(4):30,30,30,30,30,30,30,30,00
"ValueName"="Hidden"
"DefaultValue"=dword:00000002
"HKeyRoot"=dword:80000001
"HelpID"="shell.hlp#51105"
多线程脑袋
|
|
|
|
|
Nobody knows. Moreover googling for it will give you merely 24,600,000 results [^]
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
[My articles]
|
|
|
|
|
Can you explain me the key and the value below:
"Text"="@shell32.dll,-30501"
How to View shell32.dll content(the negative number after it)
I use the resouce hacker view but the value is not the negative number
多线程脑袋
|
|
|
|
|
Is there any rule about shell32.dll and the negative number after it which Microsoft provide for us???
多线程脑袋
|
|
|
|
|
thank you for your replay,I get it.
多线程脑袋
|
|
|
|
|
|
I have a DWORD value 1619.
Corresponding error message to this value is :
"This installation package could not be opened. verify that the package exists and that you
can access it, or contact the application vendor to verify that this is a valid windows installer
package"
Is there a way (an API) which I could use to get the error message (as a string) by providing the DWORD value ?
Thanks in advance
|
|
|
|
|
Sometimes documentation [^] helps.
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
[My articles]
|
|
|
|
|
i have an application where i have to connect 3 deivce on TCP/IP. I would receive data from any of the device when it requested from the PC.
Could any one help me on how to proceed about this requirement. I read few literature on Multi threading but i am not sure how to implement multithreading in VC++.
|
|
|
|
|
diptipanchal wrote: Could any one help me on how to proceed about this requirement
Yes, I can.
diptipanchal wrote: I read few literature on Multi threading but i am not sure how to implement multithreading in VC++.
SO what is the problem now? Didn't you understand the mechanism for multithreading ie how to start the threads and keep on collecting data for each one of them.
Have you started to write some code and can you show it?
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
Here[^] is one of the best article on the subject. There are code snippet and all so it contains everything you need.
|
|
|
|
|
Hello all,
I have a doubt here:
If i have three socket connections does it make it necessary to have them in 3 separate threads(to ensure concurrent reception of data from all three)? Or is it that since the OnReceive() functions of the respective socket class are independent events that are all capable of getting triggered at the same time (as perceived by the application), thus, can exist under one single thread?
|
|
|
|
|
Hi friends,
I'm researching on Timers in Windows and I've read "Timers Tutorial" in codeproject from this link:
"http://www.codeproject.com/KB/system/timers_intro.aspx" but I would like to know:
Do we have any timer with the nanosecond precision or no?
Thanks in advance
|
|
|
|
|
Mohammad Khodaea wrote: Do we have any timer with the nanosecond precision or no?
AFAIK, No
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
I don't think nanosecond precession is possible with windows timers. But i believe with multimedia timers nanosecond precession is possible.
|
|
|
|
|
Mohammad Khodaea wrote: Do we have any timer with the nanosecond precision or no?
No, and anyway Windows is not a real-time operating system so you can't achieve that precision. I'm afraid you'll need to switch to a real-time operating system and I'm even not sure that you'll be able to reach that precision.
|
|
|
|
|
Mohammad Khodaea wrote: Do we have any timer with the nanosecond precision or no?
I think Yes! please check QueryPerformanceCounter
You can find C# code and details here[^]
|
|
|
|
|
see this
visualcsamples.blogspot.com/2009/01/microsoft-visual-c-timer-example.html
i made it...
|
|
|
|
|
Mohammadj wrote: i made it...
What ?
Is that a sample for QueryPerformanceCounter ? Or something related with Nano seconds ?
|
|
|
|
|