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

C / C++ / MFC

 
AnswerRe: How to add a CScrollView on a dialog-based app? Pin
16-Apr-01 17:38
suss16-Apr-01 17:38 
GeneralRe: How to add a CScrollView on a dialog-based app? Pin
Kannan Kalyanaraman16-Apr-01 20:06
Kannan Kalyanaraman16-Apr-01 20:06 
QuestionMake DSN (ODBC) with InstallShield? Pin
16-Apr-01 11:34
suss16-Apr-01 11:34 
AnswerRe: Make DSN (ODBC) with InstallShield? Pin
16-Apr-01 14:45
suss16-Apr-01 14:45 
QuestionSubclassing RichEdit? Pin
Richard Comish16-Apr-01 11:22
Richard Comish16-Apr-01 11:22 
GeneralIPicture Pin
orcun colak16-Apr-01 11:15
orcun colak16-Apr-01 11:15 
GeneralRe: IPicture Pin
Kannan Kalyanaraman16-Apr-01 18:27
Kannan Kalyanaraman16-Apr-01 18:27 
GeneralInvalid Address specified to RtlFreeHeap Pin
Rainer Mangold16-Apr-01 10:31
Rainer Mangold16-Apr-01 10:31 
I get this error message when I call a function in a MFC-Extension Dll (in Release-Mode) while debugging my MFC-Application.
If both (App and Dll) are in the same state (debug or release) everything is fine. I was able to reduce the problem to only a few lines of code. However I can not see what should be wrong in my program.

To reproduce this problem create an extension Dll and add the two files foo.h and foo.cpp
----- foo.h

IMP_EXP void Foo(CString& sVal);

----- foo.cpp
#include "stdafx.h"
#define IMP_EXP __declspec(dllexport)
#include "foo.h"

void Foo(CString& sVal)
{
sVal = "12345";
}
----- end of foo.cpp

Then create a MFC-App and include the following lines

----- any cpp-file of your app

#define IMP_EXP __declspec(dllimport)
#include "[Your Path]\Foo.h"
#pragma comment(lib, "[Your Dll-Name]")

void MyFunc()
{
CString str;
str.Empty();
Foo(str);
}

Thanks for your help Confused | :confused:

Rainer
GeneralRe: Invalid Address specified to RtlFreeHeap Pin
Michael Dunn16-Apr-01 16:28
sitebuilderMichael Dunn16-Apr-01 16:28 
GeneralRe: Invalid Address specified to RtlFreeHeap Pin
Rainer Mangold17-Apr-01 12:17
Rainer Mangold17-Apr-01 12:17 
GeneralMake dialog as Always on Top Pin
Ghasrfakhri16-Apr-01 5:16
Ghasrfakhri16-Apr-01 5:16 
GeneralRe: Make dialog as Always on Top Pin
16-Apr-01 8:33
suss16-Apr-01 8:33 
GeneralRe: Make dialog as Always on Top Pin
Liam O'Hagan18-Apr-01 15:10
Liam O'Hagan18-Apr-01 15:10 
Questionhow to Save Bitmap to file as jpg ot gif Pin
16-Apr-01 0:06
suss16-Apr-01 0:06 
AnswerRe: how to Save Bitmap to file as jpg ot gif Pin
Kannan Kalyanaraman16-Apr-01 0:29
Kannan Kalyanaraman16-Apr-01 0:29 
GeneralI have problem in creating and showing Bitmap of 16 -bit-colordepth!Please help me! Pin
hike15-Apr-01 21:36
hike15-Apr-01 21:36 
GeneralRe: I have problem in creating and showing Bitmap of 16 -bit-colordepth!Please help me! Pin
Christian Graus16-Apr-01 14:12
protectorChristian Graus16-Apr-01 14:12 
GeneralIP address ... Pin
Hadi Rezaee15-Apr-01 19:57
Hadi Rezaee15-Apr-01 19:57 
GeneralAccessing values from a VB DLL function Pin
kidrock15-Apr-01 16:51
kidrock15-Apr-01 16:51 
GeneralRe: Accessing values from a VB DLL function Pin
l a u r e n15-Apr-01 21:43
l a u r e n15-Apr-01 21:43 
Generalwrite to windows registry. Pin
Ghasrfakhri15-Apr-01 5:44
Ghasrfakhri15-Apr-01 5:44 
GeneralRe: write to windows registry. Pin
Michael Martin16-Apr-01 14:15
professionalMichael Martin16-Apr-01 14:15 
GeneralString Table problem. Pin
Ghasrfakhri15-Apr-01 5:40
Ghasrfakhri15-Apr-01 5:40 
GeneralRe: String Table problem. Pin
Andrew Peace15-Apr-01 7:01
Andrew Peace15-Apr-01 7:01 
GeneralThanks alot. Pin
Ghasrfakhri16-Apr-01 5:19
Ghasrfakhri16-Apr-01 5:19 

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.