Click here to Skip to main content
15,921,622 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: data types conversion Pin
shpid3r18-Sep-07 8:34
shpid3r18-Sep-07 8:34 
AnswerRe: data types conversion Pin
DevMentor.org18-Sep-07 8:43
DevMentor.org18-Sep-07 8:43 
GeneralRe: data types conversion Pin
shpid3r18-Sep-07 9:04
shpid3r18-Sep-07 9:04 
QuestionRe: data types conversion Pin
shpid3r18-Sep-07 9:11
shpid3r18-Sep-07 9:11 
GeneralRe: data types conversion Pin
DevMentor.org18-Sep-07 9:30
DevMentor.org18-Sep-07 9:30 
AnswerDWORD Solved. How about double and SYSTEMTIME [modified] Pin
shpid3r19-Sep-07 0:29
shpid3r19-Sep-07 0:29 
GeneralRe: DWORD Solved. How about double and SYSTEMTIME Pin
DevMentor.org19-Sep-07 8:52
DevMentor.org19-Sep-07 8:52 
AnswerAll Issues Solved. 10x for support Pin
shpid3r19-Sep-07 10:53
shpid3r19-Sep-07 10:53 
Well, I now did write sizeof(buffer) instead of fix size, and I understand the benefits, thanks to you.
I wonder how you found out about me using strlen, was just a trial (it wasn`t that obvious for me that was wrong before trying it), and I've modified the post when I`ve discovered that it doesn`t work. Indeed,learned on the hard way, strlen on a buffer is a No-No.
Thank's for the tip about zeroing the buffer before calling _ui64toa_s(). It does ring a bell, now., though in my application this part of the code comes to execution only when data exists in all fields I convert, so it's not posibile to have to convert an old value. Anyway, for future practice...

Concerning double to string, I used var-(int)var (where var was of type: double) to get the integer part (which was... int) and used _itoa_s to convert it into a string, and the rest I started multiplying by 10 (I only needed 4 digits after .) .

SYSTEMTIME is a structure type, in which all components are of type WORD. So perhaps _itoa_s() - or someone in it`s family - will do the trick.
Thanks again for all your help!
Best wishes!

---
One chance in a million is still a chance!
QuestionUsing Emoticons(Smilies) in Rich Text Box Pin
ddspliting18-Sep-07 7:23
ddspliting18-Sep-07 7:23 
AnswerRe: Using Emoticons(Smilies) in Rich Text Box Pin
Nathan Holt at EMOM18-Sep-07 7:35
Nathan Holt at EMOM18-Sep-07 7:35 
QuestionConvert Problem CString to double Pin
Andy20218-Sep-07 7:03
Andy20218-Sep-07 7:03 
AnswerRe: Convert Problem CString to double Pin
Chris Losinger18-Sep-07 7:12
professionalChris Losinger18-Sep-07 7:12 
AnswerRe: Convert Problem CString to double Pin
Maximilien18-Sep-07 7:13
Maximilien18-Sep-07 7:13 
AnswerRe: Convert Problem CString to double [modified] Pin
DevMentor.org18-Sep-07 8:08
DevMentor.org18-Sep-07 8:08 
AnswerRe: Convert Problem CString to double Pin
Mark Salsbery18-Sep-07 9:03
Mark Salsbery18-Sep-07 9:03 
Question[Winsock] Get the address of the internet connected NIC Pin
ioctl5118-Sep-07 5:32
ioctl5118-Sep-07 5:32 
AnswerRe: [Winsock] Get the address of the internet connected NIC Pin
DevMentor.org18-Sep-07 6:24
DevMentor.org18-Sep-07 6:24 
AnswerRe: [Winsock] Get the address of the internet connected NIC Pin
DevMentor.org18-Sep-07 6:37
DevMentor.org18-Sep-07 6:37 
GeneralRe: [Winsock] Get the address of the internet connected NIC Pin
ioctl5118-Sep-07 21:29
ioctl5118-Sep-07 21:29 
QuestionRead a string from registry Pin
john563218-Sep-07 4:51
john563218-Sep-07 4:51 
AnswerRe: Read a string from registry Pin
Mark Salsbery18-Sep-07 5:09
Mark Salsbery18-Sep-07 5:09 
GeneralRe: Read a string from registry Pin
led mike18-Sep-07 6:36
led mike18-Sep-07 6:36 
GeneralRe: Read a string from registry Pin
Mark Salsbery18-Sep-07 6:42
Mark Salsbery18-Sep-07 6:42 
GeneralRe: Read a string from registry Pin
led mike18-Sep-07 6:46
led mike18-Sep-07 6:46 
GeneralRe: Read a string from registry Pin
David Crow18-Sep-07 6:57
David Crow18-Sep-07 6:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.