Hello Salem, the "build: clean" option didn't work. I problem is intermittent. The IDE does sometimes generate the correct makefile and in some cases it doesn't. Just have to be aware of that. The other wierd thing being that, even with the wrong makefile you would expect it to...
Hello Salem, I think it is more a fault with the Visual C++ IDE than anything else. I think this because, when i export the makefile and examine it, the makefile is not reflecting the pre-processor defines that i included through the Visual C++ IDE. Eventhough, the visual C++ IDE through...
Salem, Guess what, I exited visual C++ and re-started and opened the workspace and compiled the code and it works fine!!!!!!!!. But to answer your question, I do get the lines printed. As for the Visual C++ service pack, how do you verify wether it is installed on your computer. I went thtough...
Salem, Thanks for the answer to the 2nd question. But going back to my first question, given that i am following all the rules that we had discussed for the compile check, do you know whay this weird behavior could be happenning?.
Thanks
Best Regards
Chandra
Hello Salem, I have defined the macro on the command line as /DDCR_CX74063 or /DDCR_CX74017 depending on which macro i want defined. And i have added the check for these macros in the DCR_Register.h as shown in my first post.
As a separate question, to gaurd against multiple includes we use the...
Hello, Thanks for both the replies.
As for the first reply, There is just one file (DCR_Register.h) that is included in all the other .cpp files that has this compile check. So, It has to be consistent across all the files.
As for the second reply, The pre-processor construct that i had used...
Environment: I am writing C code in the Visual C++ 6.0 IDE
I have a Visual C++ console application with a bunch of files that has the main file (DriverMain.cpp) as follows :
//#include "DCR_Register.h"
#include "DCR_Utilities.h"
#include...
Hello, I am trying to build a very simple program in Visual C++ 6.0. The program compiles/builds fine. When i try to execute it, i get the following error
"Program too big to fit in memory"
Could you please tell me what could be causing this how i can fix this
Thanks
Best Regards
Chandra
Hello Kupier, thanks for your reply. I found out the problem. It was a default case statement in the
switch (LOWORD (wParam)) for WM_COMMAND message that i had which was closing the dialog box and returning TRUE.
Best Regards
Chandra
I want to add that, I have modified the resource script (.RC) and the resource.h files outside the VC++ editor (i.e. through note pad). Esentially i changed the sizes and positions of some controls on the dialog box. I also removed some unused ID's from the resource.h.
Can this cause any...
I want to add that, I have modified the resource script (.RC) and the resource.h files outside the VC++ editor (i.e. through note pad). Esentially i changed the sizes and positions of some controls on the dialog box. I also removed some unused ID's from the resource.h.
Can this cause any...
I want to add, I have situation where, in the dialog procedure, I am writing to an edit control on the dialog box as follows,
1. wsprintf (szBuffer, TEXT ("%d"), 0) ;
2. SendDlgItemMessage (hdlg, IDC_EDIT_00, WM_SETTEXT, 0,
(LPARAM) (LPSTR) szBuffer) ;
Now for some reason, The...
I want to add, I have situation where, in the dialog procedure, I am writing to an edit control on the dialog box as follows,
1. wsprintf (szBuffer, TEXT ("%d"), 0) ;
2. SendDlgItemMessage (hdlg, IDC_EDIT_00, WM_SETTEXT, 0,
(LPARAM) (LPSTR) szBuffer) ;
Now for some reason, The...
Hello, I have a dialog box with a list box control and a bunch of edit box controls. When i excute the application, the dialog box shows up. But when the i try selecting an item from a list box and just happen to click any of the edit controls, the dialog box disappers. I have several other...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.