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?
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...
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...
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.
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?
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.
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.