Search:

Type: Posts; User: Nazca

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    12
    Views
    1,147

    Ahh, yes, nothing that would be remotely...

    Ahh, yes, nothing that would be remotely practical. :)
  2. Replies
    12
    Views
    1,147

    Don't make x public - use something like a public...

    Don't make x public - use something like a public setter function, so they have to use the function instead of changing it directly. Then make your setter function called changepos.

    E.g.

    ...
  3. Replies
    4
    Views
    1,287

    Thanks! I should've known better since I've been...

    Thanks! I should've known better since I've been using theForger's guide and he has information about modeless dialogs. Anyway, I've got it sorted out and now all I have to do is hack up a...
  4. Replies
    4
    Views
    1,287

    Aye, thanks. Here's some hopefully relevant bits...

    Aye, thanks. Here's some hopefully relevant bits of code:


    // An example dialog. Not one I'd particularly like to put in the main window, but works
    // as an example.

    DIALOG_NEW_MP_JOIN...
  5. Replies
    4
    Views
    1,287

    How to set up main window/dialogs so...

    Hey,
    I'm trying to set up my win32 app (C++ straight win32 API, by the way) in a way that when someone selects a menu item/makes a certain choice in a pop-up dialog, the main-window changes, for...
  6. Replies
    5
    Views
    1,386

    Same error message here. Weird...

    Same error message here. Weird...
  7. Thread: War with China

    by Nazca
    Replies
    92
    Views
    11,431

    Poll: [109.1] Say: O unbelievers! [109.2] I do not...

    [109.1] Say: O unbelievers!
    [109.2] I do not serve that which you serve,
    [109.3] Nor do you serve Him Whom I serve:
    [109.4] Nor am I going to serve that which you serve,
    [109.5] Nor are you going...
  8. Replies
    5
    Views
    1,397

    I don't think it'll really affect anyone's...

    I don't think it'll really affect anyone's opinion, I just think it's tasteless. It's actually happening in Iraq and people die there, and it doesn't seem very nice to make a TV show mimicking it...
  9. Thread: P2P file sharing

    by Nazca
    Replies
    8
    Views
    1,512

    I use Ares Galaxy. It's open source so I trust...

    I use Ares Galaxy. It's open source so I trust it not to be doing anything nasty. Haven't looked at it myself though.
  10. Replies
    42
    Views
    2,448

    I think we have a winner.

    I think we have a winner.
  11. Thread: Indenting...

    by Nazca
    Replies
    13
    Views
    1,192

    The system ILV uses looks silly with one line of...

    The system ILV uses looks silly with one line of code (I drop the brackets when I have a one-line if or for), but it's what I use too for control statements.

    I don't indent my functions, though. ...
  12. Replies
    35
    Views
    7,133

    Sorry - you beat me to it. :)

    Sorry - you beat me to it. :)
  13. Replies
    35
    Views
    7,133

    Two concerns about buffer2: 1) Are you allowed...

    Two concerns about buffer2:

    1) Are you allowed to initialize multiple char arrays on one line? I don't see why not, but it's possible.

    2) If you receive 128 bytes, your code will run:

    ...
  14. Thread: set command

    by Nazca
    Replies
    2
    Views
    1,094

    It can be used to set or display the current...

    It can be used to set or display the current environment variables in your command prompt. If you use set to set an environment variable, it won't stay set permanently - it will only exist/be...
  15. Replies
    35
    Views
    7,133

    I think the third parameter should be...

    I think the third parameter should be sizeof(their_addr)...Probably why it's complaining about incorrect datatypes - what type is sin_size?
  16. Thread: War with China

    by Nazca
    Replies
    92
    Views
    11,431

    Poll: The USA and China are too far away to get in a...

    The USA and China are too far away to get in a real war...We'd have to agree to a miniturized scale model of the war on Hawaii, which I think would be a very agreeable place for all soldiers etc....
  17. Thread: Windows Vista

    by Nazca
    Replies
    32
    Views
    3,185

    Also started with '98 and moved to XP...I hate...

    Also started with '98 and moved to XP...I hate the "Modern" style so my desktop looks pretty similar to a 98, but the Blue Screen of Death used to be a daily occurence so I consider XP a decent...
  18. Replies
    11
    Views
    1,211

    Ooh! Pick me! Pick me!

    Ooh! Pick me! Pick me!
  19. Thread: string problems

    by Nazca
    Replies
    19
    Views
    1,855

    I'm sure there's a much, much less hacky way to...

    I'm sure there's a much, much less hacky way to do it but as far as what you're asking goes:


    a_file.close();
    b_file.close();
    ofstream clearThis("info_name.txt", ios::trunc);
    ofstream...
  20. Replies
    2
    Views
    2,331

    With Dev-C++, I need to link these two libraries:...

    With Dev-C++, I need to link these two libraries:

    /Dev-Cpp/lib/libws2_32.a
    /Dev-Cpp/lib/libwsock32.a

    Strangely, my program works fine without #including winsock2.h...hm.
  21. Thread: string problems

    by Nazca
    Replies
    19
    Views
    1,855

    If using FTP is ok, there is a way to run FTP...

    If using FTP is ok, there is a way to run FTP scripts with Windows - Make a file with the extension ".ftp" with one FTP command per line, and call it with something like:

    system("ftp...
  22. Thread: string problems

    by Nazca
    Replies
    19
    Views
    1,855

    I could swear there was an easy way to use telnet...

    I could swear there was an easy way to use telnet scripts in Windows, with which you could contact an SMTP daemon...but I searched for about 20 minutes and either I really suck at searchig or...
  23. Replies
    11
    Views
    1,108

    Eep. Yeah, probably much safer/smarter to go...

    Eep. Yeah, probably much safer/smarter to go without the system calls. Didn't know how though.
  24. Replies
    11
    Views
    1,108

    I'd recommend you start using C++ strings with...

    I'd recommend you start using C++ strings with <string>.

    If you were to use them, maybe something like this would be a start:


    char status;
    cout << "Are you already registered? Please enter...
  25. Replies
    1
    Views
    1,480

    I think you'll need to define "SockAddr" before...

    I think you'll need to define "SockAddr" before you start setting ports and things.

    sockaddr_in SockAddr;

    After you make the socket.
    (Just guessing though)
Results 1 to 25 of 74
Page 1 of 3 1 2 3