Click here to Skip to main content
15,916,180 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Generate Ctrl-Alt-Del programmatically Pin
David Crow27-Aug-03 4:33
David Crow27-Aug-03 4:33 
GeneralAdd/Remove Programs under XP Pin
HeiniBlad26-Aug-03 20:48
HeiniBlad26-Aug-03 20:48 
GeneralRe: Add/Remove Programs under XP Pin
Michael P Butler27-Aug-03 1:42
Michael P Butler27-Aug-03 1:42 
GeneralUse VS .Net to Write & Compile old MFC42 code Pin
HeiniBlad26-Aug-03 20:38
HeiniBlad26-Aug-03 20:38 
GeneralRe: Use VS .Net to Write & Compile old MFC42 code Pin
igor196026-Aug-03 21:14
igor196026-Aug-03 21:14 
Generalstatic const data member -> Compiler error C2057. Pin
Neville Franks26-Aug-03 20:37
Neville Franks26-Aug-03 20:37 
GeneralRe: static const data member -> Compiler error C2057. Pin
Michael Dunn26-Aug-03 21:57
sitebuilderMichael Dunn26-Aug-03 21:57 
GeneralRe: static const data member -> Compiler error C2057. Pin
Neville Franks27-Aug-03 1:24
Neville Franks27-Aug-03 1:24 
Michael Dunn wrote:
I bet it's due to how C++ treats consts at file scope. IIRC (and this is a fine technical point that I may be misremembering) a const at file scope has internal (ie static) linkage and as such, can't be used as a template parameter, nor used in other translation units where a constant is required.

Yes you maybe right about file scope, but I couldn't see that mentioned in my ref. book. I did try adding: extern const int A:m_iMaxClmTextSize; in B.cpp but the compiler didn't like that either.

Thanks for enum idea. Sort of overkill, but should work fine.

Neville Franks, Author of ED for Windows. Free Trial at www.getsoft.com
GeneralRe: static const data member -> Compiler error C2057. Pin
Serge Krynine26-Aug-03 22:56
Serge Krynine26-Aug-03 22:56 
GeneralRe: static const data member -> Compiler error C2057. Pin
Neville Franks27-Aug-03 1:21
Neville Franks27-Aug-03 1:21 
QuestionActiveX keeps running after closing IE ? Pin
suninwater26-Aug-03 20:33
suninwater26-Aug-03 20:33 
AnswerRe: ActiveX keeps running after closing IE ? Pin
suninwater27-Aug-03 14:39
suninwater27-Aug-03 14:39 
GeneralAdding existing files to a DLL Pin
Marina Aronchik26-Aug-03 20:08
Marina Aronchik26-Aug-03 20:08 
QuestionHow i can recognize which thread launch current thread??? Pin
El'Cachubrey26-Aug-03 20:05
El'Cachubrey26-Aug-03 20:05 
AnswerRe: How i can block one thread from another Pin
Joey Bloggs26-Aug-03 20:44
Joey Bloggs26-Aug-03 20:44 
Generalneed help again...IS file or directory Pin
rohit.dhamija26-Aug-03 20:02
rohit.dhamija26-Aug-03 20:02 
GeneralRe: need help again...IS file or directory Pin
henchook26-Aug-03 22:26
henchook26-Aug-03 22:26 
GeneralRe: need help again...IS file or directory Pin
rohit.dhamija27-Aug-03 1:25
rohit.dhamija27-Aug-03 1:25 
GeneralWorking with a CVS Pin
Jerome Conus26-Aug-03 20:01
Jerome Conus26-Aug-03 20:01 
GeneralRe: Working with a CVS Pin
David Crow27-Aug-03 4:52
David Crow27-Aug-03 4:52 
GeneralGet File Extension ....Help out great guys. Pin
rohit.dhamija26-Aug-03 18:23
rohit.dhamija26-Aug-03 18:23 
GeneralRe: Get File Extension ....Help out great guys. Pin
igor196026-Aug-03 18:40
igor196026-Aug-03 18:40 
GeneralRe: Get File Extension ....Help out great guys. Pin
Dave Bryant26-Aug-03 18:47
Dave Bryant26-Aug-03 18:47 
GeneralRe: Get File Extension ....Help out great guys. Pin
rohit.dhamija26-Aug-03 19:45
rohit.dhamija26-Aug-03 19:45 
GeneralRe: Get File Extension ....Help out great guys. Pin
Abin26-Aug-03 21:18
Abin26-Aug-03 21:18 

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.