|
yes i am, as i already said, that piece of code is all messed up
|
|
|
|
|
I every one,
I want to know the maximum characters a String type can contain . 256 characters or more ?
|
|
|
|
|
|
Nemanja Trifunovic wrote: More
you couldn't answer more precisely on what the guy asked
|
|
|
|
|
as opposed to "your in the wrong group,
your in the wrong group"
|
|
|
|
|
I am feeling a little hate here! Nevertheless, the "prime directive" is to post your questions in the correct forum. However, we do need to use a little tact in informing someone of the "prime directive".
|
|
|
|
|
No hate... And it wasn't directed
at you, as your help is invaluable
to me and to others I'm sure.
Seems some just live to tell others
they've posted in the wrong group.
Group is quite, maybe we could just
start posting the managed answer to
whatever question was asked in
addition to telling the OP the error
of their ways.
Cheers,
Paul
|
|
|
|
|
I understand! I guess doing that is an easy way to increase your number of posts!
|
|
|
|
|
I sorry to post my messsage in a wrong group . But I don't know where is the accurate group for my message ?
-- modified at 2:13 Thursday 16th March, 2006
|
|
|
|
|
pardon ?
what the problem ?
i sincerely don't understand your intervention...
what does that mean ?
and how does it relates to me ?
|
|
|
|
|
Ok . It's more . But how much exactly ? can I set 4096 characters to a String ?
|
|
|
|
|
A 4096-character string wouldn't be a problem. You have a lot of room to work with? Just remember that the string-type does not mutate. Everytime you make a change, .NET creates a new instance with the change. There may be exceptions to this but a string is pretty much immutable. Of course, StringBuilder is mutable but it has its own overhead.
|
|
|
|
|
Since the String.Length property's type is Int32, it might be 2,147,483,647. Using large strings, can lead to a HEAP of trouble!
-- modified at 17:58 Wednesday 15th March, 2006
|
|
|
|
|
HEAP of trouble...
|
|
|
|
|
I'm testing my parallel port with the Borland C 5.5 compiler:
.....
.....
.....
while(!kbhit())
{
int data;
data=(inp32)(PORT+1);
gotoxy(3,10);
printf("Data available in status register: %3d (Decimal), %3X (hex)\n", data, data);
printf("\n Pin 15: %d",(data & 0x08)/0x08);
printf("\n Pin 13: %d",(data & 0x10)/0x10);
printf("\n Pin 12: %d",(data & 0x20)/0x20);
printf("\n Pin 11: %d",(data & 0x80)/0x80);
printf("\n Pin 10: %d",(data & 0x40)/0x40);
delay(10);
}
When I compile the program, it gives the following error:
Error: Unresolved external '_delay' reference from location
What is the use of delay(10) and gotoxy(3,10) in the program? Please advice.
Thank You
-- modified at 10:43 Wednesday 15th March, 2006
|
|
|
|
|
I have compiled a VC6.0 project under VS2005 and it compiles fine but when I try to run it on a machine that doesn't have VS2005 installed it comes up with:
"This application has failed to start because the application configuration is incorrect. Reinstalling the apllication may fix this problem."
So I guess that a single executable is no longer enough. What else do I need?
Any help is greatly appreciated.
I'm pretty sure I would not like to live in a world in which I would never be offended.
I am absolutely certain I don't want to live in a world in which you would never be offended.
Dave
|
|
|
|
|
provides the correct dlls with your application...
ps: did you notice that you were writing in a managed C++ forum ?
your question seems to have nothing to deal with MC++ code as it comes from VC6. so, next time, please post on the correct forum. thanks
|
|
|
|
|
Thanks - how do I determine which DLLs it needs?
re P.S.
Which forum would you recommend? Is this a problem with managed C++? .NET framework? Soapbox?
I couldn't decide so I took a shot at the one I thought might have people responding who have run into this problem before.
I'm pretty sure I would not like to live in a world in which I would never be offended.
I am absolutely certain I don't want to live in a world in which you would never be offended.
Dave
|
|
|
|
|
|
The Managed C++ forum is for managed C++. Unless you created a new project, your project is not MC++, by definition, so the Visual C++ forum is the one you wanted.
If your app uses MFC, you need the MFC 8 dlls. If you use the C run time, you need the MSVCRT 8 dlls. To add insult to injury, these dlls require installation in the WinSXS directories, I believe.
There used to be a tool called 'depends' ( from memory ) which told you what your app needed. I think it came with VC6, so you probably have it.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Thanks - sorry about the wrong forum.
I'm pretty sure I would not like to live in a world in which I would never be offended.
I am absolutely certain I don't want to live in a world in which you would never be offended.
Dave
|
|
|
|
|
DRHuff wrote: sorry about the wrong forum.
That's cool. I only commented in depth to answer your question to another reply, and I'd only mention it because the right forum will get you a better hit rate for answers. The only 'wrong' forum that's a sin to post to here is the lounge ( that is, with programming questions )
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
After I Build it ,It says:
"LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/my_c.exe : fatal error LNK1120: 2 unresolved externals" while no error(s) and no warning(s) when I Compiled it.
Thanks for help!
|
|
|
|
|
Make sure your linker directories are set right, and that LIBCD.lib is avail for your linker.
|
|
|
|
|
I want to start using a .NET dll in my “old” MFC project. How do I create a managed class member inside an unmanaged class?
Here is an example of my h-file:
#pragma once<br />
class CViewerVS8_TestProjectDlg : public CDialog<br />
{<br />
…<br />
private:<br />
CDBLibHandler^ db = gcnew CDBLibHandler();<br />
};
… and I got the compiler error: error C2143: syntax error : missing ';' before '^'
_____________________________
...and justice for all
APe
|
|
|
|