|
Handle the WM_SYSCOMMAND message ( OnSysCommand ) and handle the mesasge when ID is SC_MAXIMIZE and SC_MINIMIZE .
|
|
|
|
|
yes its working but now i have two dialogs
i want if on dialog minimize other should also minimize and when on of them is maximize other should also maximize
|
|
|
|
|
And how are those two dialogs "related" to each other (e.g., modal, modeless, parent/child)? Do they belong to the same application? Does one create the other?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
that are in same application one dialog is showing on one monitor and on second monitor i am showing some greetings which are desinged in onPaint function i want to handle that greeting should maximize and minimize with that dialoge which r showing on first monitor
|
|
|
|
|
i was making validation for name in MFC in which i dont want special characters like <>?/{}[]"; \ can any one help me.... THANX in advance....
|
|
|
|
|
use CString::Find function. If the value returned is other than -1 you know that the character is present in the string and handle it in the manner you wish
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
con u show me some example.......
|
|
|
|
|
This link[^]"> will be of little help.
Regards,
Rane
|
|
|
|
|
I want on variable to hold a shared_ptr object, and its type needs variable.
void * can be cast directly, but it's not a shared pointer.
Here is a way, but not so good:
struct ItemData {
int m_type;
shared_ptr<type1*> pType1;
shared_ptr<type2*> pType2;
}
system
|
|
|
|
|
I'm not sure I understood your question, but you can't cast a shared pointer. A shared pointer is not a pointer, it's just a class instance that wraps a pointer. However, you can retrieve the stored pointer (with get()) and cast the return value.
|
|
|
|
|
Hello every one !
Does back propagation algorithms works with values that are not between 0 and 1, or do I have to normalize them to implement them ?
Thank you.
|
|
|
|
|
Hi everyone.
I'm having a problem when I try to use a pointer in a program.
I have one class and I want to call its functions in Main.cpp.
Here is the header User.h
#ifndef USER_H
#define USER_H
#include<iostream>
(...)
#include"manager.h"
using namespace std;
class User
{
private:
string type_user;
list<Manager>available_manager_list;
public:
User(string);
~User();
User(const User & );
string get_type_user();
friend ostream& operator << (ostream&, const User& );
void add_manager_available(const Manager& );
void remove_manager(const Manager & );
Manager* select_manager_name(string name);
void save_manager(ofstream& );
};
#endif
In Main.cpp when I try to do:User * user; user->
Nothing appears in user-> ... IntelliSense "Expression on the left of . or -> has a type which could not be resolved"
Thanks.
"Failure is always an option."
|
|
|
|
|
Which version of Visual Studio?
Have you tried rebuilding the intellisense database
(close solution, delete the solution's .ncb file, open
the solution)?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
My version is Visual Studio C++ 9.0 2008 express.
I did what you told me to: "lose solution, delete the solution's .ncb file, open the solution" , and it worked. Thank You!
"Failure is always an option."
|
|
|
|
|
FrankMookie wrote: My version is Visual Studio C++ 9.0 2008 express.
I haven't had to do that yet on VS 2008.
Good to know it worked though!
Cheers,
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi All,
I have an application(dialog based) which will minimize to the system tray.This application will have only a single instance. I want this application to be restored(dialog is displayed) while the exe is tried to execute again.
I used the following code to limit the execution to one instance.
if(OpenMutex(MUTEX_ALL_ACCESS,FALSE,"Limit1"))
{
}
else
CreateMutex(NULL,TRUE,"QKeys");*/
Thanks in advance,
John.
|
|
|
|
|
emmmatty1 wrote: I want this application to be restored(dialog is displayed) while the exe is tried to execute again.
When that condition is detected, simply call ShowWindow(SW_RESTORE) followed by Shell_NotifyIcon(NIM_DELETE, ...) .
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Is there an easy way (using Visual Studio 2005) to port all of the settings in the project properties from "Debug" mode to "Release" mode without having to type in every single change one line at a time?
(Yes, I know the settings should have been typed in under "All Configurations" instead of "Debug" to begin with, but they weren't.)
|
|
|
|
|
I made use of copy-paste by loading the .vcproj file in a text editor to solve my issues, and I think I'm good to go now. Feel free to let me know if a command or utility for this kind of issue exists, anyway.
|
|
|
|
|
Hi in my application i am creating some folders(keys) under Hkey_LocalMachine using the RegCreateKeyEx() fucntion its working fine in xp and 98 operaign system but wheni use the same code for VISTA its nto creating in localmachine its going to current user by default..
Can anybosy suggest me the reason for this
Thanks in advance....
|
|
|
|
|
This is one of the protection mechanisms in Windows Vista. Unfortunately, I don't know if or how you can defeat it (or if you should even want to).
|
|
|
|
|
Something to do with the administrator credentials on VISTA machine... So are you logged on to the VISTA machine with admin privileges and thrn running your application
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Run the application as Administrator
Regards,
--Perspx
"The Blue Screen of Death, also known as The Blue Screen of Doom, the "Blue Screen of Fun", "Phatul Exception: The WRECKening" and "Windows Vista", is a multi award-winning game first developed in 1995 by Microsoft" - Uncyclopedia
Introduction to Object-Oriented JavaScript
|
|
|
|
|
You need to include a security section in your manifest file to prevent Registry and File Virtualization for your application (or have the user turn User Access Control [UAC] off).
I would recommend the manifest resource file with the security section since it allows you to use registry and file functions without getting false positives from virtualization. I use "AsInvoker" for user apps.
"Windows via C/C++, Fifth Edition" by Richter has some good information on dealing with Vista and using manifests correctly.
|
|
|
|
|
Can u please make it a bit clear in "turn off the User Access Control [UAC]"....
|
|
|
|