|
ya.. it is set to multiline.. still its not working.. do u think "\n" will work in CString??
regards,
Rookie
|
|
|
|
|
even i tried like this
char c[20];
strcpy(c,"line 1\n");
strcat(c,"line2\n");
CString cs;
cs = c;
m_Control.setWindowText(cs);
its displaying like "line1|line2";
please help.
thanks,
Rookie
|
|
|
|
|
Try
CString cs;
cs="test string line1 \r\n";
cs +="test string line2\r\n";
cs +="test string line3\r\n";
...
AndyC
|
|
|
|
|
Andy \r\n is working .... its workingggg...
thanx thanx thanx thanx...
regards,
Rookie
|
|
|
|
|
yes it does, but be careful, it is windows specific !!
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
A carriage return is \r . A line feed is \n . A CRLF pair is \r\n . This has nothing to do with CString .
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Hai..
i need to extract UTF8 data from the MS Word Application. Please let me know how to solve this problem.
Thanks,
E.Veera Raghavnedra
|
|
|
|
|
Hi,
I have the following wrapper to FormatMessage that helps the caller not worry about freeing the memory required for the error description string. This works great for me, but I would like to know this can be extended to using in multiple threads too. Any comments and ideas? Thanks in advance.
<br />
_TCHAR *error_string (DWORD errCode)<br />
{<br />
static _TCHAR szMsgBuf[4096]; <br />
_TCHAR *pMsgBuf = (_TCHAR *)szMsgBuf;<br />
DWORD result;<br />
<br />
ZeroMemory(szMsgBuf, sizeof(szMsgBuf));<br />
<br />
result = FormatMessage( FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,<br />
NULL, <br />
errCode, <br />
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
pMsgBuf, <br />
sizeof(szMsgBuf), <br />
NULL );<br />
<br />
if (result == NULL) return NULL;<br />
<br />
return pMsgBuf; <br />
}<br />
|
|
|
|
|
As built, you would need to use thread local storage. So in general, I would change your solution to return something such as a managed string if you can.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
Can you briefly explain what is a managed string?
|
|
|
|
|
HI
I'm beginner in C++ Builder, And need to know how I can read from textbox or richtextbox.
And how I should draw Function like (y=sin(x)), IN VB usually drawing is in picturebox,
but I'm not very familiar with C++ structure. I need the source code, cause I Havn't enough
time now to learn it, I should learn it later. if you can guide me.
thank you.
TA RedStar
|
|
|
|
|
reposting the same question will never change the answers...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
THis was just my browser or my connection error.
thank you for your reminder.can you help me to find source code??
TA RedStar
|
|
|
|
|
oh, i was just saying this because you asked this question few days ago...
i also posted to you some links that "i thought" they were answering your request...
moreover, you have a [delete] link at the bottom of your posts if you wrote one twice.
however, is this[^] and this[^] satisfying you ??? if not, search CodeProject for Charting Controls[^]...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Thank you but it didn't work I don't know why!
I have Microsoft VC++ 6.0 and (borland) C++ Builder.
Can you help me to correct or make them working?
you can say where or what compiler is more match.
And how i should get text from editbox? or separate operand from numbers & function (sin), I Have acode that do it in dos .exe how can i convert or attach it to my win app??
i Have problem with delete key down of my message!! it give error!
TA RedStar
|
|
|
|
|
TA-RS wrote:
And how i should get text from editbox? or separate operand from numbers & function (sin),
i suggest you to have a look at my article : VisualCalc.
cheers,
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Can you guide me get MSDN?!!
When i press F1 in my V.studio it say ishould install it but it is not on my cd I search it in my local area but couldn't find. Is it big for download?
Once I setup WINXP that said had MSDN (WIN XP 2001 MSDN Ver- iThink was it Title). Even I don't know what is Msdn exactly.
when I setup V.studio in last step I have to cancel MSDN setup offer.
TA RedStar
|
|
|
|
|
You can also find online help here[^]
For your problem, if you don't give us more details (errors you encounter, if these are compile errors or crashes, ...), we won't be able to help you (nobody here can read what's on your screen ). Just one question: are you using an application with MFC (Microsoft Fundation Classes) ? Otherwise, this won't work because the controls on this website use the MFC (and I suppose in Borland, they are not available).
|
|
|
|
|
I work with VC++ 6.0 with MFC and unfortunatly I have not always internet connection for help and Not even compiler help!
It give me request for install MSDN but I couldn't find it(it is not on my cd)
TA RedStar
|
|
|
|
|
Usually, it comes in a second CD.
|
|
|
|
|
From MSDN online help:
"The Microsoft Developer Network (MSDN) is a set of online and offline services designed to help developers write applications using Microsoft products and technologies..."
It's normally added to your PC when you intall Visual Studio but if you can't install it you can find it at http://msdn.microsoft.com/[^].
Particullary, for VC++ and MFC[^]
|
|
|
|
|
I Have not an always online connection . and it is not any cd in my
local area that has it.my local internet is too slowe,with heavy filtering and some extance expensive (about 1$ for 2 hour Espicially distance calling) any way can you help me get an callback membership from where
TA RedStar
|
|
|
|
|
How? If you can't access to Internet and nobody has the msdn cd ...
|
|
|
|
|
there is a problem seemed to be with my visual studio, because whenever i execute my( any type of ) VC++ project, it gives an error of
"error executing cl.exe"
|
|
|
|
|
Do you have enough access right to execute the program?
Check if the program "cl.exe" is in your "bin" directory of your visual studio installation.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|