Com port communication

Toddy_Boy
Member Posts: 232
Hi Guys
I need to record a weighscale reading through a com port. Many of the posts doing a similar thing on the forum are quite old and use nfcomm. Is there a better way of reading the com port? I'm using Nav 5.1 on SQL Server.
I've registered the nfcomm ocx butit does not show in the list Automation list, so how do I decalre a variable of type nfcomm?
Cheers
I need to record a weighscale reading through a com port. Many of the posts doing a similar thing on the forum are quite old and use nfcomm. Is there a better way of reading the com port? I'm using Nav 5.1 on SQL Server.
I've registered the nfcomm ocx butit does not show in the list Automation list, so how do I decalre a variable of type nfcomm?
Cheers
Life is for enjoying ... if you find yourself frowning you're doing something wrong
0
Comments
-
Use mscomm32.ocx (Custom Control). It's the tried and true method.
It's an OCX not Automation Controller.There are no bugs - only undocumented features.0 -
This website should help you with downloading mscomm32.ocx. Register if afterward.
http://www.yes-tele.com/mscomm.html0 -
0
-
Thanks for the replies, I have the MScomm32.ocx installed from VB6, and have read the thread on using the control however I am at a loss as how to declare a variable of type MSComm ](*,)
What am I overlooking?
CheersLife is for enjoying ... if you find yourself frowning you're doing something wrong0 -
if you declare a variable do you see the DataType OCX ?
If no, you must expand your license to granule 1750.
RegardsDo you make it right, it works too!0 -
Ahhh ... now it make sense, I've never used that before. Thanks a lot. \:D/
Now does anyone have a lorry weighscale I can borrow :P :PLife is for enjoying ... if you find yourself frowning you're doing something wrong0 -
I have declared the OCX
Name DataType Subtype Length CommCtrl OCX Microsoft Communications Control, version 6.0
and get the message Cannot load the selected type library #-o
Any ideas?Life is for enjoying ... if you find yourself frowning you're doing something wrong0 -
which nav version are you using? you get the error when you run it?0
-
Nav 5.1, I get the error when I try to save the form in the object designer.Life is for enjoying ... if you find yourself frowning you're doing something wrong0
-
I don't get the error. did you try to register it from navision? Tools->custom controls?
Also I've put the ocx in windows\system32 folder.
did you restart nav? os?0 -
from Tools->Custom Controls I can see the OCXInprocServer32 Name
C:\WINDOWS\system32\MSCOMM32.1 Microsoft Communications Control, version 6.0
When I try to register/unregister it I get the errorCould not load the OLE control
](*,) ](*,)Life is for enjoying ... if you find yourself frowning you're doing something wrong0 -
Hmm I don't know. You can try this ocx from mibuso.com
http://www.mibuso.com/dlinfo.asp?FileID=68
Here is thread on this.
http://dynamicsuser.net/forums/p/11937/11937.aspx0 -
From the list of OCX controls I clicked Control->Browse, found the MSComm32.ocx in the system32 folder, clicked on it at which point something registered the OCX. Now I can add it to the form. YEY!! \:D/ \:D/
Thanks for the help ... tho I still need a weigh bridge for testingLife is for enjoying ... if you find yourself frowning you're doing something wrong0 -
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions