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.
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.
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.
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.
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...
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.
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.
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("\n%d %d %d",x[0], x[1],x[2]);
// Second part
printf("\n%d ",*x);
++x;
printf("\n%d ",*x)...
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...
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.
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...
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 "AT"
Hope this helps.
Pappy
You learn something everyday.
Hi,
Try the programs below.
The "strange" 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...
Hi,
The compiler is seeing
CTEXT "An example ...................
Boxes .........",
as an unterminated string.
Try putting a backslash after the first line of the quote.
CTEXT "An example ................... Boxes .........",
Hope this helps.
Pappy...
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.