Click here to Skip to main content
15,905,325 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: syntax error '<' Pin
David Crow31-Oct-05 3:37
David Crow31-Oct-05 3:37 
QuestionRe: syntax error '<' Pin
gr8coaster32931-Oct-05 9:26
gr8coaster32931-Oct-05 9:26 
AnswerRe: syntax error '<' Pin
David Crow31-Oct-05 9:49
David Crow31-Oct-05 9:49 
QuestionPrinting an image Pin
DanYELL29-Oct-05 17:07
DanYELL29-Oct-05 17:07 
AnswerRe: Printing an image Pin
Christian Graus30-Oct-05 11:41
protectorChristian Graus30-Oct-05 11:41 
GeneralRe: Printing an image Pin
DanYELL30-Oct-05 16:50
DanYELL30-Oct-05 16:50 
GeneralRe: Printing an image Pin
Christian Graus30-Oct-05 16:53
protectorChristian Graus30-Oct-05 16:53 
QuestionSPDRP_FRIENDLYNAME Pin
LiYS29-Oct-05 16:41
LiYS29-Oct-05 16:41 
Anybody knows how to get SPDRP_FRIENDLYNAME in SetupDiGetDeviceRegistryProperty from USB disk, the buffer I get always invalid?In addition Can It works under Win98?
DEFINE_GUID(GUID_CLASS_USB_DEVICE,
     0xA5DCBF10, 0x6530, 0x11D2, 0x90, 0x1F, 0x00, 0xC0, 0x4F, 0xB9, 0x51, 0xED);

hDevInfo = SetupDiGetClassDevs((LPGUID)&GUID_CLASS_USB_DEVICE,
     0, 0, DIGCF_PRESENT | DIGCF_DEVICEINTERFACE);

 if (hDevInfo == INVALID_HANDLE_VALUE)
     return false;

 // Enumerate through all devices in Set.
 DeviceInfoData.cbSize = sizeof(SP_DEVINFO_DATA);
 for (i = 0 ; SetupDiEnumDeviceInfo(hDevInfo, i, &DeviceInfoData) ; i++)
 {
     DWORD DataT;
     LPTSTR buffer = new char[1024];//NULL;
     DWORD buffersize = 1024;//0;

 SetupDiEnumDeviceInterfaces (hDevInfo, 0, &DeviceInfoData.ClassGuid, i, &DInfoData);

     while (!SetupDiGetDeviceRegistryProperty(hDevInfo, &DeviceInfoData,
             SPDRP_FRIENDLYNAME, &DataT, (PBYTE)buffer, buffersize, &buffersize))
 ...
 }




QuestionCListCtrl Error Pin
Allad29-Oct-05 15:05
Allad29-Oct-05 15:05 
Questionnumber picker thingie Pin
alex@zoosmart.us29-Oct-05 12:11
alex@zoosmart.us29-Oct-05 12:11 
AnswerRe: number picker thingie Pin
Joe Woodbury29-Oct-05 13:06
professionalJoe Woodbury29-Oct-05 13:06 
GeneralRe: number picker thingie Pin
alex@zoosmart.us30-Oct-05 12:05
alex@zoosmart.us30-Oct-05 12:05 
GeneralRe: number picker thingie Pin
Joe Woodbury30-Oct-05 17:19
professionalJoe Woodbury30-Oct-05 17:19 
Questionsort structures Pin
kerrywes29-Oct-05 9:57
kerrywes29-Oct-05 9:57 
AnswerRe: sort structures Pin
Chris Losinger29-Oct-05 12:03
professionalChris Losinger29-Oct-05 12:03 
AnswerRe: sort structures Pin
Joe Woodbury29-Oct-05 13:11
professionalJoe Woodbury29-Oct-05 13:11 
AnswerRe: sort structures Pin
Ghasrfakhri29-Oct-05 19:21
Ghasrfakhri29-Oct-05 19:21 
Questioncant signin to homtmail using Pin
whatever8929-Oct-05 9:29
whatever8929-Oct-05 9:29 
Questionfile system type Pin
Chintoo72329-Oct-05 7:26
Chintoo72329-Oct-05 7:26 
AnswerRe: file system type Pin
Mircea Puiu29-Oct-05 7:45
Mircea Puiu29-Oct-05 7:45 
Questiontooltip for CDC drawing areas ?? Pin
tbrake29-Oct-05 6:15
tbrake29-Oct-05 6:15 
Questionmulti thread sinz Pin
jojojojoj29-Oct-05 3:51
jojojojoj29-Oct-05 3:51 
AnswerRe: multi thread sinz Pin
S. Senthil Kumar29-Oct-05 7:50
S. Senthil Kumar29-Oct-05 7:50 
GeneralRe: multi thread sinz Pin
jojojojoj29-Oct-05 11:00
jojojojoj29-Oct-05 11:00 
QuestionListCtrl problem Pin
shivditya29-Oct-05 2:00
shivditya29-Oct-05 2:00 

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.