Mercurial > projects > dwt-win
comparison dwt/internal/win32/OS.d @ 245:d8c3d4a4f2b0
More verbose error for failed theming.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Tue, 01 Jul 2008 08:58:50 +0200 |
parents | e2affbeb686d |
children | b3dbd786541a |
comparison
equal
deleted
inserted
replaced
244:a59d51c12b42 | 245:d8c3d4a4f2b0 |
---|---|
386 pActCtx.lpSource = pszText; | 386 pActCtx.lpSource = pszText; |
387 pActCtx.lpApplicationName = pszText; | 387 pActCtx.lpApplicationName = pszText; |
388 pActCtx.lpResourceName = MANIFEST_RESOURCE_ID; | 388 pActCtx.lpResourceName = MANIFEST_RESOURCE_ID; |
389 HANDLE hActCtx = OS.CreateActCtx (&pActCtx); | 389 HANDLE hActCtx = OS.CreateActCtx (&pActCtx); |
390 if (hActCtx is INVALID_HANDLE_VALUE){ | 390 if (hActCtx is INVALID_HANDLE_VALUE){ |
391 printError("CreateActCtx failed" ); | 391 printError("CreateActCtx failed, hence theme support will not be available\n" |
392 "Please check for:\n" | |
393 " - missing link option -L/su:windows:5 or -L/su:console:5\n" | |
394 " - missing link option -L/rc:dwt\n" | |
395 " - resource file 'dwt.res' was not accessible by linker\n" | |
396 ); | |
392 } | 397 } |
393 else{ | 398 else{ |
394 ULONG_PTR ulpActivationCookie; | 399 ULONG_PTR ulpActivationCookie; |
395 if (!OS.ActivateActCtx(hActCtx, &ulpActivationCookie)){ | 400 if (!OS.ActivateActCtx(hActCtx, &ulpActivationCookie)){ |
396 printError("ActivateActCtx failed" ); | 401 printError("ActivateActCtx failed" ); |