Click here to Skip to main content
15,896,063 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Question'c' Program [modified] Pin
singh.niraj40@yahoo.com9-Nov-09 4:01
singh.niraj40@yahoo.com9-Nov-09 4:01 
AnswerRe: 'c' Program Pin
Chris Losinger9-Nov-09 4:03
professionalChris Losinger9-Nov-09 4:03 
AnswerRe: 'c' Program Pin
David Crow9-Nov-09 4:21
David Crow9-Nov-09 4:21 
JokeRe: 'c' Program Pin
Cedric Moonen9-Nov-09 4:32
Cedric Moonen9-Nov-09 4:32 
AnswerRe: 'c' Program Pin
Michael Schubert9-Nov-09 6:03
Michael Schubert9-Nov-09 6:03 
QuestionInvalidating / Repainting / Refreshing UltraWinGrid in/from C++ Control Pin
Sebastian Schwarzenberg9-Nov-09 2:40
Sebastian Schwarzenberg9-Nov-09 2:40 
AnswerRe: Invalidating / Repainting / Refreshing UltraWinGrid in/from C++ Control Pin
LunaticFringe9-Nov-09 8:22
LunaticFringe9-Nov-09 8:22 
QuestionHow does one access a Serial port using Visual C++ 2008 Express tools. Pin
dk-info9-Nov-09 1:32
dk-info9-Nov-09 1:32 
Background: I am an embedded 'C' programmer, with no windows development experience other than simple console applications using Win32. I have developed using classes but mostly in Java. Other than the ubiquitous "Hello World" using Windows Forms and C++, I have limited to no windows programming experience.

Problem:I have a project where I need to interface an embedded controller to a windows application. Ultimately I need to translate input from windows controls into a stream of serial characters. This stream is interpreted by the embedded controller to do "stuff". The serial interface here may be a "real" serial port, or through a USB-Serial converter cable.

I don't have the money to buy comm libraries, I am using the Visual Studio 2008 Express because it is free, and unless it is absolutely necessary, I am not interested in learning another language like C# or Visual Basic. It is difficult enough for a 'C' coder in the embedded world to transition into the windows world of C++. I don't understand the implications of using ATL vs. MFC vs CLR vs Win32, so please be gentle.

I have posed this question now a half a dozen other forums and keep getting references to Visual C++ 2005 or 2006 code that will not compile in the .NET vernacular (did I get the nuance correct?) Or admonishments to "Just use ___" (insert any of J#, C#, VB or PHP). What used to be a simple:"fputc(com1, "My String");" is now a multilayered, insulated, managed into obscurity onion of code.

If I understand it correctly, in the Win32 vernacular, there is a serial port class, that can be used to instantiate an object that has methods for determining if a port exists, setting port parameters (like BRPY- Baud rate and parity, and flow control) as well as mapping the "<<" and ">>" operators to accommodate inserting/retrieving objects (like a string) into the stream.

I have yet to see an example of code, written using Win32, that will demonstrate moving a single character to a serial port, using the Visual Studio 2008 toolbox.

I need to lean on the experience of more informed programmers for guidance and direction to help me to the next step. Any help or direction (even if it is an admonishment to "RTFM" as long as the requisite "FM" is given) would be greatly appreciated.

David
Melbourne, Florida
AnswerRe: How does one access a Serial port using Visual C++ 2008 Express tools. Pin
David Crow9-Nov-09 2:58
David Crow9-Nov-09 2:58 
GeneralRe: How does one access a Serial port using Visual C++ 2008 Express tools. Pin
dk-info9-Nov-09 5:33
dk-info9-Nov-09 5:33 
AnswerRe: How does one access a Serial port using Visual C++ 2008 Express tools. Pin
David Crow9-Nov-09 5:38
David Crow9-Nov-09 5:38 
GeneralRe: How does one access a Serial port using Visual C++ 2008 Express tools. Pin
dk-info11-Nov-09 8:20
dk-info11-Nov-09 8:20 
QuestionHow to prevent screen capture? Pin
semaphore19-Nov-09 1:24
semaphore19-Nov-09 1:24 
AnswerRe: How to prevent screen capture? Pin
mav@octaval9-Nov-09 2:00
mav@octaval9-Nov-09 2:00 
AnswerRe: How to prevent screen capture? [modified] Pin
hxhl959-Nov-09 10:38
hxhl959-Nov-09 10:38 
GeneralRe: How to prevent screen capture? [modified] Pin
semaphore19-Nov-09 19:48
semaphore19-Nov-09 19:48 
GeneralRe: How to prevent screen capture? Pin
Midono126-Nov-09 21:00
Midono126-Nov-09 21:00 
GeneralRe: How to prevent screen capture? Pin
semaphore126-Nov-09 23:51
semaphore126-Nov-09 23:51 
GeneralRe: How to prevent screen capture? Pin
Midono127-Nov-09 3:47
Midono127-Nov-09 3:47 
GeneralRe: How to prevent screen capture? Pin
Ramkrishna Pawar5-Jan-10 7:53
Ramkrishna Pawar5-Jan-10 7:53 
GeneralDetails of Screen Capture Prevention Pin
Gopalakrishna Palem10-Jan-10 0:34
Gopalakrishna Palem10-Jan-10 0:34 
Questioncreating directx texture from raw image data Pin
Andreoli Carlo8-Nov-09 23:58
professionalAndreoli Carlo8-Nov-09 23:58 
QuestionTYPE_E_CANTLOADLIBRARY Pin
deadlyabbas8-Nov-09 23:47
deadlyabbas8-Nov-09 23:47 
AnswerRe: TYPE_E_CANTLOADLIBRARY Pin
opedroso221-May-10 8:22
opedroso221-May-10 8:22 
QuestionAboutBox Pin
johnjitu8-Nov-09 23:36
johnjitu8-Nov-09 23:36 

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.