Click here to Skip to main content
15,911,132 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to go about porting to windows? Pin
Chintoo7234-Feb-06 22:42
Chintoo7234-Feb-06 22:42 
QuestionHow can I get a PropertyPage title without or before creating? Pin
Eugene Pustovoyt4-Feb-06 20:36
Eugene Pustovoyt4-Feb-06 20:36 
AnswerRe: How can I get a PropertyPage title without or before creating? Pin
PJ Arends5-Feb-06 9:55
professionalPJ Arends5-Feb-06 9:55 
GeneralRe: How can I get a PropertyPage title without or before creating? Pin
Eugene Pustovoyt5-Feb-06 19:19
Eugene Pustovoyt5-Feb-06 19:19 
QuestionFree Skin System Pin
Allad4-Feb-06 16:43
Allad4-Feb-06 16:43 
AnswerRe: Free Skin System Pin
EXTEIDE5-Feb-06 1:11
EXTEIDE5-Feb-06 1:11 
Questionmemory leak with dll Pin
Rhiakath4-Feb-06 14:43
Rhiakath4-Feb-06 14:43 
AnswerRe: memory leak with dll Pin
Stephen Hewitt4-Feb-06 18:29
Stephen Hewitt4-Feb-06 18:29 
Almost certainly you are experiencing the classic mixed allocator problem. That's when you allocate memory on one heap and free it in another - This is bad - A crash is the best cash scenario as often it results in heap corruption and "blows up" some time later in some other part of the code leaving you scratching your head. The general way around this is to follow this rule:
- If you allocate memory in one module free it in the same module. You may have to export a free function from the module to achieve this.

Another approach is that used by COM - All the modules agree to use the same allocator (CoTaskMemAlloc and friends. You could implement this for STL strings by writting a custom allocator (the allocator can be passed as a template parameter).

Steve
AnswerRe: memory leak with dll Pin
Rama Krishna Vavilala5-Feb-06 6:47
Rama Krishna Vavilala5-Feb-06 6:47 
Questionprinter problem Pin
includeh104-Feb-06 14:25
includeh104-Feb-06 14:25 
AnswerRe: printer problem Pin
Gary R. Wheeler5-Feb-06 2:04
Gary R. Wheeler5-Feb-06 2:04 
QuestionHelp with setting values to char arrays (strings); Pin
Coolarj104-Feb-06 10:07
Coolarj104-Feb-06 10:07 
AnswerRe: Help with setting values to char arrays (strings); Pin
Gary R. Wheeler4-Feb-06 10:54
Gary R. Wheeler4-Feb-06 10:54 
AnswerRe: Help with setting values to char arrays (strings); Pin
meinhard_risch4-Feb-06 13:14
meinhard_risch4-Feb-06 13:14 
AnswerRe: Help with setting values to char arrays (strings); Pin
Coolarj104-Feb-06 14:37
Coolarj104-Feb-06 14:37 
GeneralRe: Help with setting values to char arrays (strings); Pin
Gary R. Wheeler5-Feb-06 2:27
Gary R. Wheeler5-Feb-06 2:27 
GeneralRe: Help with setting values to char arrays (strings); Pin
meinhard_risch5-Feb-06 3:45
meinhard_risch5-Feb-06 3:45 
QuestionMFC Pin
sidkraft4-Feb-06 6:39
sidkraft4-Feb-06 6:39 
Questionhtml-based modless Windeow Pin
meinhard_risch4-Feb-06 6:22
meinhard_risch4-Feb-06 6:22 
AnswerRe: html-based modless Windeow Pin
EXTEIDE4-Feb-06 9:40
EXTEIDE4-Feb-06 9:40 
AnswerRe: html-based modless Windeow Pin
meinhard_risch4-Feb-06 13:32
meinhard_risch4-Feb-06 13:32 
GeneralRe: html-based modless Windeow Pin
EXTEIDE4-Feb-06 14:30
EXTEIDE4-Feb-06 14:30 
GeneralRe: html-based modless Windeow Pin
meinhard_risch5-Feb-06 3:40
meinhard_risch5-Feb-06 3:40 
GeneralRe: html-based modless Windeow Pin
EXTEIDE5-Feb-06 3:58
EXTEIDE5-Feb-06 3:58 
GeneralRe: html-based modless Windeow Pin
meinhard_risch9-Feb-06 10:48
meinhard_risch9-Feb-06 10:48 

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.