If you got the second string which is to be converted in
*string you could try this:
#include <string.h>
char str2[] = "1234567890";
int cnt = strspn ( string, str2 );
Type: Posts; User: Onkel BeBu
If you got the second string which is to be converted in
*string you could try this:
#include <string.h>
char str2[] = "1234567890";
int cnt = strspn ( string, str2 );
i dont know but perhaps this will help you
SendMessage(
HWND hWnd,
UINT Msg,
WPARAM wParam,
LPARAM lParam
);
thx i searched for something like that!!
Hi i got following problem:
I get a string which consists of substrings seperated by :
In fact they can look like one of these
POS:X:DIST:IMM
POS:DIST:IMM
POS:IMM
I am writing a small konsole game ( tic tac toe, what else :) ) and want to get a number from the user. Now i dont want that the user has to hit enter. I hope that is enough that too understand me.
Sorry forgot to say that this line signal (SIGCHLD, SIG_IGN);
has to be removed. In POSIX stands you must not use sigchld with sig_ign. Dont know anymore why, you can just dig for yourself or accept...
Hi
i want to create a programm that "forks" itself into the background. If i use fork and exit the main process the child process are all terminated. So has anybody help?
The port issue is simple to solve, you hace to convert it to networkbyte order, just like you did it with the ip:
sin.sin_port = htons(6666);
For your processes you can add following...
Is it possible to remove an other apps icon from the systray?
I am going to write a frontend for an app and therefore want to give the user the possibilty to completly hide the other app, until it...
No thanks Fordys post has completly solved the problem
Is it possible to get the status of other windows, e.g. if it is minimized or maximized?
To be more concrete i got a windowhandle and now i want to know the status of this window.
BOOL InvalidateRect(
HWND hWnd, // put here your window handle
CONST RECT* lpRect, // if this is NULL the entire window gets an update
BOOL bErase // if this is true the...
You could also use InvalidateRect(); and put it into the loop where you query the messages
Hi,
i want to make an app that is never shown in the taskbar, bur always in the systray. I have searched the board but i only found example for minimizing to tray
Is it ossible to have free window shapes?
I think of following :
I got an transparent png, and now i want to only paint the area
the png is nontransparent. When i do it in the normal way the...
Thanks it worked.
Hello
i am using vc++ 6 and watend to know how you can do, that a window is drawn like it belongs to the background, so that it does not cover other windows?