Click here to Skip to main content
16,006,475 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: COleSafeArray Pin
DanielO13-Aug-02 23:09
DanielO13-Aug-02 23:09 
GeneralRe: COleSafeArray Pin
Mazdak13-Aug-02 23:32
Mazdak13-Aug-02 23:32 
GeneralRe: COleSafeArray Pin
diptipanchal29-Dec-09 1:11
diptipanchal29-Dec-09 1:11 
Generaldynamic CListCtrl not working Pin
13-Aug-02 18:56
suss13-Aug-02 18:56 
GeneralDLL & free() Heap Access Violation Pin
valikac13-Aug-02 18:52
valikac13-Aug-02 18:52 
GeneralRe: DLL & free() Heap Access Violation Pin
Roman Fadeyev13-Aug-02 19:41
Roman Fadeyev13-Aug-02 19:41 
GeneralRe: DLL & free() Heap Access Violation Pin
Daniel Lohmann13-Aug-02 23:50
Daniel Lohmann13-Aug-02 23:50 
GeneralRe: DLL & free() Heap Access Violation Pin
valikac14-Aug-02 5:30
valikac14-Aug-02 5:30 
Thanks guys.

Wow. This is an interesting problem and is something I never expected.

First, why is it a bad design to return data back from a DLL? Is it a bad design to return an STL data structure back from a DLL?

What if you were to compile the DLL and EXE in one project instead of two separate projects?

I compiled the DLL in a separate project. Here is how I did it.

- project1 is DLL only
- project2 is EXE statically importing DLL

I thought it is okay to compile a dll separately and then using .dll, .lib, and .h files in any other project that will statically import the dll. Furthermore, you can use the .dll file in any project that dynamically imports the dll.

If the message I receive is what I believe it is, you need to compile all DLL and EXE in one project if and only if you want to statically import DLLs.

niyaw of GameDev mentioned something about setting the compiler for *multithreaded DLL runtime*. What is that about?

Kuphryn
GeneralRe: Almost There Pin
valikac14-Aug-02 7:17
valikac14-Aug-02 7:17 
GeneralHELP! Can we send Email with an attache text file! Pin
thanhchau13-Aug-02 18:13
thanhchau13-Aug-02 18:13 
GeneralRe: HELP! Can we send Email with an attache text file! Pin
Shog913-Aug-02 18:46
sitebuilderShog913-Aug-02 18:46 
GeneralRe: Download class & found errors! Pin
ATC16-Aug-02 7:18
ATC16-Aug-02 7:18 
GeneralRe: Download class & found errors! Pin
Shog916-Aug-02 8:43
sitebuilderShog916-Aug-02 8:43 
GeneralRe: HELP! Can we send Email with an attache text file! Pin
Ravi Bhavnani13-Aug-02 20:15
professionalRavi Bhavnani13-Aug-02 20:15 
GeneralRe: The file I need is open outside the OutLook Express! Pin
ATC16-Aug-02 6:13
ATC16-Aug-02 6:13 
GeneralRe: The file I need is open outside the OutLook Express! Pin
Ravi Bhavnani16-Aug-02 6:23
professionalRavi Bhavnani16-Aug-02 6:23 
QuestionB&W bitmap ??? Pin
CaesarCZ13-Aug-02 18:01
CaesarCZ13-Aug-02 18:01 
AnswerRe: B&W bitmap ??? Pin
Todd Smith13-Aug-02 18:34
Todd Smith13-Aug-02 18:34 
GeneralRe: B&W bitmap ??? Pin
CaesarCZ14-Aug-02 1:47
CaesarCZ14-Aug-02 1:47 
GeneralRe: B&W bitmap ??? Pin
Todd Smith14-Aug-02 7:50
Todd Smith14-Aug-02 7:50 
GeneralCStatusBar woes Pin
William Payne13-Aug-02 16:56
William Payne13-Aug-02 16:56 
GeneralRe: CStatusBar woes Pin
Roman Fadeyev13-Aug-02 20:04
Roman Fadeyev13-Aug-02 20:04 
GeneralRe: CStatusBar woes Pin
William Payne13-Aug-02 20:44
William Payne13-Aug-02 20:44 
GeneralRe: CStatusBar woes Pin
Roman Fadeyev14-Aug-02 18:54
Roman Fadeyev14-Aug-02 18:54 
Generalgetting garbage out ....help! Pin
ns13-Aug-02 16:27
ns13-Aug-02 16:27 

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.