Click here to Skip to main content
15,902,777 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: stress test application ? Pin
Ravi Bhavnani19-Aug-02 11:57
professionalRavi Bhavnani19-Aug-02 11:57 
GeneralTypcasting string & LPSTR :: MFC Pin
valikac19-Aug-02 10:25
valikac19-Aug-02 10:25 
GeneralRe: Typcasting string & LPSTR :: MFC Pin
Stephane Rodriguez.19-Aug-02 10:31
Stephane Rodriguez.19-Aug-02 10:31 
GeneralRe: Typcasting string & LPSTR :: MFC Pin
Michael Dunn19-Aug-02 10:50
sitebuilderMichael Dunn19-Aug-02 10:50 
GeneralRe: Typcasting string & LPSTR :: MFC Pin
valikac19-Aug-02 11:08
valikac19-Aug-02 11:08 
GeneralRe: Typcasting string & LPSTR :: MFC Pin
valikac19-Aug-02 12:15
valikac19-Aug-02 12:15 
GeneralRe: Typcasting string & LPSTR :: MFC Pin
Le centriste19-Aug-02 13:00
Le centriste19-Aug-02 13:00 
GeneralRe: Typcasting string & LPSTR :: MFC Pin
Michael Dunn19-Aug-02 17:14
sitebuilderMichael Dunn19-Aug-02 17:14 
kuphryn wrote:
(LPSTR)(LPCTSTR)(CString)

That code is patently wrong. The fact that it compiles (because the casts override type checking) and that it even runs (because the buffer just happens not to be modified) does not make the code correct. Sure, it may work in the first situation you try it, but if you make a habit of doing so, it'll eventually break with some other API and you'll be stumped as to why the code "suddenly doesn't work".

--Mike--
Just released - RightClick-Encrypt v1.3 - Adds fast & easy file encryption to Explorer
My really out-of-date homepage
Sonork-100.19012 Acid_Helm

GeneralRe: Typcasting string & LPSTR :: MFC Pin
valikac19-Aug-02 17:24
valikac19-Aug-02 17:24 
GeneralCannot get SW_HIDE to work on Internet Explorer Pin
Ranjan Banerji19-Aug-02 10:23
Ranjan Banerji19-Aug-02 10:23 
GeneralRe: Cannot get SW_HIDE to work on Internet Explorer Pin
Ravi Bhavnani19-Aug-02 11:54
professionalRavi Bhavnani19-Aug-02 11:54 
GeneralRe: Cannot get SW_HIDE to work on Internet Explorer Pin
Ranjan Banerji20-Aug-02 7:14
Ranjan Banerji20-Aug-02 7:14 
GeneralRe: Cannot get SW_HIDE to work on Internet Explorer Pin
Ravi Bhavnani20-Aug-02 7:32
professionalRavi Bhavnani20-Aug-02 7:32 
GeneralUrgent! A release version problem Pin
david fox19-Aug-02 10:18
david fox19-Aug-02 10:18 
GeneralRe: Urgent! A release version problem Pin
Max Santos19-Aug-02 10:24
Max Santos19-Aug-02 10:24 
GeneralRe: Urgent! A release version problem Pin
Neville Franks19-Aug-02 10:37
Neville Franks19-Aug-02 10:37 
GeneralRe: Urgent! A release version problem Pin
david fox19-Aug-02 18:01
david fox19-Aug-02 18:01 
GeneralRe: Urgent! A release version problem Pin
Neville Franks19-Aug-02 18:35
Neville Franks19-Aug-02 18:35 
GeneralRe: Urgent! A release version problem Pin
jhwurmbach19-Aug-02 22:00
jhwurmbach19-Aug-02 22:00 
Generaldirectory browser Pin
ns19-Aug-02 10:17
ns19-Aug-02 10:17 
GeneralRe: directory browser Pin
Tomasz Sowinski19-Aug-02 10:16
Tomasz Sowinski19-Aug-02 10:16 
GeneralRe: directory browser Pin
Renjith Ramachandran19-Aug-02 10:23
Renjith Ramachandran19-Aug-02 10:23 
GeneralRe: directory browser Pin
ns19-Aug-02 10:41
ns19-Aug-02 10:41 
GeneralRe: directory browser Pin
Ravi Bhavnani19-Aug-02 11:48
professionalRavi Bhavnani19-Aug-02 11:48 
GeneralRe: directory browser Pin
ns20-Aug-02 1:47
ns20-Aug-02 1:47 

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.