Search:

Type: Posts; User: Donn

Search: Search took 0.01 seconds.

  1. Thread: largest 2

    by Donn
    Replies
    4
    Views
    1,049

    Got it!! Yay! Thanks for your help! I appreciate...

    Got it!! Yay! Thanks for your help! I appreciate it!
  2. Thread: largest 2

    by Donn
    Replies
    4
    Views
    1,049

    largest 2

    This code is supposed to take in ten numbers from the user and print out the highest two numbers. I think I'm having a problem with the last buffer not being cleared when I enter 1 thru 10. Here is...
  3. Replies
    7
    Views
    2,348

    Pointers on C - Reek It's a little more...

    Pointers on C - Reek

    It's a little more advanced, but an excellent reference.
  4. Thread: string question

    by Donn
    Replies
    11
    Views
    1,217

    Yay! It works! Thanks!!!! :)

    Yay! It works! Thanks!!!! :)
  5. Thread: string question

    by Donn
    Replies
    11
    Views
    1,217

    I tried gets(name), but upon execution, it...

    I tried gets(name), but upon execution, it doesn't let me input information. I'm not sure what I'm doing wrong here.
  6. Thread: string question

    by Donn
    Replies
    11
    Views
    1,217

    Ok...this is the code that's not working well for...

    Ok...this is the code that's not working well for me so far. I assume it's a problem with my function calls since I see that the scanf is working correctly. Where am I going wrong? Thanks in advance....
  7. Thread: string question

    by Donn
    Replies
    11
    Views
    1,217

    er, Nevermind. Got it going. Thanks for your help!

    er, Nevermind. Got it going. Thanks for your help!
  8. Thread: string question

    by Donn
    Replies
    11
    Views
    1,217

    I tried using those but when I run the program,...

    I tried using those but when I run the program, it never gives me the chance to input the information. It just flashes by...Did I need to do something else?
  9. Thread: string question

    by Donn
    Replies
    11
    Views
    1,217

    string question

    I would like to input a whole name (including spaces), Here's what I have so far:

    #include <stdio.h>

    char name[50];

    int main(void)
    {
    scanf("%s",name);
    printf("%s",name);
  10. Thread: Emailing files

    by Donn
    Replies
    0
    Views
    1,019

    Emailing files

    Hello,
    How would I get my C program to email a file automatically via something like Microsoft Outlook? And can I get the file to be emailed at times that I could designate? I've never done this...
  11. Thread: Invoking MSWord

    by Donn
    Replies
    21
    Views
    5,564

    I tried this line: ShellExecute(NULL, "open",...

    I tried this line:

    ShellExecute(NULL, "open", "c:\\helpme!.doc", NULL, NULL, SW_SHOWNORMAL);

    and I received a linker error saying:
    Link Error : Undefined symbol: _WinMain@16 in...
  12. Thread: Invoking MSWord

    by Donn
    Replies
    21
    Views
    5,564

    WitchKing, I cut and pasted your code. I changed...

    WitchKing,
    I cut and pasted your code. I changed to my Metrowerks compiler and I'm running Win98. The document is on the C: drive as well as MSWord. Still hasn't run for me. I have to note to you...
  13. Thread: Invoking MSWord

    by Donn
    Replies
    21
    Views
    5,564

    I appreciate the help everyone, but I've been...

    I appreciate the help everyone, but I've been unable to get it going using the system function. I think I may go look up a spawn function or shellExecute and see what they do and try to get it going...
  14. Thread: Invoking MSWord

    by Donn
    Replies
    21
    Views
    5,564

    That's just it. When I go to the command prompt...

    That's just it. When I go to the command prompt and type in my document name (i.e. >>c:\mydoc.doc<<) , MSWord does start up. But I can't get it to start up within my program. That's why I figured...
  15. Thread: Invoking MSWord

    by Donn
    Replies
    21
    Views
    5,564

    I tried: system("c:\\winword mydoc.doc"); ...

    I tried:

    system("c:\\winword mydoc.doc");

    and

    just for laffs,

    system("c:\\winword.exe mydoc.doc");
  16. Thread: Invoking MSWord

    by Donn
    Replies
    21
    Views
    5,564

    Yep, the files there. I thought of that...I tried...

    Yep, the files there. I thought of that...I tried on various files to try to get this working. I also tried different things on the system function such as a "copy" and "dir" and those things work...
  17. Go to www.ee.cleversoul.com....On the left hand...

    Go to www.ee.cleversoul.com....On the left hand corner, scroll down to "software", and click on "compilers"...there should be a few there.
  18. Thread: Invoking MSWord

    by Donn
    Replies
    21
    Views
    5,564

    Still trying to invoke separate application

    I revised the program (i.e. put the extra slash in and put in int main() and return 0) and I still get a "Bad command or file name" when I try to execute the program. Any other suggestions?...
  19. Thread: Invoking MSWord

    by Donn
    Replies
    21
    Views
    5,564

    Invoking MSWord

    I've used the following code to invoke MSWord from a DOS based C compiler unsuccessfully....Where am I going wrong?

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

    main()
    {
    system("C:\helpme!.doc");...
Results 1 to 19 of 19