|
From: Brian D. <br...@de...> - 2006-12-31 03:23:35
|
Daniel Goldman wrote: > I included the test program below with single treeview checkbox. Anybody > know why the checkbox is not getting checked in the cross-compiled > version? Am I doing something wrong? One of TreeView_SetCheckState, > TreeView_SetItemState, or TVM_SETITEM not working correctly? I don't know enough about treeview controls to audit your code, sorry. But I suggest that you not focus on the red herring of native/cross, and instead search for undefined behavior (e.g. accidently using a value uninitialized.) This sort of thing -- behavior that changes with compiler versions or other environmental factors that should logically have no effect -- is the classic trademark of unknowingly or accidently invoking undefined behavior, which is quite easy to do in modern C. Compile with -Wall and rectify all warnings, check the return value of all function calls, and so on. (The latter is good programming practice anyway, so I would do it regardless of any debugging efforts.) Brian |