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!"
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
"There are 10 types of people in this World, those that...
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!"
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.