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

C / C++ / MFC

 
QuestionRe: How to control other non-focus application? Pin
audi023-Aug-09 22:49
audi023-Aug-09 22:49 
QuestionCreating a Data stream Pin
VCProgrammer29-Jul-09 0:55
VCProgrammer29-Jul-09 0:55 
AnswerRe: Creating a Data stream Pin
Iain Clarke, Warrior Programmer29-Jul-09 2:59
Iain Clarke, Warrior Programmer29-Jul-09 2:59 
QuestionHow to display the OpenCV image in CView (MFC) PinPopular
Sonhye Aui28-Jul-09 23:56
Sonhye Aui28-Jul-09 23:56 
QuestionHow to set proxy with xmlhttprequest Pin
Ash_VCPP28-Jul-09 23:30
Ash_VCPP28-Jul-09 23:30 
QuestionCHttpFile::SendRequest problem Pin
msn9228-Jul-09 22:29
msn9228-Jul-09 22:29 
AnswerRe: CHttpFile::SendRequest problem Pin
msn9228-Jul-09 22:58
msn9228-Jul-09 22:58 
GeneralRe: CHttpFile::SendRequest problem Pin
Swapnil Shah28-Jul-09 23:11
Swapnil Shah28-Jul-09 23:11 
GeneralRe: CHttpFile::SendRequest problem Pin
msn9229-Jul-09 1:32
msn9229-Jul-09 1:32 
QuestionScrolling into CListCtrl Pin
siko228-Jul-09 22:13
siko228-Jul-09 22:13 
AnswerRe: Scrolling into CListCtrl Pin
«_Superman_»28-Jul-09 22:49
professional«_Superman_»28-Jul-09 22:49 
QuestionMFC debug checking? Pin
duongcntt4b28-Jul-09 21:47
duongcntt4b28-Jul-09 21:47 
AnswerRe: MFC debug checking? Pin
Code-o-mat28-Jul-09 22:08
Code-o-mat28-Jul-09 22:08 
First of all, macros are evaluated during compile time, not runtime, your #if !defined... thing will be "built into your exe" when you build your program, and then no matter where you run your program from this won't change your already built exe.
A way you could do this is by giving a command line parameter to your program in visual studio and then checking the existence of this parameter in your exe, if it is there, you runned your program from VS, if it is not there, you runned it by doubleclicking it in an explorer window for example.

Does this help?

> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <

QuestionHow to find out a file location Using C language in windows programming? Pin
WindowsVsLinux28-Jul-09 21:32
WindowsVsLinux28-Jul-09 21:32 
QuestionRe: How to find out a file location Using C language in windows programming? Pin
CPallini28-Jul-09 21:38
mveCPallini28-Jul-09 21:38 
AnswerRe: How to find out a file location Using C language in windows programming? Pin
WindowsVsLinux28-Jul-09 21:54
WindowsVsLinux28-Jul-09 21:54 
GeneralRe: How to find out a file location Using C language in windows programming? Pin
CPallini28-Jul-09 22:30
mveCPallini28-Jul-09 22:30 
GeneralRe: How to find out a file location Using C language in windows programming? Pin
WindowsVsLinux28-Jul-09 22:40
WindowsVsLinux28-Jul-09 22:40 
GeneralRe: How to find out a file location Using C language in windows programming? Pin
CPallini28-Jul-09 22:44
mveCPallini28-Jul-09 22:44 
GeneralRe: How to find out a file location Using C language in windows programming? Pin
WindowsVsLinux28-Jul-09 22:47
WindowsVsLinux28-Jul-09 22:47 
QuestionRe: How to find out a file location Using C language in windows programming? Pin
David Crow29-Jul-09 2:44
David Crow29-Jul-09 2:44 
AnswerRe: How to find out a file location Using C language in windows programming? Pin
WindowsVsLinux29-Jul-09 2:57
WindowsVsLinux29-Jul-09 2:57 
GeneralRe: How to find out a file location Using C language in windows programming? Pin
David Crow29-Jul-09 3:04
David Crow29-Jul-09 3:04 
GeneralRe: How to find out a file location Using C language in windows programming? Pin
WindowsVsLinux29-Jul-09 6:33
WindowsVsLinux29-Jul-09 6:33 
QuestionRe: How to find out a file location Using C language in windows programming? Pin
David Crow29-Jul-09 6:57
David Crow29-Jul-09 6:57 

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.