Click here to Skip to main content
15,894,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to replace string in _bstr_t Pin
gothic_coder13-Mar-09 0:54
gothic_coder13-Mar-09 0:54 
AnswerRe: How to replace string in _bstr_t Pin
Ash_VCPP13-Mar-09 1:23
Ash_VCPP13-Mar-09 1:23 
GeneralRe: How to replace string in _bstr_t Pin
gothic_coder13-Mar-09 1:50
gothic_coder13-Mar-09 1:50 
GeneralRe: How to replace string in _bstr_t Pin
Ash_VCPP13-Mar-09 1:53
Ash_VCPP13-Mar-09 1:53 
GeneralRe: How to replace string in _bstr_t Pin
«_Superman_»13-Mar-09 1:53
professional«_Superman_»13-Mar-09 1:53 
GeneralRe: How to replace string in _bstr_t Pin
gothic_coder13-Mar-09 2:35
gothic_coder13-Mar-09 2:35 
GeneralRe: How to replace string in _bstr_t Pin
Ash_VCPP13-Mar-09 2:43
Ash_VCPP13-Mar-09 2:43 
AnswerRe: How to replace string in _bstr_t Pin
Jonathan Davies13-Mar-09 1:42
Jonathan Davies13-Mar-09 1:42 
Something base on the following?

#include "stdafx.h"
#include <string>


int _tmain(int argc, _TCHAR* argv[])
{
	std::wstring str1;
	str1 = L"abc#efg#ijk";

	int found = str1.find_first_of(L"#");
	while(found != str1.npos)
	{
		str1.replace(found, 1, L";");
		found = str1.find_first_of(L"#",found+1);
	}
	return 0;
}

GeneralRe: How to replace string in _bstr_t Pin
gothic_coder13-Mar-09 3:59
gothic_coder13-Mar-09 3:59 
GeneralRe: How to replace string in _bstr_t Pin
gothic_coder13-Mar-09 4:02
gothic_coder13-Mar-09 4:02 
GeneralRe: How to replace string in _bstr_t Pin
Jonathan Davies13-Mar-09 4:21
Jonathan Davies13-Mar-09 4:21 
GeneralRe: How to replace string in _bstr_t Pin
gothic_coder13-Mar-09 4:39
gothic_coder13-Mar-09 4:39 
GeneralRe: How to replace string in _bstr_t Pin
gothic_coder13-Mar-09 5:08
gothic_coder13-Mar-09 5:08 
QuestionError in compiling in release mode in VC++ Pin
kr_ash13-Mar-09 0:52
kr_ash13-Mar-09 0:52 
AnswerRe: Error in compiling in release mode in VC++ Pin
Jonathan Davies13-Mar-09 0:57
Jonathan Davies13-Mar-09 0:57 
GeneralRe: Error in compiling in release mode in VC++ Pin
kr_ash13-Mar-09 2:10
kr_ash13-Mar-09 2:10 
GeneralRe: Error in compiling in release mode in VC++ Pin
Jonathan Davies13-Mar-09 3:10
Jonathan Davies13-Mar-09 3:10 
GeneralRe: Error in compiling in release mode in VC++ Pin
kr_ash13-Mar-09 3:34
kr_ash13-Mar-09 3:34 
GeneralRe: Error in compiling in release mode in VC++ Pin
Jonathan Davies13-Mar-09 4:01
Jonathan Davies13-Mar-09 4:01 
Question[Message Deleted] Pin
sam_psycho13-Mar-09 0:20
sam_psycho13-Mar-09 0:20 
AnswerRe: Z-order changed? Pin
Code-o-mat13-Mar-09 0:42
Code-o-mat13-Mar-09 0:42 
QuestionHow to find how many strings are present? Pin
kapardhi12-Mar-09 23:48
kapardhi12-Mar-09 23:48 
AnswerRe: How to find how many strings are present? Pin
Cedric Moonen12-Mar-09 23:56
Cedric Moonen12-Mar-09 23:56 
AnswerRe: How to find how many strings are present? Pin
Garth J Lancaster13-Mar-09 0:12
professionalGarth J Lancaster13-Mar-09 0:12 
AnswerRe: How to find how many strings are present? [modified] Pin
A_xin13-Mar-09 0:52
A_xin13-Mar-09 0:52 

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.