Click here to Skip to main content
15,895,192 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: File Locking Pin
David Crow5-Nov-07 4:25
David Crow5-Nov-07 4:25 
GeneralRe: File Locking Pin
Imtiaz Murtaza5-Nov-07 4:27
Imtiaz Murtaza5-Nov-07 4:27 
GeneralRe: File Locking Pin
David Crow5-Nov-07 4:30
David Crow5-Nov-07 4:30 
QuestionJust a quick one Pin
thes3cr3t15-Nov-07 1:37
thes3cr3t15-Nov-07 1:37 
AnswerRe: Just a quick one Pin
Nishad S5-Nov-07 1:55
Nishad S5-Nov-07 1:55 
GeneralRe: Just a quick one Pin
thes3cr3t15-Nov-07 2:06
thes3cr3t15-Nov-07 2:06 
AnswerRe: Just a quick one Pin
Cedric Moonen5-Nov-07 2:00
Cedric Moonen5-Nov-07 2:00 
GeneralRe: Just a quick one Pin
thes3cr3t15-Nov-07 2:45
thes3cr3t15-Nov-07 2:45 
Okay let me explain, i have a electronic circuit board with eight relay switches on it, it is connected to my computer via the parrallel port,i am trying to code an aplication that can
1)individualy turn on and off each relay
2)turn on\off one or more of the eight relay's at a certain time

To that end i have a timer that gets the current time (m_sTime) and updates every second
i have 16 editbox's that are CString varibles that a user can enter time's into,eight for on time,eight for off time.

then on every clock tick i want to check if any of the user inputted times match the realtime i.e m_sTime.

i need to know which of the user inputted times match, e.g if all of the times match i need execute binary 11111111, "Out32(0x378,255);.

or if say m_strOn1 and m_strOn2 match and all the others do not match i need to send binary 00000011, "Out32(0x378,3);" by converting binary to decimal

there must be a easier way of achiving what im trying to do,currently im having to use a binary conversion table to calculate ever posibility of on/off sequnces
and hard code them into my aplication

I hope this makes a little more sense to you,im in the army so coding has become just a hobby as work dominates my weekday time.

many thanks chris

GeneralRe: Just a quick one[SOLVED] Pin
thes3cr3t110-Nov-07 22:59
thes3cr3t110-Nov-07 22:59 
QuestionCustom Database with jet engine and Dao MFC wrappers! Pin
padamraj5-Nov-07 1:37
padamraj5-Nov-07 1:37 
Questionvirtual address and real address Pin
zon_cpp5-Nov-07 1:10
zon_cpp5-Nov-07 1:10 
AnswerRe: virtual address and real address Pin
James R. Twine5-Nov-07 1:25
James R. Twine5-Nov-07 1:25 
QuestionCString to COleDateTime type. Pin
Marimuthu.r5-Nov-07 1:06
Marimuthu.r5-Nov-07 1:06 
AnswerRe: CString to COleDateTime type. Pin
James R. Twine5-Nov-07 1:20
James R. Twine5-Nov-07 1:20 
AnswerRe: CString to COleDateTime type. Pin
Marimuthu.r5-Nov-07 1:37
Marimuthu.r5-Nov-07 1:37 
QuestionHow to get execution time of a function in microsecs? Pin
shir_k5-Nov-07 0:24
shir_k5-Nov-07 0:24 
AnswerRe: How to get execution time of a function in microsecs? Pin
ThatsAlok5-Nov-07 0:52
ThatsAlok5-Nov-07 0:52 
GeneralRe: How to get execution time of a function in microsecs? Pin
James R. Twine5-Nov-07 1:29
James R. Twine5-Nov-07 1:29 
GeneralRe: How to get execution time of a function in microsecs? Pin
ThatsAlok5-Nov-07 2:03
ThatsAlok5-Nov-07 2:03 
AnswerRe: How to get execution time of a function in microsecs? Pin
James R. Twine5-Nov-07 1:35
James R. Twine5-Nov-07 1:35 
QuestionAPI for Protected o/s Files Pin
bholoo5-Nov-07 0:14
bholoo5-Nov-07 0:14 
QuestionAdmin gets access denied Pin
vipin_nvk5-Nov-07 0:10
vipin_nvk5-Nov-07 0:10 
QuestionRe: Admin gets access denied Pin
Mark Salsbery5-Nov-07 5:35
Mark Salsbery5-Nov-07 5:35 
QuestionHard disk size?!| Pin
Arish rivlin4-Nov-07 23:46
Arish rivlin4-Nov-07 23:46 
AnswerRe: Hard disk size?!| Pin
Paresh Chitte5-Nov-07 0:05
Paresh Chitte5-Nov-07 0:05 

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.