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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Skute
  • Order by date
  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;
  16. Skute

    Adding coloured line to rich edit control

    Yeah, but i want different coloured lines after each other, i.e. white line yellow line red line etc thanks Skute &quot;There are 10 types of people in this World, those that understand binary, and those that don't!&quot;
  17. Skute

    Adding coloured line to rich edit control

    Hi, I need some example code / suggestions which will easily allow me to add a new line to a rich edit control and colour it accordingly. Skute &quot;There are 10 types of people in this World, those that understand binary, and those that don't!&quot;
  18. Skute

    Easy question for you

    As i mentioned, you need to update 2 locations if you ever change a wheel on a car, compared to just updating 1 location with my method. Which means you need to be extremely careful to make sure that both locations match up, else your objects will become out of sync. Cheers, Skute &quot;There...
  19. Skute

    Easy question for you

    Or you could design your classes better so that child objects dont know anything about their parent objects. Then you could have a function on the car which tries to identify a particular wheel. If youve got a car handler object, which contains all instances of car, then the handler can loop...
  20. Skute

    Draw icon next to edit control in combo box

    Hi, how can i draw an icon next to the edit control in a combo box? Ive successfully managed to draw a list icons in the listbox, but now i want to draw the icon that the user selected next to the text in the edit box. Ive obtained the edit box by attaching to it in the OnCtlColor() message of...

Part and Inventory Search

Back
Top