hi,
I installed redhat 7.3 and i wanted to install the drivers for my ATI Radeon 9600 video card. Their website stated that the drivers would only work with XFree86 4.3, i was running 4.2.0. So i downloaded Linux-ix86-glibc22 from the xfree86.org ftp site (i have glibc version 2.2). I verified...
I found a piece of code in "The C programming language second edition ANSI C" which does not compile. Someone on this forum is bound to have it so i thought i'd post this question. It's on page 40 at the bottom. For the one's who don't have it:
As expected, my compiler complains:
error C2055...
hi,
i have just started out with c++. unfortunately the material that i'm reading does not explain the difference between what it calls alias variables & variable references.
hope somebody knows.
thx.
hi,
i have just started out with c++. unfortunately the material that i'm reading does not explain the difference between what it calls alias variables & variable references.
hope somebody knows.
thx.
hi
what i would like to do is store the address contained in a pointer variable at a target address pointed at by another pointer.
typedef struct STRUCTURE
{
char name[30];
struct STRUCTURE *Next;
}DATA;
main()
{
DATA *p0;
DATA *p1;
p0 = p0->Next;
p0 = p1; /* alt1...
my problem is the following:
main()
{
struct STRUCTURE
{
int *integer;
} a;
int *integer;
*integer = 1; /* success */
a.*integer = 1; /* error */
}
why can't i use the indirection operator on a structure member? my compiler just says...
consider the following type definitions:
struct STRUCTURE0
{
int integer0;
};
struct STRUCTURE1
{
int integer1;
struct STRUCTURE2
{
int integer2;
} struct0;
struct STRUCTURE0 struct1;
} struct2;
when i initialize struct0 and struct1 with some value...
I have a purely theoretical question about the various methods of passing arguments to a function.
There are two i am interested in:
+ call by value-returned (aka value-result).
+ call by result.
i think value-returned does the following:
+ make a local copy of the value the passed...
Hi.
I'm learning ANSI C for a few days now. I use Microsoft C 7.0 as a compiler, my target platform is DOS.
I'm having trouble grasping the idea of the asterisk in the scanf() function..
Why can't:
scanf("%i %*i %i",&value1,&value2,&value3);
be written as:
scanf("%i...
how does DOS manage the memory usage of a .COM file?
i want more than the standard 64k in a COM file so i started experimenting
with INT21 function 48h and 49h, memory allocation and deallocation respectively.
i used the following code in a COM file to find out the maximum number of
paragraphs...
hi. its been a while since i last posted, i've resumed some
work i have been doing a while ago. the program i am
planning to write relies heavily on redirection (> and < in
dos) and piping (using the | character in dos). when
retrieving data from another command via the special "|"
character in...
let's say you got this code:
; 20002h \ 2.
mov ax,2
mov dx,ax
mov bx,ax
div bx
result would be 10001h, which ofcourse does not fit in ax:
a divide overflow error is generated.
Is it possible to predict a divide overflow before it
occurs?
I want to write data which is >64k from memory to a file.
The problem is the DOS "write file" function, ah=40h, it only
accepts >=64k parameters.
The amount of data to write is in dx:ax. When I divide this
value by 64kb I can write the remainder in dx in one go.
But if ax > 1, how do I access...
This is a follow up to a previous post I made on comparing
two memory buffers. I wanted to write a utility which could
search for a pattern in a file from beginning to end, and
from end to beginning, as desired.
After abandoning the project for some weeks I finally picked
it up again, and...
Hi.
Everytime I open a file using INT 21h the system returns
file handle number 5. In plain DOS, AND under Win95.
I came accros some other guy's code and he used file handle
0 (zero) to output text to the screen. Now, I know there are
certain other devices that correspond to certain filehandle...
Windows 2000 does not seem to run programs which make use
of the DOS4GW.EXE DOS extender.
It does not display an error message.. nothing, just returns
to the prompt.
Anybody know how to run these programs under 2k?
thx.
I am trying to write a program that finds certain data
patterns in files. FIND.EXE from DOS would do the trick
ofcourse but I want it to search from the end of the file too.
To achieve this I need a procedure which compares two
memory buffers. one with the search pattern, and one data
buffer...
In order to change the default Desktop folder for the
Administrator account, I have edited the "Desktop" REG_SZ
string at:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
But unfortunately after reboot, the string is reset to the
default value of...
I've got some seperate "code libraries" I wrote myself, which
I link to an object file. And later on link it into my final
program. i.e. I've got a file with file routines, one for string routines, etc.
When I link a program which does not use ALL, but SOME
routines in one or more of my object...
I have been trying to write this converter. I have already
written one for 16 bit values in a distant past. But now I
am having trouble writing one for 32 bit values. I use
MASM 6.11 in a DOSbox under Win95.
At the end of the program I expect the return value in
dx:ax to be FFFF:FFFF. But the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.