🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.controls
Article #38

I can't get Common controls working in VC++ 5

#38
From: Philip
Date: Wed, 18 Mar 1998 00:00
26 lines
1631 bytes
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 

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: <01bd5219$3f8ff160$83b73ecb@pc-snarkle>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 110a07,a448a5bdc3f541e3,start
X-Google-Attributes: gid110a07,public
X-Google-Thread: f7033,a448a5bdc3f541e3,start
X-Google-Attributes: gidf7033,public
X-Google-Thread: 113dfb,a448a5bdc3f541e3,start
X-Google-Attributes: gid113dfb,public
X-Google-Thread: f801d,a448a5bdc3f541e3,start
X-Google-Attributes: gidf801d,public
From: "Philip" <philip.h@usa.net>
Subject: I can't get Common controls working in VC++ 5
Date: 1998/03/18
Message-ID: <01bd5219$3f8ff160$83b73ecb@pc-snarkle>
X-Deja-AN: 335112318
Organization: Alphalink Australia
Newsgroups: comp.os.ms-windows.programmer.controls,comp.os.ms-windows.programmer.win32,comp.windows.ms.programmer,fj.os.ms-windows.programming