|
|
Stripping <items in="" here=""> from a text file
what i wan to do is get rid of items in <items in="" here="">
for example, for the string "dsafgsgwrgh<itema>grsgwrhhwr<itemb>fsdf"
i want to get rid of "itema" and "itemb"
here is my code
- open file
- copy file to a CString
- look for <
- look for >
CString file_string;<br />
CString file_string_temp;<br />
int start_index;<br />
int end_index;<br />
f.Read(file_string.GetBuffer(f.GetLength()),f.GetLength());<br />
<br />
start_index = file_string.Find("<");<br />
end_index = file_string.Find(">");<br />
file_string_temp = file_string.Left(start_index);<br />
<br />
int aaa = file_string.GetLength();<br />
int b=5;
but unfortunately it doesnt work
is the file too big? the file is about 2,000,000,000 in f.GetLength
[B]file_string.Left(start_index);[/B] copies the entire file_string instead of only copying left strings
can somebody tell me what's wrong?
|
|
|
|
|
Hi,
I am working on localization and I have to change the texts of "Next","Back" and "Finish" buttons which are displayed on the property pages.I need to change those texts to make them meaningfull in other language.
So,Can you please suggest me how can change those button texts?
With Regards
Neeraj Sinha
|
|
|
|
|
Do you need to multi languages on your program?
|
|
|
|
|
Yes ofcourse, I need to have multi languages in my application.
With Regards
Neeraj Sinha
|
|
|
|
|
|
You shouldn't be changing those buttons. They are part of the wizard control, and messing with them is likely to break in future OSes (for example, the Back button in Vista has no text and the wizards have other design changes).
|
|
|
|
|
Place the text in string table.
Load the string from string table.
Set the text of the button using this text.
Afterwards you can change the strings in string table and again build the project and therefore the changed text will be reflected on the buttons.
Satellite DLLs can help in Localization.
|
|
|
|
|
Is there a way to easily change the name of a workspace/project (VC6) or does it have to be a copy done in some way? If the latter, how can I make sure all my settings etc are the same for a clean compile.
I'd rather just rename it to be honest, and get the final executable to follow that name change
cheers
Lee
|
|
|
|
|
|
Hi,
I am developing video player in C++ using SDL and FFMpeg , i tried to run the sample code which comes with the ffmpeg.
I downloaded all the source file from
svn://svn.mplayerhq.hu/ffmpeg/trunk
when i compiled using msys and mgwin its not working
$ lib
when i entered lib command it said no command found
i want compiled ffmpeg libraries and dll anybody tell me where i can download
please help me thanks in advance
-- modified at 8:40 Friday 29th June, 2007
|
|
|
|
|
I am also trying to do the same thing. Were you able to solve your problem ?
|
|
|
|
|
Can anyone explain why we use COM.
|
|
|
|
|
See here[^]
I think it will help,
Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
My Blog: ^_^
|
|
|
|
|
Hi all,
I am sending video from one system to another using TCP protocol and i am constructing a filter graph using DirectShow and using the wmv codec for compression.But i am getting the delay of about 10 seconds in seeing the video from sender to receiver.If anyone has any idea why such delay is there.
Filter graph is like this on the sender/Transmitter side:
Video Capture-->SmarTee(capture)-->Video Compressor-->Sender
SmartTee(preview)-->Elecard color space-->Video Renderer
Regards,
Mayank
|
|
|
|
|
That depends on the codec settings and what "sender" and receiver you are using.
You need to configure preroll and buffering settings where spplicable.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi
I am useing ShellExecute() function for open Internet Expoler
Using this code
UpdateData(TRUE);
ShellExecute( 0, "open","C:\\Program Files\\Internet Explorer\\IEXPLORE.EXE",0,0,SW_SHOW);
Its work correctly....
Now I want When i press OK Button a A web page (Suppose www.codeproject.com )open
can any one told me how can i do this
Regard's
Kaushik
|
|
|
|
|
ShellExecute( 0, "open","www.codeproject.com",0,0,SW_SHOW);
|
|
|
|
|
Thank you So much sir
Regard's
Kaushik
|
|
|
|
|
No problemo
|
|
|
|
|
Do you need to CDhtmlDialog ?
|
|
|
|
|
I make a application ( Program )in MFC Modal Dialog based now.
Suppose i make a button in any form . I need when i press it
an SDI Application open ( I don't know Its possible or not)
If Yes How can we call SDI program .
How we will be set depedency between project.
Regard's
Kaushik
|
|
|
|
|
I dont know this message is like your previous message or is different if you want to open html page on your program you can also use of CHtmlView .
|
|
|
|
|
Checkout the XHyperLink[^] article.
There you'll find the static method CXHyperLink::GoToURL() which does some advanced checking instead of just ShellExecute 'ing the passed URL. Since the method is static you can just copy&paste the method into your own code if you don't want to use the whole CXHyperLink class.
cheers,
mykel
OMM: "Let us be thankful we have an occupation to fill. Work hard, increase production, prevent accidents and be happy."
|
|
|
|
|
Thanks
for such a nice article
Regard's
Kaushik
|
|
|
|