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: *

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

    Converting a time string into a CTime class

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

    How to select the first item in a selected row using the list control

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

    problems reading "installation tome" - Mac OS 9.2.1

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

    MS VC++ 6.0 application question

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

    Retrieval of text on a web page using C++

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

Part and Inventory Search

Back
Top