Search:
Type: Posts; User: lspecht
Search:
Search took 0.04 seconds.
-
March 31st, 2011, 12:27 PM
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...
-
October 5th, 2010, 09:17 AM
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...
-
September 22nd, 2010, 08:00 AM
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...
-
September 22nd, 2010, 07:43 AM
I'll see what I can do to post some code.
-
September 22nd, 2010, 06:45 AM
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...
-
September 22nd, 2010, 05:40 AM
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...
-
September 22nd, 2010, 05:05 AM
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...
-
September 21st, 2010, 05:40 AM
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...
-
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...
-
Sorry. I didn't read all of your last post. I need to think about it some more.
-
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...
-
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...
-
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.
-
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...
-
Thanks, Victor. I was afraid of that. Guess I'll have to write some hack code to deal with it until I can upgrade.
-
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:
-
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). ...
-
June 30th, 2009, 05:34 AM
Thanks, Ajay! That worked. Our work here is done. :)
-
June 30th, 2009, 05:02 AM
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...
-
June 29th, 2009, 01:50 PM
Thanks for responding Ajay. Our pathes crossed. See my previous post.
-
June 29th, 2009, 01:38 PM
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...
-
June 29th, 2009, 01:14 PM
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...
-
June 29th, 2009, 12:09 PM
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...
-
June 29th, 2009, 10:59 AM
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,
...
-
June 29th, 2009, 09:25 AM
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...
|
Click Here to Expand Forum to Full Width
|