using hello was only an example.
Type: Posts; User: SMB3Master
using hello was only an example.
the purpose is reading a config file, this works perfectly.
thanks :)
i want to get the file's contents into an array like i said in my first post.
can you give an example please?
how do i read a text file's content into an array?
i want it to work like this:
the file contains the word "hello"
the code would read the file and put the text in an array called text....
how do i make my program use command line arguments? i want one to be an int, one to be a char, and the last to be a char array.
something like this:
programname help
programname 5 5 #
...
How can I run two functions at once?
It's working, thanks :D
I'm using Dev-C++, the following code gave these errors:
`::vector' undeclared (first use here) (line 9)
parse error before `>' (line 9)
`file' undeclared (first use this function) (line 12)
...
I tried using the secound one but I couldnt get it to work, what else do I need to add to it?
I'd wanna know about the blank lines.
I'd rather get exactly whats in the file, but if it's easier the other way it doesn't matter.
text files. I want to put the entire file into an array, and how to get the lines one by one.
How do I read a file and set the text in it to a char array?
me and my friend are atempting a simple irc client... the only problem is we have no clue how to get/send the informatio to the server... sockets maybe? any help would be great.
I'm trying to learn windows programming from http://www.winprog.org/tutorial/ and the dialog resource example is saying theres a parse error.
IDD_ABOUT DIALOG DISCARDABLE 0, 0, 239, 66...
Well I'd have to disagree with that, I'm not giving up.
Now... how do I make a text edit box and a button, then when the button is pressed the text in the box is set to a char array? And how do I make a button press call a function?
PLEASE don't post a...
Probably not, but will giving up get me farther?
I have the text working :D
http://www.cprogramming.com/cboard/showthread.php?threadid=39836 wont open.
I couldn't care less how it works if it does what I want it to do :mad:
I don't, how do I do that?
This compiles successfully buit does not put any text
void posttext()
{
HWND hwnd;
PAINTSTRUCT ps;
TCHAR chTxt[]=TEXT("Hello world");
BeginPaint(hwnd,&ps);
I used exactly what kuphryn said:
void posttext()
{
CRect rect;
DrawText(TEXT("Display Texts"), &rect, DT_CENTER);
}