Search:
Type: Posts; User: xikspan
Search:
Search took 0.03 seconds.
-
January 25th, 2010, 11:21 AM
Is it possible to open a file only once, use it for reading from it and writing to it? I have used the .Open and then the modeWrite and modeRead separately, but am currently closing the file and...
-
February 16th, 2009, 03:53 PM
I guess because I had a brain-fart. Linking it to: "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSKD\Lib\dbghelp.lib" still gives the error:
MapTextConverter error LNK2019:...
-
February 16th, 2009, 03:43 PM
I tried linking the library to C:\windows\system32\dbghelp.dll, but get the following error:
MapTextConverter error LNK2019: unresolved external symbol __imp__MakeSureDirectoryPathExists@4...
-
February 16th, 2009, 03:40 PM
Thanks. I am not sure exactly where to do that. (?)
-
February 16th, 2009, 03:34 PM
Errors received after including Dbghelp.h:
MapTextConverter error LNK2019: unresolved external symbol __imp__MakeSureDirectoryPathExists@4 referenced in function "public: class...
-
February 16th, 2009, 03:32 PM
Thanks. Does this require Dbghelp.h to be included?
-
February 16th, 2009, 03:25 PM
I am needing to create a directory to move files into. What is the best way in Visual C++ 2003 to create a directory?
-
April 17th, 2008, 02:52 PM
Alin, thanks. It is a huge application. I did have the lot.h already included. I have actually created a new constructor passing the log class a pointer to the lot class and this seems to work. ...
-
April 17th, 2008, 02:28 PM
When doing that I receive errors stating first that there is an ; missing from prior to the m_cls (for me I used m_lot) and then I receive other error stating "missing storage-class or type...
-
April 17th, 2008, 01:20 PM
Thanks. Yes, the GetLotLogExt() is declared as a public function, and the variable is public but it is also in a different class (Maps.cpp) that Lot.cpp instantiates to put data into memory. How...
-
April 17th, 2008, 11:51 AM
I am on a VC++ project after being away from it for 2 years, so please bear with me.
I have a class that inherits another class for logging only. Within that Log class it needs a value from a...
-
August 9th, 2007, 03:00 PM
Deleting pMap is what I found and tested, it did resolve the leak. I added:
delete pMap;
pMap=NULL:
I put the ". . . . . . . " in there instead of adding a long list of text that I was...
-
August 9th, 2007, 02:22 PM
I have looked through the other functions, also. The original code I sent had a pointer to the below CLot class and function, which in it points to the next one below which is the CMap class and...
-
August 9th, 2007, 10:39 AM
I have a memory leak and trying to figure out how to clean up any pointers that are left hanging when an object is destroyed. Below is a sample pointer used in a while loop that needs to be removed,...
-
June 28th, 2007, 02:29 PM
Thanks, had to change Runtime Library setting to Multi-Thread from Single-Thread, and then it compiled without errors.
With the code I listed above, I am getting a timestamp of 19:08:01 when the...
-
June 28th, 2007, 10:19 AM
Below is the external link error. Thanks for the pointer on the SeekToBegin, I just wanted to make sure the file was overwritten each time. Also, is it okay to have all my code in the InitInstance?...
-
June 28th, 2007, 09:39 AM
Below is my final code, the application compiles well in Debug, but I get external link errors in Release compile. This is with Visual Studio 6.0 or Visual Studio 2003. My main concern is that I...
-
June 27th, 2007, 02:52 PM
Thanks! I've learned several ways to do various things lately.
I am needing to be able to run this program every 4 minutes. How would you suggest I do this? Do I need to add a loop, timer, or...
-
June 27th, 2007, 01:47 PM
Nevermind, got it:
CString m_computerName = getenv("COMPUTERNAME");
-
June 27th, 2007, 01:36 PM
Thanks.
How would I go about getting the pc name (ex. P3302)?
CString commFilePath;
commFilePath = "C:\\logcomm.P3302";
// Get the specified file information by using GetFileAttributesEx
-
June 27th, 2007, 11:11 AM
Thanks, I changed the way I did this to use CStdioFile and it works much better:
// Create a new text file
CString writeHdr;
CString writeDate;
CString writeTime;
CStdioFile...
-
June 26th, 2007, 06:34 PM
I'm having a difficult time trying to get this to write out:
WIN32_FILE_ATTRIBUTE_DATA wfad={0};
::GetFileAttributesEx("C:\\comm.txt",GetFileExInfoStandard,&wfad);
SYSTEMTIME st={0};...
-
June 26th, 2007, 05:15 PM
Thanks! That pulled it together. I had spent the afternoon trying to get it to work, and retrieved it, but had not converted it. Thanks again!
-
June 26th, 2007, 03:08 PM
I tried the following, but it is not getting the file time. I do feel GetFileAttributesEx may be better, but do not know how to use it:
HANDLE hFile = NULL;
FILETIME ftCreate, ftAccess,...
-
June 20th, 2007, 02:29 PM
Thanks for the suggestions. No, it is not a copying that is needed, just to check the filetime and maybe check it against the system time, then if it has been longer than 6 minutes or so, write it...
|
Click Here to Expand Forum to Full Width
|