Click here to Skip to main content
15,919,931 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Size Limit on NEW??? Pin
David Crow25-Nov-03 2:47
David Crow25-Nov-03 2:47 
AnswerRe: Size Limit on NEW??? Pin
jhwurmbach25-Nov-03 3:41
jhwurmbach25-Nov-03 3:41 
AnswerRe: Size Limit on NEW??? Pin
John R. Shaw25-Nov-03 8:58
John R. Shaw25-Nov-03 8:58 
GeneralFunction to pass from text to float Pin
chadell25-Nov-03 1:36
chadell25-Nov-03 1:36 
GeneralRe: Function to pass from text to float Pin
Mike Dimmick25-Nov-03 2:12
Mike Dimmick25-Nov-03 2:12 
GeneralRe: Function to pass from text to float Pin
Anand Paranjpe25-Nov-03 2:22
Anand Paranjpe25-Nov-03 2:22 
Generalclear a buffer Pin
styve25-Nov-03 1:23
styve25-Nov-03 1:23 
GeneralRe: clear a buffer Pin
Mike Dimmick25-Nov-03 2:15
Mike Dimmick25-Nov-03 2:15 
memset( buffer, 0, sizeof( buffer ) );

or, if using Windows.h, you can also use

ZeroMemory( buffer, sizeof( buffer ) );

although that's a macro which expands to memset in recent SDK releases.

The sizeof trick only works if your buffer was statically allocated as an array (so that the compiler knows the size). Otherwise, you'll need to record the size when you allocate so you know how many bytes to zero.
GeneralPKZIP Pin
Anonymous25-Nov-03 0:13
Anonymous25-Nov-03 0:13 
GeneralRe: PKZIP Pin
Anonymous25-Nov-03 0:43
Anonymous25-Nov-03 0:43 
GeneralKernel32.dll Pin
hph25-Nov-03 0:03
hph25-Nov-03 0:03 
GeneralRe: Kernel32.dll Pin
Daniel132425-Nov-03 0:57
Daniel132425-Nov-03 0:57 
GeneralRe: Kernel32.dll Pin
hph25-Nov-03 0:59
hph25-Nov-03 0:59 
GeneralRe: Kernel32.dll Pin
Daniel132425-Nov-03 1:00
Daniel132425-Nov-03 1:00 
GeneralRe: Kernel32.dll Pin
Anand Paranjpe25-Nov-03 2:31
Anand Paranjpe25-Nov-03 2:31 
GeneralRe: Kernel32.dll Pin
hph25-Nov-03 2:35
hph25-Nov-03 2:35 
QuestionToolbox gone? Pin
Anonymous25-Nov-03 0:01
Anonymous25-Nov-03 0:01 
GeneralOutput Window Refuses to Stay Undocked Pin
Steve Thresher24-Nov-03 23:54
Steve Thresher24-Nov-03 23:54 
GeneralRe: Output Window Refuses to Stay Undocked Pin
Steve Thresher25-Nov-03 4:59
Steve Thresher25-Nov-03 4:59 
GeneralWritting Antivirus program in VC++ Pin
Ilamparithi24-Nov-03 23:52
Ilamparithi24-Nov-03 23:52 
GeneralRe: Writting Antivirus program in VC++ Pin
Anonymous25-Nov-03 3:07
Anonymous25-Nov-03 3:07 
GeneralRe: Writting Antivirus program in VC++ Pin
Ian Darling25-Nov-03 3:20
Ian Darling25-Nov-03 3:20 
GeneralRe: Writting Antivirus program in VC++ Pin
BaldwinMartin25-Nov-03 15:15
BaldwinMartin25-Nov-03 15:15 
Questionhow to detect wether the driver is cd、cdr、cdrw or mo? Pin
w_yufeng24-Nov-03 23:47
w_yufeng24-Nov-03 23:47 
Questionupdatedata? Pin
Zizilamoroso24-Nov-03 23:12
Zizilamoroso24-Nov-03 23:12 

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.