Thread: using borland headers in dev?!

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    479

    using borland headers in dev?!

    can u take a borland header file and include it in dev. it's gotta be
    possible. if u can could any of u guys atach one for me
    i need
    <constrea.h>

    thanks!

  2. #2

  3. #3
    Registered User
    Join Date
    Dec 2001
    Posts
    479
    copyright huh...

    i'll trie a coded language

    /(%&please%&send%&/me%&/%&/anyway
    %&email??!!%&/&/maybe/&)or&/&/%&here&/%
    icq!!&/&%/i%&/%&/have%&%&

  4. #4
    Registered User toaster's Avatar
    Join Date
    Apr 2002
    Posts
    161
    I thought Borland was free.
    Last edited by toaster; 04-20-2002 at 05:13 PM.
    think only with code.
    write only with source.

  5. #5
    Snior Member
    Join Date
    Jan 2002
    Posts
    982
    >copyright huh...

    Which part of

    And chances are that if you don't have the library already, it wont work with your compiler
    doesn't compute? Nobody can provide what you're asking unless they re-write the library for you. Which function(s) do you need to emulate?

  6. #6
    Registered User
    Join Date
    Dec 2001
    Posts
    479
    it may work

    its still the same laguage

    i need gotoxy()
    and some more

    and i dont want to use that

    HANDLECURSOR...stuff

  7. #7
    Snior Member
    Join Date
    Jan 2002
    Posts
    982
    >its still the same laguage

    What language is that then?

    and i dont want to use that

    HANDLECURSOR...stuff
    If by that you mean the win32 API, then you need you need a compiler that supports gotoxy. However as any modern win32 compiler that contains this will have to call the win32 functions anyway I don't see why you're objecting to it. Just wrap the win32 calls in your own gotoxy function.

  8. #8
    Registered User
    Join Date
    Dec 2001
    Posts
    479
    ok then what header should i include to get the gotoxy

    i'm using dev


    what language??? uhh c-- maybe!

  9. #9
    Registered User toaster's Avatar
    Join Date
    Apr 2002
    Posts
    161
    you can find a sample on this site.
    go to the FAQs section.

    as for using the coordinates in windows, there is a slight disadvantage since there is too much machine coding involved just to do a simple task whereas you can create one using ASM/MASM that does it with efficiency and speed if you know how to do it optimized.
    think only with code.
    write only with source.

  10. #10
    Snior Member
    Join Date
    Jan 2002
    Posts
    982
    >ok then what header should i include to get the gotoxy

    Dev C++ may have a specific header/library that wraps it, but -

    Code:
    #include <windows.h>
    void gotoxy(int x, int y)
    {
       COORD coord;
       coord.X = x;
       coord.Y = y;
       SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), coord);
    }
    from the FAQ works.

    >what language??? uhh c-- maybe!

    Try opening an object/lib file in your favourite source file editor.

    here is a slight disadvantage since there is too much machine coding involved just to do a simple task whereas you can create one using ASM/MASM that does it with efficiency and speed if you know how to do it optimized.
    If you're writing for console programs in a win32 enviroment, I'd like to see this asm.

  11. #11
    Registered User
    Join Date
    Dec 2001
    Posts
    479
    i've done that many times and all i can see is c++

  12. #12
    Snior Member
    Join Date
    Jan 2002
    Posts
    982
    >i've done that many times and all i can see is c++

    OK, since you can only see C++ you shouldn't have any trouble with -

    Code:
    L       '     .text                t      #      `.data              l              @  .bss                                  UE   } u
    E    !t& }u
    Ed   }uE   EPj    P    ÉUÍv U8fE  fE  EPj    P    EPEPEUPj j    P    jj   %s
     UEPh       1%c
     U    EEPh      U Ív U(EPj    P    EUEUPEUPEUPEUPE@EUPEUPy  UB	..  UB
    ÉUEHfEEHfEEPj    P    ÐUÍv U=        	P   =      	Po   
     UhB      %c UEPh\      U ÐUEPj    P    U}   uE   E   E    RÉU}   uE   E    E   PlÍv U(EPj    P    Uv ÉU(EPj    P    U ÉUEfEEfEEfEEfEEPjj    P    EPEP       J       U                                !              &      %           %  &    K      V               "                %      0      N      S  &    n      s  &            #                            3      >       g      r               $    .file         gconio.c                                             %                            _clreol `       _clrscr h       _cputs         _getche           5   8          B             Q          _inslineD      _putch  `          \         _window           f             v         _wherey T      _wherex        _gotoxy       .text            #             .data                           .bss                                                                              ..                                                                              :           _getchar         _printf          S  gcc2_compiled. ___gnu_compiled_c __setcursortype _gettextinfo _gppconio_init _highvideo _textattr _textbackground _textcolor ___FOREGROUND ___BACKGROUND _GetStdHandle@4 _SetConsoleCursorInfo@8 _GetConsoleScreenBufferInfo@8 _FillConsoleOutputCharacterA@20 _SetConsoleCursorPosition@8 _SetConsoleTextAttribute@8 _SetConsoleWindowInfo@12

  13. #13
    Registered User
    Join Date
    Dec 2001
    Posts
    479
    man your dumb!

    what have u done?

  14. #14
    Snior Member
    Join Date
    Jan 2002
    Posts
    982
    >man your dumb!

    Yep.

    >what have u done?

    You're dumber.

  15. #15
    Registered User
    Join Date
    Dec 2001
    Posts
    479
    idiot u can put them in your libs or includes it maybe it will work
    and maybe not
    but it isn't different languages i tell u!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. New to Dev C++/<windows.h>...
    By Cilius in forum C++ Programming
    Replies: 3
    Last Post: 02-23-2005, 01:05 AM
  2. Glut and Dev C++, Programs not Quitting?
    By Zeusbwr in forum Game Programming
    Replies: 13
    Last Post: 11-29-2004, 08:43 PM
  3. openGL programming - From MSVC++ to Dev C++
    By WDT in forum Game Programming
    Replies: 3
    Last Post: 03-08-2004, 08:47 PM
  4. openGL programming - From MSVC++ to Dev C++
    By WDT in forum Game Programming
    Replies: 1
    Last Post: 03-08-2004, 05:19 PM
  5. DEV C++ Limitations?
    By Kirdra in forum Game Programming
    Replies: 3
    Last Post: 09-09-2002, 09:40 PM