Click here to Skip to main content
15,925,255 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralTimeouts - Serial communication Pin
Daniel Strigl14-Jan-03 22:10
Daniel Strigl14-Jan-03 22:10 
GeneralRe: Timeouts - Serial communication Pin
Fredrik Skog15-Jan-03 1:23
Fredrik Skog15-Jan-03 1:23 
GeneralRe: Timeouts - Serial communication Pin
KarstenK16-Jan-03 0:58
mveKarstenK16-Jan-03 0:58 
GeneralGraphs and Charts Pin
Matthew R. Miller14-Jan-03 20:48
Matthew R. Miller14-Jan-03 20:48 
GeneralRe: Graphs and Charts Pin
Neville Franks15-Jan-03 0:57
Neville Franks15-Jan-03 0:57 
GeneralRe: Graphs and Charts Pin
Matthew R. Miller15-Jan-03 4:48
Matthew R. Miller15-Jan-03 4:48 
GeneralRe: Graphs and Charts Pin
Nitron15-Jan-03 14:38
Nitron15-Jan-03 14:38 
GeneralDLL problem Pin
Neville Franks14-Jan-03 20:17
Neville Franks14-Jan-03 20:17 
I have the following sample code in a DLL:

#define DllExport   __declspec( dllexport )

#include <vector>

class DllExport Archive
{
protected:
	std::vector<void*>  m_vPointerStored;
};


and get the following warning:

d:\libs\saiggeneric\test.h(11) : warning C4251: 'm_vPointerStored' : class 'std::vector<void *,class std::allocator<void *> >' needs to have dll-interface to be used by clients of class 'Archive'

It only seems to be a problem with STL members.

My understanding is that using __declspec( dllexport ) for a class makes the class and everything in it exportable. I'm trying to build a straight C++ DLL, not an MFC Extension DLL. I don't know if this has anything to do with the problem. Help!!!!


Neville Franks, Author of ED for Windows. www.getsoft.com
Make money with our new Affilate program
GeneralRe: DLL problem Pin
geo_m14-Jan-03 22:25
geo_m14-Jan-03 22:25 
GeneralRe: DLL problem Pin
Neville Franks15-Jan-03 0:51
Neville Franks15-Jan-03 0:51 
Generaldatatype conversion Pin
r i s h a b h s14-Jan-03 17:57
r i s h a b h s14-Jan-03 17:57 
GeneralRe: datatype conversion Pin
xxhimanshu14-Jan-03 19:40
xxhimanshu14-Jan-03 19:40 
QuestionAccess the camera throught driver ? Pin
TPN14-Jan-03 17:24
TPN14-Jan-03 17:24 
AnswerRe: Access the camera throught driver ? Pin
benjymous14-Jan-03 22:57
benjymous14-Jan-03 22:57 
GeneralRe: Access the camera throught driver ? Pin
TPN15-Jan-03 0:52
TPN15-Jan-03 0:52 
General_MAXPATH Pin
Paul Silvernail14-Jan-03 17:00
Paul Silvernail14-Jan-03 17:00 
GeneralRe: _MAXPATH Pin
Michael Dunn14-Jan-03 19:49
sitebuilderMichael Dunn14-Jan-03 19:49 
GeneralRe: _MAXPATH Pin
Paul Silvernail15-Jan-03 1:42
Paul Silvernail15-Jan-03 1:42 
GeneralRe: _MAXPATH Pin
geo_m14-Jan-03 22:35
geo_m14-Jan-03 22:35 
Generalrecommended reading Pin
andyblack14-Jan-03 13:14
andyblack14-Jan-03 13:14 
GeneralRe: recommended reading Pin
carrie14-Jan-03 23:25
carrie14-Jan-03 23:25 
GeneralPackaging and DLLs Pin
LukeV14-Jan-03 12:45
LukeV14-Jan-03 12:45 
GeneralRe: Packaging and DLLs Pin
Jim Crafton14-Jan-03 16:56
Jim Crafton14-Jan-03 16:56 
GeneralRe: Packaging and DLLs Pin
LukeV15-Jan-03 4:33
LukeV15-Jan-03 4:33 
GeneralRe: Packaging and DLLs Pin
Jim Crafton15-Jan-03 5:37
Jim Crafton15-Jan-03 5:37 

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.