|
You want the time up while you play games, don't you ?
No, because going fullscreen in DX will override all other apps AFAIK.
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
Hi,
I am using a Dialog based application,
When the Main dilaog is displayed i want to create another dialog(modeless dilaog), i used the CDilag::create function but it's not working, i think i have a problem with the second urgument(CWnd*)
what do i missing here?? and what do i have to write in the second urgument???
Thanks
|
|
|
|
|
The second argument is the parent window (in your case, probably the main dialog).
It's hard to know what's going wrong with your app. Remember that modeless dialogs must be created on the heap (i.e. with new CYourDialog ) or defined as members of the parent window, and never be defined as local variables inside a funtion.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
meirav wrote:
i used the CDilag::create function but it's not working,
You need to make sure that you call CWnd::ShowWindow( SW_SHOW ) after creation of the non-modal dialog; either in the non-modal dialog's constructor, or directly, after creation.
Peace!
-=- James.
|
|
|
|
|
I need to copy a project dialog from one project to another in Visual C++. There doesn't seem to be an easy way to do this. What am I missing?
|
|
|
|
|
Kevin Ranville wrote:
I need to copy a project dialog from one project to another in Visual C++. There doesn't seem to be an easy way to do this. What am I missing?
Load either project, and then open the other project's RC file in DevStudio. You can then drag and drop between RC files (hold down the CTRL key during the drag to force a copy operation).
You can also just open both RC files and do the same thing.
Peace!
-=- James.
|
|
|
|
|
I tried that. When I go to drop the dialog icon into the destination project the icon turns into a "block" icon. I tried a few other things with importing and copying and nothing seems to work. So then I posted this post.
|
|
|
|
|
Kevin Ranville wrote:
I tried that. When I go to drop the dialog icon into the destination project the icon turns into a "block" icon.
(Did you try both methods?) Explain exactly where you are trying to drop the dialog. Also, are you sure the target RC file (and it's Resource.h file) are not read-only?
Peace!
-=- James.
|
|
|
|
|
Perhaps the problem is with using DevStudio. I'm simply using two instances of Visual C++ 6. Is that the same thing?
|
|
|
|
|
Kevin Ranville wrote:
I'm simply using two instances of Visual C++ 6. Is that the same thing?
No. All that should happen then is the "other" DevStudio showing a message that a file has been modified and should be reloaded (if it had that file opened at the time it was changed).
BTW: You should be doing the Drag-N-Drop only across a single instance of DevStudio... Just open both files in DevStudio.
Peace!
-=- James.
|
|
|
|
|
To copy a dialog D from project P1 into project P2, do the following:- Open project P2 in DevStudio and click the Resources tab when the project has loaded.
- Drag P1.rc into DevStudio. It will display as a group of resources. Select the dialog (or any other resource) you want to copy, and do Edit|Copy.
- Click the root of project P2's resource tree and do Edit|Paste.
This will copy the resource (but not the source files). You'll need to copy (and later edit) the appropriate files to P2's directory and Project|Add|Files them to the project.
/ravi
"There is always one more bug..."
ravib@ravib.com
http://www.ravib.com
|
|
|
|
|
I tried this as well. When I select the destination Resource tree "Paste" is greyed out.
|
|
|
|
|
You are working with thw Soursafe?
Regards...
Carlos Antollini.
Sonork ID 100.10529 cantollini
|
|
|
|
|
You are working with the Soursafe?
Regards...
Carlos Antollini.
Sonork ID 100.10529 cantollini
|
|
|
|
|
Kevin,
Are you accessing your project thru a version control system like SourceSafe or ClearCase? If so, you'll first need to check out the P2.rc and P2's resource.h files in order to modify them. If not, make sure these files aren't read-only. Hope this helps.
/ravi
"There is always one more bug..."
ravib@ravib.com
http://www.ravib.com
|
|
|
|
|
Great! Thank you for this tip.
|
|
|
|
|
Like the subject says, I'm trying to build an application which will detect a user's current network settings and, if not found, install TCP/IP. Right now I've got a working application, but it's a bunch of registry hacks and requires a reboot.
If anyone can at least point me in the right direction, I'd be most gratefull. I'd assume there's a bunch of functions that handle this functionality for me instead of having to manually edit the registry. I just have yet to find anything that covers this topic.
Any help is greatly appreciated. Thanks.
-Beak
|
|
|
|
|
Right now I've got a working application, but it's a bunch of registry hacks and requires a reboot.
Did you manage to install TCP/IP programmatically? Well, congratulations, but chances are your code works only for your particular OS and SP. I'm afraid there's nothing like a system API that you can call to initiate the intallation of the TCP/IP stack. Best way to deal with this is IMHO to instruct the user to manually install the TCP/IP stuff himself. Remember that in order to do that the user will have to insert his own Windows CD (providing the required files yourself would be illegal).
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
IMHO, this is a very very very very very very very very very bad idea.
All you will end up doing is screwing up people's machines.
Tim Smith
Descartes Systems Sciences, Inc.
|
|
|
|
|
I briefly worked on a firewall app that did programatically install networking components. However, the APIs are totally undocumented (and for good reason). I never saw the code, so I don't know what the APIs are, but they do exist.
--Mike--
My really out-of-date homepage
He who laughs last, didn't get the punchline and is just laughing so he won't look silly.
Sonork - 100.10414 AcidHelm
Big fan of Alyson Hannigan.
|
|
|
|
|
can u find out any way to do this programmatically?
Infact i m also in need of that and can't find any help on the net.
Regards,
coolvcguy
|
|
|
|
|
Hey Folks,
Has anyone had any luck with displaying MessageBoxes at the highest z-order?
I have a multi-dialog application which generates error-messages, but often, the messagebox is hidden behind another dialog.
For the MessageBox HWND, I've tried various things, including GetFocus(), etc, but I get various results... Is there a function which returns an HWND that might get me the results I want?
Mike.
doner@obtain.com
|
|
|
|
|
Have you tried any of the flags MB_SYSTEMMODAL and MB_TASKMODAL ? Check the documentation of ::MessageBox for more info.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
str.FormatMessage(_T("%1!d! of %2!d! developers agree: Hockey is %3%!"), nAgree, nAsked, _T("Best"));
What do the "!" do in the formatted string? I've never seen this syntax before.
Jon Sagara
What about ?
|
|
|
|
|
It is an extended format syntax explained in the documentation for ::FormatMessage which follows the pattern
%index!format_specifier!
where index selects the parameter to replace the slot with, and format_specifier is an optional specifier following the syntax of printf and related functions.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|