Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > puttextxy( int x, int y, char far *const );

Reply
Thread Tools

puttextxy( int x, int y, char far *const );

 
 
venkatesh.k.desai5@gmail.com
Guest
Posts: n/a
 
      05-13-2006
Hi,
Is thr any way to make puttextxy( int x, int y, char far *const );
as portable? plz give me the code.

Take care
Venky.

 
Reply With Quote
 
 
 
 
Richard Heathfield
Guest
Posts: n/a
 
      05-13-2006
said:

> Hi,
> Is thr any way to make puttextxy( int x, int y, char far *const );
> as portable?


Yes. Removing the word 'far' makes the prototype, at least, portable.

Whether the underlying function can be made portable will depend on what it
does.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
 
Reply With Quote
 
 
 
 
venkatesh.k.desai5@gmail.com
Guest
Posts: n/a
 
      05-13-2006
Yeah. But I want it to be portable with 'far'

 
Reply With Quote
 
Vladimir Oka
Guest
Posts: n/a
 
      05-13-2006
opined:

> Yeah. But I want it to be portable with 'far'


First, please read <http://cfaj.freeshell.org/google/>, and the link in
my sig.

Second, with `far` you cannot make it portable, since `far` is not part
of Standard C.

--
We are Pentium of Borg. Division is futile. You will be approximated.
(seen in someone's .signature)

<http://clc-wiki.net/wiki/Introduction_to_comp.lang.c>

 
Reply With Quote
 
Michael Brennan
Guest
Posts: n/a
 
      05-13-2006
wrote:
> Yeah. But I want it to be portable with 'far'
>


Well, you can't. Far pointers is only for DOS, AFAIK.

And please learn to quote.

/Michael
 
Reply With Quote
 
pemo
Guest
Posts: n/a
 
      05-13-2006
wrote:
> Yeah. But I want it to be portable with 'far'


#define far

puttextxy( int x, int y, char far *const );

#undef far

--
==============
*Not a pedant*
==============


 
Reply With Quote
 
CBFalconer
Guest
Posts: n/a
 
      05-13-2006
"" wrote:
>
> Is thr any way to make puttextxy( int x, int y, char far *const );
> as portable? plz give me the code.


Don't use foolish abbreviations like 'thr', 'plz', etc. Articles
with these receive the attention they deserve.

--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
More details at: <http://cfaj.freeshell.org/google/>
Also see <http://www.safalra.com/special/googlegroupsreply/>

 
Reply With Quote
 
Malcolm
Guest
Posts: n/a
 
      05-13-2006
<> wrote
> Hi,
> Is thr any way to make puttextxy( int x, int y, char far *const );
> as portable? plz give me the code.
>

No.
There's no portable way of treating the screen as a raster of fixed-width
text characters.
The "far" is also a platform specific way of dividing up memory.
--
www.personal.leeds.ac.uk/~bgy1mm




 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
int urldecode(char *src, char *last, char *dest) gert C Programming 20 02-16-2007 11:28 PM
(const char *cp) and (char *p) are consistent type, (const char **cpp) and (char **pp) are not consistent lovecreatesbeauty C Programming 1 05-09-2006 08:01 AM
/usr/bin/ld: ../../dist/lib/libjsdombase_s.a(BlockGrouper.o)(.text+0x98): unresolvable relocation against symbol `std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostre silverburgh.meryl@gmail.com C++ 3 03-09-2006 12:14 AM
int main(int argc, char *argv[] ) vs int main(int argc, char **argv ) Hal Styli C Programming 14 01-20-2004 10:00 PM
newbie: char* int and char *int trey C Programming 7 09-10-2003 03:24 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57