atof() is fine, and ANSI. But I think ma55acre uses CBuilder...
Type: Posts; User: Dharius
atof() is fine, and ANSI. But I think ma55acre uses CBuilder...
try
Edit3->Text = FloatToStr(Result);
good luck
It is possible to use a BIOS interruption. But I'm not sure how portable it willt be :rolleyes:
At least PC x86 compatible.
kbhit() should be the same call of (low level, BIOS interruption):
...
Take a look at Winprog Tutorial
And look at the nice MingW - GNU Compiler for Windows
Try:
long hInstance = GetWindowLong(NULL, GWL_HINSTANCE);
good luck
You'd better read the whole file at once.
Just get its size and use it in the first malloc() and fread()
I can not remember if there is a function to directly get its size, but you can do:
...
Hey, MrJake.
There is no mistery.
/* Generates one random letter */
char gen_letter(void)
{
char ch = (rand() % 26) + 'a';
return ch;
Thanks, TNT.
I'll look at that. Now I have some direction. :)
I'm somewhat new to C programming at Windows.
I cannot find the message to change the color of a control, like an edit box.
I'll use that when the control get and lost focus.
What message can I...
The problem is that "string" is passed to the function convert();
change this:
int main()
{
char strTest[] = "string";
cout <<"\nBefore: " << strTest << endl;
The declaration 'Gemstone ruby; ' is local to CreateStones()
If you place it outside the function, it will be global.
That should be:
char first = input[0];
instead of:
char first = index[0];
right?
#include <stdio.h>
FILE *TextFile;
char sFileName[] = "file1.txt";
char sBuff[200];
/* Try to open */
if ( (TextFile = fopen(sFileName,"r")) == NULL)
{
Nice idea, knave.
What would the better word splitting method? Into syllables?
Random characters passwords are more difficult to memorize, because they seems completely meanless. :)
The...