Click here to Skip to main content
16,005,038 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: menu item selection Pin
prithaa26-Oct-06 22:34
prithaa26-Oct-06 22:34 
AnswerRe: menu item selection Pin
bosfan26-Oct-06 22:34
bosfan26-Oct-06 22:34 
AnswerRe: menu item selection Pin
Michael Dunn26-Oct-06 23:05
sitebuilderMichael Dunn26-Oct-06 23:05 
GeneralRe: menu item selection Pin
prithaa27-Oct-06 0:41
prithaa27-Oct-06 0:41 
Questiondigital I/O Pin
Archyami26-Oct-06 22:19
Archyami26-Oct-06 22:19 
AnswerRe: digital I/O Pin
Roger Stoltz26-Oct-06 23:23
Roger Stoltz26-Oct-06 23:23 
GeneralRe: digital I/O Pin
Archyami26-Oct-06 23:51
Archyami26-Oct-06 23:51 
GeneralRe: digital I/O Pin
Roger Stoltz27-Oct-06 1:54
Roger Stoltz27-Oct-06 1:54 
Archyami wrote:
just dont know how to access it using cpp.

So, I think I can use ::CreateFile(), ::ReadFile(), ::WriteFile(), ::CloseHandle() to access it, right?

More question, using ::CreateFile, should I use "port280" as the file name?


If you open a device with ::CreateFile(), you have to provide the device name as argument to the function, e.g. "COM1" when opening communications port 1.
You have to find out what your device is called before you can access it through these methods. Look for settings in the Device Manager.
It's not possible for anyone else to know what your device is called in your machine. Perhaps if you mentioned what kind of device it is someone could tell you how the device usually presents itself and how to communicate with it.

--
Roger


"It's supposed to be hard, otherwise anybody could do it!" - selfquote

"No one remembers a coward!" - Jan Elfström 1998
"...but everyone remembers an idiot!" - my lawyer 2005 when heard of Jan's saying above

QuestionHow to save the Zorder of windows ? Pin
fahmoun26-Oct-06 22:12
fahmoun26-Oct-06 22:12 
AnswerRe: How to save the Zorder of windows ? Pin
fahmoun27-Oct-06 3:05
fahmoun27-Oct-06 3:05 
GeneralRe: How to save the Zorder of windows ? Pin
ThatsAlok28-Oct-06 1:45
ThatsAlok28-Oct-06 1:45 
QuestionChanging bgcolor at runtime Pin
baerten26-Oct-06 21:46
baerten26-Oct-06 21:46 
AnswerRe: Changing bgcolor at runtime Pin
Hamid_RT26-Oct-06 21:52
Hamid_RT26-Oct-06 21:52 
GeneralRe: Changing bgcolor at runtime Pin
baerten26-Oct-06 22:09
baerten26-Oct-06 22:09 
GeneralRe: Changing bgcolor at runtime Pin
Hamid_RT26-Oct-06 22:24
Hamid_RT26-Oct-06 22:24 
AnswerRe: Changing bgcolor at runtime Pin
baerten26-Oct-06 23:21
baerten26-Oct-06 23:21 
GeneralRe: Changing bgcolor at runtime Pin
Hamid_RT27-Oct-06 8:09
Hamid_RT27-Oct-06 8:09 
AnswerRe: Changing bgcolor at runtime Pin
PasNad27-Oct-06 6:05
PasNad27-Oct-06 6:05 
Questionerror Pin
radhika2826-Oct-06 21:04
radhika2826-Oct-06 21:04 
QuestionRe: error Pin
Rajesh R Subramanian26-Oct-06 21:13
professionalRajesh R Subramanian26-Oct-06 21:13 
AnswerRe: error Pin
radhika2826-Oct-06 21:27
radhika2826-Oct-06 21:27 
GeneralRe: error Pin
Rajesh R Subramanian26-Oct-06 21:33
professionalRajesh R Subramanian26-Oct-06 21:33 
GeneralRe: error Pin
radhika2826-Oct-06 22:06
radhika2826-Oct-06 22:06 
GeneralRe: error Pin
Rajesh R Subramanian26-Oct-06 22:11
professionalRajesh R Subramanian26-Oct-06 22:11 
GeneralRe: error Pin
Rajesh R Subramanian26-Oct-06 22:15
professionalRajesh R Subramanian26-Oct-06 22:15 

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.