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

Search:

Type: Posts; User: jflegert

Page 1 of 12 1 2 3 4

Search: Search took 0.09 seconds.

  1. Replies
    7
    Views
    1,022

    Re: Serial Transmission

    I would suggest that you break the problem down into small steps and verify each step as best as possible. Since the instructor is suppling the "serial" code, the problem is probably somewhere else...
  2. Replies
    9
    Views
    1,291

    Re: ANSI/Unicode issue

    Yeah, but how did the "current settings" get set/interpreted as Unicode?
  3. Replies
    9
    Views
    1,291

    Re: ANSI/Unicode issue

    I'm not sure what you are trying to tell me. My Region option is set to US/English. I believe my default code page is 1252. All other text files open OK. When I initially save the file, there is...
  4. Replies
    9
    Views
    1,291

    Re: ANSI/Unicode issue

    Victor, thanks for the response.

    When I create the file, the font is Courier New, and the Script is Western. When I reopen the file, the script is still Western (and I see the Asian characters)....
  5. Replies
    9
    Views
    1,291

    ANSI/Unicode issue

    This isn't directly a C++/C question, but I would like to understand what's going on.

    Do the following steps:

    1) Create a blank text document (right click in Explorer, and do New->Text...
  6. Replies
    11
    Views
    1,453

    Re: reading huge files fast ?

    Maybe CWnd::SetRedraw(...) might help?
  7. Thread: BitBlt

    by jflegert
    Replies
    6
    Views
    1,353

    Re: BitBlt

    Thanks.
  8. Thread: BitBlt

    by jflegert
    Replies
    6
    Views
    1,353

    Re: BitBlt

    Robert, thanks for the suggestion. I will probably use a variation of this, maskblt, since I want to "overlay" the source and destination.
  9. Thread: BitBlt

    by jflegert
    Replies
    6
    Views
    1,353

    Re: BitBlt

    Thanks for the guess.

    I tried that, along with everything else I can think of (setting the pen, the brush, in the source, in the destination, ...), which is why I am asking the question.


    This...
  10. Thread: BitBlt

    by jflegert
    Replies
    6
    Views
    1,353

    BitBlt

    I have a monchrome bitmap, and when I bitblt it, I want the "black" pixels to become "blue" in the destination. I read the following in MSDN for the BitBlt documentation:

    I see a method for...
  11. Replies
    0
    Views
    561

    Monochrome blt?

    Hello,

    I have several monochrome bitmaps. I would like to "Overlay" them.

    Let's say I have bitmaps B1, B2, and B3. I would like to do something like the following:

    1) blt B1 to a Memory DC...
  12. I disagree. He is giving the pointer a value of...

    I disagree. He is giving the pointer a value of 0.


    Once you get into calling virtual methods (using a pointer to a base class), don't you need a non-NULL pointer?

    Thanks,
    John Flegert
  13. Thread: Unicode Imp

    by jflegert
    Replies
    5
    Views
    746

    hspc, Why don't you also suggest that he...

    hspc,

    Why don't you also suggest that he change:

    CStdioFile fp.Open(L"c:\\proxyinfo.txt",CFile::modeCreate | CFile::modeWrite|CFile::typeBinary);
    to:

    CStdioFile...
  14. Replies
    25
    Views
    2,339

    martho, I'm also using VC7, I followed the...

    martho,

    I'm also using VC7, I followed the same steps you did, and get the same results.

    If I add a handler for PreTranslateMessage, I see mouse moves (while over buttons) in the...
  15. Replies
    25
    Views
    2,339

    I also tried Philip's suggestion, and it worked.

    I also tried Philip's suggestion, and it worked.
  16. Replies
    25
    Views
    2,339

    Hey martho, I just tried PreTranslateMessage,...

    Hey martho,

    I just tried PreTranslateMessage, and I do get WM_MOUSEMOVEs (when the mouse is over a button, static, or edit).
  17. Replies
    25
    Views
    2,339

    neilg, I'm not sure if this is a...

    neilg,

    I'm not sure if this is a recommended/correct way of doing things, but you could try using PreTranslateMessage in the dialog (I'd imagine this would work, since Tooltips works thru...
  18. Thread: Unicode Imp

    by jflegert
    Replies
    5
    Views
    746

    Since you are writing Unicode characters, your...

    Since you are writing Unicode characters, your call to CFile::Write should probably look like:

    fp.Write(buffer,len*2);//buffer has some text
    assuming "len" is the number of Unicode caharacters in...
  19. Replies
    5
    Views
    1,271

    As a side note, you may want to check your usage...

    As a side note, you may want to check your usage of GetBuffer() and Release(). From the documentation:
    Good luck,
    John Flegert
  20. Replies
    7
    Views
    845

    For most compilers, I don't believe there is a...

    For most compilers, I don't believe there is a performance advantage. I believe that all necessary stack space for a function is allocated when the function is entered (this isn't part of the C++...
  21. Replies
    6
    Views
    1,057

    I'm curious, what does the C++ standard say. If...

    I'm curious, what does the C++ standard say. If I have the following code:



    int foo(int i)
    {
    if (i == 1)
    return 1;
    else
    return -1;
  22. Replies
    35
    Views
    9,086

    bungoman85, I once had a similar problem with...

    bungoman85,

    I once had a similar problem with CFileDialog and wasn't able to track down the problem. I ended up working around it (using the win32 API). For me, the problem started when I...
  23. Replies
    10
    Views
    1,580

    In case anyone finds this useful, this is what I...

    In case anyone finds this useful, this is what I came up with (with a lot of help from Paul). It compiles (and executes as expected):


    class C
    {
    public:
    void do_it();
    };

    template...
  24. Paul, again, thanks for the help. Here is what...

    Paul, again, thanks for the help.

    Here is what I came up with (which compiles (and runs as I expect it to)):


    class C
    {
    public:
    void do_it();
    };
  25. Paul, thanks for the reply. I can accept...

    Paul, thanks for the reply.


    I can accept this. but if I can do the following:


    class C
    {
    public:
    void do_it();
Results 1 to 25 of 278
Page 1 of 12 1 2 3 4





Click Here to Expand Forum to Full Width

Featured