Click here to Skip to main content
15,440,179 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to return value after user input Pin
Richard MacCutchan3-Nov-12 6:07
mveRichard MacCutchan3-Nov-12 6:07 
GeneralRe: how to return value after user input Pin
Member 21198443-Nov-12 7:12
MemberMember 21198443-Nov-12 7:12 
GeneralRe: how to return value after user input Pin
Richard MacCutchan3-Nov-12 8:03
mveRichard MacCutchan3-Nov-12 8:03 
GeneralRe: how to return value after user input Pin
Member 21198443-Nov-12 15:40
MemberMember 21198443-Nov-12 15:40 
GeneralRe: how to return value after user input Pin
Richard MacCutchan3-Nov-12 21:23
mveRichard MacCutchan3-Nov-12 21:23 
GeneralRe: how to return value after user input Pin
Member 21198443-Nov-12 22:59
MemberMember 21198443-Nov-12 22:59 
SuggestionRe: how to return value after user input Pin
David Crow4-Nov-12 16:28
MemberDavid Crow4-Nov-12 16:28 
Questionproblem with sprintf_s() on win 7 Pin
Member 93537761-Nov-12 21:57
MemberMember 93537761-Nov-12 21:57 
char buffer[50]
int offset =3;
char Buffer[250];


sprintf_s(&buffer[offset],offset,"%s",Buffer);

When we use the above funcation and application crashed with the folloing message

---------------------------
Microsoft Visual C++ Debug Library
---------------------------
Debug Assertion Failed!

Program: xyz.exe
File: f:\dd\vctools\crt_bld\self_x86\crt\src\vsprintf.c Line: 244 Expression: ("Buffer too small", 0)

For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.

(Press Retry to debug the application)
---------------------------
Abort Retry Ignore
---------------------------






OS used : Windows 7 32bit OS
Microsoft Visual Studio 2008 (VC++)
Version 9.0.30729.1SP
AnswerRe: problem with sprintf_s() on win 7 Pin
Santhosh G_1-Nov-12 22:34
MemberSanthosh G_1-Nov-12 22:34 
GeneralRe: problem with sprintf_s() on win 7 Pin
Member 93537764-Nov-12 16:46
MemberMember 93537764-Nov-12 16:46 
GeneralRe: problem with sprintf_s() on win 7 Pin
Santhosh G_4-Nov-12 17:08
MemberSanthosh G_4-Nov-12 17:08 
AnswerRe: problem with sprintf_s() on win 7 Pin
CPallini1-Nov-12 22:48
mveCPallini1-Nov-12 22:48 
GeneralRe: problem with sprintf_s() on win 7 Pin
Member 93537764-Nov-12 16:46
MemberMember 93537764-Nov-12 16:46 
GeneralRe: problem with sprintf_s() on win 7 Pin
CPallini4-Nov-12 22:02
mveCPallini4-Nov-12 22:02 
AnswerRe: problem with sprintf_s() on win 7 Pin
Sarath C5-Nov-12 22:14
MemberSarath C5-Nov-12 22:14 
AnswerRe: problem with sprintf_s() on win 7 Pin
Member 935377613-Nov-12 22:48
MemberMember 935377613-Nov-12 22:48 
Questionhow to get motherboard SN Pin
buffay1-Nov-12 19:42
Memberbuffay1-Nov-12 19:42 
AnswerRe: how to get motherboard SN Pin
Richard MacCutchan2-Nov-12 0:37
mveRichard MacCutchan2-Nov-12 0:37 
QuestionChart Control Pin
Tom Paronis1-Nov-12 6:04
MemberTom Paronis1-Nov-12 6:04 
AnswerRe: Chart Control Pin
Richard MacCutchan1-Nov-12 6:48
mveRichard MacCutchan1-Nov-12 6:48 
GeneralRe: Chart Control Pin
Tom Paronis1-Nov-12 7:34
MemberTom Paronis1-Nov-12 7:34 
QuestionCopy CDC Pin
_Flaviu31-Oct-12 22:29
Member_Flaviu31-Oct-12 22:29 
AnswerRe: Copy CDC Pin
Santhosh G_1-Nov-12 1:38
MemberSanthosh G_1-Nov-12 1:38 
GeneralRe: Copy CDC Pin
_Flaviu1-Nov-12 2:20
Member_Flaviu1-Nov-12 2:20 
QuestionStrange memory leak Pin
miniman0631-Oct-12 21:58
Memberminiman0631-Oct-12 21:58 

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.