Click here to Skip to main content
15,878,945 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: get instance of object (in exe) from dll caller Pin
pasztorpisti17-Sep-12 6:57
pasztorpisti17-Sep-12 6:57 
GeneralRe: get instance of object (in exe) from dll caller Pin
MrKBA17-Sep-12 9:32
MrKBA17-Sep-12 9:32 
JokeRe: get instance of object (in exe) from dll caller Pin
pasztorpisti17-Sep-12 13:43
pasztorpisti17-Sep-12 13:43 
GeneralRe: get instance of object (in exe) from dll caller Pin
pasztorpisti17-Sep-12 13:48
pasztorpisti17-Sep-12 13:48 
AnswerRe: get instance of object (in exe) from dll caller Pin
Richard MacCutchan17-Sep-12 22:16
mveRichard MacCutchan17-Sep-12 22:16 
AnswerRe: get instance of object (in exe) from dll caller Pin
Stephen Hewitt18-Sep-12 18:49
Stephen Hewitt18-Sep-12 18:49 
QuestionCAsyncSocket Connect says in use Pin
bkelly1316-Sep-12 6:07
bkelly1316-Sep-12 6:07 
Answerunexpected behavior Pin
bkelly1316-Sep-12 10:07
bkelly1316-Sep-12 10:07 
AnswerRe: CAsyncSocket Connect says in use Pin
Richard Andrew x6416-Sep-12 11:53
professionalRichard Andrew x6416-Sep-12 11:53 
AnswerRe: CAsyncSocket Connect says in use Pin
pasztorpisti16-Sep-12 12:05
pasztorpisti16-Sep-12 12:05 
GeneralRe: CAsyncSocket Connect says in use Pin
bkelly1316-Sep-12 12:55
bkelly1316-Sep-12 12:55 
GeneralRe: CAsyncSocket Connect says in use Pin
pasztorpisti16-Sep-12 13:09
pasztorpisti16-Sep-12 13:09 
GeneralRe: CAsyncSocket Connect says in use Pin
bkelly1316-Sep-12 13:17
bkelly1316-Sep-12 13:17 
GeneralRe: CAsyncSocket Connect says in use Pin
pasztorpisti16-Sep-12 13:34
pasztorpisti16-Sep-12 13:34 
GeneralRe: CAsyncSocket Connect says in use Pin
bkelly1316-Sep-12 14:07
bkelly1316-Sep-12 14:07 
Questionbetter version of strcpy() and printf() Pin
bkelly1315-Sep-12 10:02
bkelly1315-Sep-12 10:02 
AnswerRe: better version of strcpy() and printf() Pin
Paul M Watt15-Sep-12 12:33
mentorPaul M Watt15-Sep-12 12:33 
bkelly13 wrote:
Are there any versions of ...cpy...() and ...printf...() that limit the count of
characters copied to the space found in the destination string.  
Without an ungracefull app crash?


Unfortunately, No. Strcpy and printf are two of the most common functions that hackers use to exploit programming errors to "hack" into a program. When using these functions you need to pay extra attention to the size of your memory buffers and the actions you are performing on them.

You may have better luck with the C++ Standard Library.

The std::string class will manage your memory buffers, copies and concatenations.
std::cout doesn't have the program crash issues that you are running into.
All of my software is powered by a single Watt.

GeneralRe: better version of strcpy() and printf() Pin
bkelly1315-Sep-12 15:34
bkelly1315-Sep-12 15:34 
GeneralRe: better version of strcpy() and printf() Pin
Paul M Watt15-Sep-12 15:45
mentorPaul M Watt15-Sep-12 15:45 
GeneralRe: better version of strcpy() and printf() Pin
bkelly1315-Sep-12 16:23
bkelly1315-Sep-12 16:23 
GeneralRe: better version of strcpy() and printf() Pin
pasztorpisti16-Sep-12 6:54
pasztorpisti16-Sep-12 6:54 
GeneralRe: better version of strcpy() and printf() Pin
Richard MacCutchan16-Sep-12 0:10
mveRichard MacCutchan16-Sep-12 0:10 
AnswerRe: better version of strcpy() and printf() Pin
Richard Andrew x6415-Sep-12 17:01
professionalRichard Andrew x6415-Sep-12 17:01 
AnswerRe: better version of strcpy() and printf() Pin
Richard MacCutchan16-Sep-12 0:09
mveRichard MacCutchan16-Sep-12 0:09 
AnswerRe: better version of strcpy() and printf() Pin
pasztorpisti16-Sep-12 1:37
pasztorpisti16-Sep-12 1:37 

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.