Comm.Question

new topic     » topic index » view thread      » older message » newer message

--I 'd like to use COM ports in euphoria (W32). If I do:
        hCom=open("COM1","wb")
        hCom=-1
--when I did:
xCreateFile= linkFunc(kernel32,"CreateFileA",{C_POINTER, C_LONG, C_LONG,
                            C_POINTER, C_LONG, C_LONG, C_LONG },C_INT)

                                                              NULL})
printf(1,"\nhCom=%d",hCom)
--hCom=12
-- GetCommState, BuildCommDCB, SetCommState works with hCom
--and
puts(hCom,"something")
-- then the message  "file number 12 is not open"

Please help me!
Thanks,     Attila Kondor

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu