TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Andrew Seeger
from: Paul Wankadia
date: 1996-10-10 20:23:00
subject: A few questions

On 04 Oct 96, Andrew Seeger wrote to Paul Wankadia --



PW> Hi, I think I mailed you before about the ANSI graphics within your

PW> program. This time, it's about that clock thingy :)

 AS> Thats cool, i think i have worked out how to work the ansi, when i get

 AS> some more time on my hands i willbe able to try it out.



Yeah -- what did you decide eventually?



BTW this is to everyone -- has anyone ever had success with BGI???  I can't

seem to get it to work and I've tried many times!!!



PW> Just save in C format (refer to previous message) and you will have

PW> them hard-coded within the program!

 AS> No wazzas!



EH?



PW> You don't REALLY need it...



[I presume I was talking about Vidmgr or something]



 AS> I sortof thought that, although it appears to have some good routines,



Yeah.  A good programmer writes good code.  A great programmer borrows

someone else's good code :)



 AS> although i am at a loss at times as to how to use them :-) There are

 AS> no docs that come with it, for beginners like me, this makes life a

 AS> little more interesting.



I hope we aren't talking about Vidmgr, in that case! :)  What sort of things

have you gotten it to do so far?



 AS> AS>>> 2... A clock routine, to display the clock and continually

PW> Find a spot in your program where it is waiting for user-input or the

PW> like and while it is idling, make a call to the clock routine (or

PW> WHATEVER you want done!) ...  This is a snippet of my code in a

 AS> Yep, figured that out, its mainly for use when the program is doing

 AS> nothing in particular and for a keypress etc...



Right!



PW> all in there...  I've used a function pointer, so I can put

PW> Get_Input() in a LIB and just call it from any of my programs...

 AS> Ah you had me wondering why you used a function pointer! Tis clearer now



It took quite a bit of fiddling around to get it to work (I had to figure out

the declaration from scratch :)



PW> Just call Get_Input() with like this : Get_Input(Input, 81, My_Idler);

PW> your function (N.B. "My_Idler", not "My_Idler()" !!!).

 AS> Noted...



Otherwise, I'm guessing it would call Get_Input() with whatever My_Idler()

returns, which is void, which is not a void *, which is WRONG! :)



Chow.



Junyer Hakker.



--- PPoint 2.00

* Origin: Junyer's Workshop (3:640/772.3)
SEEN-BY: 50/99 620/243 623/630 640/201 206 216 217 222 230 238 254 297 305
SEEN-BY: 640/309 370 375 386 531 535 547 739 750 772 773 820 821 822 823 890
SEEN-BY: 640/895 690/660 711/409 410 413 430 808 809 932 934 712/515 713/888
SEEN-BY: 714/906 800/1
@PATH: 640/772 531 201 820 711/409 808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.