CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: DanielK

Page 1 of 80 1 2 3 4

Search: Search took 0.48 seconds.

  1. Replies
    3
    Views
    826

    Re: Static member functions in COM

    COM doesn't know what a static function is. It always calls member functions on a class. Because of this, the easiest thing to do would be to make the function from static to non-static.

    Got a...
  2. Replies
    2
    Views
    695

    Re: is their a way???

    No. *.REG files can only create/modify registry values. As VGirish stated, you should use RegDeleteKeyEx(), to delete a registry key. The key you are deleting mustn't have sub keys, so you might need...
  3. Re: How to make the method of ATL control return value?

    Small correction, you should use the retval keyword as well. This way applications such as VB will actualy make the method look like it is returning the out parameter:

    HRESULT MyMethod([in] BSTR...
  4. Replies
    2
    Views
    713

    Re: Lack of Virtual Memory

    This usualy happens when you don't have enough space on your hard disk(the drive in which the OS is). Windows uses a thing called virtual memory. Even though your computer might have 64MB of RAM, MS...
  5. Re: Non-default constructor in a COM object - how?

    You can't. COM wasn't built to use C++. It is made easy with C++, but languages such as C, VB, VBSCRIPT, etc... have no knowledge of c++ constructors/destructors. Instead of relying on a...
  6. Replies
    40
    Views
    6,573

    Re: What's wrong with CodeGuru??? People being lazy?

    Every one has MSDN. Check out my signature:


    Got a question? try looking it up in MSDN first. Msdn comes with the Visual Studio, and can be found at http://msdn.microsoft.com
    ...
  7. Replies
    2
    Views
    718

    Re: Background color of edit boxes

    Well, the first thing you should check out is this:
    http://www.codeguru.com/cgi-bin/bbs/wt/showpost.pl?Board=vc&Number=275212&page=0&view=collapsed&sb=5&category=

    It describes something very...
  8. Replies
    9
    Views
    1,385

    Re: make name in lower case. MakeLower()

    strClientName.MakeLower();
    strClientName[0] = toupper(strClientName[0]);

    Got a question? try looking it up in MSDN first. Msdn comes with the Visual Studio, and can be found at...
  9. Replies
    1
    Views
    789

    Re: Multi-line string in different compilers

    char str[] = "This"
    "Is"
    "A"
    "Multiple"
    "Line"
    "String"
    "In"
    "VC++";
  10. Replies
    1
    Views
    622

    Re: Looking for help with my progress bar

    Of course you need to set the range of the progress bar. Also, instead of using CWnd and SendMessage, you can cast the CWnd pointer to a CProgressCtrl, and use it's member functions such as...
  11. Thread: Directory size

    by DanielK
    Replies
    3
    Views
    929

    Re: Directory size

    No other way. But what do you have against going through all the directories and checking the file sizes? Using a recursive function, it'll be 10-15 lines of code, Maximum. Even if there was a...
  12. Re: How threads behave when you terminate their parent process ? IMPORTANT ! :)

    When you close a process, the OS is responsible for cleaning up what the process allocated. In an environment where all process share the same address space this is hard and might be impossible, but...
  13. Thread: Timer

    by DanielK
    Replies
    1
    Views
    595

    Re: Timer

    And the problem is?? When you call SetTimer you get to pass it an ID for the timer, and when your OnTimer function is called it gets the ID of the timer that triggered the event.

    Got a question?...
  14. Replies
    4
    Views
    1,057

    Re: Get Line Number in a multiline Edit Box

    Check out CEdit::LineFromChar(), just pass it the index from GetSel().

    Got a question? try looking it up in MSDN first. Msdn comes with the Visual Studio, and can be found at...
  15. Re: change position of static label at runtime

    You'll need to give the static control a unique ID: for example IDC_STATIC1, then use the following code, after putting in the new position as a parameter to move window....
  16. Thread: Button

    by DanielK
    Replies
    3
    Views
    828

    Re: Button

    http://www.microsoft.com/msj/defaultframe.asp?page=/msj/0597/c++0597.htm&nav=/msj/0597/newnav.htm

    Got a question? try looking it up in MSDN first. Msdn comes with the Visual Studio, and can be...
  17. Replies
    1
    Views
    699

    Re: Urgent! Need help with template class

    Change

    template <class CDataManager, class CMap> CMapManager : public CDataManager
    {


    to

    class CMapManager : public CDataManager<CMap>
    {
  18. Replies
    8
    Views
    1,005

    Re: openning a url from within a dialog box

    Sorry, I was a bit unclear, in the dialog editor, after you double cclick on the dialog in the resource tab.

    Got a question? try looking it up in MSDN first. Msdn comes with the Visual Studio, and...
  19. Replies
    8
    Views
    1,005

    Re: openning a url from within a dialog box

    Use the Microsoft Web Browser ActiveX control. Right click on the dialog in the resource editor and choose Insert Active X control. Associate a member variable with the ActiveX control, and use it's...
  20. Re: How to get the lenght of this.. ?? please help

    Sometimes even getright can't get the size.

    Got a question? try looking it up in MSDN first. Msdn comes with the Visual Studio, and can be found at http://msdn.microsoft.com
    ...
  21. Replies
    2
    Views
    762

    Re: Hiding processes in windows

    check out my previous reply:
    http://www.codeguru.com/cgi-bin/bbs/wt/showpost.pl?Board=vc&Number=274430&page=0&view=collapsed&sb=5

    Got a question? try looking it up in MSDN first. Msdn comes with...
  22. Re: How to prevent application to be killed from task manager

    The process list displays: Processes! By making your application part of someother process, the application can't be terminated on it's own. How can this be done? Using the WriteProcessMemory and...
  23. Replies
    3
    Views
    799

    Re: How to read Class information from a file

    #include"iostream.h"
    #include"fstream.h"
    class Info
    {
    public:
    int old;
    //-----------------
    //The string must have space allocated for it. When you have an array that is a member...
  24. Re: How can I create a docking toolbar without menu in a dialog box? Thank you

    http://www.codeguru.com/dialog/toolbars.shtml
    http://www.codeguru.com/dialog/PlacingAToolbarOnADlg.shtml
    http://www.codeguru.com/dialog/dlgtoolbar.shtml

    Got a question? try looking it up in MSDN...
  25. Thread: CTreeCtrl

    by DanielK
    Replies
    1
    Views
    1,270

    Re: CTreeCtrl

    Think about it for a second. When you use DDX, the control is implicitly created(in the dialog template), all you have to do is connect a CWnd derived class to it using the DDX function. When you...
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4





Click Here to Expand Forum to Full Width

Featured