|
Yep, the file is in the same directory as the project. This is bad.
It occured when I click Save. I closed the workspace, reopened it then the cpp file is gone
I even looked for it in the project dir and its not there anymore (I kept the project directory window open, and it was still there until I refreshed it after I saved the project)
EDIT:
After a few minutes of searching, I found one with situation similar to mine:
http://www.codeguru.com/forum/showthread.php?t=332727&page=1
Another one:
http://groups-beta.google.com/group/microsoft.public.vc.ide_general/browse_frm/thread/c48c6d2cfeaabba1/934105cfbac39cff?hl=en&lr=&ie=UTF-8&oe=UTF-8&rnum=2&prev=/groups%3Fq%3D%2522Cannot%2Bsave%2Bfile%2522%2B%2522the%2Bfile%2Bmay%2Bbe%2Bin%2Buse%2Bby%2Banother%2Bapplication%2522%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26sa%3DN%26tab%3Dwg#934105cfbac39cff
|
|
|
|
|
Wow! Good thing I run AVG instead of Norton!
Cheers,
Tom Archer - Archer Consulting Group
"So look up ahead at times to come, despair is not for us. We have a world and more to see, while this remains behind." - James N. Rowe
|
|
|
|
|
If you are referring to VC 7.0 (or maybe even 7.1?), this is a known "problem". For more info/verifications, you could google some MS newsgroups (usenet news).
Obviously it can be fixed - but only by the ones destroying your data in the first place.
|
|
|
|
|
Hmm, I'm using VC 6. And yah, I looked at other boards and they have the problem too. Stupid Micro$oft <_<
|
|
|
|
|
yup.....it happens for me also once a while! just compile and execute ur project and it should be back!
"faith, hope, love remain, these three.....; but the greatest of these is love" -1 Corinthians 13:13
|
|
|
|
|
yes, it has happend to me many times, after saving the file i try to compile the project, the compiler complains that the file is missing.
I know this behaviour so i just do a save all again and then compile again.
yes,
in the past i have lost a file like this, but lucky that i use VSS.
-prakash
|
|
|
|
|
I use VC5 on XP machine and have faced the problem of the cpp file getting deleted. I had to rewrite the whole thing.
|
|
|
|
|
I noticed that if I add a normal ComboBox to a dialog (dropdown list) and add some strings, even though the strings are added (I verified that), the list isn´t displayed when i push the down button. Can anyone give me a solution to that?
I learn my self
|
|
|
|
|
Did you remember to resize the dropdown in the dialog editor?
Cheers,
Tom Archer - Archer Consulting Group
"So look up ahead at times to come, despair is not for us. We have a world and more to see, while this remains behind." - James N. Rowe
|
|
|
|
|
Please Sir,
What to do exactly ?
My dialog editor is where i drawn my Box ? and after ?
|
|
|
|
|
Thanks a lot for your help
I ve found what to do; to clic a second time on the down arrow and to change the size downward.
Thanks
I learn my self
|
|
|
|
|
You're very welcome.
Cheers,
Tom Archer - Archer Consulting Group
"So look up ahead at times to come, despair is not for us. We have a world and more to see, while this remains behind." - James N. Rowe
|
|
|
|
|
See here.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
I need some help on how to copy and paste files and folders programmely. Thanks for any help!
|
|
|
|
|
You need to be more specific about what you're trying to do and where you're running into problems. From your questions, I can't tell if you're having problems with OLE drag & drop, or copying files/folders, or ...
Cheers,
Tom Archer - Archer Consulting Group
"So look up ahead at times to come, despair is not for us. We have a world and more to see, while this remains behind." - James N. Rowe
|
|
|
|
|
Do you want to move or copy files with the copying dialog of the windows explorer?
If so, then have a look at SHFileOperation.
Don't try it, just do it!
|
|
|
|
|
for example, there are dozens of files and file folders(which also include files) under dir_A\sub_dirA, now I want to copy and paste all the files and file folders under dir_A\sub_dirA into the dir_B\sub_dirB, I just don't know how to do it.
|
|
|
|
|
SHFileOperation... it's the API what windows explorer uses when copying, moving, deleting, ... files.
Don't try it, just do it!
|
|
|
|
|
hi,
i don't really understand your question.
what are you trying to define ?
why do you need to define things such as Language, Tools, OS, etc... ?
i'll try to give a small anwser here, but i fear to be "out of range"...
Language : something you use to write some code. a language has special rules that must be respected like the grammar, the syntax...
OS : an operating system is a "big" software that permits to the users of a PC not to care about the hardware. if provides layers (APIs) and functionalities like a GUI (or not - console modes).
Package : I don't understand your request... a package is a set of things... it depends on the context we use this word...
DTP, RAD : i don't know what these are
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Are you asking for explanations of tools, OS, Languages?
Micorsoft visual source safe is a tool that is used for backup purpose. winzip is a tool used for zipping purpose.
A package like software that is used for particualar purpose is called as tool.
A langauage is a software used to develop any kind of applications.
An Operating system,is a "big" software that permits to the users of a PC not to care about the hardware. if provides layers (APIs) and functionalities like a GUI (or not - console modes. (From -TOXCCT >>> GEII power)
A packages is a software developed by a language run in an OS.
Desk top publishing also known as DTP used for desinging purposes. Some packages like Adobe photoshop, coredraw, pagemaker, used for designing purposes.
DARWIN PAUL RAJ
|
|
|
|
|
hey,
it seems that you made a confusion... a did not post this to ask anything, i just answered to someone who deleted his post...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
|
Hello -
I read through a Samm's book... I read through Petzold.. and I still don't have a handle on this.
I am writing software to analyze a bunch of data with the data organized in columns. The general plan is to use the dialog model and open a sub-dialog for each column of data.
No problems creating sub-dialogs. It's destroying them that is confusing me.
Say that I setup, create, and activate a dialog using Create() and ShowWindow().
Now comes time to destroy the window.
I see a variety of ways of doing this:
1. The sub-dialog (an MFC-derived class) executes this->Destroy(). This seems wrong as a class is deleting itself without notifying the parent class.
2. A call-back function destroys the class. This seems reasonable.. except that the child calling the call-back that is part of the parent class winds up calling the child's Destroy() and control eventually returns to a destroyed class. Which ruins the idea.
Somewhere in the MFC documentation, it says that calling a sub-dialog's Destroy() function deletes the window.. but that the class's must be deleted to destroy the underlying data structures.
By this point my eyes are crossing.. and I could use a tip.
Regards,
Mark
|
|
|
|
|
I do not know if this can is you of aid, but I in my application create one in this way ProgressBar Dialog:
...other code...
m_pDlgProgressBar = new CDlgProgressBar();
if(m_pDlgProgressBar != NULL)
{
BOOL ret = m_pDlgProgressBar->Create(IDD_DLG_PROGRESS_BAR,this);
if(!ret)
AfxMessageBox("Error Creating DlgProgressBar");
m_pDlgProgressBar->ShowWindow(SW_SHOW);
}
else{
AfxMessageBox("Error Creating Dialog Object");
}
....other code....
In order to destroy the dialog I have override PostNcDestroy Function
like this:
void CDlgProgressBar::PostNcDestroy()
{
delete(this);
SECBitmapDialog::PostNcDestroy();
}
it makes to know me...
Excuse but my English is not of the best ones
Too many plans make the health badly...
|
|
|
|
|
What is the std::string equivalent for the following CString operation?
CString time;
int minutes = 5;
int seconds = 5;
time.Format( "Time is %02d:%02d", minutes, seconds );
Output : Time is 05:05
|
|
|
|