Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: denc4
  • Content: Threads
  • Order by date
  1. denc4

    problem updating X window system.

    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...
  2. denc4

    kernighan & ritchie weird prototype.

    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...
  3. denc4

    alias variables vs variable references.

    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.
  4. denc4

    alias variables vs references

    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.
  5. denc4

    pointer assignment.

    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...
  6. denc4

    indirection in structures.

    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...
  7. denc4

    initializing structures.

    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...
  8. denc4

    function calling methods.

    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...
  9. denc4

    scanf() asterisk.

    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...
  10. denc4

    DOS and .COM memory usage

    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...
  11. denc4

    redirection & piping in win2k.

    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...
  12. denc4

    predicting a divide overflow.

    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?
  13. denc4

    segmentation problem.

    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...
  14. denc4

    follow up...

    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...
  15. denc4

    What are the filehandle numbers for devices.

    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...
  16. denc4

    Running DOS4GW programs under NT.

    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.
  17. denc4

    comparing two memory buffers.

    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...
  18. denc4

    Changing the default system folders.

    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...
  19. denc4

    Redundant data/code by linking objects.

    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...
  20. denc4

    Converting numeric ASCII string to a long integer.

    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...

Part and Inventory Search

Back
Top