Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: school project problems

  1. #1

    school project problems

    i have to make a program that shows graphs. i made one already, but is a console application.

    i will like to mention that i only know Pascal, Delphi is a big blank space for me so pls don't treat me with Lazarus.

    Pls point me to a IDE that will be okay for use in windows style applications and perhaps some tutorials for opengl. until at this point i haven't succeded in generating a window using opengl due to compiler issues.


    somebody pls help me
    one man is smart, humankind is dumb

  2. #2

    school project problems

    Well, if Delphi would be a leap, then your only choice for a GUI IDE for windows is Lazarus.

    As far as a graph, what type, kind, size, etc... You have given us little to go off of.

    What are the other stipulations presented by the assignment?

  3. #3

    school project problems

    the assignment specifies that i use Pascal. other than that i can do it any way i want....


    i need some way to input data (haven't figured this part yet)
    and some way to draw on the screen


    edit: i am preety good at console programming and i figured out the part about the graphs... i am having problems at the windows programming part
    one man is smart, humankind is dumb

  4. #4

    school project problems

    proga.dpr

    Code:
    program proga;
    
    uses
      SysUtils, Dialogs;
    
    var
      x : Integer;
      y : Single;
    begin
      DecimalSeparator := '.';
      x := StrToIntDef( InputBox('Bugaga!', 'X :', ''), 0);
      y := StrToFloatDef( InputBox('Muhaha!', 'Y :', ''), 0);
      ShowMessage('Summ = ' + FloatToStr(x + y));
    end.

  5. #5

    school project problems

    i can't seem to find the dialogs unit :?
    one man is smart, humankind is dumb

  6. #6

    school project problems

    I'll try this again, you will either have to use FPC (and figure it out), Lazarus (witch lets you design your windows gui in a semi-wysiwyg), or Delphi (slightly more stable then Lazarus).

    If your using an older copy of Pascal from Turbo or Borland then you won't be able to do Win32 applications that include visual forms.

    Using FPC, Lazarus, or Delphi do a google. Their are litterly 1000's of tutorials on how to build "Hello World!" and more in them.

    The code that was posted was for Delphi, and won't work in older version of Turbo/Borland Pascal, nor will it work in FPC. It should work in Lazarus (without too much tweaking).

  7. #7

    school project problems

    i am currently using Dev-Pascal in combination with FPC :?

    hmm... i can now draw lines and output text... i'm diggin on the MSDN to find useful link.. though they are written for C++ i am converting them to Pascal :twisted:
    one man is smart, humankind is dumb

  8. #8

    school project problems

    Hi Superboy,

    you said you know Pascal, so it should be absolutely no problem to do your school project in Delphi. There are free versions of Delphi available (personal editions) which you could use. Take an hour or two to become a little familiar with the IDE.

    After that you can easily build your program using Pascal! Nobody forces you to use object oriented programming or something.
    Delphi is a good decision if you are already familiar with Pascal...

    And your school work is really no problem with the features Delphi provides.

    And in addition to that, if you have one of the above mentioned IDEs, we can help you here ^^

    Ok, I only know Delphi, but there are many people here knowing the other IDEs, too.

    Greetings,
    Dirk
    <a href="http://www.greatgamesexperiment.com/game/Valgard/?utm_source=gge&amp;utm_medium=badge_game"><img border="0" alt="GGE" title="GGE" src="http://static.greatgamesexperiment.com/badge/game/valgard/gge400x56.png"></a>

  9. #9
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    school project problems

    It's important to know the distinction between the language that Delphi uses and Delphi it's self. Lest you get confused. [size=9px](Well Borland, the company that made Delphi did a good job of that already.)[/size]

    Borland created Delphi to be Pascal for Windows, using a newly created 'Object Pascal' language. 'Object Pascal' was the name of the version of the Pascal language that Apple Computer made for their software development teams on the Macintosh hardware/OS. Borland then decided to instead call the IDE Delphi and at a later date call the language(at about Delphi 4 and up) Delphi aswell, disguising the new version of the Pascal language with a new name. I guess they thought they would trick or fool people into wanting to learn Pascal again against the wishes of all those C fanatics out there. :roll:

    So when some people refer to 'Delphi' they sometimes mean the IDE product and sometimes the Object Pascal language that Delphi uses.

    Object Pascal is a new version of the Pascal language. Object Pascal when you look at it, is just Pascal, but redesigned to be a Object Oriented Programming language. There are only a select few compilers that support it. FPC, GNU Pascal(though I don't consider it to be a Pascal compiler at all) and Delphi. Lazarus is FPC with a IDE built on top of it. This is the same with Dev-Pascal [size=9px](an IDE built on top of FPC)[/size], only Dev-Pascal is a discontinued product. [size=9px](Created with Delphi btw.)[/size] Object Pascal is still compatable with most of the original Pascal code. Except for a few of the functions that were changed for the better anyways.

    If you want to make Windows Applications, it is best to use either Delphi or Lazarus.

    If you want to make a console program then you can still use Delphi or Lazarus, but also Dev-Pascal, GNU Pascal, raw FPC distribution or some other 3rd party non-language support specific IDE may also be of use with FPC or GNU Pascal.


    How to write console programs using:

    Delphi (MyProgramName.dpr)[pascal]program MyProgramName;

    {$APPTYPE CONSOLE}

    uses
    {...};
    const
    {...};
    type
    {...};
    var
    {...};
    begin
    end.[/pascal]

    Lazarus (MyProgramName.lpr)[pascal]program MyProgramName;

    {$APPTYPE GUI}

    uses
    {...};
    const
    {...};
    type
    {...};
    var
    {...};
    begin
    end.[/pascal]

    If you are working with console programs then all you have to do is work with the Code Editor and disreguard all the rest of the VCL/LCL stuff. he features of bot of the IDEs make it worth it though!


    As per your assignment. I don't know enough from what you've described to be able to direct you to anything specific so I'll assume that you want to learn how to draw and display graphics on screen. In this case, look into either DirectX, SDL or OpenGL. There are a ton of libraries that support these 3 main ways to display graphics in both a windowed app and a console program.

    If you are using Lazarus or Delphi you can have the other option to then use the GDI for the visual component system(Lazarus' LCL or Delphi's VCL) drawing directly to it. This is however much slower and not recommended for real-time application or required highspeed or 3D graphics.


    Hope I've helped. Welcome to PGD!
    Jason McMillen
    Pascal Game Development
    Co-Founder





  10. #10

    school project problems

    i am using WinApi at the moment and i am preety happy with the results. And i still use Dev-Pascal and FPC.


    but i have difficulties at the use of DialogBox. Can someone explain how do i create one windows of this type to input a string pls? i can fill in the rest.



    ps: i promise to upload it somewhere so we can see what i did when i will finish


    pps: thank you for the warm welcome



    edit:
    i call: DialogBox(GetModuleHandle(NULL),MAKEINTRESOURCE(1) , hwnd, DialogProc);

    i get: 86 / 98 atestat.pas
    Error: Wrong amount of parameters specified
    one man is smart, humankind is dumb

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •