Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by SulikSlayer

  1. SulikSlayer

    Reading different languages text from a file

    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...
  2. SulikSlayer

    Reading different languages text from a file

    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?
  3. SulikSlayer

    C# exception handling question

    Oh, thank you very much indeed! :)
  4. SulikSlayer

    C# exception handling question

    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...
  5. SulikSlayer

    C# exception handling question

    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...
  6. SulikSlayer

    using MFC and .NET dlls in a single project

    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...
  7. SulikSlayer

    VC++.Net How do I find the IP address of the PC running the program

    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.
  8. SulikSlayer

    De-allocating a variable using "delete"

    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...
  9. SulikSlayer

    Anywhere SQL transactions

    Hey, thanks! That helped a lot ;)
  10. SulikSlayer

    Including an import library (.lib) in MFC

    I'll try to get info in MSDN. If I won't paste the code - than I am successful :) Thanks!
  11. SulikSlayer

    Anywhere SQL transactions

    I didn't mean MySQL!!! I mean Anywhere SQL! That't the differens DBMS, as far as I know!
  12. SulikSlayer

    Anywhere SQL transactions

    I need to know if there is aa transaction support (rollbacks) there. Can you recommend a good manual?
  13. SulikSlayer

    Including an import library (.lib) in MFC

    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...
  14. SulikSlayer

    Including an import library (.lib) in MFC

    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.
  15. SulikSlayer

    Including an import library (.lib) in MFC

    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...

Part and Inventory Search

Back
Top