Click here to Skip to main content
15,902,842 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionmultilingual support Pin
Varun Bhatt1-Mar-09 19:30
Varun Bhatt1-Mar-09 19:30 
AnswerRe: multilingual support Pin
Hamid_RT1-Mar-09 19:57
Hamid_RT1-Mar-09 19:57 
Question2 Doc & 2 Views. Pin
grassrootkit1-Mar-09 19:26
grassrootkit1-Mar-09 19:26 
AnswerRe: 2 Doc & 2 Views. Pin
Stuart Dootson1-Mar-09 21:37
professionalStuart Dootson1-Mar-09 21:37 
GeneralRe: 2 Doc & 2 Views. Pin
grassrootkit1-Mar-09 22:40
grassrootkit1-Mar-09 22:40 
GeneralRe: 2 Doc & 2 Views. Pin
Stuart Dootson1-Mar-09 23:12
professionalStuart Dootson1-Mar-09 23:12 
GeneralRe: 2 Doc & 2 Views. Pin
grassrootkit1-Mar-09 23:38
grassrootkit1-Mar-09 23:38 
QuestionC question about Split and remove substring Pin
nyc_6801-Mar-09 19:04
nyc_6801-Mar-09 19:04 
I want to remove the character '=' and substring "%%&&**" from an input string s. The code below work fine, but if there are multiple substring, the code will only remove the substring once.


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


char *Mystrcpy1(char *s, const char *cs);
void func1(char *src, char *sub);

int main(void)
{
char s[32], *substr = "cc";


Mystrcpy1(s,"aabbccdd");
printf("From the string: \"%s\"\n",s);
printf("We will attempt to remove substring \"%s\"\n",substr);
func1(s,substr);
printf("Using function Mystrcpy1. The result: \"%s\"\n\n",s);

return 0;
}


char *Mystrcpy1(char *s, const char *cs)
{ /* Copy from beginning of string cs to the end */
char *s1;
const char *cs1;


for(s1 = s,cs1 = cs; '\0' != (*s1 = *cs1); s1++,cs1++) ;
return s;
}



void func1(char *src, char *sub)
{ /* Using function Mystrcpy1 */
char *p;


if ((p=strstr(src,sub)) != NULL)
Mystrcpy1(p,p+strlen(sub));
return;
}
AnswerRe: C question about Split and remove substring Pin
Nishad S1-Mar-09 19:16
Nishad S1-Mar-09 19:16 
GeneralRe: C question about Split and remove substring Pin
nyc_6801-Mar-09 19:45
nyc_6801-Mar-09 19:45 
AnswerRe: C question about Split and remove substring Pin
sam_psycho1-Mar-09 20:01
sam_psycho1-Mar-09 20:01 
QuestionUnable to create SAFEARRAY Pin
pandit841-Mar-09 18:56
pandit841-Mar-09 18:56 
AnswerRe: Unable to create SAFEARRAY Pin
Stuart Dootson1-Mar-09 21:48
professionalStuart Dootson1-Mar-09 21:48 
GeneralRe: Unable to create SAFEARRAY Pin
pandit841-Mar-09 23:04
pandit841-Mar-09 23:04 
Questionreading audio file properties like artist,genre,album etc using VC++ 6 Pin
punav1-Mar-09 18:08
punav1-Mar-09 18:08 
AnswerRe: reading audio file properties like artist,genre,album etc using VC++ 6 Pin
«_Superman_»1-Mar-09 18:19
professional«_Superman_»1-Mar-09 18:19 
QuestionRe: reading audio file properties like artist,genre,album etc using VC++ 6 [modified] Pin
punav1-Mar-09 18:35
punav1-Mar-09 18:35 
AnswerRe: reading audio file properties like artist,genre,album etc using VC++ 6 Pin
Ken Mazaika1-Mar-09 18:22
Ken Mazaika1-Mar-09 18:22 
AnswerRe: reading audio file properties like artist,genre,album etc using VC++ 6 Pin
Jijo.Raj1-Mar-09 19:11
Jijo.Raj1-Mar-09 19:11 
QuestionHandle Show Desktop in MFC. Pin
Le@rner1-Mar-09 18:02
Le@rner1-Mar-09 18:02 
AnswerRe: Handle Show Desktop in MFC. Pin
grassrootkit1-Mar-09 20:13
grassrootkit1-Mar-09 20:13 
GeneralRe: Handle Show Desktop in MFC. Pin
Le@rner1-Mar-09 20:16
Le@rner1-Mar-09 20:16 
QuestionRe: Handle Show Desktop in MFC. Pin
grassrootkit1-Mar-09 20:29
grassrootkit1-Mar-09 20:29 
AnswerRe: Handle Show Desktop in MFC. Pin
Le@rner1-Mar-09 20:33
Le@rner1-Mar-09 20:33 
GeneralRe: Handle Show Desktop in MFC. Pin
grassrootkit1-Mar-09 21:08
grassrootkit1-Mar-09 21: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.