|
You do not have to have a window to create a timer. You can create a timer if you supply NULL for the hWnd and supply a callback proc.
onwards and upwards...
|
|
|
|
|
Is there a simple way to disable only the menubar ( and toolbar ) of the main frame of an MDI application ? while keeping a couple of them available ( like "quit" ).
I have an operation that, when run, needs to diable some operations, while keeping the different views active.
I could have ON_UPDATE_COMMAND_UI handlers for all menu commands that will check a state variable, but that will mean a lot of code change, but on the other hand it's failsafe.
Thanks.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
Maximilien wrote:
ON_UPDATE_COMMAND_UI handlers for all menu commands
That's the recommended approach. I don't think this will require a lot of code changes. Code addition maybe, but no modifications.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Have a look at ON_UPDATE_COMMAND_UI_RANGE. This will allow you to create a single function to handle enabling/disabling of an entire range of IDs.
onwards and upwards...
|
|
|
|
|
This needs to have a sequentially continuous ID range; which is something I cannot be sure of.
I will go with the other suggestion, add one ON_UPDATE_COMMAND_UI for each menu item; luckilly, all my commands are in a couple files.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
if any one can help me to obtain any vc++ project.
pleeeeeeeeeeeese
Anas_zet
|
|
|
|
|
don't know if I should laugh or cry ...
What exactly do you want ?
Can't you create your own ? Can't you download any of Code Project samples and examples ? or any of Microsoft samples ?
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
thank you for you'r praise,
i know that but i didn't understand the code of these project's, it's hard to understand.
in abstraction i want som simple & good project
Anas_zet
|
|
|
|
|
Help me,
To any one read this thread if can help me to obtain any any VC++ project for my matter.
pleeeeeeez
Anas_zet
|
|
|
|
|
for my matter
whats ur matter?
|
|
|
|
|
|
I'm writing a utility which uses files which reside on a network drive. In order for the application to run correctly the first time, the user must (outside of my application) open up the network drive in Windows Explorer to authenticate.
In my application, if the user is not authenticated, fopen(), etc just returns false citing improper access or whatever. Is there a way I can force windows to display the authenticate dialog before failing at fopen()?
Its a standard win32 app...
Thanks.
Mike.
doner at obtain.com
|
|
|
|
|
While I've not ever tried it in this context, do NetShareAdd() , CreateProcessAsUser() , or NetUseAdd() help?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
how can i display an integer using MessageBox command?how can i convert an integer value to string?
|
|
|
|
|
char buf[81];
int i = 2;
sprintf(buf, "%d", i);
AfxMessageBox(buf);
|
|
|
|
|
CString buf;
buf.Format ("%i", iMyInt);
MessageBox (buf);
Tada!
Now, if you mean converting 1234 to one thousand, two hundred and thirty four,
as I *think* you asked earlier, I still don't know of a nice neat function.
It would be language dependent too...
Iain.
|
|
|
|
|
Iain Clarke wrote:
Now, if you mean converting 1234 to one thousand, two hundred and thirty four,
as I *think* you asked earlier, I still don't know of a nice neat function.
|
|
|
|
|
itoa(iValue,caBuffer,10);
onwards and upwards...
|
|
|
|
|
Can anyone tell me the url of websites where the efficieny of vc++ developer is tested? ie Online free exam for mfc programming or c++ programming.
Using the tests, the efficiency of the developer is tested.
I have also another question , the question is
What is the importance of ATL in vc++ programming ?
Can any one please help me in this matter.
PHILIP
|
|
|
|
|
phijophlip wrote:
Can anyone tell me the url of websites where the efficieny of vc++ developer is tested?
Efficiency is a very subjective metric. You could ask ten people what makes an efficient programmer and get ten different answers.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
phijophlip wrote:
Can anyone tell me the url of websites where the efficieny of vc++ developer is tested? ie Online free exam for mfc programming or c++ programming.
Remember that you get what you pay for. While they are not free, you might try brainbench.com[^] and transcender.com[^].
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Hi
Could anyone of you please tell me the best way to do reporting in vc++.
I have seen people using msdbrpt.dll in vb. Is there something similar for vc++ that can be used for reporting.
Can I use crystal reports, shipped with vs, in comercial application.(any License Issues ??).
Regards
Shiraz
The Best Relligion is Science.
Once you understand it, you will know God.
|
|
|
|
|
zainu wrote:
Can I use crystal reports, shipped with vs, in comercial application.(any License Issues ??).
As long as you own at least one fully licensed copy VS then you can ship the crystal reports with commercial software.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
Hello,
I need to create a form with multiple buttons instances. In C#, this
would look like this
static string[] strCaption={"Button A","Button B","Button C"};
Button[] btnShow=new Button[strCaption.Length];
for(int i=0 ; i < strCaption.Length ; i++)
{
btnShow[i]=new Button();
btnShow[i].Text=strCaption[i];
btnShow[i].Size=new Size(200,20);
btnShow[i].Location=new Point(10,35*i+20);
btnShow[i].Click+=new EventHandler(Button_Click);
btnShow[i].Tag=i.ToString();
this.Controls.Add(btnShow[i]);
}
I try to code this in C++, but I have a lot troubles setting the
identifiers.
This:
Button* btnShow[]
...
btnShow[i]=new Button();
...
Does not work. Any suggestions/code samples?
Thanks in advance,
Picander
|
|
|
|
|
you should allocate first the size of your button array, either statically (Button *btnShow[10]; ) or dynamically ( Button **ppBtnShow; ppBtnShow = (Button **)calloc(10, sizeof(Button *)); [...] ppBtnShow[i] = new Button; ). In the last case don't forget to free your data to avoid memory leaks!
Fold With Us!
Sie wollen mein Herz am rechten Fleck
Doch seh ich dann nach unten weg
Da schlägt es links
|
|
|
|