Article View: comp.os.ms-windows.programmer.controls
Article #34Re: I can't get Common controls working in VC++ 5
From: Shehan
Date: Fri, 27 Mar 1998 00:00
Date: Fri, 27 Mar 1998 00:00
34 lines
1921 bytes
1921 bytes
Philip wrote: > I am experiencing a most annoying little problem. > > I recently switched from the Borland compiler to Visual C++ 5 compiler. > > I cannot for the life of me get any of the common controls to work when > compiling under VisualC 5 compiler. However they work fine under the > Borland 5 compiler. > > My understanding is to get a common control you. > > 1) #include<commctrl.h> > 2) InitCommonControls() > 3) hProgWnd = CreateWindowEx(0, PROGRESS_CLASS,NULL,WS_CHILD | > WS_VISIBLE,19,139,238,8,hDlg, (HMENU) 0,hInstance,NULL); > or whichever control you want > what you are doing seems correct... are you sure your hDlg and hInstance are valid? > under MS Vc++5 "hProgWnd == NULL" but the same code under Borland is fine. > > Do I not have flag set in the compiler? I added comdlg32.lib to the > project/settings/link but this seems to make no difference. > > What am I doing WRONG. > > --------------------------------------------- > Warmest Regards Philip Huskisson.
Technical Details
Message-ID:
<351B2689.E9DC2FA6@ciemed.nus.edu.sg>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<01bd5219$3f8ff160$83b73ecb@pc-snarkle>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 110a07,a448a5bdc3f541e3 X-Google-Attributes: gid110a07,public X-Google-Thread: 113dfb,a448a5bdc3f541e3 X-Google-Attributes: gid113dfb,public X-Google-Thread: f7033,a448a5bdc3f541e3 X-Google-Attributes: gidf7033,public X-Google-Thread: f801d,a448a5bdc3f541e3 X-Google-Attributes: gidf801d,public From: Shehan <shehan@ciemed.nus.edu.sg> Subject: Re: I can't get Common controls working in VC++ 5 Date: 1998/03/27 Message-ID: <351B2689.E9DC2FA6@ciemed.nus.edu.sg> X-Deja-AN: 338129240 Content-Transfer-Encoding: 7bit References: <01bd5219$3f8ff160$83b73ecb@pc-snarkle> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: National University of Singapore Newsgroups: comp.os.ms-windows.programmer.controls,comp.os.ms-windows.programmer.win32,comp.windows.ms.programmer,fj.os.ms-windows.programming