|
-
Oct 10th, 2002, 07:51 AM
#1
Thread Starter
New Member
Comport on VB.net
I use mscomm for VB6 to get value from com port (serial port)
but vb.net I can't register mscomm32.ocx to use on vb.net.
If I install VB6 on computer I can add mscomm32.
Can help me? Please send solution...
Thank you very much
-
Oct 10th, 2002, 11:47 AM
#2
Frenzied Member
If the DLL is installed on the machine you can just open the VB6 project in VB.NET and it will convert it. Sure it will still use the DLL to look at the COM port, but you'll gain all the .NET extras.
I don't know if that is the answer you were looking for or not. I've never talked to a COM port before.
~Peter

-
Oct 10th, 2002, 12:00 PM
#3
PowerPoster
I think I found exactly what you need to get started.
Here is a direct link to an exe file that has the code.
http://download.microsoft.com/downlo...SerialComm.exe
It is from the MSDN magazine, October issue. There was a whole article about using P/Invoke to develp a .net base class library for serial device communications.
Here is the article:
http://msdn.microsoft.com/msdnmag/is...m/default.aspx
Hope that helps you out.
-
Oct 10th, 2002, 10:27 PM
#4
Thread Starter
New Member
Thank you all answer
Thank you all answer.
I will try it.May I ask one question if I use mscomm.ocx from
vb6 and run program on vb.net. Can I use library from vb6 without install vb6.
thank you very much.
-
Oct 11th, 2002, 07:25 PM
#5
PowerPoster
Why would you want to use the old com component? Did you read that article I gave you?
The library uses Platform Invocation Services to interact with the Win32 API directly. Application programmers can use the library from any .NET language through inheritance; the article explores examples written in C# and Visual Basic .NET.
-
Jun 2nd, 2003, 04:09 PM
#6
Fanatic Member
Hi,
just been reading this(and the article!) and i'm about to start designing an app to read data from a serial input. Was just wondering if anybody else had had to do this with vb.net that could give me some help.
Cheers
Nick
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
|