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

    Why does this program have error and wont compile?

    A couple of quotes at the start of your two strings like so: cout<<&quot;The value... and all 20+ errors are gone (except that there's no x2() so the linker is not completely happy...) :-) Hope that this helped! ;-)
  2. DavesTips

    visual c++ 6 and visual studio.net

    AFAIK you can still order the .Net Beta2 (which I am using) here http://developerstore.com/devstore/product.asp?productID=7627&store=TOOLBOX_NA :-) Hope that this helped! ;-)
  3. DavesTips

    Dialog box for Windows Folder/File Access

    You can use the common dialog control via GetOpenFileName() and GetSaveFileName() to get a filename from the user, or ShBrowseForFolder() to obtain a directory name. :-) Hope that this helped! ;-)
  4. DavesTips

    visual c++ 6 and visual studio.net

    Yes, and it's even better in VS.Net :-) Hope that this helped! ;-)
  5. DavesTips

    Quid with On Timer in VC++ ???

    Just out of curiosity - what is &quot;scrutting&quot;? :-) Hope that this helped! ;-)
  6. DavesTips

    visual c++ 6 and visual studio.net

    Yes, there's C++ in VS.Net. And I use it already in preference to VC++ 6 since there's lots of bugs fixed, especially in the area of STL and templates, and the IDE is muuuuch better... :-) Hope that this helped! ;-)
  7. DavesTips

    cin problems with strings

    I'd say you've forgotten to add #include <string> :-) Hope that this helped! ;-)
  8. DavesTips

    WM_NOTIFY

    Typically one uses ON_MESSAGE ON_MESSAGE( WM_MYMESSAGE, OnMyMessage ) with a message number in the range WM_USER to 0x7FFF (better WM_USER+100 or so). With WM_NOTIFY you need an NMHDR structure in lParam... :-) Hope that this helped! ;-)
  9. DavesTips

    Aligning menus???

    I've never done this, but I found the follwoing in MSDN (see KB Q86772) : It is possible to right justify top-level menu items by including a CHR$(8) (backspace) as the first character of the caption for the left-most menu that you want to appear on the right side of the menu bar. (Yeah, CHR$...
  10. DavesTips

    Is this code safe?

    CString or string certainly makes things simpler if you are doing a lot of string manipulation, compared with using standard c-strings. If I was using MFC I'd go with CString, otherwise I'd use the string class. :-) Hope that this helped! ;-)
  11. DavesTips

    DB Help.

    I'm guessing this is a limit of the combobox, and not of Access. 32k is the limit for entries in Listbox and Combobox. Maybe you should also ask yourself whether it's reasonable to expect a user to scroll through 32000+ entries... :-) Hope that this helped! ;-)
  12. DavesTips

    Is this code safe?

    I'm not sure why you should do this, you can get a constant C-string with sTest.c_str() which is fine say if you just want to write it to cout. If you need a modfiable string you can copy the value from c_str() with say strcpy(), which you have basically re-implemented in your String_Convert()...
  13. DavesTips

    Strings

    You can maybe write more data in your char arrays, but you are overwriting storage which does not belong to the program ,and most likely this will lead to severe errors at some point. Code such as this int i1 = 016; cout << i1 << endl; writes the value &quot;14&quot; to the console, since...
  14. DavesTips

    C++ OR Visual C++

    VC++ implements the C++ language, in principle you can compile any C++ program with the VC++ compiler and linker. If the program only uses ANSI standard library functions the programs should also run under Windows. VC++ includes a complete development environment for program development and...
  15. DavesTips

    visual c++ newbie needs help with &quot;and&quot;

    Logical operators consider values to be simply &quot;boolean&quot;, i.e. 0 is false, und !=0 is true (the actual value for &quot;true&quot; is 1, but C++ also considers any value !=0 as true in conditional expressions). Bitwise operators OTOH work on the individual bits in a field such as an...
  16. DavesTips

    Syntax for System Calls!

    The syntax is just like you write, e.g. system(&quot;cls&quot;); to clear a console screen. You can include <stdlib.h> or <process.h>. :-) Hope that this helped! ;-)
  17. DavesTips

    structures

    Well I may have an advantage - here in Germany my first coffee probably comes rather earlier...:-) :-) Hope that this helped! ;-)
  18. DavesTips

    structures

    Of course this is just poor phrasing, but &quot;is all public&quot; -> &quot;all members are by default public&quot;. Naturally you can put in private: or protected: to change this. :-) Hope that this helped! ;-)
  19. DavesTips

    Memory Allocation

    Disk quotas under W2K are an administrative function and can be set programmatically using WMI. For more information, search online MSDN under &quot;Disk quota&quot;. :-) Hope that this helped! ;-)
  20. DavesTips

    CWnd::OnSizing(UNIT fwSize, LPRECT pRect)

    fwSide Value of wParam. Indicates which edge of the window is being sized. This parameter can be a combination of the following values: Value Meaning WMSZ_BOTTOM Bottom edge WMSZ_BOTTOMLEFT Bottom-left corner WMSZ_BOTTOMRIGHT Bottom-right corner WMSZ_LEFT Left edge WMSZ_RIGHT Right edge...

Part and Inventory Search

Back
Top