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

C / C++ / MFC

 
GeneralRe: Close Application Pin
Mazdak14-Aug-02 2:27
Mazdak14-Aug-02 2:27 
GeneralCOleSafeArray Pin
Mazdak13-Aug-02 19:45
Mazdak13-Aug-02 19:45 
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 
You try to free a memory block, allocated in DLL. It is wrong, because there are two heaps in your APP - first in EXE, 2'nd - in DLL. The memory block, allocated in DLL, must be freed in DLL only! I strongly discourage you to use STL routines with DLL. It is dangerous. You may use next approach instead of your example above

void MyClass::MyFunc(LPTSTR szText)
{
  ASSERT(szText);
  _tcscpy(szText,TEXT("Testing 1 2 3"));
}

Of course, it is not flexible 'cause you can't resize memory block on the fly in function MyClass::MyFunc, but ... I don't know another way to solve this problem.

May be, it is possible to use some compiler switches... I don't know
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 
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 

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.