Click here to Skip to main content
15,918,889 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCListCtrl is not display the information in 64-bit windows OS Pin
ksrameshkanth5-Aug-07 18:58
ksrameshkanth5-Aug-07 18:58 
AnswerRe: CListCtrl is not display the information in 64-bit windows OS Pin
prasad_som5-Aug-07 20:12
prasad_som5-Aug-07 20:12 
Questionconst keyword Pin
lavanya815-Aug-07 18:48
lavanya815-Aug-07 18:48 
AnswerRe: const keyword Pin
Shouvik Das5-Aug-07 19:52
Shouvik Das5-Aug-07 19:52 
AnswerRe: const keyword Pin
toxcct5-Aug-07 22:20
toxcct5-Aug-07 22:20 
QuestionIs there any possibilty to create Drawing area in MFC? Pin
vikramkarthik5-Aug-07 18:29
vikramkarthik5-Aug-07 18:29 
AnswerRe: Is there any possibilty to create Drawing area in MFC? Pin
Hamid_RT5-Aug-07 19:11
Hamid_RT5-Aug-07 19:11 
AnswerRe: Is there any possibilty to create Drawing area in MFC? Pin
Anurag Gandhi5-Aug-07 19:24
professionalAnurag Gandhi5-Aug-07 19:24 
AnswerRe: Is there any possibilty to create Drawing area in MFC? Pin
ThatsAlok5-Aug-07 19:39
ThatsAlok5-Aug-07 19:39 
QuestionError regarding .sbr file in VC++ 2005 Pin
yudhisthira5-Aug-07 18:26
yudhisthira5-Aug-07 18:26 
AnswerRe: Error regarding .sbr file in VC++ 2005 Pin
Paresh Chitte5-Aug-07 19:40
Paresh Chitte5-Aug-07 19:40 
GeneralRe: Error regarding .sbr file in VC++ 2005 Pin
yudhisthira5-Aug-07 19:55
yudhisthira5-Aug-07 19:55 
GeneralRe: Error regarding .sbr file in VC++ 2005 Pin
Paresh Chitte5-Aug-07 20:02
Paresh Chitte5-Aug-07 20:02 
AnswerRe: Error regarding .sbr file in VC++ 2005 Pin
Shouvik Das5-Aug-07 19:48
Shouvik Das5-Aug-07 19:48 
GeneralRe: Error regarding .sbr file in VC++ 2005 Pin
yudhisthira5-Aug-07 19:55
yudhisthira5-Aug-07 19:55 
AnswerRe: Error regarding .sbr file in VC++ 2005 Pin
ThatsAlok5-Aug-07 19:53
ThatsAlok5-Aug-07 19:53 
GeneralRe: Error regarding .sbr file in VC++ 2005 Pin
yudhisthira5-Aug-07 19:56
yudhisthira5-Aug-07 19:56 
GeneralRe: Error regarding .sbr file in VC++ 2005 Pin
ThatsAlok5-Aug-07 20:20
ThatsAlok5-Aug-07 20:20 
Questionstatic member variable, dll export and multiple translation units Pin
devvvy5-Aug-07 15:43
devvvy5-Aug-07 15:43 
AnswerRe: static member variable, dll export and multiple translation units [modified*2] Pin
Mark Salsbery5-Aug-07 16:41
Mark Salsbery5-Aug-07 16:41 
GeneralRe: static member variable, dll export and multiple translation units Pin
devvvy5-Aug-07 18:42
devvvy5-Aug-07 18:42 
thanks but if I don't guard
<br />
...<br />
class __declspec(dllexport) CLogEntry<br />
{<br />
public:<br />
	...<br />
	static CLog* GetSingletonLoggingProvider() { return s_pSingletonLoggingProvider; }<br />
	<br />
	...<br />
	<br />
protected:<br />
	...<br />
protected:<br />
	...<br />
<br />
	static CLog * s_pSingletonLoggingProvider;<br />
};<br />
<br />
<br />
CLog * CLogEntry::s_pSingletonLoggingProvider = NULL;<br />
#endif<br />


with #ifndef:
<br />
#ifndef _LOGSINGLETON_<br />
#define _LOGSINGLETON_<br />
CLog * CLogEntry::s_pSingletonLoggingProvider = NULL;<br />


then I'd get:
<br />
Linking...<br />
StartupManager.obj : error LNK2005: "protected: static class CLog * CLogEntry::s_pSingletonLoggingProvider" (?s_pSingletonLoggingProvider@CLogEntry@@1PAVCLog@@A) already defined in LogEntry.obj<br />
StartupManager.obj : error LNK2005: "protected: static class CLog * CLogEntry::s_pSingletonLoggingProvider" (?s_pSingletonLoggingProvider@CLogEntry@@1PAVCLog@@A) already defined in LogEntry.obj<br />
StartupManager.obj : warning LNK4006: "protected: static class CLog * CLogEntry::s_pSingletonLoggingProvider" (?s_pSingletonLoggingProvider@CLogEntry@@1PAVCLog@@A) already defined in LogEntry.obj; second definition ignored<br />
   Creating library ..\bin\Utilities.lib and object ..\bin\Utilities.exp<br />
..\bin\Utilities.dll : fatal error LNK1169: one or more multiply defined symbols found<br />
Error executing link.exe.<br />


Should I just include it in ".cpp" instead?
GeneralRe: static member variable, dll export and multiple translation units Pin
Mark Salsbery5-Aug-07 19:23
Mark Salsbery5-Aug-07 19:23 
GeneralRe: static member variable, dll export and multiple translation units [modified*2] Pin
devvvy5-Aug-07 22:17
devvvy5-Aug-07 22:17 
GeneralRe: static member variable, dll export and multiple translation units Pin
Mark Salsbery6-Aug-07 4:59
Mark Salsbery6-Aug-07 4:59 
GeneralRe: static member variable, dll export and multiple translation units [modified*2] Pin
devvvy5-Aug-07 22:24
devvvy5-Aug-07 22:24 

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.