Search:

Type: Posts; User: mikeyp

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    2,071

    fab, ok thank you both, I'll have a go now and...

    fab, ok thank you both, I'll have a go now and see where I can go with this.
  2. Replies
    7
    Views
    2,071

    I've created a wxwidgets gui program which takes...

    I've created a wxwidgets gui program which takes a wxtextctrl input and converts it to a string to be processed. I believe everything supports unicode except the printer.

    The computer is a...
  3. Replies
    7
    Views
    2,071

    It's actually an input where I want to be able to...

    It's actually an input where I want to be able to put say "apple £1.50" and have it print it. I'm then printing the string to LPT1.
    I can of course just hardcode it to print the char "\xa3" but I...
  4. Replies
    7
    Views
    2,071

    printer outputting odd chars?

    My program is *almost* done, however whenever I send certain chars to print, eg. the british pound sign "£" gets printed as a "ú". Similarly ‘ and ’ get printed as æ and Æ.

    I'm guessing it is to...
  5. Replies
    3
    Views
    1,142

    hmm, thanks for helping me with this, a lot more...

    hmm, thanks for helping me with this, a lot more complicated than I thought it should be. I had to add another bracket to the second line to make it accept it, but now I'm getting the following:
    ...
  6. Replies
    3
    Views
    1,142

    wxtextctrl clear, stuck on how to structure

    Hi there, I've made a program for myself that takes wxtextctrl fields, arranges them and prints them out using a dot matrix printer, however I need to create a button that on click clears the fields,...
  7. Thread: clear int m?

    by mikeyp
    Replies
    9
    Views
    13,759

    So does that mean that when I create int m; ...

    So does that mean that when I create

    int m;

    its value is 0 anyway?
  8. Thread: clear int m?

    by mikeyp
    Replies
    9
    Views
    13,759

    clear int m?

    my program is looping because
    int m = (any integer)
    stops it from pausing because a condition is being satisfied.

    How do I clear m so that
    m = (nothing)
  9. Replies
    6
    Views
    2,684

    Sorry, I didn't mean that last post to come...

    Sorry, I didn't mean that last post to come accross like that, I meant it to sound like a question because I was asking about where you said about the dialog returning one integer value. I only meant...
  10. Replies
    6
    Views
    2,684

    So really what you're saying is I've chosen the...

    So really what you're saying is I've chosen the wrong way of going about this problem, and really what I need to do is think of something else? Maybe I should just keep the two boxes in the main...
  11. Replies
    6
    Views
    2,684

    So... I've moved the code from the dialog to the...

    So... I've moved the code from the dialog to the main program and set the buttons as a stddialogbuttonsizer. Show it just magically remember my variables? How do I refer to them then?

    I've already...
  12. Replies
    6
    Views
    2,684

    wxdialog return strings

    I've got a wxdialog which produces integers dimxn dimxy and wxString dimcust when OK is pressed.


    void CustomSizeDialog::OnOKButtonClick(wxCommandEvent& event)
    {
    wxString dimx =...
  13. Replies
    5
    Views
    1,510

    Thank you, after working out how to convert...

    Thank you, after working out how to convert wxString to string, processing the text with stringstream and getline worked!

    Cheers!
  14. Replies
    5
    Views
    1,510

    [SOLVED] Break up text at newline

    I'm trying to take text from a multiline text input and break it up to into
    string Address[7] but to do this I need to know how to break the text up at \n

    so if I have "Hello world\nI am...
  15. Replies
    5
    Views
    1,606

    I know I'm new to C++ programming but can you...

    I know I'm new to C++ programming but can you explain what you mean? My request to have it included in the tutorial is based on the below, where I got my code for the char conversion from.
    ...
  16. Replies
    5
    Views
    1,606

    ah cool, thank you, I wonder if this point could...

    ah cool, thank you, I wonder if this point could be added to the C++ tutorial on typecasting?
  17. Replies
    5
    Views
    1,606

    (char)09 not valid?

    ok, if I do the following, I get the following:
    for some reason the compiler thinks that 08 and 09 are octal values. Anything decimal 10+ is fine.


    outp<<(char)09

    gives

    invalid digit "9"...
  18. Replies
    4
    Views
    2,876

    ok, thanks, I'll look into this just as soon as...

    ok, thanks, I'll look into this just as soon as I've finished figuring out printing. :-)
  19. Replies
    4
    Views
    2,876

    So it's not something where you could simply run...

    So it's not something where you could simply run a C++ command to auto insert the pre-defined text into the prompt?
  20. Replies
    4
    Views
    2,876

    user input pre-enter string?

    Using getline(cin, string) is it possible to pre-enter the string so the user can edit it, a bit like when you press up in the console?


    string astring;
    cout<<"Please change this text: ";...
  21. Replies
    7
    Views
    1,179

    ok, forget the last post, I got this to work......

    ok, forget the last post, I got this to work... now all I need is to implement it in my original script.


    void print(string ch[2]) {
    cout<<ch[0]<<ch[1]<<ch[2];
    }

    int main() {
    string...
  22. Replies
    7
    Views
    1,179

    ok, doing well, I understand that much better...

    ok, doing well, I understand that much better now, and I managed to alter the code from the previous post to cout hello, which is good, I now understand that much about needing to pass on a char...
  23. Replies
    7
    Views
    1,179

    Ok, thanks, I can see the logic there, but am...

    Ok, thanks, I can see the logic there, but am still struggling with a couple of smaller points.

    The first is what effect does the "int& a" have as opposed to "int a". I saw it didn't work without...
  24. Replies
    7
    Views
    1,179

    Variables between functions?

    Hi, I'm a little confused and was hoping someone could help me tidy up this problem. I'm trying to write a program which allows the user to input an address, which then prints it on the screen, and...
  25. Sorted it, thanks for your help, prodding me in...

    Sorted it, thanks for your help, prodding me in the right direction helped me find this.
    (Sorry about the messy pasting, it's late, i'm tired and can't be bothered)

    string address[7];
    ...
Results 1 to 25 of 27
Page 1 of 2 1 2