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

Search:

Type: Posts; User: mike200

Page 1 of 6 1 2 3 4

Search: Search took 0.11 seconds.

  1. Change data binding of text label depending on text box that has focus

    I am new to WPF, moving over from C++ so I am having a hard time getting my mind around some concepts and I am not sure if this can be done in only xaml.

    At my work place my product has a touch...
  2. Replies
    2
    Views
    771

    Re: COM exe registration problem......

    The call to register your server should be in your _tWinMain function (in myComSrv.cpp). The code should look like this:



    extern "C" int WINAPI _tWinMain(HINSTANCE hInstance,
    {
    //.........
  3. Replies
    1
    Views
    686

    Re: Strange Linker Error with VC++ Build

    Your problem sounds like a post-build problem, the project is built but something after the project has been built is not running. In your Project Settings->Post Build Step is there any call to...
  4. Re: Is List Ctrl Dosent have a function like a SetCaretIndex()

    Use EnsureVisible
  5. Replies
    2
    Views
    1,234

    Re: Enumerate Sockets

    Never mind, I found the answer. I came across the source code for netstat, which is what I want to display. If anyone comes across this problem, please look at Iphlpapi for functions available from...
  6. Replies
    2
    Views
    1,234

    Enumerate Sockets

    Does anyone know of a function (or set of functions) like EnumProcesses that will list all the open sockets on a system? I have been looking at the WSA functions, but they seem to need a socket....
  7. Replies
    6
    Views
    2,286

    Re: Problem with CListCtrl::SetItem().

    Do you mean that when you debug, you expect the break to happen on that line of code but it looks like it is breaking in the NM_CLICK handler? If that is the case, have you done a clean or a rebuild...
  8. Replies
    3
    Views
    727

    Re: CheckBox simple

    There is also:



    CButton *pCheckBox = (CButton *)GetDlgItem( IDC_MY_CHECKBOX);
    pCheckBox->SetCheck( BST_CHECKED ); // To Check...
    pCheckBox->SetCheck( BST_UNCHECKED ); // To UnCheck...

    ...
  9. Replies
    21
    Views
    2,330

    Re: Controls don't display Unicode Text

    If you have UNICODE defined, the code you have shown should work. The SetWindowText function differs when you have UNICODE defined:


    BOOL WINAPI SetWindowTextA ( HWND hWnd, LPCSTR lpString );...
  10. Replies
    21
    Views
    2,403

    Re: "Safe" FIFO/Pipe

    Would MSMQ do what you are looking to do? MSMQ was designed to be a middleware component for fast, reliable asynchronous electronic communication. It also ensures guaranteed message delivery, receipt...
  11. Re: ATL template for object construction/destruction

    Do you mean CComPtr or CComObject?
  12. Re: iam not able to view the images in the tree

    This might be a silly question, but do you add images to m_TreeImg? From the code you posted, it looks like you are setting an empty image list to your tree control.
  13. Re: Multiple-Select & choice ComboBox with colours

    Perhaps this control will help. If not, maybe one of these will help.
  14. Replies
    27
    Views
    11,836

    Re: Instantiate abstract class

    Why are you trying to instatiate a COM object?? You get an interface to a COM class and let the COM framework instatiate the class. Your code should look like this:


    CComPtr<IConnection> pTemp;...
  15. Replies
    3
    Views
    787

    Re: Getting Font Dimensions

    Use GetTextExtent.

    check out this post.
  16. Replies
    1,585
    Views
    240,078

    Re: AAAh A joke(Lets share Jokes)

    IRISH CONFESSION

    "Bless me Father, for I have sinned. I have been with a loose woman."

    The priest asks, "Is that you, little Tommy Shaughnessy?"

    "Yes, Father, it is."

    "And, who was the...
  17. Replies
    3
    Views
    942

    Re: error LNK2001: unresolved external symbol

    It looks like you did not link to WinFax.lib, you only included the header WinFax.h
  18. Replies
    10
    Views
    1,115

    Re: dialog box function problem

    Here is where a button in your newwindow class will help. Add the button and handle the BN_CLICK message to step the control. If you really want it to step the control without toucking it, look at...
  19. Replies
    10
    Views
    1,115

    Re: dialog box function problem

    OnInitDialog is the right place to step the control before the dialog is displayed.


    BOOL newwindow::OnInitDialog()
    {
    CDialog::OnInitDialog();

    m_ProgressCtrl.StepIt();

    return TRUE;...
  20. Replies
    8
    Views
    1,742

    Re: LISTVIEW, hide a column

    Instead of a hidden column, could you use CListCtrl::SetItemData to store the variable? Then in your CompareFunc do your comparison based on the item data.
  21. Replies
    2
    Views
    582

    Re: Unicode Support in MFC

    By default, the UNICODE libraries are not installed in VC 6 (don't know about VC 7).

    First make sure you have the UNICODE libraries installed (files like MFC42U.DLL). If not re-run the VC6...
  22. Thread: COM Error

    by mike200
    Replies
    14
    Views
    1,609

    Re: COM Error

    Isn't registration of a COM exe done by passing RegServer on the command line? For your app would it be ComObj.exe RegServer. The _tWinMain function should have the code for this. Have you tried...
  23. Thread: error linking

    by mike200
    Replies
    1
    Views
    511

    Re: error linking

    I found this article in MS KB. Does this help you?
    PRB: LNK2005 Errors When Link C Run-Time Libraries Are Linked Before MFC Libraries
  24. Thread: COM Error

    by mike200
    Replies
    14
    Views
    1,609

    Re: COM Error

    How are you calling the method? Are you still passing in only a pointer or a pointer to a buffer??


    CComBSTR Change;
    ComObj->get_Change( & Change );
  25. Thread: COM Error

    by mike200
    Replies
    14
    Views
    1,609

    Re: COM Error

    I know that you do not get into the code for the new method, but I keep seeing this:


    BSTR Change;
    ComObj->GetChange( & Change );


    Change is just a pointer, no memory was allocated for this...
Results 1 to 25 of 130
Page 1 of 6 1 2 3 4





Click Here to Expand Forum to Full Width

Featured