|
After Cedric's response, you know that your question is hard to understand, but here I go:
You have two modeless dialogs (main1, main2) that are children of a Parent dialog (Papa Window). Each dialog can show its modal child dialog. Now when one of the dialogs (main1 or main2) shows its Modal child dialog, the focus can still be brought back to the other one (main1 or main2).
You want this:
When any one of (main1 or main2) shows its modal child dialog, you want that modal to be modal for both main1 and main2.
The solution:
Make the parent of main1 or main2's modal child dialog a child of "Papa Window" instead of main1 or main2.
Hope that helps.
this is this.
|
|
|
|
|
Okay so I give up, I have a VS2005 standard edition. Just experimenting with it at this point, I created a small MFC dialog based app (nothing more than a simple MP3 player). The app compiles fine on my development machine (W2K) runs just fine on a second machine (another W2K box) and also runs just fine on my W2K server. However, when I run it on any XP system I get the ever so enlightening
“This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem”
I am not using any managed code just plain vanilla MFC, I checked with dependency walker and have included the necessary dlls (mfc80u.dll, msvcp80.dll, msvcr80.dll and msvfw32.dll)
I even created an installer with VS, when run on the XP systems it errors out with a dependency of .NET 2.0. Will I need to include .NET 2.0 as an external dependency for a MFC app?
Any help / ideas is appreciated.
|
|
|
|
|
It is because Microsoft introduced a new technique in VC2005, it has something to do with the manifest files (don't know much more about it, sorry).
It won't work like it worked for VC6 for example (just making a package with the dll and everything). Take a look here[^]
There are several deployement method described there.
Hope this helps
|
|
|
|
|
Cedric Moonen wrote: It is because Microsoft introduced a new technique in VC2005, it has something to do with the manifest files
I thought the idea was to make the development process easier not insanely more difficult. Guess I have lots of reading ahead of me.
I had previously discovered that website but it’s a jumbled mess of reoccurring links.
Cedric Moonen wrote: It won't work like it worked for VC6 for example
It’s so much easier in VS6.
|
|
|
|
|
S Douglas wrote: I thought the idea was to make the development process easier not insanely more difficult. Guess I have lots of reading ahead of me.
I had previously discovered that website but it’s a jumbled mess of reoccurring links.
I fully agree with you. This was much more easier in VC6, no need of all this crap... This is really boring.
I found a tool that could help you. Take a look here[^] if you are interested.
-- modified at 4:11 Friday 20th January, 2006
It is for the Express Edition, but I don't know if it will work or not for the standard edition, you'll have to try that.
|
|
|
|
|
Cedric Moonen wrote: This was much more easier in VC6, no need of all this crap... This is really boring.
Indeed!
Cedric Moonen wrote: I found a tool that could help you. Take a look here[^] if you are interested.
Cool Thanks, had not seen this during my hunt I will have to check it out.
5 BTW for the help!
|
|
|
|
|
Another link that may help you here[^]
It is a deployement example found in the jungle of the MSDN links
|
|
|
|
|
Cedric Moonen wrote: It is a deployement example found in the jungle of the MSDN links
One day when I grow up I want to create a mess of web pages.
Cedric Moonen wrote: Another link that may help you here[^]
I think that one is a winner. Thanks again Cedric.
|
|
|
|
|
Just FYI, manifests are related to SxS (side-by-side) installs of DLLs. This feature was added in XP, which is why you don't see any problems on 2K.
--Mike--
Visual C++ MVP
LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
|
|
|
|
|
Thanks Michael, Ah, I see, so to get rid of the dll he** problem we introduce install he**?
Looks like for the first time in a while I will have to start learning how to create installers. I would rather spend my time working on the app. Oh well enough complaining time for more reading…
|
|
|
|
|
Hello gurus,
I have a basic question in C.
Can someone show me a code snipet that shows how can I parse the command line in C? I need to parse an IP address and a port number (no matter the order it is passed).
Many thanks.
Fred.
There is no spoon.
|
|
|
|
|
bouli wrote: Can someone show me a code snipet that shows how can I parse the command line in C? I need to parse an IP address and a port number (no matter the order it is passed).
http://www.codeproject.com/cpp/caacommandlineclass.asp
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow cheers, Alok Gupta VC Forum Q&A :- I/ IV
|
|
|
|
|
In C only... no C++
thanks anyway
There is no spoon.
|
|
|
|
|
bouli wrote: In C only...
GetCommandLine
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow cheers, Alok Gupta VC Forum Q&A :- I/ IV
|
|
|
|
|
"in C", do you mean with the standard main function ? Here are the parameters :
main
main( int argc, char *argv[ ])
{
program-statements
}
The main function marks the beginning and end of program execution. A C or C++ program must have one function named main.
The main and wmain functions can take the following three optional arguments, traditionally called argc, argv (in that order):
argc
An integer specifying how many arguments are passed to the program from the command line. Because the program name is considered an argument, argc is at least 1.
argv
An array of null-terminated strings. It can be declared as an array of pointers to char (char *argv[ ] ) or as a pointer to pointers to char (char **argv ). The first string (argv[0]) is the program name, and each following string is an argument passed to the program from the command line. The last pointer (argv[argc]) is NULL.
So with argc you have the number of parameter give nto the command line, and these parameters are contained in argv.
~RaGE();
|
|
|
|
|
ok, got it.
thanks
There is no spoon.
|
|
|
|
|
bouli wrote: There is no spoon.
What is the meaning of this ?
~RaGE();
|
|
|
|
|
It's a quote from The Matrix.
"The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb
|
|
|
|
|
As everybody asks for it: it comes from "The Matrix".
There is no spoon.
|
|
|
|
|
I know that.
"The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb
|
|
|
|
|
Probably means you need to find things out for yourself or work them out for yourself - no one there to feed you with a spoon like a little baby.
|
|
|
|
|
See here.
"The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb
|
|
|
|
|
Hi!
I have a dialog on that dialog I have a static control on which I draw some fig. I have 2 radio controls placed under that static control.
My problem is I am not able to click on those radio controls...more over I am not getting any mouse message even on static control.
This static control is subclassed and only WM_PAINT is handeled.
If I keep radio buttons on the top of static control ( I mean tab order) then still there are no mouse messages for static control but I can click on radio button.
In this case the problem is painting...when ever I say invalidaterect for my static control radiobuttons are not painted.
I have tried doing InvalidateRect for radio controls also after invalidating static control but result is same.
pls. let me know some solution.
Thanks
|
|
|
|
|
Naveen_mah wrote: I am not getting any mouse message even on static control
Take a look at SS_NOTIFY in MSDN . In the dialog editor set Notify property to true .
Naveen_mah wrote: If I keep radio buttons on the top of static control ( I mean tab order) then still there are no mouse messages for static control but I can click on radio button.
This is absolute mayhem. What do you want to do. Why don't you use a group box instead.
Jesus Loves <marquee direction="up" height="40" scrolldelay="1" step="1" scrollamount="1" style="background:#aabbcc;border-bottom:thin solid 1px #6699cc">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
Hi!
Thanks for your answer but SS_NOTIFY or NOTIFY did not solve my problem.
I think I have made it quite confusing..It looks something like the drawing below..
______________
| |
| |
| |
| |
| |
| |
| |
|o radio o rad|
| |
|_____________|
(if it does not show as rectangle pls consider it as rectangle)
The rectangle above is static control and there are 2 radio controls....I can place them above or below static (tab order)...
My problem is I am not getting any mouse message from static control in any way.
Hope my problem is little clear
-Naveen
|
|
|
|