|
CString str2;
str2.Format("%s",news);
Will do this.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
|
y such a long link for this?????/
Dream bigger... Do bigger...Expect smaller
aji
|
|
|
|
|
Keeping view of Beginners, I posted that.Itz really good link for Beginners.
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
Its me wrote: y such a long link for this?????/
just a normal habit of programmer.... cut and paste
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
tanarnelinistit wrote: CString str2 = news;
str2.Format("%s");
this will do too, call argument constructor of CString class
CString str2(news);
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Dear all,
I placed a picture control on the Dialog window.Above that picture control I have placed the button control .
But buttons are not visible when the application starts ,I have to click in the place where i have placed the button to make it visible.
How to make the button visible at the time of appication starts?
Manjunath S
GESL
Bangalore
|
|
|
|
|
Check whther the PictureControl is covering the Button Control .
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
Hi,
Its covering the button control .....Is there any way to solve it...
Manjunath S
GESL
Bangalore
|
|
|
|
|
Place the button outside the PictureControl region
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
Hi,
can we give color to a portion of the dialogbox ...
Manjunath S
GESL
Bangalore
|
|
|
|
|
Only to a portion or to whole dialog????
Dream bigger... Do bigger...Expect smaller
aji
|
|
|
|
|
U can paint to a portion of the dialog in OnPaint()
try this one
<br />
CPaintDC dc(this);<br />
CBrush myBrush;<br />
myBrush.CreateSolidBrush( RGB( 250, 200, 0 ));<br />
dc.SelectObject( &myBrush );<br />
dc.Rectangle( 0, 0, 40, 40 );<br />
myBrush.DeleteObject();<br />
CDialog::OnPaint();<br />
To whole dialog use OnCtlColor
Dream bigger... Do bigger...Expect smaller
aji
|
|
|
|
|
wat a good answer
Dream bigger... Do bigger...Expect smaller
aji
|
|
|
|
|
Its mewat a good answer
Thanks.
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
Manjunath S wrote: placed a picture control on the Dialog window.Above that picture control I have placed the button control .
But buttons are not visible when the application starts ,I have to click in the place where i have placed the button to make it visible.
change control ORDER.. by pressing CTRL +D in Dialog Editor!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
whenever i open a new project in vc++ nad tryt to run without any modification it ha error
:\myproject\location\cntritem.cpp(4) : fatal error C1083: Cannot open precompiled header file: 'Debug/location.pch': No such file or directory
Error executing cl.exe.
an u help me?????????how to solve
|
|
|
|
|
I think you need to turn back on the "using pre-compiled header" option, that someone had you disable a few messages back.
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
If you are using VC6, do this.
Project->Settings->C/C+->Category(Precompiled Header files ) , check automatic use of precompiled headers.
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
no its not working i am fed up now.....It has some prob with my stdafx.cpp/.h file while compilation.I have not done any modification.....just opening the new project and try to compiling..thats it....
|
|
|
|
|
priyanka s wrote: just opening the new project and try to compiling
Change the settings as i mentioned in the above post and rebuild , It will work..
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
believe me i have done the same like told me....but its not working..error is there..i have restart my pc also
|
|
|
|
|
Compile only the StdAfx.cpp once which is in ur Workspace.
Then try to build all the project
Dream bigger... Do bigger...Expect smaller
aji
|
|
|
|
|
I have done and this error comes there only.....after compilation
|
|
|
|
|
Did you mean after compliling StdAfx.cpp alone?????
Dream bigger... Do bigger...Expect smaller
aji
|
|
|
|