Problem: When an extended control such as process is added to PbProgramIt cannot run.
Solution:
Header file:
# DEFINE _ comctl32 _
# Include <commctrl. h>
# UNDEF _ comctl32 _
Add the following content to the wmain function:
Initcommoncontrolsex iccex;
Bool bresult = true;
// Initialize COM/Ole (under CE, it's done via coinitializeex)
// If (failed (coinitializeex (null, coinit_multithreaded )))
{
// Bresult = false;
}
// Initialize the common control DLL
Memset (& iccex, 0, sizeof (iccex ));
Iccex. dwsize = sizeof (iccex );
Iccex. dwicc = icc_bar_classes | icc_updown_class | icc_cool_classes | icc_progress_class;
If (false = initcommoncontrolsex (& iccex ))
{
MessageBox (null, _ T ("initcommoncontrolsex failed! "), _ T (" warning "), mb_ OK );
Bresult = false;
}
Source
Targetlibs =/
$ (_ Projectroot)/cesysgen/SDK/lib/$ (_ cpuindpath)/coredll. lib/
$ (_ Projectroot)/cesysgen/SDK/lib/$ (_ cpuindpath)/commctrl. Lib