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

Search:

Type: Posts; User: VictorN

Page 1 of 80 1 2 3 4

Search: Search took 1.79 seconds.

  1. Replies
    2
    Views
    272

    Re: How to expand dropdownlist?

    Define "cannot expand".
    How many items (strings) are there in the combobox?
    How do you try "to expand"?
  2. Replies
    4
    Views
    408

    Re: Why Creatfont not working?

    Sorry, but I could not find in this post anything similar to what you have posted as a "code". :rolleyes:
  3. Replies
    4
    Views
    408

    Re: Why Creatfont not working?

    Please, edit your post adding proper code indentations! Otherwise it is absolutely non-readable. :sick:
  4. Replies
    5
    Views
    389

    Re: How to get worksheet name?

    You don't need to go deeper than AutoWrap itself. Gou should, however check what other function calls return!
  5. Replies
    5
    Views
    389

    Re: How to get worksheet name?

    You refer to this Microsoft sample code
    But did you debug this code? particularly, what does the
    hr = pDisp->GetIDsOfNames(IID_NULL, &ptName, 1, LOCALE_USER_DEFAULT, &dispID);
    return? Is it...
  6. Re: Checking characters in Glib::ustring

    Hi John,
    I guess there should exist some functions in Glib to convert from UTF8 to UNICODE and vice versa. However, I never used this library and I don't have any documentation either.
  7. Re: Checking characters in Glib::ustring

    Is it possible to convert it to std::wstring?
  8. Replies
    1
    Views
    421

    Re: InvalidCastException

    It is the first item from Google search for "Unable to cast object of type 'System.String' to type 'System.Byte[]":...
  9. Replies
    4
    Views
    421

    Re: How to avoid Titlebar flicker?

    If you do not want to cause flickering then why do change the focus to "hwnd" and then back? :confused:
  10. Replies
    4
    Views
    421

    Re: How to avoid Titlebar flicker?

    Where do you Setfocus to?
    What is the relationship between this hwnd and your "MFC form"?
    Which Title flickers?
    What is "the UnTitlebar form"?

    BTW, did you ever read the Announcement (Section...
  11. Replies
    8
    Views
    616

    Re: How to kill Excel process?

    Could you provide some code snippets with "using CreateInstance" and so on?

    And the same - for your "close procedure".
  12. Replies
    2
    Views
    3,758

    Re: Lehmer gcd algorithm

    Well, good reply on the question asked more than eight years back! :D
  13. Replies
    8
    Views
    616

    Re: How to kill Excel process?

    How do you obtain the window handle (hWnd)?
    If this handle is not valid or the window does not exist then the only way "to kill" is to call TerminateProcess. However, you need to know the process...
  14. Re: Does #define change things that come before it?

    OK, did you try to look at the "preprocessed C++ source code"?
    Sorry, but I never tried it, so can only refer to other similar discussions:...
  15. Re: Does #define change things that come before it?

    You #defined GStuctSmall , not the GStructSmall
    Or was it just a typo?
  16. Replies
    11
    Views
    782

    Re: How to get COM function return value

    Place cursor over the function you are interesting in, then right mouse click/context menu -> choose the Peek Definition (or Go to Definition or Go to Declaration). It works also my macros, typedefs...
  17. Replies
    16
    Views
    1,308

    Re: Find cartesians for matrix elements

    DO you mean

    1 0 1
    1 1 1
    1 1 0or something else?


    What is the dimension of "Output"?
    What are these "+" (plus) symbols mean?
  18. Replies
    16
    Views
    1,308

    Re: Find cartesians for matrix elements

    No, you didn't. :rolleyes:
  19. Replies
    11
    Views
    782

    Re: How to get COM function return value

    Why do you guess rather than read the documentation? :confused:
    FAILED macro
    And the exact HRESULT value in the case of "FAILED" you can obtain from the _com_error& e reference:...
  20. Replies
    11
    Views
    782

    Re: How to get COM function return value

    Both E_FAIL and S_OK are possible values of HRESULT. The most of functions do not "return" anything in "failure cases": instead (as I already mentioned in my precious post) they throw the exceptions!
  21. Replies
    16
    Views
    1,308

    Re: Find cartesians for matrix elements

    It is absolutely not clear what you want to get and what your initial matrices are. What are the dimensions of your matrices?

    You may also try to find out something useful and similar to your need...
  22. Replies
    11
    Views
    782

    Re: How to get COM function return value

    As you can see the function is of type HRESULT . In its code implementation it is very clear:
    HRESULT _hr=raw_func();
    ...
    return _hr;

    Note, however, that is case of some failure the exception...
  23. Replies
    11
    Views
    782

    Re: How to get COM function return value

    :confused::confused::confused:
    Please, provide the definition (that looks as my one) of the function from your .tli
  24. Replies
    11
    Views
    782

    Re: How to get COM function return value

    And how does your function from .tli file look like?
    For example some functions from my msadox.tli look like

    //
    // interface _Collection wrapper method implementations
    //

    inline long...
  25. Replies
    2
    Views
    748

    Re: Can I export Com function?

    You have to create a COM dll to export COM functions.
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)