cupidkiss

Hi guys,

I've got a problem with enter. As I remember chr(13)+chr(10) could form a enter key in VB6.0, how should I do this in VC2005

Thanks a lot for help

Best Regards



Re: Visual C++ Language How should I generate an enter?

crescens2k

Well, what are you trying to do and what technology are you using. In VC2005 what you choose depends on what you are using.

If you just want a new line in a text string then you would use \r\n (or just \n if you are using the CRT).






Re: Visual C++ Language How should I generate an enter?

Simple Samples

cupidkiss wrote:
As I remember chr(13)+chr(10) could form a enter key in VB6.0

Actually only chr(13) is the equivalent of the enter key.

As crescens2k indicates, for this at least, it is irrelevant what VB does or how it does it. What matters is what you need to do now, and how to do it using C++.