Click here to Skip to main content
15,911,531 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to load a BMP from a resource dll Pin
Mark Salsbery22-Jun-07 14:29
Mark Salsbery22-Jun-07 14:29 
GeneralRe: How to load a BMP from a resource dll Pin
sstainba22-Jun-07 15:05
sstainba22-Jun-07 15:05 
GeneralRe: How to load a BMP from a resource dll Pin
Mark Salsbery23-Jun-07 7:30
Mark Salsbery23-Jun-07 7:30 
GeneralRe: How to load a BMP from a resource dll Pin
Mark Salsbery23-Jun-07 7:47
Mark Salsbery23-Jun-07 7:47 
GeneralRe: How to load a BMP from a resource dll Pin
sstainba23-Jun-07 11:27
sstainba23-Jun-07 11:27 
GeneralRe: How to load a BMP from a resource dll Pin
Mark Salsbery23-Jun-07 13:51
Mark Salsbery23-Jun-07 13:51 
QuestionQuestion About Serial Port in Visual C++ 2005 Pin
Jason Daniel Cohn22-Jun-07 9:35
Jason Daniel Cohn22-Jun-07 9:35 
AnswerRe: Question About Serial Port in Visual C++ 2005 Pin
SimplCodr22-Jun-07 10:15
SimplCodr22-Jun-07 10:15 
I am a newby so forgive me if I have misunderstood your question and this answer is no help at all.

I just wrote an app that uses pins individually on the serial port. and the code looks like this.

HANDLE hCom;
DCB dcb;
//Create the handle for the comport.
hCom = CreateFileA("COM1", GENERIC_READ | GENERIC_WRITE,
FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, NULL );
if(hCom == INVALID_HANDLE_VALUE)
{
CloseHandle(hCom);
MessageBox("There are no ports avaiable. You may neeed to configure a port");
}
// Get the state of the comport and fills the dcb structure.
GetCommState(hCom, &dcb);
//You can use the following to set pins how you like.
dcb.fRtsControl = RTS_CONTROL_DISABLE; // These are outputs can be set either high or low.
dcb.fDtrControl = DTR_CONTROL_DISABLE;
// Sets the port.
SetCommState(hCom, &dcb);

I hope this helps. If not sorry to waiste your time.

I believe you would have to use WriteFile(); to send real data.

QuestionPrint from buffer Pin
dellthinker22-Jun-07 8:15
dellthinker22-Jun-07 8:15 
AnswerRe: Print from buffer Pin
David Crow22-Jun-07 8:43
David Crow22-Jun-07 8:43 
GeneralRe: Print from buffer Pin
dellthinker22-Jun-07 9:07
dellthinker22-Jun-07 9:07 
GeneralRe: Print from buffer Pin
David Crow22-Jun-07 10:17
David Crow22-Jun-07 10:17 
Questionin hash tables Pin
mido++22-Jun-07 8:06
mido++22-Jun-07 8:06 
QuestionBase and derived classes Pin
ForNow22-Jun-07 6:32
ForNow22-Jun-07 6:32 
AnswerRe: Base and derived classes Pin
Mark Salsbery22-Jun-07 7:34
Mark Salsbery22-Jun-07 7:34 
AnswerRe: Base and derived classes Pin
David Crow22-Jun-07 8:56
David Crow22-Jun-07 8:56 
GeneralRe: Base and derived classes Pin
ForNow22-Jun-07 12:13
ForNow22-Jun-07 12:13 
GeneralRe: Base and derived classes Pin
David Crow30-Jun-07 8:26
David Crow30-Jun-07 8:26 
GeneralRe: Base and derived classes Pin
ForNow30-Jun-07 15:47
ForNow30-Jun-07 15:47 
QuestionDoes a CListCtrl accepts a member variable name in edit mode? Pin
Arris7422-Jun-07 5:37
Arris7422-Jun-07 5:37 
AnswerRe: Does a CListCtrl accepts a member variable name in edit mode? Pin
Mark Salsbery22-Jun-07 5:44
Mark Salsbery22-Jun-07 5:44 
GeneralRe: Does a CListCtrl accepts a member variable name in edit mode? Pin
Arris7422-Jun-07 7:40
Arris7422-Jun-07 7:40 
GeneralRe: Does a CListCtrl accepts a member variable name in edit mode? Pin
Mark Salsbery22-Jun-07 8:03
Mark Salsbery22-Jun-07 8:03 
Questionhow to get Unique ID of a device Pin
VC_RYK22-Jun-07 4:52
VC_RYK22-Jun-07 4:52 
QuestionApplication Hang Pin
cpp_prgmer22-Jun-07 4:18
cpp_prgmer22-Jun-07 4:18 

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.