|
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!!
|
|
|
|
|
If you have the server thread processing the requests for one client in a tight loop, it can't accept other connections.
Tim Smith
I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
|
|
|
|
|
hkl wrote:
flag = socket.Receive(buff,sizeof(buff));
Execution in this thread blocks until Receive can get (sizeof(buff)) bytes of data. You should probably use CAsyncSocket; it would probably meet your requirements better.
Jon
Sorry to dissapoint you all with my lack of a witty or poignant signature.
|
|
|
|
|
That is because the thread Accept() ing the connection is the same that Receive() s the request on the socket.
You must dispatch the socket returned by Accept() first param to another thread, which will Receive() , preventing the server thread from blocking.
If you have problem understanding this concept, I suggest that you read this:
http://www.codeproject.com/useritems/winsockintro03.asp
Michel
If I am wrong or said something stupid, I apologize in advance
|
|
|
|
|
that's all,
i want to know if it possible pass a array of doubles like parameter by reference to a function and in the case it was possible how.
Thanks in advance.
|
|
|
|
|
You just want to change the array elements in the function?
Tomasz Sowinski -- http://www.shooltz.com ** If you're going to rape, pillage and burn, be sure to do things in that order. **
|
|
|
|