Click here to Skip to main content
15,914,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CD ROM burning libraries Pin
Miszou9-Sep-03 6:38
Miszou9-Sep-03 6:38 
GeneralRe: CD ROM burning libraries Pin
Scozturk9-Sep-03 8:06
professionalScozturk9-Sep-03 8:06 
QuestionHow to debug DB2-C Stored procedures sitting on Z/Os from VC++ Editor Pin
Sivasankar A9-Sep-03 0:00
Sivasankar A9-Sep-03 0:00 
AnswerRe: How to debug DB2-C Stored procedures sitting on Z/Os from VC++ Editor Pin
Mike Dimmick9-Sep-03 2:03
Mike Dimmick9-Sep-03 2:03 
GeneralRun-Time Check Failure #2 - Stack around the variable name 'pbuff' was corrupted. Pin
si_698-Sep-03 23:56
si_698-Sep-03 23:56 
GeneralRe: Run-Time Check Failure #2 - Stack around the variable name 'pbuff' was corrupted. Pin
jhwurmbach9-Sep-03 0:24
jhwurmbach9-Sep-03 0:24 
GeneralRe: Run-Time Check Failure #2 - Stack around the variable name 'pbuff' was corrupted. Pin
Ted Ferenc9-Sep-03 0:43
Ted Ferenc9-Sep-03 0:43 
GeneralRe: Run-Time Check Failure #2 - Stack around the variable name 'pbuff' was corrupted. Pin
Steve Thresher9-Sep-03 6:10
Steve Thresher9-Sep-03 6:10 
Get into the habit of using sizeof() eg.
<br />
CString vChr;<br />
TCHAR pbuff[32];<br />
CString Out;<br />
<br />
int num=0;<br />
int nOffset=0;<br />
int nRead;<br />
<br />
//read in the 1st 32 bytes<br />
do<br />
{<br />
  for (int f=0; f<sizeof(pbuff); f++)<br />
    pbuff[f]=NULL;<br />
<br />
  sName="";<br />
  nOffset+=sizeof(pbuff); <br />
  nRead = SimMem.Read(pbuff,sizeof(pbuff));<br />
<br />
  int nLen=0;<br />
<br />
<br />
  int a = (int)pbuff[11]+128;<br />
  TCHAR ch = (char)a;<br />
<br />
  for (f=0; f<10; f++){<br />
    sName += pbuff[f];<br />
}<br />


It will stop you hitting annoying bugs like this...

Systems AXIS Ltd - Software for Business ...
Generalstrange IDM_PRINT Pin
Member 4509908-Sep-03 22:31
Member 4509908-Sep-03 22:31 
GeneralRe: strange IDM_PRINT Pin
xltread30-Aug-10 13:05
xltread30-Aug-10 13:05 
GeneralMemory Management Pin
Dangleberry8-Sep-03 22:18
sussDangleberry8-Sep-03 22:18 
GeneralRe: Memory Management Pin
Andrew Walker9-Sep-03 0:04
Andrew Walker9-Sep-03 0:04 
GeneralRe: Memory Management Pin
Johnny ²9-Sep-03 1:07
Johnny ²9-Sep-03 1:07 
GeneralRe: Memory Management Pin
Dangleberry9-Sep-03 2:13
sussDangleberry9-Sep-03 2:13 
QuestionHow to round a double value Pin
King_of_Queens8-Sep-03 22:13
King_of_Queens8-Sep-03 22:13 
AnswerRe: How to round a double value Pin
Dangleberry8-Sep-03 22:34
sussDangleberry8-Sep-03 22:34 
GeneralRe: How to round a double value Pin
King_of_Queens8-Sep-03 22:55
King_of_Queens8-Sep-03 22:55 
GeneralRe: How to round a double value Pin
Dangleberry8-Sep-03 23:14
sussDangleberry8-Sep-03 23:14 
GeneralRe: How to round a double value Pin
vcplusplus9-Sep-03 1:58
vcplusplus9-Sep-03 1:58 
GeneralRe: How to round a double value Pin
Dangleberry9-Sep-03 2:50
sussDangleberry9-Sep-03 2:50 
GeneralRe: How to round a double value Pin
vcplusplus9-Sep-03 3:20
vcplusplus9-Sep-03 3:20 
GeneralRe: How to round a double value Pin
QuiJohn9-Sep-03 3:20
QuiJohn9-Sep-03 3:20 
AnswerRe: How to round a double value Pin
David Crow9-Sep-03 2:47
David Crow9-Sep-03 2:47 
GeneralRe: How to round a double value Pin
Dangleberry9-Sep-03 3:14
sussDangleberry9-Sep-03 3:14 
AnswerRe: How to round a double value Pin
ohadp9-Sep-03 3:28
ohadp9-Sep-03 3:28 

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.