Search:

Type: Posts; User: veecee

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    8,347

    Nope, not the same length. For this particular...

    Nope, not the same length. For this particular file, the lines range from about 70 to 100 characters long.

    Hmm, an index of where each line ends sounds like a good idea. That would most likely...
  2. Replies
    8
    Views
    8,347

    Hmm, I've heard about memory mapped files, but...

    Hmm, I've heard about memory mapped files, but I'm not too sure exactly what they are. I thought they just copied the whole file into memory so you can access it faster than on disk. I'll have to...
  3. Replies
    8
    Views
    8,347

    Randomly shuffle lines of huge text file

    I'm looking for an algorithm that can randomly shuffle every line of an extremely large text file (aprox. 2 to 3 gigabytes). The obvious way is to load every line into a vector of strings and use...
  4. GetLocaleInfoEx (or GetLocaleInfo) might...

    GetLocaleInfoEx (or GetLocaleInfo) might work...but not sure since I never tried it:

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/nls_GetLocaleInfoEx.asp

    or something...
  5. Replies
    5
    Views
    11,422

    I'd maybe try using SDL with the SDL_Image...

    I'd maybe try using SDL with the SDL_Image library. It can read the most popular file formats like the ones you listed.

    Grab SDL here:

    http://www.libsdl.org/index.php

    and SDL_Image here:
    ...
  6. Replies
    3
    Views
    929

    As long as your have the headers/libraries (i.e....

    As long as your have the headers/libraries (i.e. platform SDK), and your unix based compiler can make a win32 executable file, I would think you could do it. I know of one windows app that uses the...
  7. Replies
    8
    Views
    4,754

    Hmm, under visual c++ 2005, a "hello world"...

    Hmm, under visual c++ 2005, a "hello world" console app using c++'s <iostream> library, and all default settings, creates a 7.5k exe file.

    I'd suggest using libctiny though....check out this...
  8. Thread: C++ Builder

    by veecee
    Replies
    2
    Views
    1,075

    I've never used it, but it looks like you can get...

    I've never used it, but it looks like you can get version 5.5 for free...and version 6 is the latest. It says 5.5 was released in late 2000, so I doubt it's too bad. If you're just starting out, I...
  9. Replies
    10
    Views
    1,138

    Yea, this whole thread is off-topic, so hopefuly...

    Yea, this whole thread is off-topic, so hopefuly an admin moves it (maybe to the windows programming board).

    Try these forums if you want help with the things you're asking though:
    ...
  10. Replies
    10
    Views
    1,138

    Just #include and it should work...

    Just #include <windows.h> and it should work (assuming you create a complete window or console app first though). I've never used any program called cheat engine, so I can't help you with that. I...
  11. Replies
    10
    Views
    1,138

    Under windows, you use WriteProcessMemory() and...

    Under windows, you use WriteProcessMemory() and ReadProcessMemory() to modify or read a applications memory. Here's a snippet of some code from an old trainer I made for Battlefield 1942:


    ...
  12. Replies
    8
    Views
    1,712

    Yeah, I would say it's a bit too much for someone...

    Yeah, I would say it's a bit too much for someone who's just learned the basics of C++, but I wouldn't get discouraged if that's what really what you want to do.

    Perhaps you could start with...
  13. Replies
    8
    Views
    1,712

    Not sure about programming a bot, but making a...

    Not sure about programming a bot, but making a game trainer isn't all that hard. The part that's hard is the reverse engineering, and finding out what part of the code affects what. Like trying to...
  14. Replies
    1
    Views
    1,367

    Here's my take on it, although I didn't bother to...

    Here's my take on it, although I didn't bother to make it a function or put it in a class or anything. I'm sure the scaling algorithm could be better still...and I think I miss-used the size_t type,...
  15. Thread: Graphcis

    by veecee
    Replies
    5
    Views
    990

    This thread should probably be in the Game...

    This thread should probably be in the Game Programming board, but anyway...

    I wouldn't really recomend OpenGL if you're just starting out. While you certainly can do 2D graphics with OpenGL, you...
  16. Replies
    10
    Views
    16,613

    Just throwin' this in, although you say you've...

    Just throwin' this in, although you say you've already solved your problem. Back in the day when I did graphics programming, I would use this to get a pointer to the 320x200 (8-bit color) vga...
  17. Replies
    2
    Views
    3,064

    I tried fixing your code, but I just couldn't...

    I tried fixing your code, but I just couldn't figure it out. It seems to be all correct, but we must be overlooking something. I decided to just code my own, but it's slightly different.

    In my...
  18. Thread: Help with char

    by veecee
    Replies
    2
    Views
    879

    or maybe with the string library... char...

    or maybe with the string library...



    char s[256] = "some really long string...";
    std::string sub(s, 1, 255);
  19. Replies
    5
    Views
    2,827

    hmm, I just figured he didn't know much about...

    hmm, I just figured he didn't know much about regular expressions and meant that those were variables. I think those *'s would more likely become \s+ if it was a real regular expression also.
  20. Replies
    1
    Views
    1,354

    Go to Edit>Advanced>View White Space to turn it...

    Go to Edit>Advanced>View White Space to turn it off
  21. Check the FAQ here: ...

    Check the FAQ here:

    http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1042856625&id=1043284385
  22. Replies
    5
    Views
    2,827

    Regular expressions are nice, but I don't think...

    Regular expressions are nice, but I don't think I'd use a library to deal with whitespace. You could easily just use a C function like sscanf() that will ignore whitespace. Something like:


    ...
  23. I don't think it's a good idea to read a file...

    I don't think it's a good idea to read a file character by character just to get the size...it's unecessary, and slow. Instead, you can use fseek() to jump to the end of the file, and then ftell()...
  24. Replies
    4
    Views
    1,036

    I see what you mean. Check out this doc on...

    I see what you mean. Check out this doc on msdn...

    http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/programmersguide/shell_int/shell_int_programming/taskbar.asp?frame=true

    The...
  25. Replies
    4
    Views
    1,036

    To hide it from the taskbar (the bar usually...

    To hide it from the taskbar (the bar usually along the bottom of the screen), you simply hide your window. Unless you really do mean the list of processes, like in the Task Manager.

    ShowWindow(...
Results 1 to 25 of 34
Page 1 of 2 1 2