getting wingraph to work with xp


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.

Comments

  • 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.
  • 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
  • : 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]
  • 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
  • : 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 :-( ...
  • 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

  • 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
  • :
    : 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...
  • 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
  • : 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.
  • _ATEX_
    I stared a " IMO " for so long that I started to get the most inappropriate possible meanings which I won't share with you. I'm sure it's something so obvious I'll kick myself when I find out what it means. I'm afraid your going to have to tell me.
    'nuther guess just floated in as I write this: "instruction manual online" ?
    The person I'm getting into pascal is a freelance hardware person. built my laptop. introduced me to internet. I really want to be nice to them. I need all the smart acquaintences I can find.
    Get back to me as you can with a brief note. No hurry I guess.
    Font one's
  • : _ATEX_
    : I stared a " IMO " for so long that I started to get the most
    : inappropriate possible meanings which I won't share with you. I'm
    : sure it's something so obvious I'll kick myself when I find out what
    : it means. I'm afraid your going to have to tell me.
    : 'nuther guess just floated in as I write this: "instruction
    : manual online" ?
    : The person I'm getting into pascal is a freelance hardware
    : person. built my laptop. introduced me to internet. I really want to
    : be nice to them. I need all the smart acquaintences I can find.
    : Get back to me as you can with a brief note. No hurry I guess.
    : Font one's
    :


    IMO = In my opinion

  • Hello,
    do not let the fcpo dramatic correction dampen your spirit. There's no better "live" classes than in a volatile mkt to learn new lessons. The recent downturn is a syllabes made in heaven albeit with some help from hedgers.

    Thanks
    ___________________
    article network
  • Hello Elron
    Are you a machine?
    you make unfounded personal assumptions.
    My spirits don't dampen. At all. Ever.
    I write code to keep my brain from shrinking.
    Almost everyone knows more than I do. If not,then they at least know it differently.
    A thought: I can't find a spelling checker associated with these posts. If there is one some place,or if someone could write one,people would be able to practice their english in a more effective manner. This would help improve our little pascal community and the world in general.
    I assume there are Pascal forums in urdu and hindi and such.
    Maybe you could write a spelling checker for Nav'i.
    Are you green?
    Are you bright?
    Are you big?
    Stay happy.
    Front one's dog (@!)
  • Hello front1sdog!
    WinGraph unit works perfectly at me, but you need to compile "wingraph.pas", "wincrt.pas" and "winmouse.pas".
    So, to compile these files, you need to go at C:\FPC\units\i386-win32\ and create a "wingraph" folder. You have to extract the wingraph.zip file there.
    And, copy all files from the "src" folder in "wingraph" folder. You also need to copy "wincrt/wingraph/winmouse/.dcu/.o/.ppu" files.
    In Free Pascal go to C:\FPC\units\i386-win32\wingraph\wincrt.pas. Type in the first line {$MODE DELPHI} and compile it. If you click "Run" it says "Can't run an unit" so ignore it. Do the same at "wingraph.pas" and "winmouse.pas"
    I use Free Pascal 3.0.0 and this works for me. I had the same problem like you.
    Thanks!

Sign In or Register to comment.

Howdy, Stranger!

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

Categories