Click here to Skip to main content
16,005,037 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How can I switch between "Code Comments" by keyboard!? Pin
Michael Dunn14-Aug-04 5:08
sitebuilderMichael Dunn14-Aug-04 5:08 
GeneralRe: How can I switch between "Code Comments" by keyboard!? Pin
peterchen15-Aug-04 0:58
peterchen15-Aug-04 0:58 
Generalnews ticker problem Pin
Atif Mushtaq14-Aug-04 2:59
Atif Mushtaq14-Aug-04 2:59 
GeneralRe: news ticker problem Pin
Ravi Bhavnani14-Aug-04 3:12
professionalRavi Bhavnani14-Aug-04 3:12 
QuestionHow to get memory usage of loaded windows driver? Pin
prakash_bhurke14-Aug-04 2:41
prakash_bhurke14-Aug-04 2:41 
QuestionHow Get Cookie from server Pin
Sumit Kapoor13-Aug-04 21:55
Sumit Kapoor13-Aug-04 21:55 
GeneralFlat button without MFC Pin
Igor Mihailov13-Aug-04 17:14
Igor Mihailov13-Aug-04 17:14 
QuestionLea allocator - can somebody please help me ? Pin
Marcello13-Aug-04 17:06
Marcello13-Aug-04 17:06 
Hello,

sorry for posting this here.

The question is:
how to replace malloc with the Lea's allocator malloc ?
http://gee.cs.oswego.edu/dl/html/malloc.html
I tried everything but it doesn't work.

I even posted this question to the author of its malloc replacement, Lea Dough.
But my question is more windows related so he cannot answer me.

At the same time I know that somebody here has been able to do it.

Here is the list of what I did and of what some related question.
But really what matter is that somebody is telling me how to do it.

I am building a program build on top of other dynamic libraries. Everything using STLport.

I created another static library, or dynamic

I made as very first line of code in the first
#if defined(USE_LEA) && defined(_WIN32)
#pragma comment(lib, "libLea.lib")
#endif

If I #include malloc.h then I have compilers problem ( probably because the library is using precompiled headers ) like:
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stdlib.h(291): error C2375: 'malloc' : redefinition; different linkage

If I do not #include malloc.h then it compiles but at the end it is not using the malloc of Lea.

I would like not to use detour.
I don't think is a good idea to replace malloc.c malloc.h in the Visual Studio .NET\Vc7\include directory


Can somebody help me ?

Thanks a lot.

Cheers,
Marcello

Questionhow to draw on the console Pin
yingkou13-Aug-04 16:13
yingkou13-Aug-04 16:13 
AnswerRe: how to draw on the console Pin
xpis13-Aug-04 17:19
xpis13-Aug-04 17:19 
GeneralRe: how to draw on the console Pin
Archer28214-Aug-04 6:57
Archer28214-Aug-04 6:57 
GeneralUsers of the System Pin
Neelesh K J Jain13-Aug-04 15:40
Neelesh K J Jain13-Aug-04 15:40 
QuestionMFC message maps??? Pin
alex.barylski13-Aug-04 12:54
alex.barylski13-Aug-04 12:54 
GeneralVS.NET Debugging issues Pin
brdavid13-Aug-04 11:24
brdavid13-Aug-04 11:24 
GeneralRe: VS.NET Debugging issues Pin
Marcello13-Aug-04 18:09
Marcello13-Aug-04 18:09 
GeneralCSocket Data lost Pin
phongle11913-Aug-04 9:12
phongle11913-Aug-04 9:12 
GeneralRe: CSocket Data lost Pin
mahade113-Aug-04 22:20
mahade113-Aug-04 22:20 
GeneralRe: CSocket Data lost Pin
phongle11915-Aug-04 16:42
phongle11915-Aug-04 16:42 
GeneralRe: CSocket Data lost Pin
Anonymous15-Aug-04 4:49
Anonymous15-Aug-04 4:49 
GeneralChart problem with visual studio 2005 Pin
pamela_fernando13-Aug-04 6:56
pamela_fernando13-Aug-04 6:56 
Generaltell filesystem to reload after I write Pin
Henry miller13-Aug-04 5:19
Henry miller13-Aug-04 5:19 
GeneralRe: tell filesystem to reload after I write Pin
Ravi Bhavnani13-Aug-04 10:47
professionalRavi Bhavnani13-Aug-04 10:47 
GeneralRe: tell filesystem to reload after I write Pin
Henry miller16-Aug-04 4:20
Henry miller16-Aug-04 4:20 
GeneralRe: tell filesystem to reload after I write Pin
Marcello14-Aug-04 5:34
Marcello14-Aug-04 5:34 
GeneralMulitline Edit Box Pin
Johnny Peszek13-Aug-04 5:08
Johnny Peszek13-Aug-04 5:08 

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.