George,
I'm having one or two problems making your dialer code dial!
question 1 - the parameter 'commport' - what form should it take? It seems to want the form 'COM3' . Is that right?
question 2 - should the variable 'lccmnd' be declared at the same time as 'lcmnd' or is it a misprint? (it falls over, if I can get it to that point, complaining that it doesn't recognise the variable)
question 3 - where does the 'createfile' command come from? Went looking for help on it to see if it would help me with the previous questions, but there's no reference to it in the MSDN help.
the problem I'm getting most frequently is that the variable 'lnport' is nearly always -1 following the line
lnport = CreateFile(CommPort, GENERIC_READ + GENERIC_WRITE, 0, 0, 3, 0, 0)
as a result of which, it never (well except once when I then got the problem with 'lccmnd') runs the code following
IF lnport > 0
I think this may be because I set the com port 'live' and didn't defuse it before my next attempt...
but what else am I missing?
Regards
Harry
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement