hi, i'm programming an opengl program using visual studio .net. my project uses standard windows library(no mfc or atl). when i try to set a break point on a variable or a function, i keep on getting the error message "intellisense couldn't not find the specific location". does anyone know how to set the break point properly? also, what file do i need to include in my project in order to use the "TRACE" function? is there a way to redirect printf's output to visual stuio .net's "output" panel/window? thanx in advance.
trustno1
Posts
-
can't get the debugger to work in visual studio .net -
C++ object oriented programming question.i was studying c++ object oriented programming notes today and have some questions regarding to this problem.. any suggestion is welcome.. thank you! for this question, i'm supposed to find the implementation error and fix it without changing the interface. i read thru the codes and realized that the method B::Init() was trying to initialize the private variable, pNum, that belongs to class A(Class B's super class).. I was wondering is there anyway to access to class A's private variable from class B? and also have i missed any other implementation error? class A { public: A() { Init(); } virtual ~A() { Destroy(); } virtual void Init(); virtual void Destroy(); long Get() { return *pNum; } void Set(long num) { *pNum = num; } private: long *pNum; }; class B : public A { public: B() { Init(); } virtual ~B() { Destroy(); } virtual void Init(); virtual void Destroy(); long Get2() { return *pNum; } void Set2(long num) { *pNum = num; } private: long *pNum2; }; void A::Init() { pNum = new long; } void A::Destroy() { delete pNum; } void B::Init() { pNum = new long; pNum2 = new long; } void B::Destroy() { delete pNum2; }
-
loading .chm help file with vc++hi, i delcared htmlhelp.h and attempt to run HtmlHelp off one of the event handler, but i kept on getting error message saying that HtmlHelpA doesn't take 4 argument.. i've checked out the documentation on HtmlHelp, but it's not very helpful.. not much information given.. do you know where that i can find a example on hooking up .chm using HtmlHelp function? thx.
-
loading .chm help file with vc++hi, i made a .chm help file.. i've create a command for it in the menu already.. i was wondering how do i load it? do i use shellexecute or is there another command in vc++ 7 that's create for loading .chm file? also, will this .chm file work in win95/98/nt/2000? thanx in advance.
-
help: odbc error:field data truncated during data fetchhi, when i attempt to use odbc to retrieve data from ms access database, i get an error "error: field data truncated during data fetch" right after executing odbc's Open().. odbc crashed at retrieve data from a field, datatype: memo.. i did a couple test and found out if the field contain more than 255 characters the my program crashes.. is there anyway to fix the problem? thanx in advance..
-
mfc: tabbing order..hi, how do you change the tabbing order of the different controls in a dialog? i had my dialog created, but i had to make some changes and now the tabbing order is all wrong.. is there a way to reset the tabbing order beside delete every single control and recreate the dialog? thx in advance..
-
need help with odbc with paragraph of text..hi, i'm having problem getting odbc to retrieve paragraph of text from a ms access.. whenever, odbc attempts to read the paragraph text, it alwasy crash.. however, i have no problem storing the paragraph text into the database.. anyone know any solutions? thanx in advance!
-
changing tilebar textthx for the help, once again.. mike. :)
-
ON_WM_KEYDOWN() questionhi, by default using a tree control, if i don't declare on_wm_keydown() in my message map, the treectrl uses its own predefinied actions for the keydown operatiosn.. is it possible to use the predefined keydown operation with the ones that i implemented myself at the same time? ie, if keydown message is vk_up and vk_down, i want to use the default treectrl operation(moving the focus of a node in the tree up and down). if keydown message is vk_insert, i want to use my own function.. is it possible? thanx in advance..
-
changing tilebar texthi, how do i change the titlebar text of a sdi program? i want the titlebar to display "My program", not "My program - Untitled".. is there a way to make the windows not displya "- Untitled"? i tried modifying idr_mainframe, but that didn't work.. thanx in advance..
-
Pig-Latin Translatorwell, you get the input first, then get the length of the string.. once you done all that, you do your while loop.. lemme give you pseudo codes here: let x, y be variables x = input string from the user y = string length of x while(y) { ...do your pig latin thing... y = y -1 }
-
Pig-Latin Translatorwithout looking @ your code in depth.. i can suggest you a ways to solve your infinite loop problem.. instead of using while(cin>english), you can use the length of the string of the input as your while conditional variable.. every loop, you minus the conditional variable by 1.. by the time the conditional variable reach 0(meaning you have finished check every letter), your program will exit the loop for sure..
-
clistctrl in report mode: make the header not clickable.hi, how do you make the header, in report mode(list control), not clickable? thx in advance!
-
AfxMessageBox: change the font size for the input string..hi, when i create a message box using afxmessagebox, can i get afxmessagebox to display the input string(the 1st parameter) in different font, size and color? thx in advance!
-
'CDocument::UpdateAllViews' : illegal call of non-static member function problemmodify the constructor of your dialog class so that it accept a document object.. once you done that, you should be able to call updateallviews from a dialog.. something like this: Cmydialog dialog(...,pDoc); pDoc is the document object that you use to call updateallviews from the your dialog.
-
toolbar programming questionhi, if i have an application, using windows explorer style(consist of left pane and right pane), i want to create a button in the toolbar that delete a selected/highlighted item in either left pane or right pane(can't delete both at the same time).. can this be done? or should i just use 2 buttons instead(one button for deleting items in leftpane and another one for deleting items in right pane).. thx in advance!
-
vc++ compilation question.Michael Dunn wrote: That's impossible to answer without knowing what your program does. As long as you only use features that are in all those OSes, the app should work (in theory). my program uses mfc and odbc. it basically gets input data from the user, stores input data into the db(ms access db, .mdb file is included in the setup) and create text files on the db content(file io).. will these operations work in win2k, win98, and winnt? or do i need to include some .dll with the setup?
-
vc++ compilation question.hi, if i create a vc++(/w visual studio.net under winxp pro) application and compile it using the option 'use mfc in static library'.. will this application work under win2k, win98 and winnt without crashing or require the user to download some kind of windows updates to get it working? if i create a setup files using visual studio.net's 'setup and deployment projects'>'setup wizard', will these setup files works on win98, winnt and win2k? thx in advance.
-
gui programminghi everyone, i want to learn to create gui like the one in norton antivirus(with fancy buttons and animated menu..etc) or any gui that's similar to that.. can someone suggest me a good place to start? thx in advance.. merry xmas!
-
setup and delpoyment questionhi everyone, i tried to create a installer for my application using visual studio .net's 'setup and deployment project'/'setup wizard'/'create windows installer'. my project name is 'setup'. i create the installer after i choose all the files that i wanted to be included in the installer and 5 files are created. they are: setup.msi(88kb), setup.ini(23b), setup.exe(65kb), instmsiw.exe(1.8mb) are instmsia.exe(1.7mb). btw, i'm running winxp pro. my questions: 1) how do you create an executable installer with just 1 file(that will install the application) instead of 5 files? 2) what are the uses of instmsia.exe and instmsiw.exe? i've tried to install the application with these 2 files removed(instmsia.exe and instmsiw.exe).. my application is still installable without these 2 files.. can i just distribute my application without these 2 files? since my application is small in size and these 2 files are taking up alots of space..