|
This is working. Thank you for the Help.
HKEY_CLASSES_ROOT\Applications\iexplore.exe\shell\open\command
Thank you once again.
Thanks and Regards.
SANTHOSH V
|
|
|
|
|
I believe that:
WinExec("iexplore.exe",SW_NORMAL);
will execute Internet Explorer.. As IE is usually pre-installed with Windows, it is often recognised as a command line function..
For example, opening up the "Run" box in windows (Windows key+R) and typing in "iexplore.exe", Internet Explorer WILL run.
Hope this helps!
--PerspX
"Nowadays, security guys break the Mac every single day. Every single day, they come out with a total exploit, your machine can be taken over totally. I dare anybody to do that once a month on the Windows machine." - Bill Gates
|
|
|
|
|
I tried this.
WinExec("iexplorer.exe",SW_NORMAL);
Bus it is not working.
Because IE is not istalled in Windows Directory. In my system, it is in "C:\WINDOWS\ie7\iexplorer.exe". It is about the version also. We can`t say it is constant in all the system. So there must be other solution.
Thanks and Regards.
SANTHOSH V
|
|
|
|
|
Hi,
The question is what do you want to achieve? Do you just want to open a browser window (user default browser or specifically IE?) or do you want to display a web site.
You should also take ShellExecute into consideration. This method allows you to also open a website using the default browser or IE directly and it shouldn't matter where your browser is installed.
Hope this helps.
Best regards
|
|
|
|
|
ShellExecute(NULL,"open","about:blank",NULL,NULL,SW_SHOW);
or
keybd_event(0xac,0,0,0);
keybd_event(0xac,0,KEYEVENTF_KEYUP,0);
|
|
|
|
|
Thank you. It is working.
Thank you for the kind help.
Thanks and Regards.
SANTHOSH V
|
|
|
|
|
But did you see MSDN about this function,of the MSDN
"Note This function is provided only for compatibility with 16-bit Windows. Applications should use the CreateProcess function."
|
|
|
|
|
You can either let the OS decide which browser to open by calling ShellExecute() with the name of the HTML file you want to open, or you can call FindExecutable() (or AssocQueryString() ) to get the full path of the associated application.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I can't get the pin category property in my directshow program, I try all pins in all filters(pSrcFilter, pMux, pMpeg2Splitter, pDecoder, etc), but every pin can't query the IKsPropertySet, it alawys return fail, so i can't know that the pin category is PIN_CATEGORY_CAPTURE or PIN_CATEGORY_PREVIEW, why? please give me some suggestion.
IKsPropertySet *pKs;
hr = pPin->QueryInterface(IID_IKsPropertySet, (void **)&pKs);
if (FAILED(hr))
{
return FALSE;
}
|
|
|
|
|
For pins, you'll mainly find the IKsPropertySet interface on capture filter pins.
Here's some sample code that may help:
Working with Pin Categories[^]
Mark
Mark Salsbery
Microsoft MVP - Visual C++
This episode brought to you by the number 3
|
|
|
|
|
it's not decode filter,only process video stream.
the merit of it is 0x800200.
when I render a mediafile using graphedit,it is loaded.
But when I use Mediaplayer,it can't be loaded autoly.
how can I do? If I want Mediaplayer can autoload it.
|
|
|
|
|
What is wrong (message, crash, ...) ?
|
|
|
|
|
|
Hi Alan,
The code is working fine for me, I am using VS2005.
Regards,
Rameshkanth
|
|
|
|
|
|
Is there any way to set the m_pMainWnd directly to a sys tray icon (NOTIFY ICON) and not to a dialog(form) and then minimize it to sys tray because it takes unnecessary memory(RAM) ?
So when i start the application to have only a icon in the tray not the dialog + icon
|
|
|
|
|
Can "ShowWindow (FALSE)" help u?
The dialogbox will be created but not visible, then you can set it to true when clicking in the systray icon
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?
|
|
|
|
|
use:
ShowWindow(SW_HIDE); <- will hide the application from task bar
check winuser.h for further options
most useful
SW_NORMAL
SW_SHOWMINIMIZED
SW_MAXIMIZE
you can do this is MainFrm
then use your TrayIcon controller to open and close the application.
p.s it does drop the use of ram a lot and also cleans up the task bar
does fill up the systray but windows hides those
|
|
|
|
|
No, a tray icon must be owned by a window. And besides, a tray icon is not a window, so "pointing" to a tray icon doesn't make sense.
|
|
|
|
|
Is there ne problem in the code below:-
Critical_Section cs;
main()
{
EnterCriticalSection(&cs);
EnterCriticalSection(&cs);
LeaveCriticalSection(&cs);
LeaveCriticalSection(&cs);
}
|
|
|
|
|
Why are you entering and exitting the critical section twice? Critical sections are designed for exclusive entry into a location with threads, similar to a mutex, but the command issued to the cpu is a lock memory routine not a mutex counter resulting in slightly different behavior at the CPU level. I would have to compile to see what the cpu would think of entering and exitting twice, but I would recommend against it, and even if it "were" to work, you would have gained nothing over entering once. Use it like this:
thread1()
{
EnterCriticalSection(&cs);
// protected code here
LeaveCriticalSection(&cs);
}
main()
{
EnterCriticalSection(&cs);
// more protected code here
LeaveCriticalSection(&cs);
}
_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
|
|
|
|
|
Isn't it a deadlock type situation? I say 'deadlock type' since there will be eventually an exception raised by second EnterCriticalSection(...) as it waits and then times out because the first EnterCriticalSection(...) didn't leave yet.
-- Soyuz
|
|
|
|
|
This won't deadlock but I don't see the reason at all for entering your critical section twice.
It won't deadlock because of that (from MSDN):
After a thread has ownership of a critical section, it can make additional calls to EnterCriticalSection or TryEnterCriticalSection without blocking its execution. This prevents a thread from deadlocking itself while waiting for a critical section that it already owns. The thread enters the critical section each time EnterCriticalSection and TryEnterCriticalSection succeed. A thread must call LeaveCriticalSection once for each time that it entered the critical section.
|
|
|
|
|
tom groezer wrote: Is there ne problem in the code below:-
Such as:
No definition for Critical_Section .
main() does not return a value.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I have aan application that loads dll A and dll B. Now dll A also loads dll B. If I'm correct only one copy of dll A and Dll B will be loaded.
1) How shall the memory map look like given that there is no rebasing.
2) How will the stuff work in case of implicit loading and explicit loading.
3) Suppose the application explicitly unloads the dll A. I dont think dll B will be unloaded. How shall the m/m map be chaged.
4)Any comments if there were static libraries replacing the dlls
|
|
|
|