Challenge to write a program

This is a discussion on Challenge to write a program within the A Brief History of Cprogramming.com forums, part of the Community Boards category; ok... ive uploaded the decompressed Zip file to my server and also the ziped up file again... you can find ...

  1. #16
    Registered User
    Join Date
    May 2003
    Posts
    21
    ok... ive uploaded the decompressed Zip file to my server and also the ziped up file again...

    you can find them here....

    Compliers

    note: if downloading the unzipped files, put them all into one file and then run the intall file, not the short cut one tho.

    there are 41 files intotall to download in the unzipped file

    oh, give it at least 30 mins from the time of this post before downloading them as i am uploading them as i post this! thanks!
    Last edited by Twisted.alice; 05-14-2003 at 03:00 PM.
    * Curiouser & Curiouser *

  2. #17
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    This sounds a bit advanced for you. You could check out the Win32 API, but chances are very poor that you will understand it.

    we have done some graphics stuff in C in Uni, drawing a button.. which i did from an example .cpp.. but i dont know quite how it worked.

    A good place to start would be figuring out how it worked. You can't master the advanced topics until you understand the basics.
    Away.

  3. #18
    Registered User
    Join Date
    May 2003
    Posts
    21
    will no one give me the benifit of the doubt?!

    is there no one out there that is gona just tell me what i want to know without tellin me its too advanced?!

    all i would like is some example codes to play about with, and no one will give me any.

    do u not think that i have looked up how to do them myself?! this is my last resort, i hate askin for help and its even more annoying when no one seems to wana help you

    blackrat
    the version of c++ i am using is not windows, it is a DOS complier, borlabd turbo c 3.1, so a would a win32 api help me?

    the attached pic is a very basic image of what i would like. inmy final program there will be 4, so to use one you would need to press number 1-2 inc and then maybe arrow keys to select the information you want then the set the varible press a funtion key f1-f4 inc.

    please someone help me out
    Attached Images Attached Images  
    * Curiouser & Curiouser *

  4. #19
    Cheesy Poofs! PJYelton's Avatar
    Join Date
    Sep 2002
    Location
    Boulder
    Posts
    1,728
    Nobody's withholding information from you. Since very few people program in dos anymore, I doubt that there is a whole lot of people here if any who could tell you how to create a dos button without doing a lot of research themselves. So considering this problem is quite likely compiler specific (a compiler probably nobody uses here) and involves advance dos programming (again something most people don't do here and if they have probably not lately) then I doubt you'll find anyone here who can help. Sorry!

    The only advice I can give at the moment is to post your question in the DOS forum or find another place that is DOS specific and be patient and hope somebody who can help sees your question.

  5. #20
    Registered User
    Join Date
    May 2003
    Posts
    21
    so where would i find a dos forum then?

    not my fault that my uni happens to teach us in dos is it?

    the tutor is like, oh u know how to write a button so u should be able to do this easy, but wont show us an example script or anything, ive been looking for help for about 2 weeks now
    * Curiouser & Curiouser *

  6. #21
    i want wookie cookies the Wookie's Avatar
    Join Date
    Oct 2002
    Posts
    455
    why don't you try asking him? or maybe he didnt mean a button, but something thats like a button?
    im sure hed be more than happy to assist you..most teachers are willing to answer questions

  7. #22
    Registered User
    Join Date
    May 2003
    Posts
    21
    ive alreadt said that the tutor wont help hes not good at teaching anyway. he just gives us handouts and expects us to understan them
    * Curiouser & Curiouser *

  8. #23
    Cheesy Poofs! PJYelton's Avatar
    Join Date
    Sep 2002
    Location
    Boulder
    Posts
    1,728
    Theres a dos forum here and you can search google for others.

    Do you have a handout about buttons? Somewhere along the line buttons were taught in your class, they wouldn't expect you to know them otherwise. What about fellow classmates?

  9. #24
    Registered User
    Join Date
    May 2003
    Posts
    21
    no, we were not 'taught' them.

    our tutors hand outs are just that.

    he expects us to learn from them. i dont know how when we dont understand it in the first place

    u think id be asking for help on here if other ppl in the class knew how to do it? none of us know

    do u have a link for any good dos forums at all?
    * Curiouser & Curiouser *

  10. #25
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Moved to the DOS forum...
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  11. #26
    Been here, done that.
    Join Date
    May 2003
    Posts
    1,157
    I just found this thread, I hope you're still around. You can easily draw buttons and things in DOS, use the graphics functions to draw lines, rectangles, cprintf to print to the screen, etc. I wrote a package in DOS that does create buttons (command, radio, etc) int Turob C/C++ ver 1.0 so ver 3 certainly can handle it.

    BGI is the Borland Graphics Interface, a file with the extension .BGI that's used for the output to a certain type of display. The file was not downloaded with the EXE file -- ZIP the .BGI file and add a link to it like you did before.

    To program buttons and things, look into the graphic commands:

    // for getting into/outof graphics mode
    registerbgidriver();
    initgraph();
    restorecrtmode();

    // for drawing
    setfillstyle();
    fillpoly();
    fillellipse();
    line ();

    // for labeling
    setcolor();
    settextstyle();
    settextjustify();
    outtextxy();

    // for mouse control
    HideMouseCursor();
    ShowMouseCursor();

    Hope this helps
    Walt

  12. #27
    Been here, done that.
    Join Date
    May 2003
    Posts
    1,157
    By the way, here's a DOS version of MineSweeper I programmed
    http://wpattinson.com/bombsrch.zip

    Enjoy

  13. #28
    Registered User
    Join Date
    May 2003
    Posts
    21
    The BGI file in in the zip file, trust me its all there.

    and, yeah it slightly helped with those commands - ie the comments... but i seen them used in some of the hand outs that are given to us.

    that little program is quite good.

    do u have the same complier that i use? 3.1? if so please take a look at the exe file and let me know if its possible to make the drop down box.

    if someone would be able to just give me some example code it would be helpful.. dont worry if u think im not 'advance' enough to understand, i'll soon let you know if i dont understand it!
    * Curiouser & Curiouser *

  14. #29
    Normal vector Carlos's Avatar
    Join Date
    Sep 2001
    Location
    Budapest
    Posts
    463
    Sorry Twisted.alice, I didn't mean to offend you, but this is the totally wrong way to start programming, however, the best way to get dissapointed and/or frustrated...

    You are newbie for C, and:
    - want to reverse-engineer a given executable?
    - try to create advanced graphics in DOS?

    Hope this is *not* the way programming is taught in the UK

    WaltP has given you some snippets where you'd start. Need more?

    Why don't you try a quick search on google for e.g.
    "Source code AND graphics AND DOS"?

    I've got some projects with source included, but most of them are written in Assembly (even more advanced). Feel free to take a look at them.

  15. #30
    Registered User
    Join Date
    May 2003
    Posts
    21
    i am gettin very very offended actually

    no they did not help all that much. and who said i am starting programming? i have been doing it since september... its not my fault that our teacher is a piece of mickey mouse brad pitt is it?!

    i dont not see that what i am asking for is such a big deal

    obviously no one is able to help me then? someone out there muat know what i want, what do i have to do to get what i need?!

    did u miss the fact that ive already searched on google etc for help?!!?!

    someone please come up with an answer to my problem.. i would have thought u would be proud to help me as it would give u all the chance to show off your programming skills..... which none of you seem to want to show tho.....

    shall i take my question else where then as no one wants to help??

    if the boot was on the other foot and i was in the position to help out any of you people on this forum i would be pleased to offer my assistance, obvouisly some people dont feel the same

    mike

    p.s. already done assembly code... did that in the first simester
    Last edited by Twisted.alice; 05-15-2003 at 09:56 AM.
    * Curiouser & Curiouser *

Page 2 of 3 FirstFirst 123 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 6
    Last Post: 01-01-2007, 06:36 AM
  2. BOOKKEEPING PROGRAM, need help!
    By yabud in forum C Programming
    Replies: 3
    Last Post: 11-16-2006, 10:17 PM
  3. Hints to write a program
    By Bnchs400 in forum C++ Programming
    Replies: 28
    Last Post: 04-05-2006, 05:35 AM
  4. Can I write & read file in same program?
    By chad03 in forum C Programming
    Replies: 2
    Last Post: 08-04-2003, 08:39 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21