Search:

Type: Posts; User: Mercury_Linx

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    2,476

    When you build Win32 Application you'll have a...

    When you build Win32 Application you'll have a WinMain() as the entry point of the program, a Win32 Console Application will use main()

    Try rebuild the workspace with Win32 Application.
  2. Replies
    4
    Views
    1,166

    First of all, read...

    First of all, read http://cboard.cprogramming.com/showthread.php?threadid=25765

    1. After that you have to actually call getletgrade() to give you back a value.

    Something like:

    printf("the...
  3. Replies
    2
    Views
    975

    If you declare your struct like this: typedef...

    If you declare your struct like this:

    typedef struct {
    type1 id_list1;
    type2 id_list2;
    .....
    }struct_type;

    you can declare a struct variable like this:
  4. Two things to makesure: 1. Implementation of...

    Two things to makesure:

    1. Implementation of that function, do you have a function body for all the function you've declare in the .h file?

    2. If you're using VC++ or some IDE, is the .cpp...
  5. Replies
    8
    Views
    10,379

    If you have access to Win32 APIs,...

    If you have access to Win32 APIs, GetConsoleScreenBufferInfo can help you.

    I don't think there is a portable way to get console cursor position anyway... Anyone else?
  6. That is due to you made a call to scanf("%d",...

    That is due to you made a call to

    scanf("%d", &opt);
    When you key in a value and hit Enter, the value is taken into opt but scanf leave a '\n' character in the stdin, and when gets comes along...
  7. Replies
    8
    Views
    2,181

    Try your luck at www.visualbasicforum.com

    Try your luck at www.visualbasicforum.com
  8. Thread: Mfc

    by Mercury_Linx
    Replies
    5
    Views
    1,103

    Only use MFC when there is no other posible...

    Only use MFC when there is no other posible solution without one... adding MFC will make your program have more dependencies.

    MFC also uses some number of TLS, which might given you problem on...
  9. Replies
    10
    Views
    1,345

    If you're using gcc, download rhide as well, it's...

    If you're using gcc, download rhide as well, it's the best IDE that goes with gcc :)
  10. Replies
    46
    Views
    10,003

    Opps ;p ... Found out about that just now ......

    Opps ;p ... Found out about that just now ... Hm... how do I remove post?
  11. Replies
    46
    Views
    10,003

    Hm... I had a program that need to recurs pretty...

    Hm... I had a program that need to recurs pretty deep before. I realise that going too deep will cause a stack overflow (duh)

    So... what I did is to segment out the data chunck, and run the...
  12. Replies
    7
    Views
    1,514

    Try your luck at http://www.visualbasicforum.com

    Try your luck at http://www.visualbasicforum.com
  13. How did you check for End Of File? Snippets...

    How did you check for End Of File? Snippets please?
  14. Replies
    10
    Views
    1,345

    What do you mean by "good" compiler? "good" as in...

    What do you mean by "good" compiler? "good" as in it doesn't delete your file quitely? Auto-type your code while you're asleep? It's free?

    Cheers :)
  15. Replies
    4
    Views
    1,607

    Yeah that will work :) side note: you...

    Yeah that will work :)

    side note:

    you probably need to change the following line


    int *array = malloc(SIZE * sizeof( int ) );

    to
  16. Replies
    8
    Views
    2,181

    Use ShellExecuteEx, and pass in...

    Use ShellExecuteEx, and pass in LPSHELLEXECUTEINFO struct which contain your parameters.
  17. Replies
    4
    Views
    1,044

    Well, if you decided to move to C++ here's a...

    Well, if you decided to move to C++ here's a dynamic array class that I've been using, you might interest in it.
  18. Are you saying that you write a struct to a file...

    Are you saying that you write a struct to a file and fail to read it back? It could be due to the padding that the compiler normally added to your struct during compilation for optimisation purpose. ...
  19. Replies
    14
    Views
    2,932

    Well, to keep things simple to yourself and not...

    Well, to keep things simple to yourself and not screwing your own mind ;) Use Class when you build reusable operational object, and Struct for data object only.
  20. Thread: Lan

    by Mercury_Linx
    Replies
    3
    Views
    999

    What do you mean by DOS? DOS 6.0? Or is a console...

    What do you mean by DOS? DOS 6.0? Or is a console app with DOS box in Win32 system?

    If you're running a Win32 DOS box, just use Winsock :)
  21. Replies
    46
    Views
    10,003

    I'm not sure if the stack size is the root of the...

    I'm not sure if the stack size is the root of the problem (too sleepy to read it thru yet... might do it tomorrow :)

    Anyway, there is a "limit" command which you can use to increase the OS stack...
  22. Replies
    11
    Views
    1,505

    Well, here's an interest piece of software where...

    Well, here's an interest piece of software where you can check out...

    http://www.guardware.co.uk/
  23. Replies
    2
    Views
    11,568

    PCB *pcb;

    PCB *pcb; <--- This is wrong
    pcb->priority=0; //Error here

    by declaring pcb as a *pcb, you only created a 4 byte pointer to a PCB struct, and since you did not...
Results 1 to 23 of 23