|
There is no code actually. Its all done in design time.
|
|
|
|
|
Did you change from MBCS to Unicode in the same project? If yes, try cleaning and rebuilding the whole project if you did not try it yet.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
Thats the thing Im doing now.. I'll let you know..
|
|
|
|
|
But I added a new dialog, placed a picture control on it and loaded a bmp. It works fine in unicode also. I think it should not be specific to property sheets.
what do you say ?
|
|
|
|
|
Hi,
Cant you help me?
what is the command for c++ if i want to read the line but with the condition.
if LINE contains "my" copy the whole LINE.
example:
myData.txt
1. Hello my dear!
2. Good day!
when i access the myData.txt the first line is "Hello my dear!"
i want to copy the line if contains "my" .
thanks
|
|
|
|
|
Common sense says:
- Read a line (exit on 'no-more-lines' condition).
- Search for
"my" inside the read string. - Copy the line if the search of point (2) was succesful.
- Goto point (1).
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]
|
|
|
|
|
thanks but my question is "What is the command?"
|
|
|
|
|
If you're using MFC , the CString::Find method [^] is the proper 'command'.
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 will try this..
thanks...
|
|
|
|
|
Hey, nice algo. I doubt he could convert it into proper code. But he should !
|
|
|
|
|
can you help me?
its like in visual basic, but im beginner in c++.
InStr(1, line, "string", vbTextCompare)
thanks
|
|
|
|
|
Along with the link given by CPallini, you can have a look at this[^] for reference if you aren't using MFC.
|
|
|
|
|
mac_g wrote: what is the command...
There is no single command to do this. It will all depend on what type of variable you are reading the line of text into (e.g, CString , string , char ).
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
I developed an MFC SDI application.I need to provide multimonitor support for my application.
Can any body help ...me on this issue..
Thanks in Advance,
Ashok.
|
|
|
|
|
ashokbngr wrote: I need to provide multimonitor support for my application.
Is this your requirement or your issue?
(just joking...)
- ns ami -
|
|
|
|
|
|
Thanks for the information..
If I move my application to another monitor..How to get and set the coordinates of the monitor( I mean at (0,0) location of the other monitor).
Thanks in advance,
Ashok.
|
|
|
|
|
|
Thanks Randor ..for the information.
I will try to fix..with the same..thanks a lot
|
|
|
|
|
|
Seems this is not a Windows Native API. Link with the particular lib file contains definition for the function. and also make sure that it has built using 64 bit compiler.
-Sarath.
"Great hopes make everything great possible" - Benjamin Franklin
modified on Monday, February 2, 2009 7:01 AM
|
|
|
|
|
Hi,
I want to append line to file i tried like this:
CString strNewWord (_T(" Test line to write"));
CStdioFile file;
file.Open(strSystemPath,CFile::modeWrite|CFile::modeNoTruncate,NULL);
file.SeekToEnd();
CString strWriteData("\\n ");
strWriteData+=strNewWord;
file.WriteString(strWriteData);
file.Close();
this code appends data but in single line (assume no compile time errors):
\n Test line to write\n Test line to write\n Test line to write
I want like this:
Test line to write
Test line to write
Test line to write
|
|
|
|
|
CString strNewWord (_T(" Test line to write"));
CStdioFile file;
file.Open(strSystemPath,CFile::modeWrite|CFile::modeNoTruncate,NULL);
file.SeekToEnd();
CString strWriteData("\n ");/*(Here you ve gone wrong no need to give "\\n" for a new line just "\n" is enough)*/
strWriteData+=strNewWord;
file.WriteString(strWriteData);
file.Close();
Use this code this will be working .
Thanks & Regards
VIJITH VIJAYAN
|
|
|
|
|
You were answered a few lines down.
Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
|
|
|
|
|
I am displaying an image in the internal web browser but as the image resolution is high, horizontal and vertical scroll bar are displaying. I want to display the image fit to the browser ie image resolution will be compressed according to browser size.How is it possible?
Note: I am using VC++6 and ActiveX control.
|
|
|
|