The question is:
how to replace malloc with the Lea's allocator malloc ?
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")
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
I am here again with another question. I want to the different users present in my system. and which Header file or class does I have to see for the system programming(any).
Neelesh K J Jain.
MFC6 has the CHtmlView class and like most classes in MFC using visual studio you can quickly add an handler for the events fired by the IWebBrowser2 actually according to MSDN (AFAIK)
it's the WebBrowser...cuz IWebBrowser2 doesn't seem to have events
I've been on the project that using CSocket to send file from client to server. When i test the program, only part of data send through CSocket(about one third of the original data). I use CSocket as a SOCK_STREAM. Can anyone figure out the problem on my code?
Why dont u try using out an acknowledgement mechanism. That is whenever the client is sending data to the server, the server should send acknowledgement for the data. In case the client does not receive the acknowledgement for a certain period of time, then the client resends the same data.
i tried to send 34kb through one send() function and only 8kb go through.
Another way around it is to divide the file to several small chunks of 8kb.
But i got stuck there. Could anyone give me idea how to do it
I've written an ISO 9660 burner application, which works, but after I burn a disk I need to eject and reinsert the disk before windows sees the new files. How do I tell windows to reload the filesystem?
I've found SHChangeNotify which seems like what I should use, but no combonation of option does anything that I can see.
seems like it should be overkill but it doens't work. Lesser options don't work. In particular sending media removed then media inserted didn't work. Nor did various updateItem combonations.
Am I on the wrong track? Are there other options I should give?
I also send a message to explorer, which seems like it might be working (the window closes when I send a media removed), but the contents don't change when I look. Nor does a dir at the command prompt get anything.
I don't think my boss would agree to sharing our source code, which makes an artical less interesting. Although we did agree that we should write a book on how to do this.
Writing a CD is easy enough, but keeping track of each different option for each different media can be a pain (CD-R, CD-RW which might be MRW formatted, DVD-R, DVD-RW either sequential recording or restricted overright, DVD-RAM, DVD+R, and DVD+RW) There is no model that is common between all of the above. I did not use all the possible modes, so I'm not sure how to use them all.
If you think there is a useful artical here I'll write it (but no source code will be included!)
Did you notice that some applications like yours they eject the CD when they are finished ?
And then they close the tray again ?
Maybe because of the same problem you have.
And most of applications playing music ( even Windows Media Player and NeroMix ) have the same problem. They have problems to automatically update their music list once he CD is inserted. It doens';t always work.
Last Visit: 31-Dec-99 18:00 Last Update: 16-Jun-21 15:42