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...
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!")...
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...
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
"There are 10 types of people in this World, those that understand binary, and those that don't!"
...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
"There are 10 types of people in this World, those that understand binary, and those that don't!"
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...
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...
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...
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
"There are 10...
any functions u call in the crt may need to be replaced with the tchar version:
strcpy - _tcscpy
strcat - _tcscat
strchr - _tcschr
etc
Skute
"There are 10 types of people in this World, those that understand binary, and those that don't!"
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...
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
"There are 10 types of people in this World, those that understand binary, and those that don't!"
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
"There are 10 types of people in this World, those that understand binary...
Havent tried it yet ;)
(But i was looking for a simpler way than having to write RTF out)
Skute
"There are 10 types of people in this World, those that understand binary, and those that don't!"
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
"There are 10 types of people in this World, those that understand binary, and those that don't!"
Yeah, but i want different coloured lines after each other, i.e.
white line
yellow line
red line
etc
thanks
Skute
"There are 10 types of people in this World, those that understand binary, and those that don't!"
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
"There are 10 types of people in this World, those that understand binary, and those that don't!"
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
"There...
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...
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...
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.