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 Chriss Miller 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 Skute

  1. Skute

    Why won't this work?

    OK, thanks, I'll try that. I have made the constructor private so that you can't instantiate an instance of it (it will have several static functions which just return values in another file) Skute "There are 10 types of people in this World, those that understand binary, and those that...
  2. Skute

    Why won't this work?

    Hi, I've got a problem with a class, can you tell me what the problem is? [a.php] <?php $g_a = "hello"; ?> [b.php] require_once("a.php"); echo $g_a; class Test { public static function GetA() { if ($g_a == null || $g_a == "") throw new Exception("$g_a is an invalid value!")...
  3. Skute

    Inheriting from another assembly

    To get it to appear in the list of references in VS you need to add the following registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders\MyFramework (Default) = "C:\Source\MyFramework\Assemblies" That will get them to show up. Once you've done that, just right click...
  4. Skute

    Count total lines of code in project

    Have a look at writing a macro for visual studio, you can easily look through each file in the project and get the number of lines in each. Skute &quot;There are 10 types of people in this World, those that understand binary, and those that don't!&quot;
  5. Skute

    ATL COM, std::string, Unresolved symbol errors

    Yes, from your output, it seems youve defined that function as a member of a class, but you didnt put the CMyClass:: in front of the declaration: __thiscall CSSLConnection::ExtractSOAPAction(char const *)" etc etc Skute &quot;There are 10 types of people in this World, those that...
  6. Skute

    General Help in Putting things in the right place!

    Post.h/.cpp = Main application files PostDlg.h/.cpp = The class which represents your application's dialog on screen If you want a variable class, create a new class with the project wizard, it will create a new set of .h/.cpp files for you with a constructor and destructor already in. Then in...
  7. Skute

    General Help in Putting things in the right place!

    This isnt anything todo with MFC, you could do with learning the basics of C/C++ programming. There are tons of good resources available on the internet, just try searching google for beginners guide to C/C++ programming. (If you are interested in MFC, then you should look up just C++ instead...
  8. Skute

    How to suport unicode

    Thats not exactly what i meant by my comment Per. What i meant was, you should never actually write in your code: MessageBoxA(hWnd, "Hello World", "ANSI MessageBox", MB_OK); Unless youve got a good reason to. And in response to your comment, why would you intentionally only support ANSI and...
  9. Skute

    How to suport unicode

    u dont need todo that. Just use TCHARs everywhere, the windows API can determine which function to use (ie, MessageBoxA or MessageBoxW) by whether you have _UNICODE defined. You should never hard code for a specific character type unless you have a good reason to. Skute &quot;There are 10...
  10. Skute

    How to suport unicode

    any functions u call in the crt may need to be replaced with the tchar version: strcpy - _tcscpy strcat - _tcscat strchr - _tcschr etc Skute &quot;There are 10 types of people in this World, those that understand binary, and those that don't!&quot;
  11. Skute

    Making &quot;My Documents&quot; not appear as a path

    Hi, im trying to work with the shell and paths everywhere. Everything works fine for navigating through PIDLs, but when i access "My Documents" from the Desktop, it gives me the display name of: "D:\My Documents" (the correct location, but i want it to appear as just "My Documents") This is...
  12. Skute

    How do I perform basic memory management

    There is no reason why well written c++ should be slower than c. Using things like the stl vector class is going to be about as fast as youll be able to write (highly optimised). Skute &quot;There are 10 types of people in this World, those that understand binary, and those that don't!&quot;
  13. Skute

    LAN error correction

    UDP packets arent guaranteed to arrive, or even if they do, not guaranteed to arrive in the right order. TCP is reliable (but slower), as such, packets are guaranteed to arrive and arrive in the right order. Skute &quot;There are 10 types of people in this World, those that understand binary...
  14. Skute

    Adding coloured line to rich edit control

    Havent tried it yet ;) (But i was looking for a simpler way than having to write RTF out) Skute &quot;There are 10 types of people in this World, those that understand binary, and those that don't!&quot;
  15. Skute

    Draw icon next to edit control in combo box

    My combo box is setup as owner drawn - thats how ive got the images for desktop, my computer etc showing. but owner drawn doesnt allow you to paint the default edit box. Skute &quot;There are 10 types of people in this World, those that understand binary, and those that don't!&quot;

Part and Inventory Search

Back
Top