I compiled my program and it works on my own pc but when i run it on a laptop, the error appeared: unable to link to the afxdao.lib or header file. Where can i get the lib file to install to the laptop?
coda_x
Posts
-
cannot find afxdao.lib -
radio buttons problemi tried the following but somehow the radio buttons do not work accordingly. UpdateData (TRUE); if(m_radio=0){ do this...} if(m_radio=1){ {do this...} if(m_radio=2){ {do this...} i have 3 radio buttons grouped together.
-
radio buttons and check boxesI have 3 checkboxes, if i put 1st one under group, does that mean that i can only select one box at any one time, just like in radio buttons? Also, for radio buttons, are they assigned button1 = -1, button 2=0, button3=1 and so forth? cause i need to use if else statements for the different buttons.
-
how do i align text together?suppose my original text reads: name: xxx horoscope: yyyyy but i want to change it such that my xxx and yyyyy are aligned together. what code should i write?
-
how to adjust line spacing within text?I want to make the spacing between text lines bigger: eg from : this is my book to: this is my book what is the code to do that?
-
how to enable/disable on mouse click?I have an edit box to be enabled when user tick check box and disabled when box is unchecked. I want the disabling/enabling to be done immediately after user use the mouse click to check/uncheck. How do i detect the mouse click? currently the code is: if(left mouse click and box is checked){ GetDlgItem( IDC_BUTTON1 )->EnableWindow(TRUE);} else{ GetDlgItem( IDC_BUTTON1 )->EnableWindow(FALSE); }
-
how to enable an edit box?I disabled my edit box in my dialog but i wish to enable it later on when a check box is checked. How do i code it? i tried: if(m_check==TRUE){ m_edit.EnableWindow(TRUE)} but cannot work.
-
radio button statesi have 2 radio buttons grouped together, variable name is m_button, when i checked the .cpp file, m_button =-1 (initialized). How do i detect which button has been checked? if i use: if(m_button!=-1) then this means can be button a or button b but i want to detect specifically either one. anyone can clarify? thanx
-
problem with dialog scrollsI enabled the horizontal and vertical scrolling options in my dialog properties but how come when i run it, the scrollers doesn't work even though my dialog is bigger then screen size.
-
about using view in a dialog applicationI created a dialog that has sort of a "view" based on tutorial here.The class for "view" i called it COpengl for drawing. I have some controls on the dialog. How do i get the COpengl class (or rather the OnPAint() in this class)to retrieve the current values from the dialog needed for drawing?
-
to change drawing size of SDI formviewhi, i wish to change the size of the drawing area(black background in my case) so that can distinguish between this area and the grey background for putting dialog controls, is it possible? i do not want to use splitter windows... any solution will appreciate ;)
-
need help on setting state flagsyah something like that, do I add it as member variable to both view and all dialog classes using the "add member variable" in the class view tab and of type:boolean and public? Also , i have another problem: i need the current values of the dialog in order to draw to SDI view, but first i want to capture these values in the SDI doc class, how do i code that assumming the values needed are length, breadth from dialog A. The dialogs are modal.
-
how to vary the size of the view using SDI formview?thanx for replying. actually what i meant was how to set the visual view - white screen for drawing to half the window size so that i can place controls on the other half which is not on white blackground.:doh:
-
need help on setting state flagsI am relatively new to programming and i need help on coding for state flags. my problem is: I want to set a state flag which sort of act as a switch for my onpaint() to be executed after my dialog has beem accessed in SDI. How do i code that line in my dialog and Onpaint(). Also, by doing this, will my onpaint() be able to access the updated values in the dialog? (as i need these values in order to draw).will greatly appreciate any kind help.
-
how to vary the size of the view using SDI formview?i created an SDI using formview. i wish to use half of the formview for visualization purposes, and the other half for placing dialog controls. how do i change the view size?
-
how to call Onpaint only when dialog is receiving user inputs?thanx for replying. i am considering alternative or setting state flags but i not sure how to code that in child dialog and view class's Onpaint().can you illustrate?
-
query on SDI doc/view and openglhi I have an SDI with a few dialogs within for user interactions. I wish to know if it is possible for the doc class to gather data from the dialogs and then using the OnPaint() in view class to draw the graphics? I been having problems trying to connect the user input data to visual display. is there any way to directly code drawing in view class and then execute when after dialogs are accessed?
-
how to call Onpaint only when dialog is receiving user inputs?i have a main dialog containing 3 child dialogs. I created a COpenglclass in main dialog such that any image visualization will take place in the main dialog. But i do not know how to detect that if any child dialogs are accessed only then will my drawing code in the COpengl class take in data from the child dialog and show the relevant image. need help on this urgently
-
project problemi am not very proficient in programming so can tell me how can i code that supposing my dialog is called dialog A? thank you
-
project problemi created an SDI with several dialogs within for my project. Each time user input data into certain dialog, my Onpaint() in view class will show the image in the main window. It is more of like reading in user inputs and visualizing images at every dialog stage. Problem is, how do i control when to show the image? ie, i only want the Onpaint() to draw when dialog is receiving inputs instead of at beginning of program where of course my dialog is not activated yet. Also, i intend to put my drawing code in the various dialog.cpp files and call my those drawing fucntions in the onpaint(), is it the right approach? will appreciate if anyone can help