Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. nikes111

    Search and read multiple lines from a file

    Thanks ArkM, that was exactly what I needed.
  2. nikes111

    Search and read multiple lines from a file

    I need to search a file for a name and display each line after that name until it comes to a '#' or some other specific character. How would I code this?
  3. nikes111

    using graphics.h

    I guess I'm not sure enough about what GDI is. I picked up on the fact that you wanted to do simple graphics and I was able to use this without any API knowledge at all. You don't have to use it, but it is a suggestion. P.S. - Thanks and your welcome PerFnurt. P.S.S. - I'm working on a Risk...
  4. nikes111

    using graphics.h

    You'll have to look at the website to learn all the functions. If you want a good example other than the ones on the site, here is the first program that I made with it. #include <winbgim.h> #include <iostream.h> #include <stdlib.h> #include <time.h> bool blue_clicked = false; void...
  5. nikes111

    using graphics.h

    Well, yeah, but line(0,0,100,100); is easy too. By the way, I meant to say that winbgim is just simplified functions made from win32.
  6. nikes111

    using graphics.h

    For what you are doing (just lines and shapes), it should be easier to use winbgim. There are simple functions to draw simple graphics, and they are easy to use. There is a list of all the functions at the site I mentioned earlier.
  7. nikes111

    Windows API and bitmaps

    Thank you so much. I cannot get it to work yet because I put your code into a function and I need to call it from a different .cpp file. I am not sure how to do this. Also, is the hDc in your code supposed to be hWindowDC?
  8. nikes111

    Windows API and bitmaps

    I need to use windows API to get a bitmap from a file and put it onto the background of a window. If someone could give me a function that can be passed the the filename and bitmap size, I would greatly appreciate it. I'm new to windows API, but even just some help with it would be great.
  9. nikes111

    using graphics.h

    It needs to be a Windows application. You still use a main() function for your program but the graphics library uses windows api.
  10. nikes111

    using graphics.h

    Yes, but you need to add some code to the beginning of winbgim.cpp. You must define the colors as the numbers 0 to 15. It is done in winbgim.cpp with enum(), but it doens't work right. Just define each color in winbgim.cpp using the existing enum statement, and the each color used in your...
  11. nikes111

    using graphics.h

    If you use winbgim, you can use the graphics.h functions in VC++6. You can get it at http://www.cs.colorado.edu/~main/bgi/

Part and Inventory Search

Back
Top