|
-
Feb 3rd, 2006, 07:21 PM
#1
Thread Starter
PowerPoster
com help!
hi
im new to this
trying to fiddle around with COM etc... so I can send signals using CreateFile() and WriteFile().
Almost there!
I am deving in C# but using low level calls from dllimport.
Current problem I have is that if I CreateFile() - I get a handler - cool
If I WriteFile() I get error 1359 which is ERROR_INTERNAL_ERROR - no idea what this is or how to resolve it
after reading more and more, came to the conclusion that you need to Set the comm state (parity settings, baud rate and so on) so I did this using SetCommState()
Now, when I set the DCB and give it to SetCommState with the CreateFile() handler (to COM3) I get error 6 which is invalid handler
?!?!!?!?
whats happening?
-
Feb 7th, 2006, 02:13 PM
#2
-
Feb 7th, 2006, 02:20 PM
#3
Thread Starter
PowerPoster
Re: com help!
Thanks Hack - was unsure - thought the original forum I posted it in was more appropriate as there would be not much reference to C# and technical is a low level C++ COM thing - but thank-you for moving it as appropriate
-
Feb 11th, 2006, 11:28 AM
#4
Thread Starter
PowerPoster
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|