Click here to Skip to main content
15,922,894 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Exe files Pin
Roger Wright30-Dec-03 10:22
professionalRoger Wright30-Dec-03 10:22 
GeneralRe: Exe files Pin
HackerBoy30-Dec-03 10:35
HackerBoy30-Dec-03 10:35 
GeneralRe: Exe files Pin
Roger Wright30-Dec-03 11:00
professionalRoger Wright30-Dec-03 11:00 
GeneralRe: Exe files Pin
Niall Barr30-Dec-03 11:28
professionalNiall Barr30-Dec-03 11:28 
GeneralRe: Exe files Pin
Michael P Butler30-Dec-03 8:50
Michael P Butler30-Dec-03 8:50 
GeneralVisual C++ .NET and bug with warnings Pin
Mendicant30-Dec-03 6:37
Mendicant30-Dec-03 6:37 
GeneralRe: Visual C++ .NET and bug with warnings Pin
Michael Dunn30-Dec-03 6:49
sitebuilderMichael Dunn30-Dec-03 6:49 
GeneralRe: Visual C++ .NET and bug with warnings Pin
Orhun Birsoy30-Dec-03 10:06
Orhun Birsoy30-Dec-03 10:06 
First, the warnings are :
C4251 : 'identifier' : class 'type' needs to have dll-interface to be used by clients of class 'type2'
C4275 : non ? DLL-interface classkey 'identifier' used as base for DLL-interface classkey 'identifier'
C4661 : 'identifier' : no suitable definition provided for explicit template instantiation request


For 4251 and 4275,
From MSDN
"Inheritance and Exportable Classes
All base classes of an exportable class must be exportable. If not, a compiler warning is generated. Moreover, all accessible members that are also classes must be exportable. This rule permits a dllexport class to inherit from a dllimport class, and a dllimport class to inherit from a dllexport class (though the latter is not recommended). As a rule, everything that is accessible to the DLL's client (according to C++ access rules) should be part of the exportable interface. This includes private data members referenced in inline functions."

I read this as,

For 4251 :
If your variable is protected or private than you can ignore 4251.

For 4275 :
You have to fix this. I am not sure whether protected or private inheritance is an exception.

For 4661 :
You will get an unresolved external symbol if you try to use 'identifier', since the compiler could not find the function body of your templated function, and did not generate the code for that function, although you explicitly requested it. Please look at the MSDN for C4661, if you have not done already.








GeneralDLL works in Win95/NT/2k, but not XP Pin
TClegg30-Dec-03 6:27
TClegg30-Dec-03 6:27 
GeneralRe: DLL works in Win95/NT/2k, but not XP Pin
Jörgen Sigvardsson30-Dec-03 6:38
Jörgen Sigvardsson30-Dec-03 6:38 
GeneralRe: DLL works in Win95/NT/2k, but not XP Pin
TClegg30-Dec-03 7:05
TClegg30-Dec-03 7:05 
GeneralRe: DLL works in Win95/NT/2k, but not XP Pin
Jörgen Sigvardsson30-Dec-03 7:28
Jörgen Sigvardsson30-Dec-03 7:28 
GeneralA VB like IDE Pin
Jagadeesh VN30-Dec-03 6:05
Jagadeesh VN30-Dec-03 6:05 
GeneralRe: A VB like IDE Pin
Stefan Pedersen30-Dec-03 6:44
Stefan Pedersen30-Dec-03 6:44 
GeneralRe: A VB like IDE Pin
Jagadeesh VN30-Dec-03 6:53
Jagadeesh VN30-Dec-03 6:53 
GeneralToolbar Button Enable/Disable Pin
jdgonko30-Dec-03 5:49
jdgonko30-Dec-03 5:49 
GeneralRe: Toolbar Button Enable/Disable Pin
Maximilien30-Dec-03 6:00
Maximilien30-Dec-03 6:00 
GeneralRe: Toolbar Button Enable/Disable Pin
jdgonko30-Dec-03 8:02
jdgonko30-Dec-03 8:02 
GeneralRe: Toolbar Button Enable/Disable Pin
jdgonko30-Dec-03 11:12
jdgonko30-Dec-03 11:12 
Generalsending long string to Printer Pin
pnpfriend30-Dec-03 4:50
pnpfriend30-Dec-03 4:50 
GeneralRe: sending long string to Printer Pin
Roger Allen1-Jan-04 23:55
Roger Allen1-Jan-04 23:55 
GeneralSHLoadInProc() Pin
Rickard Andersson2030-Dec-03 3:39
Rickard Andersson2030-Dec-03 3:39 
GeneralDisablign Flat-Menus in XP for a specific App Pin
ohadp30-Dec-03 3:18
ohadp30-Dec-03 3:18 
Questionhow to beautify a button in a dialog? Pin
yunhe30-Dec-03 2:54
yunhe30-Dec-03 2:54 
AnswerRe: how to beautify a button in a dialog? Pin
Anand Paranjpe30-Dec-03 3:42
Anand Paranjpe30-Dec-03 3:42 

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.