I just installed a 40 gb maxtor drive that was formatted and partioned on a win2k computer (NTFS) into my winNT machine. Certain directories will not open saying "file or directory is corrupt and non-readable". WinNt also says it cannot check the disk for errors. I think this may be...
Currently I'm using the System function as follows:
system("del seqfile.txt");
system("move seqfile2.txt seqfile.txt");
system("seq_in_pts avgund.tif post_img.tif < seqfile.txt");
However, I would prefer not to have the Command Prompt windows appear. I've...
The primary hard drive in our WIN NT 4 machine died. (all disks scsi) I was trying to replace it. Accidentally deleted the only partition on the second hard drive? What do I do? I found: http://support.microsoft.com/support/kb/articles/Q245/7/25.ASP I'm thinking I should create a partition...
I accidentally deleted the only partition on a hard drive here at work. It was NTFS. I have not yet exited FDISK. How do I get it back? Please help, and reply soon.
How do I Open and display a tif file? OleLoadPicturePath seems to work for everything but tiffs. It seems I could have IE display it. However I'm looking for the best way to do it, since I'm going to have to translate mouse movement into pixel displacement (unless there is a better way to do...
Can anybody suggest a good compiler/debugger?
I currently have visual studio 6 installed. I would like a compiler/debugger with the capabilities of visual studio 97 for stepping/variable values etc., however studio 6 doesn't have fortran, and I'm not sure it would be wise to have 97 and 6...
The lab I work for is need of a couple more copies of Visual Studio 6. However, I'm wondering if another version is coming out soon, possibly including C#. Burtan says its the future of development.
It is very important for me to be able to use relative paths in my program. The line:
if(pref_file.Open("prefs.txt", CFile::modeRead | CFile::typeText)) Works fine when I'm debugging from within visual c++. However when I double click on the executable, it can't open the file...
I hope my posts aren't annoying or occur too often.. I'm new to visual c++, and don't have a good book for it, and sometimes its easier to ask a question than to spend a bunch of time trying something that might not work.
Can anybody recommend a good visual c++ book?
I'm using fstream to open and read from a file. I'm trying to put lines of text into CStrings. Since I don't know how to do this directly, I'm putting them into LPSTR's then setting the CStrings equal to the LPSTR's. However, when I do this, the CStrings just end up equalling " "...
I'm getting a "error C2678: binary '>>' : no operator defined which takes a left-hand operand of type 'class fstream' (or there is no acceptable conversion)"
from:
fstream pref_file;
CString something;
pref_file.open("prefs", ios::in|ios::nocreate)...
I'm looking for a way to convert an int to a string. I found "Convert.ToString Method (Int32, Int32)" on the MSDN page, but its for .NET I'm not sure exactly what that is. can I use this method in visual c++ or is .NET a seperate language?
I'm getting an assertion failure, as I previously mentioned in the 11th message of
thread116-107726
When I commented out the "delete" portions of the code, I was able to prevent this assertion failure. There was another series of "delete" statements I had to comment out in...
I'm appending stuff to the end of a CString attached to a editbox, then UpdateData(FALSE);
After that a bunch of processing goes on.
However the screen doesn't actually show the change in editbox until the program is done executing. What command do I use to make this happen right after...
How do you create an end of line in a CString. I have an edit box that I'm outputting text to. How do I format the Cstring to put text on a new line periodically. In c++ \n would create a new line, that doesn't seem to work here.
How do I make my program pause until any key is pressed. My best is cin >> char, but that doesn't work for the enter key. I think it would if I could get it to input whitespace. Is there another way?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.