Click here to Skip to main content
15,929,811 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralEvent handler for a dynamically created control Pin
Gurou13-May-02 22:20
Gurou13-May-02 22:20 
GeneralRe: Event handler for a dynamically created control Pin
Aizik Yair13-May-02 23:10
Aizik Yair13-May-02 23:10 
GeneralRe: Event handler for a dynamically created control Pin
Alex Cramer13-May-02 23:44
Alex Cramer13-May-02 23:44 
Generalmutex owned by a process Pin
confalonieri13-May-02 22:23
confalonieri13-May-02 22:23 
GeneralRe: mutex owned by a process Pin
Oleksandr Kucherenko14-May-02 2:34
Oleksandr Kucherenko14-May-02 2:34 
QuestionHow to count Words in a string? Pin
Alex Cramer13-May-02 22:17
Alex Cramer13-May-02 22:17 
AnswerRe: How to count Words in a string? Pin
Alexandru Savescu13-May-02 22:22
Alexandru Savescu13-May-02 22:22 
GeneralRe: How to count Words in a string? Pin
Alex Cramer13-May-02 23:40
Alex Cramer13-May-02 23:40 
Thanks! Here was example:

* STRTOK.C: In this program, a loop uses strtok
* to print all the tokens (separated by commas
* or blanks) in the string named "string".
*/

#include <string.h>
#include <stdio.h>

char string[] = "A string\tof ,,tokens\nand some more tokens";
char seps[] = " ,\t\n";
char *token;

void main( void )
{
printf( "%s\n\nTokens:\n", string );
/* Establish string and get the first token: */
token = strtok( string, seps );
while( token != NULL )
{
/* While there are tokens in "string" */
printf( " %s\n", token );
/* Get next token: */
token = strtok( NULL, seps );
}
}


Output

A string of ,,tokens
and some more tokens

Tokens:
A
string
of
tokens
and
some
more
tokens
GeneralUsing SECURITY_ATTRIBUTES in threads Pin
Philip Patrick13-May-02 21:48
professionalPhilip Patrick13-May-02 21:48 
GeneralDumb question ahead... Pin
Nish Nishant13-May-02 21:41
sitebuilderNish Nishant13-May-02 21:41 
GeneralRe: Dumb question ahead... Pin
Michael P Butler13-May-02 22:19
Michael P Butler13-May-02 22:19 
GeneralRe: Dumb question ahead... Pin
Nish Nishant13-May-02 22:59
sitebuilderNish Nishant13-May-02 22:59 
GeneralTelephony class-active X Pin
Js0n13-May-02 20:38
Js0n13-May-02 20:38 
GeneralResize the size problem of the window Pin
chen13-May-02 20:17
chen13-May-02 20:17 
GeneralRe: Resize the size problem of the window Pin
Paul M Watt13-May-02 20:33
mentorPaul M Watt13-May-02 20:33 
GeneralRe: Resize the size problem of the window Pin
Alexandru Savescu13-May-02 22:11
Alexandru Savescu13-May-02 22:11 
GeneralDrawing metafile with my colors Pin
13-May-02 20:18
suss13-May-02 20:18 
GeneralRe: Drawing metafile with my colors Pin
13-May-02 21:41
suss13-May-02 21:41 
GeneralCalling Dll functions from VC++ Pin
RajaSingh R13-May-02 18:42
RajaSingh R13-May-02 18:42 
GeneralRe: Calling Dll functions from VC++ Pin
Paul M Watt13-May-02 18:38
mentorPaul M Watt13-May-02 18:38 
GeneralRe: Calling Dll functions from VC++ Pin
RajaSingh R13-May-02 20:47
RajaSingh R13-May-02 20:47 
GeneralRe: Calling Dll functions from VC++ Pin
James R. Twine14-May-02 5:15
James R. Twine14-May-02 5:15 
Generalclaiming focus for a dialog Pin
Richard Ellis13-May-02 18:09
Richard Ellis13-May-02 18:09 
GeneralRe: claiming focus for a dialog Pin
Nish Nishant13-May-02 19:56
sitebuilderNish Nishant13-May-02 19:56 
GeneralRe: claiming focus for a dialog Pin
Richard Ellis13-May-02 20:08
Richard Ellis13-May-02 20:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.