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 qednick

  1. qednick

    Help beginner play sound from a resource

    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.
  2. qednick

    Help beginner play sound from a resource

    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...
  3. qednick

    Using Greek Letters

    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.
  4. qednick

    Using Greek Letters

    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...
  5. qednick

    Using Greek Letters

    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.
  6. qednick

    Screen capture software

    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...
  7. qednick

    using namespace std

    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...
  8. qednick

    Copying -- Moving -- and Deleting Files

    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 =...
  9. qednick

    STL basic_string

    try an array of unsigned char instead - this should be better. programmer (prog'ram'er), n A hot-headed, anorak wearing, pimple-faced computer geek.
  10. qednick

    Easy string starter for 10

    "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.
  11. qednick

    Void Help Needed

    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.
  12. qednick

    #ifndef or #pragma once?

    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 //...
  13. qednick

    How to read values of environment variables

    wouldn't getenv() work? programmer (prog'ram'er), n A hot-headed, anorak wearing, pimple-faced computer geek.
  14. qednick

    MSVC++ 6.0 application question...

    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.
  15. qednick

    Not C++,but couldn't find a C forum ;)

    If the length of the file is zero then it's empty programmer (prog'ram'er), n A hot-headed, anorak wearing, pimple-faced computer geek.

Part and Inventory Search

Back
Top