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 SkipVought 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: *

  1. CNewbie

    Can't make API calls

    Thanx, I manage to find it under visual C++ but I can't find it under borland C++. It the option menu there is a tab for linker but I don't know witch checkbox is the equivalent of -subsystem:windows. Anyway, I still get an error in Visual C++ : c:\program files\microsoft visual...
  2. CNewbie

    Can't make API calls

    Thanx, I manage to find it under visual C++ but I can't find it under borland C++. It the option menu there is a tab for linker but I don't know witch checkbox is the equivalent of -subsystem:windows. Anyway, I still get an error in Visual C++ : c:\program files\microsoft visual...
  3. CNewbie

    Can't make API calls

    Hi, I'm a C/C++ beginner and I can't get any API calls to run (I have previously used API with VB). Here is a sample code that won't work : #include <windows.h> int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { MessageBox(NULL...
  4. CNewbie

    Installing Windows XP and Redhat 7.2 on same machine

    Why don't you put a cheap 2 to 6 gig hd in the unit, and load linux on it, but tell it not to touch the boot record on your primary when installing it, and just boot up the linux hd with the floppy redhat makes at the end of its install. that way you dont have to worry about messing up either...
  5. CNewbie

    BITWISE

    Do you mean: (0xc0 & 0x80) for (11000000 AND 10000000) (0xc0 ^ 0x80) for (11000000 XOR 10000000) (0xc0 | 0x80) for (11000000 OR 10000000) ?
  6. CNewbie

    Some one please help me with this..

    I have been trying for 3 weeks to find info I can use to: initialize, and read from a serial mouse in c, I have tried the source for GPM, libsvga, selection, allegro, and the linux drivers, the problem is that these files are made to support ALL kinds of mice, and I need to write code for just...
  7. CNewbie

    Can somebody help me with this, please..

    I have been trying for 3 weeks to find info I can use to: initialize, and read from a serial mouse in c, I have tried the source for GPM, libsvga, selection, allegro, and the linux drivers, the problem is that these files are made to support ALL kinds of mice, and I need to write code for just...
  8. CNewbie

    I can read /DEV/MOUSE, but I cant find any good info on the offsets.

    I need to know where to read in the data of the mouse, and where to write the init data for my PS2 mouse, the offests Im using seem to be almost right but the data is not reliable. #include <stdio.h> #include <math.h> #include <sys/file.h> #include <sys/mman.h> #include <sys/types.h> #include...
  9. CNewbie

    Got LPT port to work, but mouse still is confusing, please help.

    I got the lpt port to work, if anybody cares, heres some code. #define LPT 0x0378 #define LCD_DATA_ADDRESS LPT+0 #define LCD_CONTROL_ADDRESS LPT+2 if ((ioperm (LPT, 3, 1)) == -1) { printf (&quot;init: failed\n&quot;); } //set port to &quot;ok i can write to...
  10. CNewbie

    LPT and Mouse IO Question

    is there some code for linux that is about the sme as this. i know this wont work in linux, but i really need access to the rate and direction of the mouse. i know some kind of open(&quot;/dev/mouse&quot;) may work, but i dont know how to code it. i cant use ncurses, or alllegro, #include...
  11. CNewbie

    LPT and Mouse IO Question

    is there some code for linux that is about the sme as this. i know this wont work in linux, but i really need access to the rate and direction of the mouse. i know some kind of open(&quot;/dev/mouse&quot;) may work, but i dont know how to code it. i cant use ncurses, or alllegro, #include...
  12. CNewbie

    LPT and Mouse IO Question.

    is there some code for linux that is about the sme as this. i know this wont work in linux, but i really need access to the rate and direction of the mouse. i know some kind of open(&quot;/dev/mouse&quot;) may work, but i dont know how to code it. i cant use ncurses, or alllegro, #include...
  13. CNewbie

    Pointer - Array Question/Problem -Revised-

    I changed it to: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <dirent.h> char tstring[256]; char tgot[256]; char tname[256]; char* tdata[50000]; int tfi=0; int i=0; DIR *pd; struct dirent *allp; static int scomp(const void *p1, const void *p2) { char *a = * (char **)...
  14. CNewbie

    Linux, qsort, array, pointer problem -revised-

    Ok this code is just like the code before, but it shows the exact problem, it will compile fine, no errors, no warnings, but when it runs it just gets a &quot;Segmentation Fault&quot;, and outputs nothing, but if I // remark out the qsort( funtion line, it compiles fine, and outputs perfectly...
  15. CNewbie

    Linux, qsort, segmentation fault question.

    Ok this code is just like the code before, but it shows the exact problem, it will compile fine, no errors, no warnings, but when it runs it just gets a &quot;Segmentation Fault&quot;, and outputs nothing, but if I // remark out the qsort( funtion line, it compiles fine, and outputs perfectly...
  16. CNewbie

    Pointer - Array Question/Problem -Revised-

    Ok this code is just like the code before, but it shows the exact problem, it will compile fine, no errors, no warnings, but when it runs it just gets a &quot;Segmentation Fault&quot;, and outputs nothing, but if I // remark out the qsort( funtion line, it compiles fine, and outputs perfectly...
  17. CNewbie

    Linux, qsort, array, pointer, question.

    I am very new to C and C+, and I am trying to teach myself from VERY outdated text books, and I can't seem to figure this out. No matter what I do, the code below will either not compile with errors, or compile and then seg-fault when it hits the qsort function. I have tried all changing the...
  18. CNewbie

    Pointer - Array Question/Problem

    I am very new to C and C+, and I am trying to teach myself from VERY outdated text books, and I can't seem to figure this out. No matter what I do, the code below will either not compile with errors, or compile and then seg-fault when it hits the qsort function. I have tried all changing the...

Part and Inventory Search

Back
Top