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

Search:

Type: Posts; User: lspecht

Page 1 of 2 1 2

Search: Search took 0.04 seconds.

  1. OnInitDialog not called when I enable CFHookProc?

    I've managed to customize my own CFontDialog by adding a couple of buttons and a combo box. VS 2008 on XP Pro. My problem is that when I enabled the hookproc (yes I need to use a hookproc) in my...
  2. Re: Can't enter text in my CRichEditCtrl

    Sorry it took so long for me to get back on this. Life got in the way of coding. I hate it when that happens. :)

    I solved my problem. A thought had been nagging me that way back when I began...
  3. Re: Can't enter text in my CRichEditCtrl

    I'll do that after I remove all the proprietary code from the project. In fact, I might just see if I can recreate the problem in a new project that has only the code to reproduce the problem. That...
  4. Re: Can't enter text in my CRichEditCtrl

    I'll see what I can do to post some code.
  5. Re: Can't enter text in my CRichEditCtrl

    My comment was based on internet research and what others have said for using CRichEditView and looking at the CRichEditView code that contains the additional CRichEditCntrItem class and additional...
  6. Re: Can't enter text in my CRichEditCtrl

    Yes, there are reasons for not using an MDI app. My app is a front end for a database where of course, all the data is stored. The function that my app performs does not require multiple documents...
  7. Re: Can't enter text in my CRichEditCtrl

    Thanks for responding, Victor.

    I moved it to the end of my OnInitialUpdate override as you suggested but it did not fix my problem. My OnDraw override is now empty. I only have those lines in...
  8. [RESOLVED] Can't enter text in my CRichEditCtrl

    Hi,
    I've created an SDI app with multiple views using VS 2008 on XP Pro.
    The main view is CView on which I draw some stuff. I have two secondary views, both are to be Rich Edit views allowing the...
  9. Replies
    22
    Views
    2,415

    Re: Debug works, Release doesn't?

    After thinking about your suggestion, Paul, :o I came up with this solution that should work. I'll have to add code to test for when y2Test is 1 or greater then subtract instead of add but that is...
  10. Replies
    22
    Views
    2,415

    Re: Debug works, Release doesn't?

    Sorry. I didn't read all of your last post. I need to think about it some more.
  11. Replies
    22
    Views
    2,415

    Re: Debug works, Release doesn't?

    That would work for this example, however, I oversimplified my example. In my app, yTest can be any power of 10 and the .01 can be any power of 10 less than yTest. For the next case it could be...
  12. Replies
    22
    Views
    2,415

    Re: Debug works, Release doesn't?

    Paul,
    The log10(yTest) is 8 so that won't work. I tried the following and it too fails for the Release mode which i=30 instead of 10. Debug i=10. I suspect this is the same problem. Exact...
  13. Replies
    22
    Views
    2,415

    Re: Debug works, Release doesn't?

    Paul,

    I have a better understanding now that I read the post you referenced. Thanks for the information. I'll have to think of a solution that will work no matter which compiler option I use.
  14. Replies
    22
    Views
    2,415

    Re: Debug works, Release doesn't?

    The problem is I don't know how many times the loop needs to run. It will likely be different every time. Your point should be taken care of by the fact that I'm using > and not an exact equality...
  15. Replies
    22
    Views
    2,415

    Re: Debug works, Release doesn't?

    Thanks, Victor. I was afraid of that. Guess I'll have to write some hack code to deal with it until I can upgrade.
  16. Replies
    22
    Views
    2,415

    Re: Debug works, Release doesn't?

    So where is the instability in my code? I totally expected this to work no matter how it was compiled? How should it be written? :confused:
  17. Replies
    22
    Views
    2,415

    Debug works, Release doesn't?

    I came across this in my MFC app and simplified the code into this console app for this example. When I compile and run the following code in Debug mode, it gives the correct answer for i, (10). ...
  18. Replies
    13
    Views
    1,537

    Re: How do I make "Open With" work in MyApp?

    Thanks, Ajay! That worked. Our work here is done. :)
  19. Replies
    13
    Views
    1,537

    Re: How do I make "Open With" work in MyApp?

    DebugBreak(); works in that it allows me to attach the debugger however, when I do, it is launching my Compaq Visual Fortran Debugger. How do I get it to launch my .Net Debugger? Is there a...
  20. Replies
    13
    Views
    1,537

    Re: How do I make "Open With" work in MyApp?

    Thanks for responding Ajay. Our pathes crossed. See my previous post.
  21. Replies
    13
    Views
    1,537

    Re: How do I make "Open With" work in MyApp? Problem Solved!

    Thanks Victor for all your help and time on this issue. I finally saw what my message boxes were showing me all along and that was the double quotes around the filename coming in off the command...
  22. Replies
    13
    Views
    1,537

    Re: How do I make "Open With" work in MyApp?

    I'm confused. If I start the debugger using F5, the filename from the command line,

    theApp.m_sCmdLineFileName,

    will be blank and LoadBMPFile will never get called unless I open the file from...
  23. Replies
    13
    Views
    1,537

    Re: How do I make "Open With" work in MyApp?

    Thanks for the tip on DeleteObject.

    I did as you suggested and used GetLastError. The error is,

    "LoadBMPFile failed with error 2: The system cannot find the file specified."

    I have not...
  24. Replies
    13
    Views
    1,537

    Re: How do I make "Open With" work in MyApp?

    The applicable code is shown below. The first AfxMessageBox in LoadBMPFile displays the correct path and filename. However, the LoadImage returns a NULL.

    In MyApp::InitInstance,
    ...
  25. Replies
    13
    Views
    1,537

    How do I make "Open With" work in MyApp?

    I've deleted Open from my file menu and placed my own Open BMP instead and it works fine in my MFC CScrollView SDI app. My OpenBMP function gets the filename from the user; then in OnDraw, I load...
Results 1 to 25 of 41
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured