Search:

Type: Posts; User: Dharius

Search: Search took 0.00 seconds.

  1. atof() is fine, and ANSI. But I think ma55acre...

    atof() is fine, and ANSI. But I think ma55acre uses CBuilder...
  2. try Edit3->Text = FloatToStr(Result); good...

    try

    Edit3->Text = FloatToStr(Result);
    good luck
  3. Replies
    7
    Views
    6,598

    It is possible to use a BIOS interruption. But...

    It is possible to use a BIOS interruption. But I'm not sure how portable it willt be :rolleyes:
    At least PC x86 compatible.
    kbhit() should be the same call of (low level, BIOS interruption):
    ...
  4. Replies
    2
    Views
    1,042

    Take a look at Winprog Tutorial...

    Take a look at Winprog Tutorial

    And look at the nice MingW - GNU Compiler for Windows
  5. Replies
    3
    Views
    1,162

    Try: long hInstance = GetWindowLong(NULL,...

    Try:

    long hInstance = GetWindowLong(NULL, GWL_HINSTANCE);

    good luck
  6. Thread: realloc()

    by Dharius
    Replies
    3
    Views
    1,774

    You'd better read the whole file at once. Just...

    You'd better read the whole file at once.
    Just get its size and use it in the first malloc() and fread()
    I can not remember if there is a function to directly get its size, but you can do:

    ...
  7. Replies
    9
    Views
    3,321

    Hey, MrJake. There is no mistery. /*...

    Hey, MrJake.

    There is no mistery.

    /* Generates one random letter */
    char gen_letter(void)
    {
    char ch = (rand() % 26) + 'a';

    return ch;
  8. Replies
    2
    Views
    1,052

    Thanks, TNT. I'll look at that. Now I have...

    Thanks, TNT.

    I'll look at that. Now I have some direction. :)
  9. Replies
    2
    Views
    1,052

    Changing the color of a control

    I'm somewhat new to C programming at Windows.
    I cannot find the message to change the color of a control, like an edit box.
    I'll use that when the control get and lost focus.

    What message can I...
  10. Replies
    12
    Views
    1,727

    nothing wrong with your function

    The problem is that "string" is passed to the function convert();

    change this:

    int main()
    {
    char strTest[] = "string";

    cout <<"\nBefore: " << strTest << endl;
  11. The declaration 'Gemstone ruby; ' is local to...

    The declaration 'Gemstone ruby; ' is local to CreateStones()

    If you place it outside the function, it will be global.
  12. Replies
    12
    Views
    1,727

    Nice code, Uraldor but...

    That should be:
    char first = input[0];
    instead of:
    char first = index[0];

    right?
  13. Replies
    12
    Views
    1,890

    What about ANSI C?

    #include <stdio.h>


    FILE *TextFile;
    char sFileName[] = "file1.txt";
    char sBuff[200];

    /* Try to open */
    if ( (TextFile = fopen(sFileName,"r")) == NULL)
    {
  14. Replies
    9
    Views
    3,321

    Cool password generator

    Nice idea, knave.

    What would the better word splitting method? Into syllables?
    Random characters passwords are more difficult to memorize, because they seems completely meanless. :)
    The...
Results 1 to 14 of 14