Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

getting wingraph to work with xp

front1sdogfront1sdog Member Posts: 32

Helo
I got a copy of wingraph from below. The included wincrt solved
the original problem of num keyboard in graph mode,but I can't get
a program to find wingraph itself. I have demos for wingraph that
work fine,and I can declare winmouse in a uses statment without
any trouble. When I try to use wingraph I get an error statement
that says ppu invalid version (100).
I don't think I have a pathing snarl but I could be wrong.
I'm suprised an established source could still have this glitch.
It makes me think it's at my end. Should I try another down load?
Any advice welcome.
Front1's

http://math.ubbcluj.ro/~sberinde/wingraph/wingraph.zip
It comes with demo programs, full source and documentation as well.



Either copy the contents of the "bin" folder where your units are located or compile the sources yourself.


No joy. but I'm likly doing something wrong. I can't find a source to compile. I've copied units in several different ways without sucess. when I try to compile with wingraph I get a fail and the notice "loading c:FPc2.4.unitsi386-win32wingraph.ppu " and "ppu invalid version ". I have demos using wingraph that look fine and are in the same path as my IDE.
I can compile using winmouse without trouble.
«1

Comments

  • _Atex__Atex_ Member Posts: 163
    Find wingraph.pas in the [b]src[/b] folder then recompile. The unit you got ( the binary ) was compiled by an older version of Free Pascal that's why is not running on the new one.
  • front1sdogfront1sdog Member Posts: 32
    Attempted to compile wingraph.pas. Seems to be glitchy. Examp:
    procedure detectgraph(out driver,mode : smallint);
    produces fatal error : " : expected but identifier driver found."
    I'm going to go through my books and try and find fixes. Suggestions are always welcome.
    Front1's
  • _Atex__Atex_ Member Posts: 163
    : Attempted to compile wingraph.pas. Seems to be glitchy. Examp:
    : procedure detectgraph(out driver,mode : smallint);
    : produces fatal error : " : expected but identifier driver
    : found."
    : I'm going to go through my books and try and find fixes.
    : Suggestions are always welcome.
    : Front1's
    :

    Put this as first line: [b]{$mode delphi}[/b]
  • front1sdogfront1sdog Member Posts: 32
    Hi some more.
    No. I put the statement you gave me " {$mode delphi} " into wingraph.pas and still got the same error. I've deceided that fixing every glitch is beyond me. It's either going to have to be some overreaching modification such as your suggestion,or drop back and try something different. I really want that graphics.
    Also, I've noticed that clrscr works with crt but not wincrt.
    meaningfull?
    Front1's
    Looking around some more. Noticed wingraph.pas says near the top that it needs to be compiled with windows 32. (the older version) Can this be emulated? Down load something?
    Front1's
  • _Atex__Atex_ Member Posts: 163
    : Hi some more.
    : No. I put the statement you gave me " {$mode delphi} " into
    : wingraph.pas and still got the same error. I've deceided that fixing
    : every glitch is beyond me. It's either going to have to be some
    : overreaching modification such as your suggestion,or drop back and
    : try something different. I really want that graphics.
    : Also, I've noticed that clrscr works with crt but not wincrt.
    : meaningfull?
    : Front1's
    : Looking around some more. Noticed wingraph.pas says near the top
    : that it needs to be compiled with windows 32. (the older version)
    : Can this be emulated? Down load something?
    : Front1's

    I got FP 2.2.2 and 2.4.0, both running under win XP, both are compiling those sources without any problem. The first line in every pas file is the : {$mode delphi} So, I really don't know what goes wrong :-( ...
  • front1sdogfront1sdog Member Posts: 32
    Wellokaythen
    I looked at stuff and discovered that {$ mode delphi} was just
    under the uses statement. I moved it to the first thing and
    wingraph.pas compiled. Now a graphics program dosen't run but jams
    up and I have to keyboard abort to get out. Is this progress?
    Sorry I'm such a mench with all this. I used to just sit and
    write code. I really do like it here in the future and I'd like to stay.
    You say you ave no trouble with windows 32-64 and freepascal 2.4.
    is 2.4 the same/sufficientl simular to my 2.4.2? if not can I find that version? Free pascal seems to not support it anymore.
    Front one's
  • Elroy015Elroy015 Member Posts: 18

    Hello
    No, changing readln to readkey dosn't get me out of the running
    loop. I have a lot of old p'grms that use "if keypressed then ch :=
    readkey" and such in animation loops and never had trouble. I have
    a freebyte free download of Pascal. Might it be lame?

    Thanks
    _______________________
    articles network
  • _Atex__Atex_ Member Posts: 163
    :
    : Hello
    : No, changing readln to readkey dosn't get me out of the running
    : loop. I have a lot of old p'grms that use "if keypressed then ch :=
    : readkey" and such in animation loops and never had trouble. I have
    : a freebyte free download of Pascal. Might it be lame?
    :

    The wingraph demos use keypressed ---> readkey to exit loops. They all work for me just fine...
  • front1sdogfront1sdog Member Posts: 32
    Hi _ATEX_
    It took me a while and some hints from other sources,but I
    believe I have the wingraph suite all conected and running. I have
    yet to write a program using something discrete from wingraph,(like RGB),but I can compile with a uses wingraph and the graphics I have run. I surmise they are using wingraph.
    I've turned a relative on to programing in pascal and emailed
    this person a step by step procedure to download free pascal,the wingraph units,modifiey them as per your instructions,and put them where they need to go. This person has never writen a line of code
    in their life and wants books. Is pascal seven the most appropriate?
    Thanks for your patient and all the help. Bothering other people with my ignorance is easy. There's so much to go around.
    I have a new thread.
    Front one's
  • _Atex__Atex_ Member Posts: 163
    : I've turned a relative on to programing in pascal and emailed
    : this person a step by step procedure to download free pascal,the
    : wingraph units,modifiey them as per your instructions,and put them
    : where they need to go. This person has never writen a line of code
    : in their life and wants books. Is pascal seven the most appropriate?

    As for printed books go, TP7 is the way to start but is very outdated at this point. FP has tons of resources but everything is online and has to be researched, but IMO is the way to go.
«1
Sign In or Register to comment.