Click here to Skip to main content
15,921,837 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CEdit painting question. Pin
Maximilien3-Mar-03 2:52
Maximilien3-Mar-03 2:52 
Generalgenerating help files Pin
RalfPeter28-Feb-03 10:08
RalfPeter28-Feb-03 10:08 
GeneralFighting with the Registry. Pin
will138328-Feb-03 9:11
will138328-Feb-03 9:11 
GeneralRe: Fighting with the Registry. Pin
AlexO28-Feb-03 9:46
AlexO28-Feb-03 9:46 
GeneralRe: Fighting with the Registry. Pin
Neville Franks28-Feb-03 9:48
Neville Franks28-Feb-03 9:48 
GeneralRe: Fighting with the Registry. Pin
will138328-Feb-03 10:04
will138328-Feb-03 10:04 
GeneralRe: Fighting with the Registry. Pin
Michael Dunn28-Feb-03 13:09
sitebuilderMichael Dunn28-Feb-03 13:09 
Generalc/c++, API, and BitBlt Questions Pin
SumGuy28-Feb-03 8:33
SumGuy28-Feb-03 8:33 
I have just a couple questions here... hopefully someone here can help me out.

1) I started a win32 API project, and saved my code in a *.c file, then I realized that I wanted to make use of some c++ stuff (objects), so I changed the name to *.cpp. Then, the next time I compiled the code, the following line started giving an error in the WM_PAINT section.
HBITMAP	g_hbmDisplay = NULL; //declared elsewhere<br />
HDC hdcMem2 = CreateCompatibleDC(hdc); //line before the error<br />
HBITMAP hbmOld = SelectObject(hdcMem, g_hbmBall);//this line gives the error
saying that "cannot convert a void * to struct HBITMAP__ *", even though, as a *.C file it worked perfectly.

2) Is it possible to have a *.c file and a *.cpp file in the same project and have the both of them work together, or is it a one or the other sort of deal?

3) What are the differences between windows programming in C vs C++ as far as the API is concerned? I dont need a very detailed exlanation, just a gist of what the differences are would suffice.

Thanks... I realize that it is probably annoying answering these questions, so if there is a recommended book on API programming in windows C++ that would also be appreciated.
GeneralRe: c/c++, API, and BitBlt Questions Pin
Chris Losinger28-Feb-03 8:51
professionalChris Losinger28-Feb-03 8:51 
GeneralRe: c/c++, API, and BitBlt Questions Pin
SumGuy28-Feb-03 9:01
SumGuy28-Feb-03 9:01 
GeneralRe: c/c++, API, and BitBlt Questions Pin
rruge28-Feb-03 9:08
rruge28-Feb-03 9:08 
GeneralRe: c/c++, API, and BitBlt Questions Pin
SumGuy28-Feb-03 10:14
SumGuy28-Feb-03 10:14 
GeneralRe: c/c++, API, and BitBlt Questions Pin
Marshall1-Mar-03 1:19
Marshall1-Mar-03 1:19 
GeneralDialog Help Pin
Steven M Hunt28-Feb-03 8:22
Steven M Hunt28-Feb-03 8:22 
GeneralRe: Dialog Help Pin
Steven M Hunt28-Feb-03 9:39
Steven M Hunt28-Feb-03 9:39 
GeneralRe: Dialog Help Pin
Neville Franks28-Feb-03 9:46
Neville Franks28-Feb-03 9:46 
GeneralRe: Dialog Help Pin
yashraj28-Feb-03 19:37
yashraj28-Feb-03 19:37 
GeneralOnSizing() not firing.... Pin
ns28-Feb-03 8:21
ns28-Feb-03 8:21 
Generalso what message do I need to trap? Pin
ns28-Feb-03 8:27
ns28-Feb-03 8:27 
Generaltried spy++ Pin
ns28-Feb-03 8:40
ns28-Feb-03 8:40 
GeneralRe: OnSizing() not firing.... Pin
Neville Franks28-Feb-03 9:52
Neville Franks28-Feb-03 9:52 
GeneralRe: OnSizing() not firing.... Pin
nss28-Feb-03 10:09
nss28-Feb-03 10:09 
GeneralRe: OnSizing() not firing.... Pin
Chris Richardson28-Feb-03 10:09
Chris Richardson28-Feb-03 10:09 
Generalthanks everyone! Pin
nss28-Feb-03 10:22
nss28-Feb-03 10:22 
GeneralSimple CTime question Pin
Dave_28-Feb-03 7:35
Dave_28-Feb-03 7:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.