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...
Type: Posts; User: ice_cracked
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...
So should the rand function seeded with the same value return the same value on any machine it is used on ?
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...
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...
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...
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...
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...
[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...
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...
I very much like that thanks a lot.
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...
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
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...
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...
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...
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...
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...
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...