Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. cdgios

    Help: Weird Preprocessor behavior

    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...
  2. cdgios

    Help: Weird Preprocessor behavior

    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...
  3. cdgios

    Help: Weird Preprocessor behavior

    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...
  4. cdgios

    Help: Weird Preprocessor behavior

    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
  5. cdgios

    Help: Weird Preprocessor behavior

    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...
  6. cdgios

    Help: Weird Preprocessor behavior

    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...
  7. cdgios

    Help: Weird Preprocessor behavior

    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...
  8. cdgios

    Beginner: Visual C++ 6.0 Issue

    Thnks for replying. It is a win32 console program. Thanks Best Regards Chandra
  9. cdgios

    Beginner: Visual C++ 6.0 Issue

    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
  10. cdgios

    Beginner Win32 Programmer: Dialog Box Problem. Pls Help

    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
  11. cdgios

    Beginner Win32 Programmer: Dialog Box Problem. Pls Help

    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...
  12. cdgios

    Beginner VC++ Programmer : Dialog Box Problem. Pls Help

    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...
  13. cdgios

    Beginner VC++ Programmer : Dialog Box Problem. Pls Help

    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...
  14. cdgios

    Beginner Win32 Programmer: Dialog Box Problem. Pls Help

    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...
  15. cdgios

    Beginner Win32 Programmer: Dialog Box Problem. Pls Help

    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...
  16. cdgios

    Beginner VC++ Programmer : Dialog Box Problem. Pls Help

    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...
  17. cdgios

    Beginner Win32 Programmer: Problems with List View Control

    Thankyou very much. I also had to add the comctl32.lib in project settings and include the commctrl.h file and that did it. Best regards Chandra
  18. cdgios

    Beginner Win32 Programmer: Problems with List View Control

    I also want to add that the same thing happens for a Spin Box (a.k.a. up-down control) Thanks Best Regards Chandra
  19. cdgios

    Beginner Programmer VC++ : Problems with List View Control

    I also want to add that the same happens for a spib box control (a.ka. up-down control) Thanks Best Regards Chandra
  20. cdgios

    Beginner Programmer VC++ : Problems with List View Control

    Hello, When i add a list view control to a dialog box the dialog box isn't showing. the DialogBox() function is returning immediately. If i remove the List View control from the dialog box, it shows and works fine. Do you know what could be the possible reason?. Your help is greatly appreciated...

Part and Inventory Search

Back
Top