Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Help needed in attempt to read from com.port!
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Haha  
View profile  
 More options Apr 11 1999, 3:00 am
Newsgroups: comp.lang.c++
From: "Haha" <dalm...@mbox5.singnet.com.sg>
Date: 1999/04/11
Subject: Help needed in attempt to read from com.port!
To all the kind C/C++ experts out there,

I'm trying to access the serial port using the following sample code:

#include <stdio.h>
#include <conio.h>

int main(void)
{
  unsigned port = 0;
  int value;
  value = outp(port, 'C');
  printf("Value %c sent to port number %d\n", value, port);
  return 0;

}

However, the linker kept on prompting : unresolved external '_outp'.
I'm trying Borland C/C++5. Is there any parameters to be set for the linker
? Or is there any other functions recommanded instead for reading/writing to
comm ports?

Thanks a million in advance!

regards,

Toraso


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Big Bamboo  
View profile  
 More options Apr 11 1999, 3:00 am
Newsgroups: comp.lang.c++
From: "Big Bamboo" <BBam...@tendu.com>
Date: 1999/04/11
Subject: Re: Help needed in attempt to read from com.port!
try
    outportb(port,value)
    value=inportb(port)
and set project -> platform ->dos (standart)
good luck
Haha a écrit dans le message <7epn0d$ki...@mawar.singnet.com.sg>...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jack Klein  
View profile  
 More options Apr 12 1999, 3:00 am
Newsgroups: comp.lang.c++
From: jackkl...@att.net (Jack Klein)
Date: 1999/04/12
Subject: Re: Help needed in attempt to read from com.port!
On Sun, 11 Apr 1999 16:39:26 +0800, "Haha"
<dalm...@mbox5.singnet.com.sg> wrote in comp.lang.c++:

<Jack>

#1.  0 is not a valid com port address.

#2.  This is all platform specific and off-topic in this newsgroup
altogether.

#3.  Borland 5 can make no less than five different types of programs
and you didn't say which type you were trying to make.

#4.  Open the online help page for the function you are trying to use.
Click on the Compatibility link at the top of the page.  If will tell
you what types of programs the function is available in.

#5.  Go to http://www.borland.com.  The Developer Support link will
take you to a page where you can access FAQs and TIs (Technical
Information documents) for your compiler.  The newsgroups button will
show you the Borland support groups and how to access them.

</Jack>
--
Do not email me with questions about programming.
Post them to the appropriate newsgroup.
Followups to my posts are welcome.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »