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

Search:

Type: Posts; User: TubularX

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    216

    Re: Safe conversion?

    Thanks!!
  2. Replies
    2
    Views
    216

    Safe conversion?

    I've seen some code where a subclass with a single method was created just to be able to access a protected method:



    class A
    {
    ...

    protected:
    virtual void func();
  3. Re: atlsimpstr.h access violation error

    It seems like you've missed the left parenthesis when casting CMainDlg. But other than that, it looks like it should work...

    "atlsimpstr.h" indicates that a string is used somewhere. Did you...
  4. Replies
    10
    Views
    483

    Re: UTF-8 Conversion

    Exactly, and it sounds easy. Maybe I'm missing something obvious here, but I'm stuck regarding the data types.

    My source is of type CStringW (UTF-16). When converting/decoding back and forth...
  5. Replies
    10
    Views
    483

    Re: UTF-8 Conversion

    Thanks for your reply!

    Yes, I'm talking about command line arguments/parameters. Both programs are compiled with unicode (/D "_UNICODE" /D "UNICODE" /Zc:wchar_t).

    If I pass unicode strings...
  6. Replies
    10
    Views
    483

    Re: UTF-8 Conversion

    I'm not trying to insist on anything, but my dilemma is that CreateProcessW only accepts wide string.

    CreateProcessA on the other hand does accept a char type string. With that function I can send...
  7. Replies
    10
    Views
    483

    Re: UTF-8 Conversion

    Thanks Codeplug, I didn't realized until now that the CString constructor converts it to UTF-16.

    But now I don't even understand how it works in the English edition, that I can send text with...
  8. Replies
    10
    Views
    483

    UTF-8 Conversion

    I'm transferring a unicode string from one program to another with UTF-8 encoding.

    Program that is sending:



    // Convert path
    std::wstring_convert<std::codecvt_utf8<wchar_t>> utf8_converter;...
  9. Thread: unusual event

    by TubularX
    Replies
    1
    Views
    337

    Re: unusual event

    Hi,

    It could be that your system is infected. Some malware will show a fake "windows command processor" window.
    ...
  10. Replies
    1
    Views
    360

    Pan gesture problem

    Hello,

    I'm struggling with the pan gesture in a desktop application for my Surface Pro 2.

    I simply want to pan (or "swipe" if you prefer) with two fingers, but it doesn't behave like I want it...
  11. Replies
    8
    Views
    1,123

    Re: Size from CImageList

    Excellent! Thank you!!
  12. Replies
    8
    Views
    1,123

    Re: Size from CImageList

    Well, thanks. I was hoping for some less ugly solution, but I guess this will have to do.
  13. Replies
    8
    Views
    1,123

    Re: Size from CImageList

    GetImageInfo requires the index of an image. In case the list is empty, this will not work. If all images have already been removed when I am given the pointer, I still need to be able to get the...
  14. Replies
    8
    Views
    1,123

    Size from CImageList

    The documentation states that "An image list is a collection of same-sized images" (http://msdn.microsoft.com/en-us/library/9xc4z2c7.aspx).

    But how do I retrieve that size? I have a pointer to an...
  15. Replies
    6
    Views
    1,037

    Re: Validate unsigned operations?

    Yes, it's legal, but I can't recall that I have ever done it on purpose. Maybe that behaviour is defined just because it's better than the alternative of undefined behaviour?

    Writing unit tests is...
  16. Replies
    6
    Views
    1,037

    Validate unsigned operations?

    Hello,

    I don't know if this is a common problem, but I've sometimes encountered unexpected runtime issues caused by unsigned values being decremented below zero.

    Example 1: "unsigned_value +=...
  17. Replies
    9
    Views
    654

    Re: Passing NULL to a pointer parameter

    It's recommended to pass nullptr instead of NULL macro.
  18. Replies
    2
    Views
    1,630

    Re: Battleship Game

    First of all, I guess this question is not really related to Visual C++. It's about design decisions, maybe you should try another forum?

    Now, to try to answer your question... In an object...
  19. Replies
    5
    Views
    1,457

    Re: ChoosePixelFormat NULL handle?

    OK, that makes sense. Thank you! I will investigate and debug on some other hardware as well.
  20. Replies
    5
    Views
    1,457

    Re: ChoosePixelFormat NULL handle?

    It's not NULL. The device context is retrieved from a window and should be valid. I can use the handle later with DrawText and see the results. ChoosePixelFormat returns a non-zero value, so...
  21. Replies
    5
    Views
    1,457

    ChoosePixelFormat NULL handle?

    PIXELFORMATDESCRIPTOR pfd = {
    sizeof (PIXELFORMATDESCRIPTOR), // Size of this structure
    1, // Version number
    PFD_DRAW_TO_WINDOW | ...
  22. Replies
    4
    Views
    2,245

    Re: Showing dialog in DLL

    Thanks Igor!!

    Sorry about that. I was so certain that I already tried that. I must have made a mistake then, since it obviously works :-)
  23. Replies
    4
    Views
    2,245

    Showing dialog in DLL

    I create a dynamic library, using "MFC in a Shared DLL".

    I export a test method:

    h-file:


    class CMyClass
    {
    public:
  24. Replies
    1
    Views
    711

    Layered dialog, stay on top?

    Did anyone create a modeless dialog as a layered window and successfully made it stay "on top" (always visible) ? I can't make it work in Windows XP.

    I created a dialog class from CDialogEx, set...
  25. Replies
    0
    Views
    734

    Disable Ribbon Category?

    Hello!

    How can I disable a category of CMFCRibbonBar? In other words, I want the text in the category tab to be grayed out and ignore any clicks on it to prevent its elements from being shown. In...
Results 1 to 25 of 93
Page 1 of 4 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center