Click here to Skip to main content
14,697,992 members
Home » Discussions » ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: How to get used dll's path information programetically? Pin
Richard MacCutchan8-Nov-12 5:03
mveRichard MacCutchan8-Nov-12 5:03 
GeneralRe: How to get used dll's path information programetically? Pin
litu kumar15-Nov-12 20:53
Memberlitu kumar15-Nov-12 20:53 
GeneralRe: How to get used dll's path information programetically? Pin
Richard MacCutchan16-Nov-12 0:50
mveRichard MacCutchan16-Nov-12 0:50 
AnswerRe: How to get used dll's path information programetically? Pin
hacker240union23-Nov-12 0:41
Memberhacker240union23-Nov-12 0:41 
Questiondetect close event with CAsyncSocket Pin
bkelly135-Nov-12 11:32
Memberbkelly135-Nov-12 11:32 
QuestionIntermediate GUI Techniques Pin
bkelly132-Nov-12 4:21
Memberbkelly132-Nov-12 4:21 
AnswerRe: Intermediate GUI Techniques Pin
Richard MacCutchan2-Nov-12 7:20
mveRichard MacCutchan2-Nov-12 7:20 
Questionproblem with sprintf_s() on win 7 Pin
Member 93537761-Nov-12 22:34
MemberMember 93537761-Nov-12 22:34 
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
Richard MacCutchan1-Nov-12 23:50
mveRichard MacCutchan1-Nov-12 23:50 
GeneralRe: problem with sprintf_s() on win 7 Pin
bkelly132-Nov-12 4:16
Memberbkelly132-Nov-12 4:16 
GeneralRe: problem with sprintf_s() on win 7 Pin
Richard MacCutchan2-Nov-12 7:15
mveRichard MacCutchan2-Nov-12 7:15 
GeneralRe: problem with sprintf_s() on win 7 Pin
Member 93537764-Nov-12 17:34
MemberMember 93537764-Nov-12 17:34 
GeneralRe: problem with sprintf_s() on win 7 Pin
Richard MacCutchan4-Nov-12 22:26
mveRichard MacCutchan4-Nov-12 22:26 
AnswerRe: problem with sprintf_s() on win 7 Pin
H.Brydon26-Nov-12 20:36
professionalH.Brydon26-Nov-12 20:36 
Questionwsageterror() Pin
bkelly131-Nov-12 16:28
Memberbkelly131-Nov-12 16:28 
AnswerRe: wsageterror() Pin
Richard MacCutchan1-Nov-12 23:48
mveRichard MacCutchan1-Nov-12 23:48 
QuestionSTL map issue in VS2010 Pin
Subhash Madhukar30-Oct-12 4:47
MemberSubhash Madhukar30-Oct-12 4:47 
AnswerRe: STL map issue in VS2010 Pin
Richard MacCutchan30-Oct-12 7:04
mveRichard MacCutchan30-Oct-12 7:04 
Questionhow do i copy a CImage DIB to clipboard Pin
Member 951640015-Oct-12 12:15
MemberMember 951640015-Oct-12 12:15 
AnswerRe: how do i copy a CImage DIB to clipboard Pin
chaau15-Oct-12 12:41
Memberchaau15-Oct-12 12:41 
QuestionWhy does this fail - CFile / SeekToEnd? Pin
charlieg10-Oct-12 7:43
Membercharlieg10-Oct-12 7:43 
AnswerRe: Why does this fail - CFile / SeekToEnd? Pin
charlieg10-Oct-12 10:31
Membercharlieg10-Oct-12 10:31 
AnswerRe: Why does this fail - CFile / SeekToEnd? Pin
chaau10-Oct-12 12:23
Memberchaau10-Oct-12 12:23 
GeneralRe: Why does this fail - CFile / SeekToEnd? Pin
charlieg11-Oct-12 3:20
Membercharlieg11-Oct-12 3:20 
AnswerRe: Why does this fail - CFile / SeekToEnd? Pin
Richard MacCutchan10-Oct-12 22:45
mveRichard MacCutchan10-Oct-12 22:45 

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.