Click here to Skip to main content
15,915,094 members
Home / Discussions / System Admin
   

System Admin

 
GeneralRe: MapViewOfFileEx Pin
Michael Dunn29-Jan-02 13:58
sitebuilderMichael Dunn29-Jan-02 13:58 
GeneralPrinter registry settings Pin
alex.barylski27-Jan-02 20:22
alex.barylski27-Jan-02 20:22 
GeneralMessed up registry Pin
27-Jan-02 15:39
suss27-Jan-02 15:39 
GeneralRe: Messed up registry Pin
27-Jan-02 18:48
suss27-Jan-02 18:48 
GeneralISAPI Extensions Pin
Eranr27-Jan-02 3:58
Eranr27-Jan-02 3:58 
GeneralRe: ISAPI Extensions Pin
Michael Dunn27-Jan-02 8:35
sitebuilderMichael Dunn27-Jan-02 8:35 
QuestionAny idea on how to enum ZIP files under XP ? Pin
yarp22-Jan-02 9:36
yarp22-Jan-02 9:36 
QuestionHow to detect different Windows versions... Pin
Steve T18-Jan-02 10:38
Steve T18-Jan-02 10:38 
AnswerRe: How to detect different Windows versions... Pin
Jon Sagara18-Jan-02 11:20
Jon Sagara18-Jan-02 11:20 
GeneralRe: How to detect different Windows versions... Pin
Nish Nishant18-Jan-02 16:59
sitebuilderNish Nishant18-Jan-02 16:59 
GeneralRe: How to detect different Windows versions... Pin
Jon Sagara18-Jan-02 18:55
Jon Sagara18-Jan-02 18:55 
GeneralRe: How to detect different Windows versions... Pin
Nish Nishant18-Jan-02 19:00
sitebuilderNish Nishant18-Jan-02 19:00 
GeneralRe: How to detect different Windows versions... Pin
Jon Sagara18-Jan-02 21:20
Jon Sagara18-Jan-02 21:20 
GeneralRe: How to detect different Windows versions... Pin
Nish Nishant18-Jan-02 21:40
sitebuilderNish Nishant18-Jan-02 21:40 
AnswerRe: How to detect different Windows versions... Pin
Agus Kurniawan18-Jan-02 16:37
Agus Kurniawan18-Jan-02 16:37 
GeneralRe: How to detect different Windows versions... Pin
Steve T21-Jan-02 16:51
Steve T21-Jan-02 16:51 
GeneralRe: How to detect different Windows versions... Pin
Jon Sagara21-Jan-02 19:11
Jon Sagara21-Jan-02 19:11 
GeneralXP & Network shares Pin
Matt Newman18-Jan-02 8:32
Matt Newman18-Jan-02 8:32 
GeneralRe: XP & Network shares Pin
Richard Deeming20-May-02 5:53
mveRichard Deeming20-May-02 5:53 
GeneralRe: XP & Network shares Pin
Matt Newman20-May-02 16:51
Matt Newman20-May-02 16:51 
GeneralWindows MFC: Tall toolbar among short toolbars Pin
Phil Davidson17-Jan-02 11:09
Phil Davidson17-Jan-02 11:09 
Generalregistry printer settings Pin
alex.barylski15-Jan-02 8:59
alex.barylski15-Jan-02 8:59 
GeneralAdd/Remove Programs Pin
567890123414-Jan-02 20:41
567890123414-Jan-02 20:41 
GeneralRe: Add/Remove Programs Pin
Nish Nishant18-Jan-02 17:01
sitebuilderNish Nishant18-Jan-02 17:01 
GeneralProblem with XP graphical interface Pin
limax9-Jan-02 22:20
limax9-Jan-02 22:20 
There is a simple program (WinAPI only) that creates window and in WM_CREATE handler creates one button with:
HWND hButton = CreateWindowEx(0, WC_BUTTON, _T("Push me: AaBb"),
WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON,
100, 100, 200, 20,
hwnd, NULL, g_hInstance, NULL);

It runs ok with old comctl32.dll
The problem appears when I want to switch to XP interface and create a file named "my_app_name.exe.manifest" with the following content:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<description>Your application description here.</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>

The button DOES NOT CREATE Cry | :((
GetLastError() returns "invalid window handle". What I am doing wrong?

Best Regards,
Maxim

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.