Click here to Skip to main content
15,914,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionMotion Detection Pin
tyagineha28-May-07 19:27
tyagineha28-May-07 19:27 
AnswerRe: Motion Detection Pin
Programm3r28-May-07 19:53
Programm3r28-May-07 19:53 
AnswerRe: Motion Detection Pin
Hamid_RT28-May-07 20:03
Hamid_RT28-May-07 20:03 
AnswerRe: Motion Detection Pin
Amar Sutar28-May-07 21:10
Amar Sutar28-May-07 21:10 
QuestionDeclaring Global Variable Pin
Anurag Gandhi28-May-07 19:21
professionalAnurag Gandhi28-May-07 19:21 
AnswerRe: Declaring Global Variable Pin
autodebug28-May-07 19:33
autodebug28-May-07 19:33 
GeneralRe: Declaring Global Variable Pin
Anurag Gandhi28-May-07 19:39
professionalAnurag Gandhi28-May-07 19:39 
GeneralRe: Declaring Global Variable Pin
jhwurmbach28-May-07 22:41
jhwurmbach28-May-07 22:41 
Anurag Gandhi wrote:
Will .cpp file work?


Not by itself. As you are not including a .CPP (You are not, are you?), no other code chunks would know about your global.

Anurag Gandhi wrote:
because i want some initialization also at the time of declaration.


Sufficiently recent compilers allow static constants to be initialized in the .h.
If not, you declare in the .H you include everywhere, and define ONCE in a .CPP




Failure is not an option - it's built right in.

AnswerRe: Declaring Global Variable Pin
Matthew Faithfull28-May-07 22:55
Matthew Faithfull28-May-07 22:55 
AnswerRe: Declaring Global Variable Pin
Nelek29-May-07 1:23
protectorNelek29-May-07 1:23 
QuestionASSERT(m_pCtrlSite == NULL) error on activex addition Pin
shivditya28-May-07 16:44
shivditya28-May-07 16:44 
AnswerRe: ASSERT(m_pCtrlSite == NULL) error on activex addition Pin
Garth J Lancaster29-May-07 1:22
professionalGarth J Lancaster29-May-07 1:22 
AnswerRe: ASSERT(m_pCtrlSite == NULL) error on activex addition Pin
Garth J Lancaster30-May-07 0:58
professionalGarth J Lancaster30-May-07 0:58 
QuestionTitle bar Pin
Aint28-May-07 15:33
Aint28-May-07 15:33 
AnswerRe: Title bar Pin
Naveen28-May-07 15:40
Naveen28-May-07 15:40 
GeneralRe: Title bar Pin
Aint28-May-07 17:07
Aint28-May-07 17:07 
GeneralRe: Title bar Pin
Naveen28-May-07 17:16
Naveen28-May-07 17:16 
QuestionBluetooth and WinSocks problem Pin
(Steven Hicks)n+128-May-07 10:45
(Steven Hicks)n+128-May-07 10:45 
AnswerRe: Bluetooth and WinSocks problem Pin
Mark Salsbery28-May-07 13:28
Mark Salsbery28-May-07 13:28 
GeneralRe: Bluetooth and WinSocks problem Pin
(Steven Hicks)n+128-May-07 13:43
(Steven Hicks)n+128-May-07 13:43 
GeneralRe: Bluetooth and WinSocks problem Pin
Mark Salsbery28-May-07 13:52
Mark Salsbery28-May-07 13:52 
GeneralRe: Bluetooth and WinSocks problem Pin
(Steven Hicks)n+128-May-07 14:48
(Steven Hicks)n+128-May-07 14:48 
GeneralRe: Bluetooth and WinSocks problem Pin
Mark Salsbery28-May-07 14:53
Mark Salsbery28-May-07 14:53 
GeneralRe: Bluetooth and WinSocks problem Pin
(Steven Hicks)n+128-May-07 15:26
(Steven Hicks)n+128-May-07 15:26 
GeneralRe: Bluetooth and WinSocks problem Pin
Mark Salsbery28-May-07 15:54
Mark Salsbery28-May-07 15:54 

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.