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...
Type: Posts; User: frktons
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...
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...
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...
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...
The CHAR_INFO type is a standard Windows type defined in the include:
typedef struct _CHAR_INFO { // chi
union { /* Unicode or ANSI character */
WCHAR...
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...
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:
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...
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:
...
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...
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.
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...
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...
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...
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. :)
Here we have the 2nd version, a little bit more "advanced" :)
//------------------------------------------------------------------------------------
// addspace2.c
// File input: myfile.txt -...
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...
Back to my pc for a while I coded the addspace program to read
a binary file and write a spaced binary file.
...
I think you are right, according to my compiler documentation:
ncurses are the same of pdcurses or are different versions of libraries doing similar things?
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...
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...
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.
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...
If I only knew how to do it :) Let me learn some more stuff, and you
probably will get it recursively enough. ;)