|
Did you find a solution to this?
I'm facing a similar problem working on creating ShellExtensions.
Thanks!
|
|
|
|
|
Happened to me as well.
Attached the shell extension dll to SearchFilterHost.exe for debugging purpose, after the debugging finished I need to rebuild the dll but encountered the problem abovementioned.
Solution is to stop SearchFilterHost.exe in task manager afterwards.
|
|
|
|
|
Does anyone know of a method to return a list of files that a current executable is using? I will be doing this in C# but would like to get some input from anyone. Thanks in advance.
Nick Parker
|
|
|
|
|
What do you mean by 'associated files'? File extensions associated with an application? Or files open by the app in given moment?
PS: it's forbidden to use words like 'C#' in this forum
Tomasz Sowinski -- http://www.shooltz.com
- It's for protection - Protection from what? Zee Germans?
|
|
|
|
|
Tomasz Sowinski wrote:
What do you mean by 'associated files'?
Any supporting files the executable requires to run.
Tomasz Sowinski wrote:
PS: it's forbidden to use words like 'C#' in this forum
In the big picture were all in the same boat aren't we.
Nick Parker
|
|
|
|
|
Nick Parker wrote:
In the big picture were all in the same boat aren't we.
In this particular case, no
If you have unmanaged .exe - like the ones produced by VC6 - you can use depends.exe to check which .dlls program is explicitly linked to. However, program may load any .dlls at runtime with LoadLibrary and link to their functions with GetProcAddress.
Managed assemblies created by C# are totally different story.
Tomasz Sowinski -- http://www.shooltz.com
- It's for protection - Protection from what? Zee Germans?
|
|
|
|
|
Tomasz Sowinski wrote:
In this particular case, no
I guess I was looking at the Bigger picture, not just the application that I am going to be working on. I understand there are many million different ways to do things, especially when different languages are feasible for an operation, I guess it was more of a philosophical statement really.
Nick Parker
|
|
|
|
|
You need to use the depends utility. Is under Visual Studio Tools menu....
Best Regards
Carlos Antollini.
Sonork ID 100.10529 cantollini
|
|
|
|
|
I noticed that when you make a new submenu for any of the menus, you can add a function for COMMAND or UPDATE_COMMAND_UI
What do these two things mean?
|
|
|
|
|
COMMAND handler is called when user clicks on the menu item - you put the real work there.
UPDATE_COMMAND_UI is called in response to WM_INITMENUPOPUP, just before displaying the menu. It gives you the opportunity to enable/disable/check/change the text of menu item.
If your menu item is always enabled, you don't need UPDATE_COMMAND_UI.
Tomasz Sowinski -- http://www.shooltz.com
- It's for protection - Protection from what? Zee Germans?
|
|
|
|
|
Not sure if I've understood what your saying properly, but ON_COMMAND is where you tell your class what to do upon receiving that command message and ON_UPDATE_COMMAND is where you tell your class what to do when that menu needs to be updated (in your AFX_MSG_MAP part of your message map)
E.g.:
<br />
ON_COMMAND(ID_OPTIONS_FONT, OnOptionsFont)<br />
ON_UPDATE_COMMAND_UI(ID_OPTIONS_FONT, OnUpdateOptionsFont)
Heres the MSDN info:
ON_COMMAND, ON_UPDATE_COMMAND_UI
Dylan Kenneally
London,UK
|
|
|
|
|
Is there any way to know from inside an Explorer bar what page is
displayed on the main window of the web browser, and/or catch
events (HTML) from that page?
~!~!~
|
|
|
|
|
Hi,
Sorry about very stupid question.
How to show non modal dialog using MS VC++ 6.0.
Tranks,
Stefan
|
|
|
|
|
After CDialog::Create , call ShowWindow(SW_SHOW) .
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Thanks,
this is exactly what I do.
The problem is that modeless dialog stays always over its parent dialog, even when it is not focused. How to prevent this behaviour.
Thanks again
Stefan
|
|
|
|
|
To the best of my knowledge, you can't. This is standard behavior.
/ravi
"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Maybe you can get the effect you want by making the desktop (GetDesktopWindow ) the parent of your modeless dialog.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
They are called modeless dialogs.
You can read this article :-
http://www.codeproject.com/useritems/gettingmodeless.asp
Nish
I am the Keyboard Smasher
|
|
|
|
|
Nish: I don't know HOW many times I've seen you change your signature!
------------------------------------
Rickard Andersson, Suza Computing
ICQ#: 50302279
I'm from the winter country SWEDEN!
------------------------------------
|
|
|
|
|
How can I make use of CRebar and CToolBar in a dialog-based window? (I dont want to use CRebarCtrl/CToolBarCtrl)
ps: does MS intend to support MFC any further or is it going the way of the dodo?
|
|
|
|
|
Check MFC sample called DLGCBR32.
UGenn wrote:
does MS intend to support MFC any further or is it going the way of the dodo?
New version of MFC is included in VS.NET.
Tomasz Sowinski -- http://www.shooltz.com ** If you're going to rape, pillage and burn, be sure to do things in that order. **
|
|
|
|
|
My app creates html fire reports when it surprisingly enough detects a fire. I need the enum all the printers and print this html fire report inside a CWebBrowser2 controls on all the connected printers. I do this by setting the default printer, and printing, and then setting the default printer again etc.
I use the SetDefaultPrinter command. This worksd fine. The problem is though that it only works in Win2000+. MSDN says that I should use the following code on < Win2000
GetProfileString(TEXT("Windows"),TEXT("Device"),_T(",,,"),m_szName, COUNTOF(m_szName));
WriteProfileString(TEXT("Windows"),TEXT("Device"),pszPrinterName ));
#if WM_WININICHANGE != WM_SETTINGCHANGE
SendNotifyMessage(HWND_BROADCAST,WM_WININICHANGE,0,(LPARAM)szWindows);
#endif
SendNotifyMessage(HWND_BROADCAST,WM_SETTINGCHANGE,0,(LPARAM)szWindows);
I can't seem to get this to work I'm not quite sure what I should set szWindows to....
Can anyone help please? Thanks
Jeremy Davis
http://www.astad.org
|
|
|
|
|
Hello,
Can any one point me to a real time programming tutorial with vc?
tnx
|
|
|
|
|
Windows OSs are not real-time by nature, so your question seems a little unclear to me. Could you please ellaborate some more?
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Hi,
Can anyone please give me any comment or solution to this situation??
In my program, I've used multithread (many clients) to send message to one thread(Server). However, I realized that only the first client can get access to the server from start to end, other clients are always blocked. Can anyone help me to solve this problem, so that all clients can access the server??
The following is the code of the server:
if ( svrSocket.Accept(socket))
AfxMessageBox("Socket is created Succesfully");
while (...)
flag = socket.Receive(buff,sizeof(buff));
....
Please HELP! Thank you!!
|
|
|
|