|
Yeap Thanks,
CString::Tokenize works better if we are getting the text in CSTring object, as I was using CStdioFile::readString().
|
|
|
|
|
This is a good answer, but I think it's interesting to mention that when dealing with large files, reading line-by-line will make this a very slow process.
Reading the file or a large part of it into memory and then scanning that would speed it up.
modified 13-Sep-18 21:01pm.
|
|
|
|
|
That is true, but Windows also does this for you by pre-fetching from disk to memory.
So even if you do this, the performance improvement may not be so great.
But you never know.
|
|
|
|
|
See the section titled "A string tokenizer" here.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Some people are making such thorough preparation for rainy days that they aren't enjoying today's sunshine." - William Feather
|
|
|
|
|
i have a project depend on converting mathematical C formula to mathematical formula used in calcualtors
for example
pow(x , 2 ) .....>x^2
the same as roots and all expreesions
which topics i must search ? must i search for tex and latex and MathML ?
help please
thnx in advance
|
|
|
|
|
You may try yourself to build a parser for.
What has it to do with TeX (i.e. formula used in calculators are pretty different by formula produced by TeX)?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
i cannot understand from where i must begin and what topics exactly i must know
|
|
|
|
|
Is that homework (I mean do you need to write yourself the 'expression parser' or you may use a tool)?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
it's part of project i need write expreesion parser
|
|
|
|
|
The you may use a tool, like, for instance, Boost Spirit[^] or ANTLR[^] or the oldie-goldie bison[^]-flex[^] pair.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
|
You are welcome.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi All,
Where I can get the free ebook
Inside COM by dale rogerson
|
|
|
|
|
It's not free, as far as I know.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Yes , there is NO e-book available for download.
|
|
|
|
|
Thread marked as answered.
"Real men drive manual transmission" - Rajesh.
|
|
|
|
|
Thank you, man.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi!
I've to mail a file to an id using MFC. How to do this?
|
|
|
|
|
Something like one of these[^] perhaps.
The best things in life are not things.
|
|
|
|
|
pix_programmer wrote: How to do this?
Start here.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Some people are making such thorough preparation for rainy days that they aren't enjoying today's sunshine." - William Feather
|
|
|
|
|
Here it is. [^]
A Very well encapsulated and easy to use class by Jakub Piwowarczyk.
You can directly use it in your MFC project.
|
|
|
|
|
Hi,
I have derived CMyFileDialog from CFileDialog.
Defining the OnFolderChange I can handle CDN_FOLDERCHANGE
void CMyFileDialog::OnFolderChange()
{
// Code to change folder
}
I can access the "look in" ComboBox (cmb2) and the list box that displays
the contents of the current drive or folder (lst1).
How can I change the folder so that also the list box change its content?
I tried with GetCurrentDirectory(), but obviuosly it doesn't work, neither
cmb2 nor lst1 are graphically updated. Using SetCurSel on cmb2 the lst1
is not updated.
I need that both cmb2 and lst1 change.
Thanks,
|
|
|
|
|
Shouldn't you use SetCurrentDirectory ?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi,
Thank you for your reply.
"SetCurrentDirectory" does not work for me.
I tried to add a "button" to file open dialog box. After I click this button, I want the file open dialog box to change its current Directory.
Thanks,
|
|
|
|
|
I want to make a dialog based application with a Modeless Dialog similar to the OSK.exe shipped with windows . This modeless dialog box should not receive focus once I have set focus to another window of another process for e.g Notepad Window. Can somebody help ?
|
|
|
|