User Profile

Collapse

Profile Sidebar

Collapse
radders
radders
Last Activity: Jan 19 '07, 09:21 AM
Joined: Jan 10 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • radders
    replied to fprintf
    in C
    I think itoa would do it in C++, but not sure about C...on the other hand I've only just started programming so i could be wrong - hope not!!
    Radders...
    See more | Go to post

    Leave a comment:


  • radders
    replied to Randomize..
    in C
    Indeed if the book gives no context in the question you could have a laugh writing all sorts of arguably "correct" answers, for example:
    When choosing a country's leader from the population
    When deciding who plays in which position in a professional football team!
    Radders...
    See more | Go to post

    Leave a comment:


  • radders
    started a topic Clear/ Re-paint / Invalidate function?
    in C

    Clear/ Re-paint / Invalidate function?

    Hi everyone, I've written a simple programme using Visual C++ that assigns the values of the mouse's coordinates to a set of variables each time the mouse is moved to a new position with a button pressed. It then draws a line between the new cursor position and the position stored in the variables, allowing you to sketch with the mouse. What I would like to do is assign a function to repaint the dialogue box to its initial setting (i.e. only containing...
    See more | Go to post

  • radders
    started a topic Edit boxes and static text on a click button
    in C

    Edit boxes and static text on a click button

    Hi guys,
    What I'd like to do is place three edit boxes with three static text labels on a click button. This would let the user input RGB values to the three edit boxes and then click the button to reset the RGB values to 0. Is this possible? I know I could just place a reset button below or to the side, but it doesn't look as good!
    Cheers, radders
    See more | Go to post

  • radders
    started a topic C++ wrapper class for OLE control
    in C

    C++ wrapper class for OLE control

    Hi everyone, I'm working through a book of tutorials for microsoft Visual C++ v4, but unfortunately my Class Wizard does not appear to work correctly - I finally managed to assign member variables to controls with the patient help of Willakawill, but now I've reached a new problem.
    I'm trying to write a simple programme that uses the OLE Control "Grid Control" and the book tells me that before you can attach a variable to the Grid...
    See more | Go to post

  • radders
    replied to Problems adding member variables to controls
    in C
    Sorry, I think I might not have explained clearly enough what I'm trying to do.
    I would like to assign the contents of the edit box as a variable and the settings of two check boxes as two more variables. Hence I had one variable of type CString and two of type BOOL.
    I would then like to use the settings of the check boxes to control the edit box: if the "visible" check box is checked then the edit box is visible, if not...
    See more | Go to post

    Leave a comment:


  • radders
    replied to Problems adding member variables to controls
    in C
    Having now found more time to continue writing this programme I find that the variables initially defined do not function as they should do - ie the code written using them does nothing, but the programme builds. I presume this is caused by my 'bodge' of (CWnd&) to remove the parsing error described above. I guess that this in fact converts them from type BOOL/CString to CWnd& and hence they do not function as I had hoped they would. This...
    See more | Go to post

    Leave a comment:


  • radders
    replied to Problems adding member variables to controls
    in C
    I ran out of time to edit this, so had to post again. I've found that the cause of my problem was I had to insert "(CWnd&)" before the variable name for the DDX_Controls to parse. Insertion of this has solved the problem, but I don't quite understand how it works - could someone please explain to me why it will only work with (CWnd&) in front of the name - I realise that the variables are of a different type otherwise, but why does...
    See more | Go to post

    Leave a comment:


  • radders
    replied to Problems adding member variables to controls
    in C
    Hi again willakawill!
    That has helped a huge amount as I have now registered the necessary variables to the controls. I've also defined the variables by right-clicking on the class name and adding the variables, one as CString and two as BOOL. However when I try to build the programme I get the following error messages:

    ...error 2664: 'DDX Control' : Cannot convert parameter 3 from 'class CString' to class 'CWnd &' (new...
    See more | Go to post

    Leave a comment:


  • radders
    replied to Problems adding member variables to controls
    in C
    I right clicked on the class name and chose: Add Variable. This produced a window where I had to specify Variable Type and Variable Declaration, which I set as CString and m_TestEdit respectively. Could you please explain to me how I would specify this variable as a control variable?
    Thanks, Radders
    See more | Go to post

    Leave a comment:


  • radders
    replied to Problems adding member variables to controls
    in C
    Hi willakawill
    No, I hadn't been adding the control variables that way.The way it was described in the manual was to add a new variable to the Control ID of the control with which I am trying to use it, through the Class Wizard

    I have now added a variable named: m_TestEdit of type: CString to my dialogue box class, but it still doesn't show up in the Member Variables tab of the Class Wizard, so how do I go about attaching the...
    See more | Go to post

    Leave a comment:


  • radders
    started a topic Problems adding member variables to controls
    in C

    Problems adding member variables to controls

    I've just started working through Sams publishing's "Teach yourself Visual C++ 4 in 21 days", using VC++ version 4.0 on a windows xp machine. My problem occurs when I attempt to add member variables to controls that I have added to a dialog box through the Class Wizard, Member Variables tab. I can only see the Control IDs of the two Push Button Controls that are initially created by the MFC App Wizard - Ok and Cancel, despite having deleted...
    See more | Go to post
No activity results to display
Show More
Working...