|
datastruct wrote:
CDialogBar is modeless, the handle is lost and i get an "enormous" assertion error
if you want it you should save it.
God is Real, unless declared Integer.
|
|
|
|
|
Does anyone know where I could get a free program that intercepts Winsock Messages on a specific port, and displays the message for debugging programs? Thanks a bunch....
-KMaz
|
|
|
|
|
google on ethereal
TOXCCT >>> GEII power
|
|
|
|
|
ethereal is a freeware, 10Mo heavy...
TOXCCT >>> GEII power
|
|
|
|
|
cant say for sure, but try running "netstat" from the command-promt in a seperate window when u run ur program.
Well, netstat gives list and condition of all active connections and at-times becomes very messy, but try it if u dont find anything else.
...Avenger
Remember... testing & debugging are always part of programming ...so exterminate those stinking bugs
|
|
|
|
|
I have a common C++ program and try to execute DoModal() on my dialog. When I do it from within the view it goes well but when i do it from another dialog that is a child to the view the dialog doesn't get focus even though i click in it. When I click on my program down in the program bar, the dialog gets focus. Anybody had this problem?
Robert
|
|
|
|
|
yes it does. just take care off the return value of OnInitDialog()
TOXCCT >>> GEII power
|
|
|
|
|
What do you mean by take care of. I can override OnInitDialog and get the value that the base class returns, but what should I do with it.
|
|
|
|
|
the last OnInitDialog () line is that one :
<font style="color:blue;">return </font>TRUE; <font style="color:green;">
what does it make you fell ??
TOXCCT >>> GEII power
|
|
|
|
|
toxcct wrote:
what does it make you fell ??
I feel that you must be feeling very stupid with your answer.
God is Real, unless declared Integer.
|
|
|
|
|
Did you set the pointer to the first dialog as a parent of the second?
Robert-Antonio
"Give a man a fish, he owes you one fish. Teach a man to fish, you give up
your monopoly on fisheries."
|
|
|
|
|
Solved it. the problem was that I posted the message to another window that created the dialog.
|
|
|
|
|
Is it possible to "reuse" the explorer context menu?
I have a file name, and want to Windows Explorer context menu for that file as a sub-menu of my own context menu. Execution of the command etc. should all be left to explorer (i.e. I don't want to "interfere" with this)
Flirt harder, I'm a Coder
mlog || Agile Programming | doxygen
|
|
|
|
|
peterchen wrote:
I have a file name, and want to Windows Explorer context menu for that file as a sub-menu of my own context menu
I belive you are talking abut shell extension, Micheal Dunn has few articles on what you are looking for.
God is Real, unless declared Integer.
|
|
|
|
|
No, I don't want to write a shell extension, I just hope to find a way to reuse this menu (without turning the file name into a PIDL and then playing explorer - I roughly know the protocol how this menu is created )
But you're right, I should have thought of Michaels articles, I'll check them....
Flirt harder, I'm a Coder
mlog || Agile Programming | doxygen
|
|
|
|
|
Can somebody please explain what I have to do in order to have CButton controls on dialog respond to WM_CHAR messages (and not to use PreTranslateMessage() ). I tried to put OnChar() in my instance of CDialog with classWizard but the dialog just beeps when I press keys.
|
|
|
|
|
Are you talking about shortcut keys ? did ya try putting '&' before one of the char in the dialog button text ?
God is Real, unless declared Integer.
|
|
|
|
|
Did you try it by subclassing cbutton.....you should derive your own class(CMyButton) from CButton and use CMyButton on your dialog box instead of CButton and then add the messagemap for WM_CHAR ...it will work...
cheers
|
|
|
|
|
When you detect a second instance is being launched, why not call ShowWindow(SW_RESTORE) ?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Wait... so the 1st instance should control how many instances should run and not the 2nd one? Right now, I'm using CWinApp::InitInstance to check if an instance is already running. If so, I don't create the dialog and return FALSE so that instance exits.
---------------
Tired of Spam? InboxShield for Microsoft® Outlook® and Outlook Express®
http://www.inboxshield.com
|
|
|
|
|
Read these two articles on how to handle multiple instances:
http://flounder.com/nomultiples.htm
http://naughter.com/sinstance.html
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
|
You cud try some IPC mechanism (mutex, event etc) to communicate between the 1st and 2nd instance. When the 2nd instance comes up it cud for e.g set an event in the 1st instance to signal it to show itself.
-Mel
|
|
|
|
|
melwyn wrote:
You cud try some IPC mechanism (mutex, event etc) to communicate between the 1st and 2nd instance
yes, it will work to determine that another instance is running, but how will you use to restore the window ???
God is Real, unless declared Integer.
|
|
|
|
|
I had used this technique long back...
Registered a windows message. when another instnce is found then broadcast the message.
Handle the event and post showwindow to your main window.
God is Real, unless declared Integer.
|
|
|
|