Click here to Skip to main content
15,892,674 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Web Services from VC++ 6.0 Pin
Ravi Bhavnani28-Jul-05 10:16
professionalRavi Bhavnani28-Jul-05 10:16 
GeneralHelp me... Rich Edit Pin
Aqueel28-Jul-05 8:18
Aqueel28-Jul-05 8:18 
GeneralRe: Help me... Rich Edit Pin
John R. Shaw28-Jul-05 8:51
John R. Shaw28-Jul-05 8:51 
GeneralRe: Help me... Rich Edit Pin
David Crow28-Jul-05 9:49
David Crow28-Jul-05 9:49 
GeneralChild Dialog Background Color Pin
liehann28-Jul-05 8:12
liehann28-Jul-05 8:12 
GeneralRe: Child Dialog Background Color Pin
Alexander M.,28-Jul-05 9:32
Alexander M.,28-Jul-05 9:32 
GeneralRe: Child Dialog Background Color Pin
liehann28-Jul-05 21:01
liehann28-Jul-05 21:01 
General'needs to have dll-interface' warning Pin
Themis28-Jul-05 7:39
Themis28-Jul-05 7:39 
Hi,
I need some help with dlls. It's my first time writting dlls and I have a minor problem.

<br />
#ifdef MYPROJ_EXPORTS<br />
#define _myprojExport __declspec(dllexport)<br />
#else<br />
#define _myprojExport __declspec(dllimport)<br />
#endif<br />
<br />
class _myprojExport MyClass<br />
{<br />
...<br />
protected:<br />
	typedef std::list<std::string> StringList;<br />
	StringList mylist;<br />
};<br />


As you can see on the above code I have MyClass which is a simple class that I export. When mylist member is missing everything is compiled smoothly, however when I have mylist member variable on the class I get the following warning from my compiler (VS .NET 7.1).

warning C4251: 'MyClass::mylist' : class 'std::list<_Ty>' needs to have dll-interface to be used by clients of class 'MyClass'
with
[
_Ty=std::string
]

How can I create a dll-interface for std::list? I don't have to export std::list the client will find its implementation in <list>. How should I declare mylist in order to get rid of these warnings?

Thanks in advance,
Themis
Question#define a comment to remove code? Pin
Giles28-Jul-05 6:31
Giles28-Jul-05 6:31 
AnswerRe: #define a comment to remove code? Pin
Alexander M.,28-Jul-05 9:00
Alexander M.,28-Jul-05 9:00 
AnswerRe: #define a comment to remove code? Pin
Bob Stanneveld28-Jul-05 19:21
Bob Stanneveld28-Jul-05 19:21 
Generalmodeless and modal child dialogs Pin
23_44428-Jul-05 6:12
23_44428-Jul-05 6:12 
GeneralRe: modeless and modal child dialogs Pin
zon_cpp28-Jul-05 7:45
zon_cpp28-Jul-05 7:45 
GeneralRe: modeless and modal child dialogs Pin
23_44428-Jul-05 8:15
23_44428-Jul-05 8:15 
GeneralRe: modeless and modal child dialogs Pin
Neelesh K J Jain28-Jul-05 10:12
Neelesh K J Jain28-Jul-05 10:12 
GeneralRe: modeless and modal child dialogs Pin
Anonymous28-Jul-05 10:15
Anonymous28-Jul-05 10:15 
QuestionHow to get the handle for the drop down button of a Combo Box Control? Pin
lulacapixaba28-Jul-05 5:33
lulacapixaba28-Jul-05 5:33 
AnswerRe: How to get the handle for the drop down button of a Combo Box Control? Pin
toxcct28-Jul-05 6:06
toxcct28-Jul-05 6:06 
AnswerRe: How to get the handle for the drop down button of a Combo Box Control? Pin
John R. Shaw28-Jul-05 9:10
John R. Shaw28-Jul-05 9:10 
GeneralRe: How to get the handle for the drop down button of a Combo Box Control? Pin
lulacapixaba28-Jul-05 22:17
lulacapixaba28-Jul-05 22:17 
GeneralDrag n Drop with remote files Pin
Henrik Pettersson28-Jul-05 4:55
Henrik Pettersson28-Jul-05 4:55 
GeneralRe: Drag n Drop with remote files Pin
Alex_Y28-Jul-05 8:40
Alex_Y28-Jul-05 8:40 
GeneralRe: Drag n Drop with remote files Pin
Henrik Pettersson28-Jul-05 21:33
Henrik Pettersson28-Jul-05 21:33 
GeneralRe: Drag n Drop with remote files Pin
Alex_Y29-Jul-05 8:52
Alex_Y29-Jul-05 8:52 
QuestionHow to set caret position in Edit Control? Pin
ClockDivider28-Jul-05 4:12
ClockDivider28-Jul-05 4:12 

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.