|
hello,
i recently purchased visual c++ and some books and i need a little direction on where the best place to start is. it's pretty overwhelming.
i've spent the last couple years developing database driven web applications, but i need to take the next step now. are there any good sites besides this one? any peticular thing i should really focus on first?
sorry for the noobie questions, but i really want to learn.
thanks in advance for any advice.
-mike
|
|
|
|
|
IMO you aren't going to get a concrete answer. You wil get peoples opinions.
Mine personally....start with SDK understand that, then move into MFC. First and foremost learn C++ if you don't already know it.
I guess it depends on what your trying to accomplish...do you plan on making q & d type DB apps or really cool looking GUI's...?
Cheers!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
I would skip MFC unless you want a job programming MFC.
What kind of application would you like to create? Once you figure that out then ask what tools and languages you should learn to create those applications.
Todd Smith
CPUA 0x007 ... shaken not stirred
|
|
|
|
|
If you don't know C++ then I'd be starting out with C++ console apps, ignoring both the SDK and MFC. I'm sure others can recommend some good C++ books for beginners.
Michael
|
|
|
|
|
Hi,
I want to know the speed at which the data is transfered throught the network. Is there any fuction which returns the network speed.
Pls help...
Thanks
|
|
|
|
|
Is there anyway to know which lib to link when you get a linker error for unresolved errors
eg error LNK2001: unresolved external symbol __imp__ShellExecuteA@24
LNK1120: 1 unresolved externals
Which library do I need to link to for SHELLEXECUTE to work.
(I have to add it to a makefile )
---
|
|
|
|
|
shell32.lib
You can find information like that at msdn.microsoft.com.
|
|
|
|
|
I have a multiline edit control on a dialog and I disable it with EnableWindow(FALSE). My problem is that I want the text to be a different color but it stays the grayed out disabled color. I would be open to not disabling the box but that would give me three additional problems. a) I'd have to make sure it could never get focus, b) I'd have to change the mouse cursor from the I-beam to the arrow, and c) I'd have to make sure text couldn't be selected.
Any Suggestions are welcomed
-Jack
|
|
|
|
|
What about making it read-only.
I dont know why you wouldn't want someone to be able to select the text in the edit control, maybe they would want to copy that data to the clipboard for another app.
|
|
|
|
|
Read only still allows the textbox to have focus. Disabled does exactally what I want except for the text color.
-Jack
|
|
|
|
|
I've decided to do this by using a read only box. I handle the EN_SETFOCUS message to give focus to another control so this control can't have focus. What message do I have to handle to change the default mouse cursor?
-Jack
|
|
|
|
|
|
How do I cancel the ESCAPE key in a modeless dialog...?
Do I override OnCancel or PreTranslateMessage or perhaps something totally different...?
Thanx!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Create a handler for the WM_CHAR message inside of the PreTranslateMessage function, because the ESCAPE key is processed in the IsDialogMessage function for a dialog. This is the function that dispatches the message to the window, therefore you will have to process the WM_CHAR message before this function is called.
|
|
|
|
|
Thanx Kilo!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
According to my experience, I would like to override OnCancel() function to handle the key event. It makes your program a little easier to use and fewer codes also.
|
|
|
|
|
Does that actually work...? can you just return false in OnCancel to prevent escape from doing it's thing...?
In anycase...it's pretty hard to beat:
if(pMsg->message==WM_KEYDOWN){
if(pMsg->wParam==VK_RETURN || pMsg->wParam==VK_ESCAPE) return TRUE;
}
Thats easy enough for me.
Cheers
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Misunderstanding, friend! I means that I will let the user press esc to quit after I release every resources in OnCancel() function. I donnot want to forbid this feature. I was not talking about coding but a solution. And Thanks your code also.
|
|
|
|
|
The way I do this is by overriding OnCancel() such as:
void CMyDlg::OnCancel() {
GetAsyncKeyState(VK_ESCAPE);
if (!GetAsyncKeyState(VK_ESCAPE)) {
CDialog::OnCancel();
}
}
|
|
|
|
|
Happy birthday HockeyDude!
------------------------------------
Rickard Andersson, Suza Computing
ICQ#: 50302279
I'm from the winter country SWEDEN!
------------------------------------
|
|
|
|
|
Thank you kindly.
To be honest I totally forgot about that...
I guess I should go ask friends/family for gifts now?
Cheers!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
I create Folder, but then i draggin class in - class is copy
How move class to folder????
|
|
|
|
|
Drag with right mouse button - this will open popup menu with Copy and Move options when you drop.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
May be I must for each Toolbar button create Menu Item?
|
|
|
|
|
I want write a Thread to read and receive data from LPT port. Could someone help me?
|
|
|
|