Thread: GUI For DOS

  1. #1
    Registered User Sunny's Avatar
    Join Date
    Nov 2001
    Posts
    101

    Cool GUI For DOS

    Hey Guyz,
    Hows life?

    Anyways, for those of you who might be interested, Im trying to start a project here for quite some time. The goal was to write a Graphical User Interface for DOS and post it as Open Source.

    The Idea started when i was thrilled by the wonderfull KDE Enviornment i saw working under Linux. I know i can't do that sort of stuff just on my own. Maybe im not even really intending to. But i've always been looking for alternatives to Windows.

    If there's anyone out there with some spare time interested in joining in on the project talk to me plz...

    Thanks guyz.

    Stef

  2. #2
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    I'm interested. Have wanted to do the same for some time now. This should probably be a class library that will allow for others to use the windowing system in DOS. Also should probably be in protected mode - DJGPP.

    We will have to come up with a very good object hierarchy for it all to work properly. Will also require linked lists for child windows, buttons, controls, etc.

  3. #3
    Registered User Sunny's Avatar
    Join Date
    Nov 2001
    Posts
    101
    Ok. Yeah, i noticed DjGpp is pretty good. Do you think there's any way to use protected mode with the BC 3.1 compiler? I've been having problems configuring the DjGpp compiler, but ill try again. I found another interesting compiler called Pacific, which is pretty good for Assembly. It also has an ide.

    So far i've got to 8 bit video mode in non-protected mode.
    Yes...YES!!! I did it! Ha ha ha...I'm king of the world...No..No..please-wait-no...!!!!-- This program has performed an illegal operation AND WILL be shut down....Ack-Choking..help...ack..

  4. #4
    Registered User Sunny's Avatar
    Join Date
    Nov 2001
    Posts
    101

    Talking Got DJGpp

    Ok. I got DjGpp and i think it's really great. But what amazed me most of all was RHIDE. It's so awesome!!!

    However i need some help here with something before i start. I can't seem to be able to link when i compile because i get an error that says somthing like:

    Installation error: Cannot execute 'cc1plus' no such file or directory.

    or


    Installation error: Cannot execute 'as' no such file or directory.


    Need some help here, Bubba



    Thanks a lot


    Stef
    Yes...YES!!! I did it! Ha ha ha...I'm king of the world...No..No..please-wait-no...!!!!-- This program has performed an illegal operation AND WILL be shut down....Ack-Choking..help...ack..

  5. #5
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    First, no you cannot use protected mode with Borland C 3.1. All Borland's DOS compilers are real mode compilers - to my knowledge protected mode is not possible with them.

    DJGPP does return some very weird errors. You will have to show me some source or perhaps your project config in order to understand those errors. I've gotten several crytpic errors while trying to use assembly and still have not gotten it to work. DJGPP is nice, but it would be nicer if it's errors were in English and a bit more to the point.

    I'll ask DA about those errors and see what he comes up with.

  6. #6
    Registered User Sunny's Avatar
    Join Date
    Nov 2001
    Posts
    101

    GUI for DOS

    Ok. I got RHIDE and everything to work finally , except that i can't link to executables somehow. I can make, but when i try a ctrl+F9 i get that im missing djgpp.djl for linking. Could you e-mail that to me or tell me where to get it please?
    Thanks a lot.



    Stef
    Yes...YES!!! I did it! Ha ha ha...I'm king of the world...No..No..please-wait-no...!!!!-- This program has performed an illegal operation AND WILL be shut down....Ack-Choking..help...ack..

  7. #7
    Unregistered
    Guest
    There's one "Djgpp.djl" in DJGPP\Lib, here it is :

    OUTPUT_FORMAT("coff-go32")
    ENTRY(start)
    SECTIONS
    {
    .text 0x1000+SIZEOF_HEADERS : {
    *(.text)
    *(.gnu.linkonce.t*)
    *(.gnu.linkonce.r*)
    etext = . ; _etext = .;
    . = ALIGN(0x200);
    }
    .data ALIGN(0x200) : {
    djgpp_first_ctor = . ;
    *(.ctor)
    djgpp_last_ctor = . ;
    djgpp_first_dtor = . ;
    *(.dtor)
    djgpp_last_dtor = . ;
    *(.data)
    *(.gnu.linkonce.d*)
    *(.gcc_exc*)
    ___EH_FRAME_BEGIN__ = . ;
    *(.eh_fram*)
    ___EH_FRAME_END__ = . ;
    LONG(0)
    edata = . ; _edata = .;
    . = ALIGN(0x200);
    }
    .bss SIZEOF(.data) + ADDR(.data) :
    {
    _object.2 = . ;
    . += 24 ;
    *(.bss)
    *(COMMON)
    end = . ; _end = .;
    . = ALIGN(0x200);
    }
    }

    and one in DJGPP\Lib\GCC-Lib\Djgpp\2.81 :

    OUTPUT_FORMAT("coff-go32-exe")
    ENTRY(start)
    SECTIONS
    {
    .text 0x1000+SIZEOF_HEADERS : {
    *(.text)
    etext = . ; _etext = .;
    . = ALIGN(0x200);
    }
    .data ALIGN(0x200) : {
    djgpp_first_ctor = . ;
    *(.ctor)
    djgpp_last_ctor = . ;
    djgpp_first_dtor = . ;
    *(.dtor)
    djgpp_last_dtor = . ;
    *(.data)
    *(.gcc_exc)
    ___EH_FRAME_BEGIN__ = . ;
    *(.eh_fram)
    ___EH_FRAME_END__ = . ;
    LONG(0)
    edata = . ; _edata = .;
    . = ALIGN(0x200);
    }
    .bss SIZEOF(.data) + ADDR(.data) :
    {
    _object.2 = . ;
    . += 24 ;
    *(.bss)
    *(COMMON)
    end = . ; _end = .;
    . = ALIGN(0x200);
    }
    }

  8. #8
    Registered User Sunny's Avatar
    Join Date
    Nov 2001
    Posts
    101

    Unhappy GUI

    Thanks a lot for the djgpp.djl.
    It really helped a lot.
    The only thing now is that ld.exe is giving me an error telling me im missing - lstdcXXX .

    Im not sure if this happened to you the first time you tried to run suicide, bu thit is like the 101 error and i still havn't made a single executable. Im considering suicide - ok just kidding about that.



    Thanks anyways.

    Take care ppl




    Stef
    Yes...YES!!! I did it! Ha ha ha...I'm king of the world...No..No..please-wait-no...!!!!-- This program has performed an illegal operation AND WILL be shut down....Ack-Choking..help...ack..

  9. #9
    Unregistered
    Guest
    The file libstdcxx.a is in DJGPP\Lib.
    Maybe are you missing a package.
    Or maybe your autoexec.bat has not :
    set DJGPP=C:\DJGPP\DJGPP.ENV
    set PATH=C:\DJGPP\BIN;%PATH%

  10. #10
    Registered User Sunny's Avatar
    Join Date
    Nov 2001
    Posts
    101

    GUI

    Ok. I found the file. The only thing is that it's longer than eight characters. So when i try to run RHIDE and all from DOS i only get this file name: libstd~1.a
    Isn't Windows great ?
    Ok, just kidding about that. I need to know what's the dos name of the file or i think ill never be able to compile anything in my life with DjGpp..
    The paths have been set in autoexecbat long ago.
    I have ALL the basic packages i need.

    Thanks a lot anyways.

    Take care people,


    Stef
    Yes...YES!!! I did it! Ha ha ha...I'm king of the world...No..No..please-wait-no...!!!!-- This program has performed an illegal operation AND WILL be shut down....Ack-Choking..help...ack..

  11. #11
    Registered User
    Join Date
    Jan 2002
    Posts
    49
    In Rhide :
    menu Options Libraries

    have you set Use standart libraries ?

  12. #12
    Registered User Sunny's Avatar
    Join Date
    Nov 2001
    Posts
    101
    Yes, i did. I fixed the problem with the lstd. The packages have a problem with 7.5 dos long file names when they are decompressed. I tricked the compiler with that by renaming them. just that now, every time i try to ake an executable i get that ( and this is true ) im missing stubify.exe . Any suggestions anyone?

    Thanks a lot

    Take care People,

    Stef
    Yes...YES!!! I did it! Ha ha ha...I'm king of the world...No..No..please-wait-no...!!!!-- This program has performed an illegal operation AND WILL be shut down....Ack-Choking..help...ack..

  13. #13
    Registered User
    Join Date
    Jan 2002
    Posts
    49
    Stubify.exe is in the main package djdev203.zip.
    I thing you did install it .....

  14. #14
    Registered User
    Join Date
    Jan 2002
    Posts
    4

    Smile WIN GUI for DOS

    Hi,
    Would love to help out, im also using DJGPP, go to the web site for the latest download, use the file picker to help.
    Installation shouldnt be that hard.....unzip all files to a single directory and run make from dos (i think thats right), and it should work.
    Im using Allegro, its a graphics library for DJGPP so download that too, its amazing!.
    anyway ive started making a GUI, visual replica of Win95, im first making a simple GUI, like win95 but without the plug n play....ect
    then was thinking bout making a VisualC for DOS , all the ease of visual Basic with the power of C\C++. Sounds good ha
    Anyways, i sent Stef an email bout all this so get back to me plz.
    Thx,
    PURE_POWER.

  15. #15
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    If you want a good GUI and speed we will probably have to use asm mixed with DJGPP. I do not have an assembler that produces the correct object files for GAS, other than GAS.

    Don't want to use GAS because I would much rather write in Intel syntax and use a converter to move to AT&T.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. GUI Programming...
    By ShadeS_07 in forum C++ Programming
    Replies: 12
    Last Post: 12-28-2008, 04:58 PM
  2. Convert Windows GUI to Linux GUI
    By BobS0327 in forum Linux Programming
    Replies: 21
    Last Post: 11-27-2005, 04:39 AM
  3. .NET And GUI Programming :: C++
    By kuphryn in forum C++ Programming
    Replies: 4
    Last Post: 01-27-2002, 04:22 PM
  4. GUI Programming :: C++ Exclusive
    By kuphryn in forum C++ Programming
    Replies: 5
    Last Post: 01-25-2002, 03:22 PM
  5. C++: Reference Book, GUI, Networking & Beyond
    By kuphryn in forum C++ Programming
    Replies: 4
    Last Post: 11-10-2001, 08:03 PM