Type: Posts; User: wdolson
Search took 0.03 seconds.
April 30th, 2013, 02:27 AM
I misunderstood how it works. The program does have some problems. I started down the memory leak possibility when I started getting corruption in the heap errors on program exit.
April 30th, 2013, 01:38 AM
I put a breakpoint at the beginning of the constructor for the app class. Then I put _CrtDumpMemoryLeaks(); on the first line of the constructor. Stepping past the call to the dump memory leaks...
April 29th, 2013, 11:24 PM
I know memory leak checking can sometimes have false positives. I'm wondering if this is one of them, or if I'm doing something wrong.
I turned on memory leak checking by adding
December 15th, 2011, 08:48 PM
I fixed it after you pointed it out to me.
I'm copying the contents of the pointer right after it's set and then discarding the pointer, so while it was less than optimal coding practice, it...
December 15th, 2011, 08:15 PM
The class I'm using to read the ini is called CSimpleIni from here http://code.jellycan.com/simpleini/. Using this, I can eliminate the ANSI function calls in the program.
It's usage is pretty...
December 15th, 2011, 08:05 PM
error C2440: '=' : cannot convert from 'const wchar_t *' to 'TCHAR *'
December 15th, 2011, 01:15 PM
It returns a wchar_t* which as far as I can tell is identical to a TCHAR * in Unicode, but the compiler couldn't deal with it without the cast.
December 15th, 2011, 04:53 AM
December 14th, 2011, 10:09 PM
Unless someone can point me to some literature that says otherwise, I'm pretty well convinced this is an MFC architecture issue. I put the exact same code in the mainframe and the app class. They...
December 14th, 2011, 05:06 AM
Thanks for the info. I learned C pretty much formally, but taught myself C++ on the job. There are some gaps in my education.
One thing, I wasn't talking about making a copy of IniPath, just a...
December 14th, 2011, 01:49 AM
Moving the loading code to the app class works.
I am still wondering why it wouldn't work right in the main frame.
December 14th, 2011, 01:15 AM
I tried moving the code to the document, and it loads OK. There is something weird with loading it in the main frame. I found I could get the strings to load if I created a TCHAR string at the top...
December 13th, 2011, 09:53 PM
m_CfgData is a struct with several strings and some ints. I've tried defining it a few different ways.
I removed the memset for now. Removing the & from in front of the m_CfgData won't compile. ...
December 13th, 2011, 06:38 AM
I found this class which seems to do the job:
I need to do some surgery on my code to fit in the changes, but it gets...
December 13th, 2011, 05:12 AM
In the document file (the INI file data is read in CMainFrame at program start)
CString filename = A2W(pFrame->m_CfgData.PinNamePath);
The function includes
December 13th, 2011, 03:33 AM
I am developing a new app in MFC under VC 2005. Part of the program has to deal with text from files that are used by some old ASCII programs (the programs were created before unicode existed).
December 7th, 2011, 12:42 AM
I forgot to reply to this. That worked.
November 29th, 2011, 06:13 AM
I see you can use
fsutil file setshortname
to force the short name of a file to something specific, but is there a way to do this programatically with the API?
If there is, it will save me...
November 29th, 2011, 05:27 AM
Probably my biggest gripe with Windows. And they didn't do all that great a job at fool proofing Windows for the low end user either. For that, Mac OS did a better job.
Though I think the...
November 15th, 2011, 09:15 PM
It's been a few days. My customer is pushing me to do a quick and dirty fix to get something out there, then come back later with fancier solutions. One data set is always called the control and...
November 10th, 2011, 09:18 PM
The problem is a bit more difficult because the beginning and end point of the two curves may not be the same X, though this may be OK. Additionally one curve can have more points than the other. ...
November 10th, 2011, 04:29 AM
Sorry about the wrong forum, I didn't scroll down far enough when looking. I see the algorithm forum down lower.
I think what we're looking for is the latter type of comparison. Basically, do...
November 9th, 2011, 05:46 AM
I'm making updates and maintaining some very old code. The original program suite was written for Windows 1.0 and except for a port to Win 32 and what I've been doing the last year, there have been...
July 15th, 2011, 08:46 PM
Yes. Most of the functions were double prototyped, one set with no arguments and another with extern "C" for the modules already compiled in C++. But some functions were only prototyped with no...
July 15th, 2011, 04:54 AM
The reasons for the various link errors were many. In the case of CheckDupLists, there were two modules in the project, one ListSup2_32.cpp and the other LinkSup2_32.cpp. I only noticed the ...
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.