Search:

Type: Posts; User: ice_cracked

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    6,830

    Thanks for your time and reply I must admit I...

    Thanks for your time and reply I must admit I don't follow half of what you are saying :-(
    On my machine using "First Second" as an input string which has 12 characters the 12 is then used to seed...
  2. Replies
    11
    Views
    6,830

    So should the rand function seeded with the same...

    So should the rand function seeded with the same value return the same value on any machine it is used on ?
  3. Replies
    11
    Views
    6,830

    Thanks for the reply but I am now definitely lost...

    Thanks for the reply but I am now definitely lost I am using Code Blocks and the length of my string is 12 characters

    1st return from rand() returns 77 or 0x4D
    2nd return from rand() returns...
  4. Replies
    11
    Views
    6,830

    Object is to change an inputted string characters...

    Object is to change an inputted string characters as per the massaged values of the random number
    I want to use the ist byte of hex value eg. FA in hex value FFFFFFFA
    and add that to the value of...
  5. Replies
    11
    Views
    6,830

    Playing with random numbers

    Hi everyone I am hoping someone can point out the error in the following code fragment (please excuse the sloppy coding I am just starting to learn c).
    First rotation through the for loop correctly...
  6. Works perfectly thank you so very much Now...

    Works perfectly thank you so very much

    Now another small problem I have come across I wish to add FF hex to a value so for example adding to 189 I can use "value -= 1" which works perfectly and...
  7. Scratch that it doesn't work sorry. The...

    Scratch that it doesn't work sorry.

    The Running_Total += charin; line must be causing the problem.

    On entry to the loop for the name "Ice" first rotation puts 49 Capital "I" into Running_Total...
  8. [QUOTE=novacain;1155877]You use a combo of MFC...

    [QUOTE=novacain;1155877]You use a combo of MFC and C IIRC.

    Have you tried....



    _snprintf(output, len-1,"DEC:%d, HEX:%X",charTotal,charTotal);


    IIRC sorry I don't understand what that...
  9. Extracting hex values from character arrays

    Hi using a Dialog based application under MFC I am trying to parse a character string array and total the hex value of each character into a final total.

    I have checked the 18 pages of char to hex...
  10. I very much like that thanks a lot.

    I very much like that thanks a lot.
  11. No high horse I assure you and no one here to try...

    No high horse I assure you and no one here to try and impress I just enjoy assembler and have for years.



    No reason I just always have and don't know any better and no one to teach me except...
  12. Success this is how I did it. I would very...

    Success this is how I did it.

    I would very much appreciate any tips on improvements as I know my coding is pretty sloppy

    thanks in advance
  13. Appreciate your time mate but quite honestly I...

    Appreciate your time mate but quite honestly I don't give a toss on what I use I just want to do the job.

    I stick to Assembly language mostly no headaches like this but turn to MFC Dialog based...
  14. Maybe I should have included I am working on a...

    Maybe I should have included I am working on a Dialog based app under MFC if it makes any difference but using sprintf causes the following error message...

    error C4996: 'sprintf': This function...
  15. Inserting integers into a character array

    greetings I am trying to insert various different integers in different locations within a character array.

    sprintf_s works fine but only to insert at the start of the array.

    I can't for...
  16. You are a legend Sir I disabled the Unicode...

    You are a legend Sir I disabled the Unicode support like you suggested and all of a sudden everything of my old stuff is working again :wink:

    Thank you so much for your time and have a great day...
  17. Sorry for the post in the wrong section I really...

    Sorry for the post in the wrong section I really need to have a look before I jump but thanks very much for your reply.

    I actually copied and pasted your



    MessageBox((HWND)NULL, "You must...
  18. Multiple errors where none occurred before

    greetings I have just installed Visual Studio 2012 and after MANY years of doing nothing I tried out some of my old code which used to work fine but now generates multiple errors. Even MessageBox...
Results 1 to 18 of 18