1) This is a read-only property.
2) System.Text.UnicodeEncoding() is a constructor of a class System.Text.UnicodeEncoding, so it doesn't return any value. It will work only in an expression like
CurrentEncoding = new System.Text.UnicodeEncoding();
as it will create a new instance of this class...
When I use a StreamReader to read a Russian text from a file - id doesn't read it, leaving a blank string. I suppose it happens because there has to be a Russian encoding installed somewhere in msdevenv, so how do I do it?
So, I can assume the Finally section has the same area of vision as the try-catch block?
I mean if I have placed the Close call in the first example into the Finally block - there will be an instance found, right?
And I'm still curious about exceptions reliability. I mean, they do work...
I heard that using exceptions in C++ sometimes causes unpredictable results, even suspending the syspem. Rarely, of course, but it can be destructing in case of business project.
The alternative is writing a module for error handling not using exceptions at all. This is more difficult way, so...
I have 2 dlls - one build with a MFC support an dthe other is fully managed .NET dll.
Both of them incapsulate a class CBString - in MFC it is something like SCtring, in .NET - like String.
I want to create a project that will be able to use any version of this class by user choice. The...
As far as i know it is virtually impossible.
The only thing coming to my mind aside of scanning all IPs in your subnet mask is when the client sends you his IP on his logon.
Perhaps there's some other way, but I can't figure it out.
Well, it depends on a type of your array.
If it is a pointer to a simple type (such as int, char etc.) you should write
delete i;
If it is a static array such as
int i[10];
you don't have to delete it at all.
I can assume that the same works when your i is an array of complex...
Well, I tried it out..
..And nothing happened!
I tried to:
1) Add .lib file (with full path) to the Advanced Dependences combo box
2) Add .lib file (full path) to the Linker -> Advanced -> Import Library box
3,4) Add .dll file (full path) to both boxes
Neither of these helped.
Perhaps I...
thanks, guys! :)
Now i'll try that..
by the way, there's no "Additional Library Path" in my Linker tab. Perhaps it's because I use Visual Studio .NET?
But I suppose it'll work if I specify the path in the "Additional dependencies" field.
How am I supposed to do this?
I would also be thankful for some info about including .dll-s
Now i have to declare an extern function in .dll, and then use a function-pointer to call it by it's adress. Is there any other way to do that more easy?
But, again, including libs is the main...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.