Click here to Skip to main content
15,886,258 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: GetComputerName <-- Issue with string? Pin
rbwest869-Apr-09 17:49
rbwest869-Apr-09 17:49 
GeneralRe: GetComputerName <-- Issue with string? Pin
David Crow10-Apr-09 2:45
David Crow10-Apr-09 2:45 
AnswerRe: GetComputerName <-- Issue with string? Pin
Jijo.Raj9-Apr-09 19:10
Jijo.Raj9-Apr-09 19:10 
GeneralRe: GetComputerName <-- Issue with string? Pin
rbwest869-Apr-09 20:38
rbwest869-Apr-09 20:38 
GeneralRe: GetComputerName <-- Issue with string? Pin
Jijo.Raj9-Apr-09 23:28
Jijo.Raj9-Apr-09 23:28 
QuestionDealing with resource ID conflicts (MFC service Pack 2008) Pin
Maximilien9-Apr-09 10:22
Maximilien9-Apr-09 10:22 
QuestionSetupDiGetDeviceInterfaceDetail help Pin
suendisra9-Apr-09 5:54
suendisra9-Apr-09 5:54 
AnswerRe: SetupDiGetDeviceInterfaceDetail help Pin
Jerry Evans9-Apr-09 6:32
Jerry Evans9-Apr-09 6:32 
I use this approach when querying audio devices using the ANSI API's ...

<pre>

// Get details for the device registered in this class
DWORD size = sizeof(SP_DEVICE_INTERFACE_DETAIL_DATA) + MAX_PATH * sizeof(WCHAR);
// use vector so it will clean up afterwards
std::vector<BYTE> buffer(size,0);
// set up the pointer
SP_DEVICE_INTERFACE_DETAIL_DATA* pDevInterfaceDetails =
reinterpret_cast<SP_DEVICE_INTERFACE_DETAIL_DATA*>(&buffer[0]);
// let SetupDi know how big a buffer we have ...
pDevInterfaceDetails->cbSize = sizeof(SP_DEVICE_INTERFACE_DETAIL_DATA);
// get the device path ...
if (!SetupDiGetDeviceInterfaceDetail(hDevInfo,&DID,pDevInterfaceDetails,size,NULL,&DevInfoData))
{
continue;
}


Apologies for CP formatting ...

Jerry

GeneralRe: SetupDiGetDeviceInterfaceDetail help Pin
suendisra9-Apr-09 19:04
suendisra9-Apr-09 19:04 
Questioncmd.exe error Pin
Max++9-Apr-09 5:49
Max++9-Apr-09 5:49 
AnswerRe: cmd.exe error Pin
David Crow9-Apr-09 6:33
David Crow9-Apr-09 6:33 
QuestionBreakpoints not being hit Pin
Like2Byte9-Apr-09 4:44
Like2Byte9-Apr-09 4:44 
AnswerRe: Breakpoints not being hit Pin
Rajesh R Subramanian9-Apr-09 5:16
professionalRajesh R Subramanian9-Apr-09 5:16 
AnswerRe: Breakpoints not being hit Pin
Iain Clarke, Warrior Programmer9-Apr-09 5:41
Iain Clarke, Warrior Programmer9-Apr-09 5:41 
GeneralRe: Breakpoints not being hit Pin
Like2Byte9-Apr-09 9:32
Like2Byte9-Apr-09 9:32 
Questionhow to control Stepper Motor Control drive through serial Port Pin
sahih9-Apr-09 4:38
sahih9-Apr-09 4:38 
AnswerRe: how to control Stepper Motor Control drive through serial Port Pin
Stuart Dootson9-Apr-09 4:43
professionalStuart Dootson9-Apr-09 4:43 
AnswerRe: how to control Stepper Motor Control drive through serial Port Pin
CPallini9-Apr-09 5:34
mveCPallini9-Apr-09 5:34 
QuestionDrawin into window outside of CView::OnDraw function Pin
Gastello9-Apr-09 4:29
Gastello9-Apr-09 4:29 
AnswerWhat? Pin
led mike9-Apr-09 4:36
led mike9-Apr-09 4:36 
GeneralRe: What? Pin
Stuart Dootson9-Apr-09 4:41
professionalStuart Dootson9-Apr-09 4:41 
GeneralRe: What? Pin
Gastello9-Apr-09 5:16
Gastello9-Apr-09 5:16 
GeneralRe: What? Pin
CPallini9-Apr-09 5:22
mveCPallini9-Apr-09 5:22 
QuestionRe: What? Pin
led mike9-Apr-09 8:26
led mike9-Apr-09 8:26 
AnswerRe: What? Pin
Gastello13-Apr-09 20:58
Gastello13-Apr-09 20:58 

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.