Search:

Type: Posts; User: moagim

Search: Search took 0.00 seconds.

  1. Replies
    22
    Views
    2,255

    What else could I use other than system() ? I use...

    What else could I use other than system() ? I use it cause its all I know so far, also, I dont quite understand that code you typed, and it gives me the same result as before
  2. Replies
    22
    Views
    2,255

    Yeah but I want to be able to store what I type...

    Yeah but I want to be able to store what I type in the string without the quotes, isnt that possible?

    [edit]
    Doesnt work with quotes anyway
  3. Replies
    22
    Views
    2,255

    #include #include #include...

    #include <iostream>
    #include <dos.h>
    #include <string>

    using namespace std;

    int select;
    string host, msg;
    string systemSender = "net send ";
  4. Replies
    22
    Views
    2,255

    The program seems to run with just the iostream...

    The program seems to run with just the iostream header file on its own, why arent the others required? Just curious
  5. Replies
    22
    Views
    2,255

    Sweet everything works thanks

    Sweet everything works thanks
  6. Replies
    22
    Views
    2,255

    So what can it take two of?

    So what can it take two of?
  7. Replies
    22
    Views
    2,255

    The +'s dont seem to work, I get an error on...

    The +'s dont seem to work, I get an error on compile but I'll show you what does work.


    #include <iostream>
    #include <dos.h>
    #include <string>

    using namespace std;

    char host[64], msg[512];
  8. Replies
    22
    Views
    2,255

    I got a compile error from Dev C++ telling me ...

    I got a compile error from Dev C++ telling me

    systemSender += host + msg;
    is wrong, so I changed it to

    systemSender += host, msg;
    and it compiles fine. Everything seems to be working fine...
  9. Replies
    22
    Views
    2,255

    Using variables within system command?

    Hey guys, I'm not sure if what I'm trying to do is possible or the way I should do it. Basically I want to ask for a hostname, a message and place them in string variables as host and msg...
  10. Replies
    8
    Views
    7,242

    No I know thats an error from net, but if you...

    No I know thats an error from net, but if you take a look at the second net command, it is trying to use the second param i passed in msg as the hostname. Thats my point, it only lets me send a...
  11. Replies
    8
    Views
    7,242

    Problem

    Hmm Ok, I've got another slight problem when I pass more than one parameter to msg, here's what the code looks like:



    #include <stdio.h>
    #include <stdlib.h>

    int main()
    {
    int count;
  12. Replies
    8
    Views
    7,242

    Wow cool that makes a lot of sense, thanks a heap...

    Wow cool that makes a lot of sense, thanks a heap for you're time typing all the comments up, really helps understand what I'm doing wrong. I totally missed the %d and %s

    I always thought I needed...
  13. Replies
    8
    Views
    7,242

    Help in using variable in system command

    Hey, I'm trying to make a simple net send application with no GUI. The program basically asks for the hostname, the message, then proceeds with filling out the information which is needed for the...
Results 1 to 13 of 13