Click here to Skip to main content
15,913,115 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionofstream problems Pin
CS92514-May-07 11:43
CS92514-May-07 11:43 
QuestionRe: ofstream problems Pin
David Crow14-May-07 16:17
David Crow14-May-07 16:17 
Question%systemroot% Pin
dellthinker14-May-07 11:35
dellthinker14-May-07 11:35 
AnswerRe: %systemroot% Pin
Michael Dunn14-May-07 12:00
sitebuilderMichael Dunn14-May-07 12:00 
AnswerRe: %systemroot% Pin
KaЯl14-May-07 12:01
KaЯl14-May-07 12:01 
AnswerRe: %systemroot% Pin
Mark Salsbery14-May-07 12:06
Mark Salsbery14-May-07 12:06 
GeneralRe: %systemroot% Pin
dellthinker16-May-07 5:49
dellthinker16-May-07 5:49 
QuestionINF Install in Visual C Application Pin
rachis14-May-07 10:59
rachis14-May-07 10:59 
Hello,

I am writing an application that communicates with an external device using a USB port. I have the USB driver for the device, but I want to automate the installation of the driver inside the application so the user does not have to install the driver manually. I have embedded the INF and SYS files in the application, so that when the application starts, these files are written to the hard drive. Once the files are on the hard drive, I want the app call whatever windows functions there are to install the driver.

The easy method would be to copy the driver to the system32 directory and let the wizard install it when the device plugs in, but I hate wizards and don't want the user bothered by it.

I have not yet been able to get the driver installation to work. I have tried doing a ShellExecute of RunDll32.exe with the command line info pointing to the INF file, but I never see the driver get installed into the system32 directory. When I plug the device into the PC, Windows does not recognize it.

Any ideas? Is there another way of doing this besides Shelling RunDll32.exe?
AnswerRe: INF Install in Visual C Application Pin
JudyL_MD15-May-07 3:59
JudyL_MD15-May-07 3:59 
QuestionReally Urgent, Keyboard Input using SendInput Pin
Mohammad A Gdeisat14-May-07 10:57
Mohammad A Gdeisat14-May-07 10:57 
AnswerRe: Really Urgent, Keyboard Input using SendInput Pin
CPallini14-May-07 11:25
mveCPallini14-May-07 11:25 
GeneralRe: Really Urgent, Keyboard Input using SendInput Pin
Mohammad A Gdeisat14-May-07 20:25
Mohammad A Gdeisat14-May-07 20:25 
GeneralRe: Really Urgent, Keyboard Input using SendInput Pin
CPallini14-May-07 20:49
mveCPallini14-May-07 20:49 
QuestionQuestion about Harddrive writes Pin
godspeed12314-May-07 10:15
godspeed12314-May-07 10:15 
QuestionRe: Question about Harddrive writes Pin
JudyL_MD14-May-07 10:20
JudyL_MD14-May-07 10:20 
AnswerRe: Question about Harddrive writes Pin
godspeed12314-May-07 10:27
godspeed12314-May-07 10:27 
GeneralRe: Question about Harddrive writes Pin
David Crow14-May-07 10:39
David Crow14-May-07 10:39 
GeneralRe: Question about Harddrive writes Pin
godspeed12314-May-07 10:43
godspeed12314-May-07 10:43 
GeneralRe: Question about Harddrive writes Pin
pkyiu14-May-07 22:47
pkyiu14-May-07 22:47 
AnswerRe: Question about Harddrive writes Pin
skornel14-May-07 10:37
skornel14-May-07 10:37 
GeneralRe: Question about Harddrive writes Pin
godspeed12314-May-07 10:45
godspeed12314-May-07 10:45 
GeneralRe: Question about Harddrive writes Pin
skornel14-May-07 10:46
skornel14-May-07 10:46 
AnswerRe: Question about Harddrive writes Pin
David Crow14-May-07 10:51
David Crow14-May-07 10:51 
GeneralRe: Question about Harddrive writes Pin
Rajesh R Subramanian15-May-07 7:19
professionalRajesh R Subramanian15-May-07 7:19 
GeneralRe: Question about Harddrive writes Pin
David Crow15-May-07 7:50
David Crow15-May-07 7:50 

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.