I understand what he mean.
Read the file, store it in a Char* or TCHAR*
then
DrawString or somthing
I just like programming, that is all.
Current Stuff:
- GPU Programmer (Cuda)
- Client/Server (Cloud Server)
- Mobile App Development
NOT USE A POINTER!!! (char*)
if in ur file are not enough letters, the otherbytes must be placed. so the other strings in ur .dll will be removed with nothing
cause that use
char text[numberofbytes];
blabla..
file.getline(text,numberofbytes);
Exaple:
char *text;
file.getline(text,20)
//and in ur file only 16 letters
GetModuleHandle("blabla.exe");
so it is
GetModuleHandle(" la.exe");
Last edited by kotentopf; 10-03-2010 at 11:41 AM.
The Internet SHOULD Be Illegal
When you say
"Java is a great programming language because it works on all platforms"
it is just like
"anal sex is great because it works on all genders"
Are YOU a Troll?
yeah u will see everytime u see that everything is not working
i had this problem and i fixxed it, cause that
and if u use a pointer, its useless or do u need unlimited text? i not need more than 200 letters in a string so do not use all of ur RAM
The Internet SHOULD Be Illegal
When you say
"Java is a great programming language because it works on all platforms"
it is just like
"anal sex is great because it works on all genders"
Are YOU a Troll?
Code:HANDLE hFile = CreateFile("path", GENERIC_READ, FILE_SHARE_READ, 0, OPEN_EXISTING, FILE_ATTRIBUTES_NORMAL, 0); if (hFile != INVALID_HANDLE_VALUE) { DWORD Size = GetFileSize(hFile, 0); char* FileData = new char[Size + 1]; DWORD BytesRead; ReadFile(hFile, FileData, Size, &BytesRead, 0); FileData[BytesRead] = '\0'; ShowText(FileData); delete[] FileData; CloseHandle(hFile); }
Draw the contents of a file. Do I need to explain it any more? <.<
OP is stupid .
Say's he's a VIP coder
Dude I'm not the best VIP Coder.
Goals:
Green = Done
Blue = Getting Somewhere
Red = Not Done
- Mouse Grid
- PTC Method
- Trigger Bot
I'm trying to think of more stuff!
It's a joke. OMG. Listen do you guys want me to change that?
Goals:
Green = Done
Blue = Getting Somewhere
Red = Not Done
- Mouse Grid
- PTC Method
- Trigger Bot
I'm trying to think of more stuff!