Results 1 to 5 of 5

Thread: Problem running Nehe

  1. #1

    Problem running Nehe

    Hello,

    (1)I tried to run Nehe's tutorials, but most of them require GLaux. Where do I get that? (I found glaux.aw and .ppw, but not .pas in JEDI-SDL).

    And (2), many times I got the error "illegal type conversion: Shortstring to ^Char", how do i solve that?
    Something to do with pChar...how do i convert that?
    (the problem was in this line
    Code:
    glCallLists(length(text),GL_UNSIGNED_BYTE,pchar(text));
    with Text:string)

    Cheers

  2. #2

    Problem running Nehe

    You using Free Pascal? Add the command-line switch -Mdelphi when you compile your program. i.e. fpc -Mdelphi blah.pp
    [size=10px]"In science one tries to tell people, in such a way as to be understood by everyone, something that no one ever knew before. But in poetry, it's the exact opposite." -- Paul Dirac[/size]

  3. #3

    Problem running Nehe

    I believe glaux is old and should not be used anymore.
    In any case, I still had the zip on my drive somewhere. You can download it from here

  4. #4

    Problem running Nehe

    @Cragwolf: sorry, it's true I didn't specify; I use Dev-Pascal and/or Lazarus, whichever works best for each of my projects lol!
    I know many of you will say Dev-Pascal is outdated, bt I replaced most of it's 'contents' with those that came with Lazarus, so now it's updated

    @Traveler: Cool thanks, that should solve it!
    However, you say it's old and I shouldn't use it, so what's the best way around it?
    Do you know Nehe's tutorials? They're great for explanation, but many of them use that unit...

  5. #5

    Problem running Nehe

    Well, the dll alone is over 1mb in size, while the actual functions used is minimal. For instance, many of the lessons use it to load textures, while that can also be done by using the units found on www.sulaco.co.za/.

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
  •