|
NULL is not a C++ keyword, but rather a macro defined in a lot of usual headers, like <stdlib.h> or <windows.h> . In your case, none of these headers happens to be included. You can safely replace NULL with 0 .
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Oye Joaquin no paras tio !, estás hecho un máquina ...
Me parece que Chris debería de darte una camiseta de codeproject por la colaboración que haces...
Un saludo
Braulio
|
|
|
|
|
Hola Braulio.
No te creas que estoy todo el día aquí, tan sólo que cuando tengo algún ratito me divierto más contestando a la gente que navegando por playboy.com Un saludo.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
tsk tsk tsk
u so bored that you do that???
situations to avoid #37: "good morning ... how many sugars do you take in your coffee ... and what was your name again?"
coming soon: situations to avoid #38: "...and the dog was there too?"
|
|
|
|
|
u so bored that you do that???
As you seem to do as well, I guess
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Y yo? Necisito camisas tambien
Cheers,
Tom Archer
Author, Inside C#
Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.
|
|
|
|
|
Coño !, más gente q habla español !, divertido
Vamos a hacer unas lista de camisetas para Chris
Un saludo
Braulio
|
|
|
|
|
Para mi la unica gente que deben recibir camisas son la gente que escribe libros o son amigos de la gente que escriben libros
Cheers,
Tom Archer
Author, Inside C#
Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.
|
|
|
|
|
Todos somos buenos amigos de la gente que escribe buenos libros
Una pregunta, por curiosidad, ( la escribo en español, pero si no la entiendes te la escribo despues en inglés). Es muy duro escribir un libro ?, Me refiero a si es una tarea a la que te tienes que dedicar 100 %.
Como funciona ese mundo ? ( yo creo que nunca me atreveré a escribir un libro, pero tengo curiosidad por saber como es).
Un saludo !
Braulio
Inside Málaga# Sunny Beach
|
|
|
|
|
Braulio Díez wrote:
Todos somos buenos amigos de la gente que escribe buenos libros
Oh si, claro! Ahora! Pero que paso en escuela?
Braulio Díez wrote:
Es muy duro escribir un libro ?, Me refiero a si es una tarea a la que te tienes que dedicar 100 %.
Cono mijo. No puedes imaginar. Es ridiculo a veces. La cosa es que los publisher no quieren intender que muchas veces estamas escribiendo en algo que esta in beta y no funciona bien. Tampoco no tiene instrucciones ni nada. Pero ellos todavia esperan que nosotros comple con las fechas. Muchas veces el resultado es que tenemos que avanzar y terminar algo que sabemos no es nuestro mejor trabajo. En terminos de horas, si toma un monton de tiempo escribir un libro y los publisher actua como el libro es tu unico trabajo cuando normalmente es algo que hacemos en la noche. Te digo, no es un trabajo facil. Pero la cosa es que me gusta ayudar a la gente y en eso recibo me pago.
Cheers,
Tom Archer
Author, Inside C#
Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.
|
|
|
|
|
|
You're probably going to want to look at property sheets.
- Jason
(SonorkID 100.611)
"The sort of guy who'd give the kid an extra scoop of ice cream free if he was an ice-cream man"
- Nish, on Chris Maunder
|
|
|
|
|
Using the tab you can switch to the next control. In my apps, the control I've dragged first on the dialog is first on focus and so on for the others...
How can I change this order without having to change the focus manualy through the code?
Bluute tette!
|
|
|
|
|
Open the Dialog Resource Editor and here's a magic combination:
CTRL+D
Best regards,
Alexandru Savescu
|
|
|
|
|
Roger...
Just starting with the visual ide. Slightly different approach than coding it yourself
Bluute tette!
|
|
|
|
|
ok,... i like to type my questions in, like using the index in MSDN. my question this time will be textcolor "like changing it from white to blue or somthing like that."
I first jumped into MSDN to look up text color,... in Index mode there are three C++ things i can choose from. "I want to do everything using the win32 app console project... (just noting it )
there is:
1. Visual C++ Documintation.
2. Visual C++, platform SDK, and win ce docs
and
3. visual c++, platform SDK, and enterprise docs.
first question is: What one should i select to get the results to my questions most relative?
second question is: how do i now what help files will help me with my project "win32 con. app." so that i dont get them consfused with MFC n so n so?
Third question is: How do you use the syntax that the help files give you? "there is a bunch of code that i do not know how to use... the help files just list the code and seem to hope you know hoe to apply it to you code" (I dont know how to apply it)(to make it work)
Thanks for the help!
~SilverShalkin
|
|
|
|
|
COLORREF SetTextColor( COLORREF clr );
This is out of the MSDN help file... Supposely it sets the text color "that is exactly what i want to do)
How do i use this line in my code "applying it"? And what header goes with it? is it "#include "afxcmn.h""
Thanks all
~SilverShalkin
|
|
|
|
|
This is mostly done in the OnCtlColor handler. For example:
<br />
BEGIN_MESSAGE_MAP(CDummyDlg, CDialog)<br />
...<br />
ON_WM_CTLCOLOR()<br />
END_MESSAGE_MAP()<br />
<br />
HBRUSH CDummyDlg::OnCtlColor( CDC* pDC, CWnd* pWnd, UINT nCtlColor )<br />
{HBRUSH hbr = CDialog::OnCtlColor(pDC,pWnd,nCtlColor); <br />
pDC->SetTextColor(RGB(255,0,0));<br />
return hbr;<br />
}<br />
This will tell every control in the dialog (who are kind enough to ask) to paint text red. Check nCtlColor if you want the color to go somewhere special. If you want another backcolor, this is also the place to go. Make the return value into the desired brush.
/moliate
|
|
|
|
|
The simple answer is that none of that stuff will let you change text colour in a console app. That's why Bill invented Windows!
|
|
|
|
|
Hi.
I began learning and practice MFC three months ago. The first month was the toughest because I was down right lost after reading the first nine chapters from Prosise's book. However, everything changed after I first studied from Richand Jones' introduction to MFC. Everything Prosise discusses became clear and only now do I begin to appreciate the information Prosise offers in his book.
Next, I would like to move on to more specific tools i.e. networking or COM. I have no experience with COM and networking programming using C++. My ultimately goal, however, is to design and implement network programs such as an ftp server (my dream).
What is there after MFC? I am an MFC beginner, but I have confident I can work with the tools MFC offers relatively well.
I am very interested in networking programming, but COM is something that is quite popular. I saw good review on C++ Networking Programming Volumn 1 by Douglas C. Schmidt, Stephen D. Huston. What do you recommend? As for COM, I am not sure where to start. Nonetheless, COM is something I want to consider, if not now, then after networking.
Thanks,
Kuphryn
|
|
|
|
|
I'd recommend COM, because it will give you a chance to break free of MFC and learn how to live without it. Not that MFC in inherently bad, but it would be bad to find yourself tied to it. Johnothan Bates 'Building Lightweight Components Using ATL' is the best book I found for learning COM.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
|
|
|
|
|
Okay. Thanks.
To this day I do not and cannot understand why some many programmers dislike MFC.
Kuphryn
|
|
|
|
|
yer i like it...i think its the "purists"
bryce
|
|
|
|
|
take this into consideration: there are far more help available to MFC programming and such a wonderful forum to turn to when there is any problem, I would say that I like MFC better.
|
|
|
|
|
Okay.
I decided on a network programming book.
I placed on order for this:
Network Programming for Microsoft Windows, Second Edition
by Anthony Jones.
I have considered C++ Network Programming Volume 1 by Douglas C. Schmidt and Stephen D. Huston. However, in the end I decided to go with Networking Programming for Microsoft Windows, Second Edition because my primary objective is to design and implement Windows programming using C++. I believe Jones' book will become invaluable for Windows applications.
Kuphryn
|
|
|
|