Sorry eShovel, missed the part that said you were using DevC++ [hammer]
programmer (prog'ram'er), n A hot-headed, anorak wearing, pimple-faced computer geek.
No you need to link to the appropriate library. Under your "project" menu choose "settings". Click on the "link" tab. Ensure that "General" is chosen in the category combo box. You should see a text field called "Object/Library Modules" in the...
Have you tried adding TRUE as an extra parameter?
m_Coord1.SetFont(&fnNormal,TRUE);
Other than that, have you checked the validity of the fonts and the return value from SetFont() in your debugger?
programmer (prog'ram'er), n A hot-headed, anorak wearing, pimple-faced computer geek.
Try using GetDC() instead of GetWindowDC(). Also, you may want to try using CreateFont() instead of CreatePointFont().
Finally, is "Math1" a standard font? I would have thought "symbol" would be a better choice as this is usually a system font.
programmer (prog'ram'er), n A...
Have you looked at doing an "owner-drawn" static text? That way you can specify the "symbol" font in it. Also, I think you can specify the font for any object derived from CWnd.
programmer (prog'ram'er), n A hot-headed, anorak wearing, pimple-faced computer geek.
Yes, I highly recommend Ambrosia Software's Snapz tool also. It'll allow you to capture the screen while you're pulling down menus and stuff like that which really comes in useful. I think there used to be a freeware version available also.
programmer (prog'ram'er), n A hot-headed, anorak...
Rather than specifying "using namespace std;" you may be better off specifying "std::vector", "std::cout", "std::string", etc.
This whole subject has been a cause for argument amongst programmers for a while. Using the latter involves more typing but...
Use the Windows API functions
CopyFile()
CopyFileEx()
MoveFile()
MoveFileEx()
to copy and move files.
Use the ansi C function remove() to delete a file.
[tt]
char* filePath = "someDir\\someFile.txt";
char* newPath = "anotherDir\\someFile.txt";
char* anotherPath =...
"If C++ is so complicated, how come so many people like it??"
Complicated yes, but very powerful!
programmer (prog'ram'er), n A hot-headed, anorak wearing, pimple-faced computer geek.
If you need further information about pointers - what they are and how they're used - hit the FAQs tab and check out my FAQ on the subject "Complete Layman's Guide to Pointers".
:-)
programmer (prog'ram'er), n A hot-headed, anorak wearing, pimple-faced computer geek.
I actually believe #pragma once was Metrowerks specific in the CodeWarrior compilers but was later adopted by Microsoft in VC++.
Also, when you add a new class to a VC++ project, the statement appears towards the head of the header file as such:
#if _MSC_VER > 1000
#pragma once
#endif //...
It doesn't really matter what the project is called - what matters is the output file names. Choose "Project->Settings" menu in VC++ and specify the output file names in there.
programmer (prog'ram'er), n A hot-headed, anorak wearing, pimple-faced computer geek.
In what context will you be using this time record? If all you want to do is compare times as to whether they are less than, equal to or greater than an other time why don't you simply store a time_t in the first place rather than a string. The time_t is the number of elapsed seconds since the...
Yes, you need to call SetExtendedStyle() on your list box with the style LVS_EX_FULLROWSELECT - this way the whole row is selected no matter where you click.
programmer (prog'ram'er), n A hot-headed, anorak wearing, pimple-faced computer geek.
No probs Bob, I don't know what it is about the standard Mac CD-ROM drives but they just don't like disks with scratches on!
[bugeyed]
programmer (prog'ram'er), n A hot-headed, anorak wearing, pimple-faced computer geek.
There's actually a much simpler way: just select the dialog required in the resource view and 'copy'. Then, open the new project, select any resource in the resource view and choose 'paste'.
Note, you have to make a selection in the resource view for these menu commands to be available but I do...
Here's an example that reads the URL as a string. NOTE: depending on the content of the URL the string may or may not retrieve the entire text. You'll need to look more into the CHTTPFile class for information:
CInternetSession* inetSession =
new CInternetSession("Your App...
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.