Click here to Skip to main content
15,913,773 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Output STL string into file. Pin
Christian Graus12-Nov-02 10:33
protectorChristian Graus12-Nov-02 10:33 
QuestionSendMessage Inside a UI thread to the Main App.. Is this bad? Pin
Anonymous12-Nov-02 10:15
Anonymous12-Nov-02 10:15 
AnswerRe: SendMessage Inside a UI thread to the Main App.. Is this bad? Pin
Dave Bryant12-Nov-02 10:21
Dave Bryant12-Nov-02 10:21 
GeneralRe: SendMessage Inside a UI thread to the Main App.. Is this bad? Pin
Anonymous12-Nov-02 10:28
Anonymous12-Nov-02 10:28 
GeneralRe: SendMessage Inside a UI thread to the Main App.. Is this bad? Pin
Dave Bryant12-Nov-02 10:34
Dave Bryant12-Nov-02 10:34 
GeneralRe: SendMessage Inside a UI thread to the Main App.. Is this bad? Pin
Anonymous13-Nov-02 4:05
Anonymous13-Nov-02 4:05 
GeneralRe: SendMessage Inside a UI thread to the Main App.. Is this bad? Pin
PJ Arends12-Nov-02 10:40
professionalPJ Arends12-Nov-02 10:40 
GeneralAbstract base classes in .dll Pin
Aaron Schaefer12-Nov-02 9:46
Aaron Schaefer12-Nov-02 9:46 
Hello All,

Have a question about declaring an abstract base class in a .dll. Basically, we have something like this, in a header file of a regular win32 .dll":

class DLL_API IMyClass
{
public
virtual int DoSomething()=0;
}

which resolves to something like dllimport in the client code. If the client of this .dll is another .dll, I get an LNK2001, an unresolved external for a default constructor. Why would I need a constructor, you can't use new on an interface class.

Anyway, what's the appropriate way to do something like this? Make an abstract base class available to client code, while hiding the implementation. What does the dllimport attribute really mean for a type that is abstract, anyway? Is it even relavent? Taking off the DLL_API macro thingy from the class gets rid of the LNK error.

Thanks,

aaron
GeneralRe: Abstract base classes in .dll Pin
Joaquín M López Muñoz12-Nov-02 10:48
Joaquín M López Muñoz12-Nov-02 10:48 
GeneralRe: Abstract base classes in .dll Pin
Aaron Schaefer12-Nov-02 10:53
Aaron Schaefer12-Nov-02 10:53 
GeneralIE Icon RightClick Properties Menu.... Pin
JoeSox12-Nov-02 9:38
JoeSox12-Nov-02 9:38 
GeneralRe: IE Icon RightClick Properties Menu.... Pin
Chris Hambleton12-Nov-02 11:07
Chris Hambleton12-Nov-02 11:07 
GeneralRe: IE Icon RightClick Properties Menu.... Pin
JoeSox12-Nov-02 11:38
JoeSox12-Nov-02 11:38 
GeneralRe: IE Icon RightClick Properties Menu.... Pin
JoeSox12-Nov-02 12:17
JoeSox12-Nov-02 12:17 
GeneralTCP/IP Solutions... needed! Pin
Walote12-Nov-02 9:37
Walote12-Nov-02 9:37 
GeneralRe: TCP/IP Solutions... needed! Pin
Joaquín M López Muñoz12-Nov-02 10:59
Joaquín M López Muñoz12-Nov-02 10:59 
GeneralRe: TCP/IP Solutions... needed! Pin
Walote12-Nov-02 23:56
Walote12-Nov-02 23:56 
QuestionHow to Show Line Numbers in Visual C++ 6.0 Pin
Ehren12-Nov-02 9:19
Ehren12-Nov-02 9:19 
AnswerRe: How to Show Line Numbers in Visual C++ 6.0 Pin
Chris Hambleton12-Nov-02 11:10
Chris Hambleton12-Nov-02 11:10 
QuestionHow to add an icon to the tray where the clock is showed Pin
Anonymous12-Nov-02 8:27
Anonymous12-Nov-02 8:27 
AnswerRe: How to add an icon to the tray where the clock is showed Pin
User 665812-Nov-02 8:33
User 665812-Nov-02 8:33 
GeneralRe: How to add an icon to the tray where the clock is showed Pin
Dean Michaud12-Nov-02 9:17
Dean Michaud12-Nov-02 9:17 
AnswerRe: How to add an icon to the tray where the clock is showed Pin
Mazdak12-Nov-02 8:37
Mazdak12-Nov-02 8:37 
GeneralMSOffice-like toolbar Pin
Dean Michaud12-Nov-02 7:17
Dean Michaud12-Nov-02 7:17 
GeneralRe: MSOffice-like toolbar Pin
Chris Hambleton12-Nov-02 11:04
Chris Hambleton12-Nov-02 11:04 

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.