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

    Line Numbering

    The only way to know the line number is by counting the carriage returns in the file. I suggest you use the code you have written to count the carriage returns, and when it finds a CR, output the counter value to the second file before the rest of the line is output to the second file. I hope...
  2. adholioshake

    How to insert music file into 32bit assembly prog

    The best way is writing code to interface with the Soundblaster. I've tried it once, though not in assembly, in C code. Look for documentation on the soundblaster - but it will not be as easy as you would probably want... Here is a good place to start...
  3. adholioshake

    Scan Codes

    Why don't you try using the 'Get Keyb. Flags' BIOS function (ah=02h, int 16h). The return byte in AL gives keyboard flags... AL: bit description 00h r. shift 01h l. shift 02h CTRL 03h ALT 04h SCROLL LK 05h NUM LK 06h CAPS LK 07h INSERT As an example of...
  4. adholioshake

    BIOS VGA mem, mode 12h

    I've got some of michael abrash's work: 'the black book' and 'zen of' graphics programming. They are very good, but mainly look at using mode 13h (as a 320x400) and mode X, but these concentrate on having 256 colours (which I'm not to bothered about...) and not resolution. If colours were the...
  5. adholioshake

    BIOS VGA mem, mode 12h

    Hi people. I'm trying to figure out how the memory for screen mode 12h for BIOS screen-set call (ah=00h, int 10h) is organised. It would seem that the first block of memory is a bitmap for whether the pixel is on or off - but how do you change the colour of that pixel? I'm trying to rewrite...
  6. adholioshake

    get CTRL key-pressed event

    Just a Note... CTRL + ALT + Del combination is filtered out before message is sent to active window. The code for this is in a system library (I think GINA.DLL which is to do with I/O routines). Don't hate the player - hate the game
  7. adholioshake

    GUI for DOS

    There are no readily available functions for using the mouse in the C standard libraries. Butit is not to difficult to incorporate some assembly into your programs specifically for dealing with the mouse. Take a look at the code I wrote... #include <stdlib.h> #include <stdio.h> #include...
  8. adholioshake

    least error-prone C scanning

    Using fgets() to get lines of file into buffer, and then using sscanf() to search the buffer is less error prone than just using fscanf(). But I suppose it does depend on what data you want to pass, as xwb pointed out... Don't hate the player - hate the game
  9. adholioshake

    passing const values to functions for array subscripts.

    Salem is right. The best thing is to do dynamic memory allocation. Try looking up 'malloc()' in your help files. :-) Don't hate the player - hate the game
  10. adholioshake

    Getting Month Name

    You could easily write your own code to do this: #include <stdio.h> #include <time.h> int main (void) { time_t tme; struct tm *today; char months[12][10] = { "January", "February", "March", "April"...
  11. adholioshake

    NEWBIE HELP ME PLZ!!!!!!

    Janet, I reckon the &quot;positive going pulse&quot; just means a binary '1' in this context, i.e. bit 4 of port A is '0' when it is not ready, but rises to '1' when it 'guess' is given: /------1 (ready) / (busy) 0------/ <- rising edge. What needs to be done...
  12. adholioshake

    Display multi line msg inside a box?

    kidrocks, Firstly, Zeit is right. It is more helpful if you give code to work with, or at least the operating system you are using. (It would not be any help to you if I posted the answer in 8086 intel code when you have a UNIX box with a Sparc chip...) However, I am going to make some...
  13. adholioshake

    Creating a Full-Screen Mode App with NoClose Property

    A more sophisticated way of disabling ctrl+alt+del on Windows XP is by using a Low Level Keyboard Hook function, and just filtering out the key strokes. A little more complicated to program, but can be done... :-) If you are using some other Windows, like 95/98, I believe you can cheat a little...
  14. adholioshake

    Creating a Full-Screen Mode App with NoClose Property

    The following code shows how to make full screen window. Basically a POPUP style window, so no 'x' button because no title bar. The style CS_NOCLOSE means that Alt+F4 doesn't work either. #include <windows.h> int InitWindow (HINSTANCE); long CALLBACK wndproc (HWND,UINT,WPARAM,LPARAM); int...
  15. adholioshake

    Calling functions from C DLL

    I answered a similar query in another thread. You could use LoadLibrary, but it is harder to use functions this way. I suggest using _cdecl(dllimport) to import the functions. See the other thread link below: thread713-744050 Don't hate the player - hate the game
  16. adholioshake

    What is fntldr.exe

    I agree Esquared. Programs like ad-aware are good to run every now and again, as well as virus checkers like sophos. :-) Don't hate the player - hate the game
  17. adholioshake

    Trying to compile a project that uses assembly language.

    You could instead of trying inline assembly write the assembly in a separate file. You can assemble this using TASM, MASM or whatever to get the object file and then link this object file together with your C file. The assembly code should be written as a function you can call from the C...
  18. adholioshake

    What is fntldr.exe

    It is an adware file that was supposed to be downloaded to your computer, but was not. You can get rid of it by editing your win.ini file. Look at the following link for more info: http://securityresponse.symantec.com/avcenter/venc/data/adware.searchcounter.html :-)
  19. adholioshake

    Using dll to launch remote execution

    Try looking up Remote Procedure Calls (RPC) in the C++ documentation. I have never tried this before - usually its easier to comunicate with client-server models, i.e. get the server program to send the command-string and the client upon recieving the message to execute that string. The RPC...
  20. adholioshake

    Problem loading my dll with LoadLibrary

    I don't understand what you mean. :-(

Part and Inventory Search

Back
Top