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

  1. Pappy1942

    Audio output in console..? how

    Hi, I'm not exactly sure what you want to do but I know that API sndPlaySound(...) works in console mode. Don't forget to include mmsystem.h . Hope this helps. Pappy You learn something new everyday.
  2. Pappy1942

    Need help in understand a function declaration and definition

    Hi, I don't think the definition should have a ";"(See HERE). FUNCTION DECLARATION: void myfunction(int array[], int array2[][3]); FUNCTION DEFINITION: void myfunction(int array[], int array2[][3]); /* HERE */ { ... .... } Hope this helps. Pappy You learn something new everyday.
  3. Pappy1942

    byte by byte from file

    Hi, Try this OPEN "test.txt" FOR BINARY AS #1 FOR x = 1 TO 10 a$ = INPUT$(1, #1) 'first 1 is the number of bytes PRINT a$ NEXT Hope this helps. Pappy You learn something new everyday.
  4. Pappy1942

    Is there a why to get search files an folders to work?

    Thanks. Pappy Pappy You learn something new everyday.
  5. Pappy1942

    Is there a why to get search files an folders to work?

    Hi, While using Search "files and folders" to find included text I noticed that XP searches only files it thinks should include what it is searching for. Is there a why to change this behavior to be like Win98? Thanks, Pappy You learn something new everyday.
  6. Pappy1942

    Unique sorting of char * data in linked list.

    Hi, Why not start at first item in the list and compare it to each successive item ,removing dup's as you go along, until you get to the end of the list? Then do the same to the second item and so on. If the list does not need to be sorted, this seems the easiest way. Pappy You learn...
  7. Pappy1942

    CHR$(0)

    Hi, Going back to your original question. chr$(0) is not the same as "". "" does not contain anything. There isn't any space in "". chr$(0) contains zeros like so 00000000 chr$(1) would contain a one 00000001 Pappy You learn something new everyday.
  8. Pappy1942

    How to generate mazes in qbasic

    Hi, Try this URL http://www.easystreet.com/~jkirwan/misc004.html Pappy You learn something new everyday.
  9. Pappy1942

    Ideas for making a maze.

    Hi, Try this url http://www.easystreet.com/~jkirwan/misc004.html The programming is in C but the explaination is easy to follow and program in BASIC. Pappy You learn something new everyday.
  10. Pappy1942

    Assigning constants at Run Time in pointers

    Hi, Note the short program below. #include <stdio.h> #include <conio.h> int main(void) { int *x; int y[] = {7,8,9}; // First part x = y; printf(&quot;\n%d %d %d&quot;,x[0], x[1],x[2]); // Second part printf(&quot;\n%d &quot;,*x); ++x; printf(&quot;\n%d &quot;,*x)...
  11. Pappy1942

    Expressing Decimals as Fractions

    Hi, Using STR$, MID$, INSRT, and VAL you can convert the number to a string, extract the decimal part, convert it back to a whole number and figure out the denominator. The denominator will alwasy be a power of ten. For instance .101 is equal to 101/1000. Hope this gives you a clue. BTW you...
  12. Pappy1942

    What is the QB equivalent of PLOT85

    Hi, Try this URL. http://www.bbcbasic.com/bbcman-p.html Pappy You learn something everyday.
  13. Pappy1942

    char representation of a double

    Hi, How about a union? union dbltoch { double d; unsigned char c[8]; }; Hope this helps. Pappy You learn something everyday.
  14. Pappy1942

    How to write a program that modifies itself?

    Hi, It would seem that changing the program would be easy. The problem would be saving the .exe and thus the changes to the disk. Something to think about. Pappy You learn something everyday.
  15. Pappy1942

    End QBASIC program

    Hi, Trying ending the program with SYSTEM. REM Your basic code REM More basic code . . . SYSTEM 'End of program Pappy You learn something everyday.
  16. Pappy1942

    how to find integer value for an ascii character

    Hi, This should do it. char ch = 'A'; printf(&quot;%d&quot;,ch); Pappy You learn something everyday.
  17. Pappy1942

    Im looking for a java like api documentation for C++

    Hi, If what you mean is a Prog Ref then try this address rs1.szif.hu/~tomcat/win32/ Near the bottom of the page under Knowledge Base you will see WIN32.HLP. Download the Borland C 5.2. That contains an old (1997) but still usable Ref. guide. MSDN is all but useless as a quick ref. Hope...
  18. Pappy1942

    sending hex to serial port

    Hi, You didn't give to much info(compiler, OS etc.) and no code. The only thing I can think of is char buffer[10] = {0X41,0X54); writing this to the port will send &quot;AT&quot; Hope this helps. Pappy You learn something everyday.
  19. Pappy1942

    .exe slower than .bas ?

    Hi, Try the programs below. The &quot;strange&quot; results you got may have to do with variable definition and internal storage. REM Prog #1 DEFLNG A-Z Tcal# = TIMER FOR a = 1 TO 1000000 x = a NEXT a PRINT TIMER - Tcal# 'Rather than getting loops/sec this just gives the time used. REM Prog...
  20. Pappy1942

    Compiling resource files with Borland 5.5 free compiler

    Hi, The compiler is seeing CTEXT &quot;An example ................... Boxes .........&quot;, as an unterminated string. Try putting a backslash after the first line of the quote. CTEXT &quot;An example ................... Boxes .........&quot;, Hope this helps. Pappy...

Part and Inventory Search

Back
Top