Click here to Skip to main content
16,004,924 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Friend Functions Pin
toxcct16-Mar-05 21:03
toxcct16-Mar-05 21:03 
GeneralAccess Violation Pin
Usman Arif16-Mar-05 20:26
Usman Arif16-Mar-05 20:26 
GeneralRe: Access Violation Pin
Cedric Moonen16-Mar-05 21:38
Cedric Moonen16-Mar-05 21:38 
GeneralRotate picture Pin
JAMANAKA16-Mar-05 20:09
JAMANAKA16-Mar-05 20:09 
GeneralRe: Rotate picture Pin
John R. Shaw17-Mar-05 6:52
John R. Shaw17-Mar-05 6:52 
GeneralApplictions Communication problem Pin
ReBeL34716-Mar-05 19:47
ReBeL34716-Mar-05 19:47 
GeneralRe: Applictions Communication problem Pin
John R. Shaw17-Mar-05 6:58
John R. Shaw17-Mar-05 6:58 
GeneralGetCurrentHwProfile( ) api usage Pin
brilliant10116-Mar-05 19:21
brilliant10116-Mar-05 19:21 
i have made a programe to know the current hardware profile of the system using GetCurrentHwProfile api,At first it does not does not recognize the function in the window.h.And
when i write #define _WIN32_WINNT 0x4000; it gives error in the winbase.h. Please help me out.....

#define _WIN32_WINNT 0x4000;
#include <windows.h>
#include <stdio.h>
#include <tchar.h>

const int HW_PROFILE_GUIDLEN=100;
const int MAX_PROFILE_LEN=100;

typedef struct HW_PROFILE_INFO {
DWORD dwDockInfo;
TCHAR szHwProfileGuid[HW_PROFILE_GUIDLEN];
TCHAR szHwProfileName[MAX_PROFILE_LEN];
} HW_PROFILE_INFO, *LPHW_PROFILE_INFO;

int WINAPI WinMain(HINSTANCE h,HINSTANCE p,LPSTR l,int n)
{
TCHAR szBuffer1[1000];
TCHAR szBuffer2[1000];
TCHAR szBuffer3[1000];
HW_PROFILE_INFO HwProfInfo;
GetCurrentHwProfile(&HwProfInfo) ;

sprintf(szBuffer1, "DockInfo: %s", HwProfInfo.dwDockInfo);
MessageBox(0, szBuffer1, "Dock Info", 0);

sprintf(szBuffer2, "Profile Guid: %s", HwProfInfo.szHwProfileGuid);

MessageBox(0, szBuffer2, "Profile Guid", 0);

sprintf(szBuffer3, "Friendly Name: %s", HwProfInfo.szHwProfileName);

MessageBox(0, szBuffer3, "Friendly Name", 0);
return 0;
}
GeneralProblem with Multiple Instances of ActiveX Control, Please Help Pin
rdeekonda16-Mar-05 18:27
rdeekonda16-Mar-05 18:27 
GeneralHelp on Compiled HTML(CHM) Viewer Pin
anukrati16-Mar-05 18:13
anukrati16-Mar-05 18:13 
GeneralFrame comparison Pin
Francis Chau16-Mar-05 17:12
Francis Chau16-Mar-05 17:12 
Generalvirutal class and friend class Pin
phijophlip16-Mar-05 17:10
phijophlip16-Mar-05 17:10 
GeneralRe: virutal class and friend class Pin
HalfWayMan16-Mar-05 22:32
HalfWayMan16-Mar-05 22:32 
Generaldifference between virutal class and friend class Pin
phijophlip16-Mar-05 17:10
phijophlip16-Mar-05 17:10 
GeneralRe: difference between virutal class and friend class Pin
ThatsAlok16-Mar-05 18:08
ThatsAlok16-Mar-05 18:08 
GeneralRe: difference between virutal class and friend class Pin
toxcct16-Mar-05 21:31
toxcct16-Mar-05 21:31 
GeneralCreating a graph chart Pin
Anonymous16-Mar-05 16:48
Anonymous16-Mar-05 16:48 
GeneralCompilation errors in Debug mode Pin
Gagnon Claude16-Mar-05 16:35
Gagnon Claude16-Mar-05 16:35 
GeneralRe: Compilation errors in Debug mode Pin
toxcct16-Mar-05 21:11
toxcct16-Mar-05 21:11 
Generaldrop down scroll bar too small Pin
catdude16-Mar-05 16:33
catdude16-Mar-05 16:33 
GeneralRe: drop down scroll bar too small Pin
Roger Allen17-Mar-05 0:07
Roger Allen17-Mar-05 0:07 
GeneralRe: drop down scroll bar too small Pin
catdude17-Mar-05 2:07
catdude17-Mar-05 2:07 
GeneralDetecting mouse clicks outside my dialog Pin
djtommye16-Mar-05 15:59
djtommye16-Mar-05 15:59 
GeneralRe: Detecting mouse clicks outside my dialog Pin
namaskaaram16-Mar-05 19:51
namaskaaram16-Mar-05 19:51 
GeneralRe: Detecting mouse clicks outside my dialog Pin
djtommye17-Mar-05 19:26
djtommye17-Mar-05 19:26 

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.