Click here to Skip to main content
15,898,538 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: ATL DLL Pin
_AnsHUMAN_ 9-Feb-09 19:33
_AnsHUMAN_ 9-Feb-09 19:33 
GeneralRe: ATL DLL Pin
sam_psycho9-Feb-09 21:11
sam_psycho9-Feb-09 21:11 
GeneralRe: ATL DLL Pin
_AnsHUMAN_ 9-Feb-09 22:13
_AnsHUMAN_ 9-Feb-09 22:13 
AnswerRe: ATL DLL Pin
Rahul Vaishnav9-Feb-09 22:10
Rahul Vaishnav9-Feb-09 22:10 
QuestionApplication patch updates in Normal User login Pin
SNI9-Feb-09 17:31
SNI9-Feb-09 17:31 
AnswerRe: Application patch updates in Normal User login Pin
Eytukan9-Feb-09 22:44
Eytukan9-Feb-09 22:44 
QuestionDllRegisterServer() triggering Windows Data Execution Protection (DEP) - String Manipulation Problem Pin
Mike the Red9-Feb-09 16:21
Mike the Red9-Feb-09 16:21 
AnswerRe: DllRegisterServer() triggering Windows Data Execution Protection (DEP) - String Manipulation Problem Pin
«_Superman_»9-Feb-09 17:59
professional«_Superman_»9-Feb-09 17:59 
Your code has a bug.

Mike the Red wrote:
_tcsncpy(szTemp, szPath, (size_t) (pdest + 1));


What do you expect here as the count parameter?
It is taking the value as an address plus 1.
This is going to be a very big value.
Another example of why typecasting must be avoided.

I wonder how it worked in a console application.
I tried it in a console application and it gave me the DEP error.

«_Superman_»

GeneralRe: DllRegisterServer() triggering Windows Data Execution Protection (DEP) - String Manipulation Problem Pin
Mike the Red10-Feb-09 0:41
Mike the Red10-Feb-09 0:41 
GeneralRe: DllRegisterServer() triggering Windows Data Execution Protection (DEP) - String Manipulation Problem Pin
«_Superman_»10-Feb-09 1:51
professional«_Superman_»10-Feb-09 1:51 
QuestionConvert CString objects to int Pin
BobInNJ9-Feb-09 13:22
BobInNJ9-Feb-09 13:22 
AnswerRe: Convert CString objects to int Pin
«_Superman_»9-Feb-09 18:04
professional«_Superman_»9-Feb-09 18:04 
AnswerRe: Convert CString objects to int Pin
SandipG 9-Feb-09 20:15
SandipG 9-Feb-09 20:15 
AnswerRe: Convert CString objects to int Pin
CPallini9-Feb-09 22:03
mveCPallini9-Feb-09 22:03 
AnswerRe: Convert CString objects to int Pin
Rajesh R Subramanian10-Feb-09 3:56
professionalRajesh R Subramanian10-Feb-09 3:56 
QuestionVirtual CD-ROM Pin
RomTibi9-Feb-09 10:20
RomTibi9-Feb-09 10:20 
AnswerRe: Virtual CD-ROM Pin
Iain Clarke, Warrior Programmer9-Feb-09 22:01
Iain Clarke, Warrior Programmer9-Feb-09 22:01 
GeneralRe: Virtual CD-ROM Pin
RomTibi11-Feb-09 5:51
RomTibi11-Feb-09 5:51 
AnswerRe: Virtual CD-ROM Pin
Rajesh R Subramanian10-Feb-09 4:01
professionalRajesh R Subramanian10-Feb-09 4:01 
GeneralRe: Virtual CD-ROM Pin
RomTibi11-Feb-09 5:52
RomTibi11-Feb-09 5:52 
QuestionCan VC++ Console (or MFC) can show the pointer to the screen of Windows XP? [modified] Pin
THA20009-Feb-09 9:38
THA20009-Feb-09 9:38 
QuestionRe: Can VC++ Console (or MFC) can show the pointer to the screen of Windows XP? Pin
David Crow9-Feb-09 10:14
David Crow9-Feb-09 10:14 
AnswerRe: Can VC++ Console (or MFC) can show the pointer to the screen of Windows XP? Pin
Member 592836810-Feb-09 3:53
Member 592836810-Feb-09 3:53 
QuestionRe: Can VC++ Console (or MFC) can show the pointer to the screen of Windows XP? Pin
David Crow10-Feb-09 4:48
David Crow10-Feb-09 4:48 
AnswerRe: Can VC++ Console (or MFC) can show the pointer to the screen of Windows XP? Pin
THA200010-Feb-09 5:11
THA200010-Feb-09 5:11 

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.