Click here to Skip to main content
15,897,518 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDownloading files from web sites like rapidshare! Pin
Hadi Dayvary20-Jun-09 9:58
professionalHadi Dayvary20-Jun-09 9:58 
AnswerRe: Downloading files from web sites like rapidshare! Pin
Stuart Dootson20-Jun-09 14:24
professionalStuart Dootson20-Jun-09 14:24 
GeneralRe: Downloading files from web sites like rapidshare! Pin
Hadi Dayvary22-Jun-09 10:12
professionalHadi Dayvary22-Jun-09 10:12 
GeneralRe: Downloading files from web sites like rapidshare! Pin
Stuart Dootson22-Jun-09 10:23
professionalStuart Dootson22-Jun-09 10:23 
QuestionClistCtrl w/Popup Menu - Wrong Menu Item Returned Pin
jon_fallon20-Jun-09 9:47
jon_fallon20-Jun-09 9:47 
AnswerRe: ClistCtrl w/Popup Menu - Wrong Menu Item Returned Pin
Roger Allen21-Jun-09 13:37
Roger Allen21-Jun-09 13:37 
GeneralRe: ClistCtrl w/Popup Menu - Wrong Menu Item Returned Pin
jon_fallon22-Jun-09 2:35
jon_fallon22-Jun-09 2:35 
QuestionWrapper function for sprintf, strcpy, strcat? Pin
dipuks20-Jun-09 7:56
dipuks20-Jun-09 7:56 
Hello

I am working on VS2003 and using the above mentioned functions, but the compiler gives me warning saying those functions are #pragma depreciated.

I know VS2008 has functions like sprintf_s, but unfortunately i will not be able to upgrade to 2008.

So now i want to use a wrapper function around sprintf, which will do the additional work that sprintf_s will do and there by making sure that i call sprintf only once.

This new wrapper function should be able to check for buffer over run and then i will call sprintf inside this function.

What it will do is, it will make sure that, i only need to call sprintf once and that will bring down compiler warning to just one.

Is anyone aware of such a wrapper function? Or can anyone help write a wrapper?

Thanks in advance.
AnswerRe: Wrapper function for sprintf, strcpy, strcat? [modified] Pin
Luc Pattyn20-Jun-09 8:45
sitebuilderLuc Pattyn20-Jun-09 8:45 
AnswerRe: Wrapper function for sprintf, strcpy, strcat? PinPopular
Stephen Hewitt20-Jun-09 21:54
Stephen Hewitt20-Jun-09 21:54 
GeneralWelcome in the CP's Memorable Quotes list. Pin
CPallini21-Jun-09 0:22
mveCPallini21-Jun-09 0:22 
GeneralRe: Welcome in the CP's Memorable Quotes list. Pin
Stephen Hewitt21-Jun-09 3:34
Stephen Hewitt21-Jun-09 3:34 
AnswerRe: Wrapper function for sprintf, strcpy, strcat? Pin
David Crow22-Jun-09 4:21
David Crow22-Jun-09 4:21 
QuestionLink Errors Pin
Muhammad Hassan Haider20-Jun-09 7:25
Muhammad Hassan Haider20-Jun-09 7:25 
AnswerRe: Link Errors Pin
Stuart Dootson20-Jun-09 14:38
professionalStuart Dootson20-Jun-09 14:38 
AnswerRe: Link Errors Pin
«_Superman_»20-Jun-09 17:14
professional«_Superman_»20-Jun-09 17:14 
QuestionTrying to create a Tool bar using the class CToolBar Pin
BobInNJ20-Jun-09 7:02
BobInNJ20-Jun-09 7:02 
Questiontext on a toolbar button not vertically centered Pin
AnantheswarG20-Jun-09 4:29
AnantheswarG20-Jun-09 4:29 
QuestionRead coefficients of linear equations into 2d array Pin
Omar Al Qady20-Jun-09 1:51
Omar Al Qady20-Jun-09 1:51 
AnswerRe: Read coefficients of linear equations into 2d array Pin
chandu00420-Jun-09 2:01
chandu00420-Jun-09 2:01 
GeneralRe: Read coefficients of linear equations into 2d array Pin
Omar Al Qady20-Jun-09 2:23
Omar Al Qady20-Jun-09 2:23 
GeneralRe: Read coefficients of linear equations into 2d array Pin
chandu00420-Jun-09 2:41
chandu00420-Jun-09 2:41 
GeneralRe: Read coefficients of linear equations into 2d array Pin
Luc Pattyn20-Jun-09 2:46
sitebuilderLuc Pattyn20-Jun-09 2:46 
GeneralRe: Read coefficients of linear equations into 2d array Pin
chandu00420-Jun-09 2:54
chandu00420-Jun-09 2:54 
GeneralRe: Read coefficients of linear equations into 2d array Pin
Omar Al Qady20-Jun-09 3:16
Omar Al Qady20-Jun-09 3:16 

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.