Click here to Skip to main content
15,915,081 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Home-made string constructor Pin
Cedric Moonen9-Mar-09 22:44
Cedric Moonen9-Mar-09 22:44 
AnswerRe: Home-made string constructor Pin
KarstenK10-Mar-09 0:14
mveKarstenK10-Mar-09 0:14 
AnswerRe: Home-made string constructor Pin
David Crow10-Mar-09 4:07
David Crow10-Mar-09 4:07 
Questionsoftware not working in vista which work properly in xp. Pin
somnathjagtap9-Mar-09 21:32
somnathjagtap9-Mar-09 21:32 
AnswerRe: software not working in vista which work properly in xp. Pin
Hamid_RT9-Mar-09 21:46
Hamid_RT9-Mar-09 21:46 
GeneralRe: software not working in vista which work properly in xp. Pin
somnathjagtap9-Mar-09 22:25
somnathjagtap9-Mar-09 22:25 
AnswerRe: software not working in vista which work properly in xp. Pin
KarstenK9-Mar-09 22:36
mveKarstenK9-Mar-09 22:36 
GeneralRe: software not working in vista which work properly in xp. Pin
somnathjagtap9-Mar-09 22:56
somnathjagtap9-Mar-09 22:56 
I have defined first GUID and handles, then using Readfile and Writefile for data read and write on USB. as shown below

GUID *guidDev = (GUID*) &GUID_CLASS_USBPORT;

HDEVINFO hDevInfo = INVALID_HANDLE_VALUE;

hDevInfo = SetupDiGetClassDevs( guidDev,
NULL,
NULL,
DIGCF_PRESENT | DIGCF_DEVICEINTERFACE
);

g_hw_USBWrite = CreateFile ( UsbWritePipe,
GENERIC_READ | GENERIC_WRITE,
FILE_SHARE_READ | FILE_SHARE_WRITE,
NULL, // no SECURITY_ATTRIBUTES structure
OPEN_EXISTING, // No special create flags
0, // No special attributes
NULL); // No template file

g_hw_USBRead = CreateFile ( UsbReadPipe,
GENERIC_READ | GENERIC_WRITE,
FILE_SHARE_READ | FILE_SHARE_WRITE,
NULL, // no SECURITY_ATTRIBUTES structure
OPEN_EXISTING, // No special create flags
0, // No special attributes
NULL); // No template file

These are some decleratios i do for access USB if something is wrong in it please tell me.

And if my API are wrong then how it work fine for Windows XP?

Waiting for reply?
thank you
GeneralRe: software not working in vista which work properly in xp. Pin
KarstenK10-Mar-09 0:09
mveKarstenK10-Mar-09 0:09 
Questionimport data from excel file Pin
trioum9-Mar-09 21:30
trioum9-Mar-09 21:30 
AnswerRe: import data from excel file Pin
Cedric Moonen9-Mar-09 21:39
Cedric Moonen9-Mar-09 21:39 
GeneralRe: import data from excel file Pin
trioum9-Mar-09 21:50
trioum9-Mar-09 21:50 
GeneralRe: import data from excel file Pin
Paresh Chitte10-Mar-09 0:29
Paresh Chitte10-Mar-09 0:29 
GeneralRe: import data from excel file Pin
David Crow10-Mar-09 4:09
David Crow10-Mar-09 4:09 
QuestionHide the cmd window using createprocess function Pin
raj15769-Mar-09 21:07
raj15769-Mar-09 21:07 
AnswerRe: Hide the cmd window using createprocess function Pin
0x3c09-Mar-09 21:17
0x3c09-Mar-09 21:17 
GeneralRe: Hide the cmd window using createprocess function Pin
raj15769-Mar-09 21:27
raj15769-Mar-09 21:27 
GeneralRe: Hide the cmd window using createprocess function Pin
0x3c010-Mar-09 6:17
0x3c010-Mar-09 6:17 
AnswerRe: Hide the cmd window using createprocess function Pin
Hamid_RT9-Mar-09 21:44
Hamid_RT9-Mar-09 21:44 
GeneralRe: Hide the cmd window using createprocess function Pin
raj15769-Mar-09 21:50
raj15769-Mar-09 21:50 
GeneralRe: Hide the cmd window using createprocess function Pin
Hamid_RT9-Mar-09 21:54
Hamid_RT9-Mar-09 21:54 
AnswerRe: Hide the cmd window using createprocess function Pin
KarstenK10-Mar-09 0:17
mveKarstenK10-Mar-09 0:17 
AnswerRe: Hide the cmd window using createprocess function Pin
KEL320-Aug-09 3:03
KEL320-Aug-09 3:03 
QuestionUnhandled exception in MyApp.exe (KERNEL.dll): 0xE06D7363: Microsoft C++ exception Pin
puppya9-Mar-09 21:04
puppya9-Mar-09 21:04 
AnswerRe: Unhandled exception in MyApp.exe (KERNEL.dll): 0xE06D7363: Microsoft C++ exception Pin
Cedric Moonen9-Mar-09 21:35
Cedric Moonen9-Mar-09 21:35 

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.