Click here to Skip to main content
15,888,968 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: use fgets to read record by record in a file Pin
prasadbuddhika21-Mar-08 0:42
prasadbuddhika21-Mar-08 0:42 
GeneralUSB Enumeration problem. Pin
koumodaki20-Mar-08 5:10
koumodaki20-Mar-08 5:10 
GeneralRe: USB Enumeration problem. Pin
David Crow20-Mar-08 5:49
David Crow20-Mar-08 5:49 
GeneralRe: USB Enumeration problem. Pin
koumodaki20-Mar-08 8:01
koumodaki20-Mar-08 8:01 
QuestionRe: USB Enumeration problem. Pin
David Crow20-Mar-08 8:03
David Crow20-Mar-08 8:03 
GeneralRe: USB Enumeration problem. Pin
koumodaki20-Mar-08 8:13
koumodaki20-Mar-08 8:13 
QuestionRe: USB Enumeration problem. Pin
David Crow20-Mar-08 8:16
David Crow20-Mar-08 8:16 
GeneralRe: USB Enumeration problem. Pin
koumodaki20-Mar-08 8:20
koumodaki20-Mar-08 8:20 
Sorry. I actually modified the code to see if I can atleast get the 1st interface.
int main(void)
{
GUID USBIODS_GUID;
USBIODS_GUID.Data1 = 0x4D36E967;
USBIODS_GUID.Data2 = 0xE325;
USBIODS_GUID.Data3 = 0x11CE;
USBIODS_GUID.Data4[0] = 0xBF;
USBIODS_GUID.Data4[1] = 0xC1;
USBIODS_GUID.Data4[2] = 0x08;
USBIODS_GUID.Data4[3] = 0x0;
USBIODS_GUID.Data4[4] = 0x2B;
USBIODS_GUID.Data4[5] = 0xE1;
USBIODS_GUID.Data4[6] = 0x03;
USBIODS_GUID.Data4[7] = 0x18;

HDEVINFO hInfo = SetupDiGetClassDevs(&USBIODS_GUID, NULL, NULL, DIGCF_PRESENT | DIGCF_INTERFACEDEVICE);
if (hInfo == INVALID_HANDLE_VALUE)
{
return 1;
}

SP_DEVINFO_DATA DeviceInfoData;
DeviceInfoData.cbSize = sizeof(SP_DEVINFO_DATA);

SP_INTERFACE_DEVICE_DATA Interface_Info;
Interface_Info.cbSize = sizeof(Interface_Info);

if(!SetupDiEnumDeviceInterfaces(hInfo, &DeviceInfoData, (LPGUID) &USBIODS_GUID,0, &Interface_Info))
{
int err = GetLastError();
SetupDiDestroyDeviceInfoList(hInfo);
return(0);
}
}

The function fails even now.
GeneralRe: USB Enumeration problem. Pin
David Crow20-Mar-08 8:34
David Crow20-Mar-08 8:34 
GeneralRe: USB Enumeration problem. Pin
koumodaki20-Mar-08 8:41
koumodaki20-Mar-08 8:41 
GeneralRe: USB Enumeration problem. Pin
David Crow20-Mar-08 8:48
David Crow20-Mar-08 8:48 
GeneralLoading .PNG image windows GDI Pin
Hanan88820-Mar-08 3:15
Hanan88820-Mar-08 3:15 
QuestionRe: Loading .PNG image windows GDI Pin
David Crow20-Mar-08 3:19
David Crow20-Mar-08 3:19 
GeneralRe: Loading .PNG image windows GDI Pin
Hanan88820-Mar-08 3:25
Hanan88820-Mar-08 3:25 
GeneralRe: Loading .PNG image windows GDI Pin
Rajesh R Subramanian20-Mar-08 3:28
professionalRajesh R Subramanian20-Mar-08 3:28 
GeneralRe: Loading .PNG image windows GDI Pin
Maximilien20-Mar-08 3:35
Maximilien20-Mar-08 3:35 
GeneralRe: Loading .PNG image windows GDI Pin
Hanan88820-Mar-08 3:47
Hanan88820-Mar-08 3:47 
GeneralRe: Loading .PNG image windows GDI Pin
Mark Salsbery20-Mar-08 5:03
Mark Salsbery20-Mar-08 5:03 
GeneralRe: Loading .PNG image windows GDI Pin
CPallini20-Mar-08 5:27
mveCPallini20-Mar-08 5:27 
GeneralRe: Loading .PNG image windows GDI Pin
David Crow20-Mar-08 5:52
David Crow20-Mar-08 5:52 
GeneralRe: Loading .PNG image windows GDI Pin
CPallini20-Mar-08 6:33
mveCPallini20-Mar-08 6:33 
GeneralOutlookAddin related problem. Pin
ritz123420-Mar-08 2:50
ritz123420-Mar-08 2:50 
GeneralRe: OutlookAddin related problem. Pin
_AnsHUMAN_ 20-Mar-08 2:54
_AnsHUMAN_ 20-Mar-08 2:54 
GeneralRe: OutlookAddin related problem. Pin
ritz123420-Mar-08 3:05
ritz123420-Mar-08 3:05 
GeneralUsing C/C++ DLL at Visual Basic 6.0 [modified] Pin
Scmitd20-Mar-08 1:04
Scmitd20-Mar-08 1:04 

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.