Search:

Type: Posts; User: frktons

Page 1 of 8 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    1,154

    Thanks sean, this is a more precise description...

    Thanks sean, this is a more precise description of what the instruction does.
    And well, the work is done, I attach the result. It is a program to display old DOS
    screen format 25 x 80 chars, with...
  2. Replies
    9
    Views
    1,154

    This means that if I want to access a structure...

    This means that if I want to access a structure of CHAR_INFO type byte by byte I have
    to typecast the structure to unsigned char.
    Well, thanks whiteflags, enlightning suggestion. :D
    I'm going to...
  3. Replies
    9
    Views
    1,154

    Something is wrong. The compiler complains about...

    Something is wrong. The compiler complains about declaring a pointer to a structure
    with the char type.
    Being starget a structure, the pointer needs to be declared in a different way.
    Anybody...
  4. Replies
    9
    Views
    1,154

    This could be an alternative. Instead of filling...

    This could be an alternative. Instead of filling array[] first and after copying it
    into starget[], I could directly fill starget[] and not using array[] at all, bacause the
    source info that I have...
  5. Replies
    9
    Views
    1,154

    The CHAR_INFO type is a standard Windows type...

    The CHAR_INFO type is a standard Windows type defined in the include:


    typedef struct _CHAR_INFO { // chi
    union { /* Unicode or ANSI character */
    WCHAR...
  6. Replies
    9
    Views
    1,154

    Copying a memory area

    I need to copy an array of 8000 bytes to a structure of 8000 bytes.
    Is it possible to do it with the function memcpy() ?

    These are the two objects:



    char array[8000];
    CHAR_INFO...
  7. Replies
    2
    Views
    1,027

    Thanks salem. This is a different solution, but...

    Thanks salem. This is a different solution, but it can be feasible.

    I have the


    AsciiChar
    Attributes


    In an array of characters source[4000] in this shape:
  8. Replies
    1
    Views
    922

    Structures and unions

    I'm trying to define an array of structure type CHAR_INFO with 2000 elements,
    and a union in the same time of an array of 8000 characters.

    CHAR_INFO has already a union inside:


    typedef...
  9. Replies
    2
    Views
    1,027

    writing to the console

    Hello everybody.
    I'm trying to write to the console with WriteConsoleOutput, but I get some
    errors during compilation.
    The code I've written so far:

    ...
  10. Replies
    12
    Views
    2,700

    I think this line needs some corrections: ...

    I think this line needs some corrections:


    system("copy c:\\Documents and Settings\\my_user_name\\My Documents *.txt c:\\");


    1] after My Documents you should have \\ and moreover no...
  11. Replies
    4
    Views
    22,117

    Insert the path when you open the file: FILE...

    Insert the path when you open the file:


    FILE *OutFile = fopen("Test.txt","w");
    =
    FILE *OutFile = fopen("C:\\ThePathYouLike\\Test.txt","w");


    and you are done.
  12. Thread: What next?

    by frktons
    Replies
    5
    Views
    759

    I appreciate these suggestions :) A simple...

    I appreciate these suggestions :)
    A simple project is what I'm going to set up. After that I'll now what are the pieces
    of code, functions, API, whatever I need to implement it, learning and...
  13. Thread: What next?

    by frktons
    Replies
    5
    Views
    759

    Well, interesting point of view, yours, I'll...

    Well, interesting point of view, yours, I'll consider it for a while. Thanks.
    Actually I have spent a couple of months part time learning [books reading and
    some coding], not really much. I have...
  14. Thread: What next?

    by frktons
    Replies
    5
    Views
    759

    What next?

    According to your experience, after learning the basic of a programming language
    like C, would you go deeper in the direction of the language itself, or
    maybe dive for a while in the API world and...
  15. Replies
    12
    Views
    1,544

    It's a hobby. I'm fashinated. I was a...

    It's a hobby.
    I'm fashinated.
    I was a professional programmer some 30 years ago [COBOL - PL1].
    I'm still enjoying it a lot.

    Take care. :)
  16. Replies
    8
    Views
    1,660

    Here we have the 2nd version, a little bit more...

    Here we have the 2nd version, a little bit more "advanced" :)


    //------------------------------------------------------------------------------------
    // addspace2.c
    // File input: myfile.txt -...
  17. Replies
    8
    Views
    1,660

    As I said before, I like 2nd option too. Just for...

    As I said before, I like 2nd option too. Just for didactical purposes I'm
    doing this version also. Two or three more will follow, with some improvements :)
    Your idea is good,although we are not...
  18. Replies
    8
    Views
    1,660

    Back to my pc for a while I coded the addspace...

    Back to my pc for a while I coded the addspace program to read
    a binary file and write a spaced binary file.

    ...
  19. Replies
    8
    Views
    1,660

    I think you are right, according to my compiler...

    I think you are right, according to my compiler documentation:
  20. Replies
    11
    Views
    4,410

    ncurses are the same of pdcurses or are different...

    ncurses are the same of pdcurses or are different versions of libraries doing similar things?
  21. Replies
    8
    Views
    1,660

    Binary files I/O

    Hi everybody.

    I'm thinking about a feasible solution for a simple task.
    I've a binary file 4,000 bytes big, and I need to add a space
    after each single byte writing an output binary file 8,000...
  22. Replies
    68
    Views
    7,700

    So let's widen it up :) What about COBOL and...

    So let's widen it up :)

    What about COBOL and PL1, early sixty languages still alive
    in thousands of big companies?

    Not to speak about the oldest and most respectable Assembly
    that by the way...
  23. Replies
    160
    Views
    279,210

    Sticky: Google for whatever sounds like: "Algorithms in...

    Google for whatever sounds like: "Algorithms in C", "Data structures in c", "Advanced C" and the
    like, you'll find some interesting stuff this way.
  24. Replies
    68
    Views
    7,700

    C language will still be there when you finish...

    C language will still be there when you finish the university. C++ / C# / Java will be upgraded as well.
    Do you know there are still people programming in Assembly for producing drivers and high...
  25. Replies
    92
    Views
    11,587

    If I only knew how to do it :) Let me learn some...

    If I only knew how to do it :) Let me learn some more stuff, and you
    probably will get it recursively enough. ;)
Results 1 to 25 of 182
Page 1 of 8 1 2 3 4