|
MSVC has started to report this error when I try to save source files. It occurs maybe one time out of three, even if I have only one instance of VC running. Very annoying.
Has anyone else had this problem with VC6/Win2000? Is it a known bug in VC? I found nothing on MSDN. It might be a Win2000 problem, I've never seen it under Win98.
|
|
|
|
|
I see this a few times every day. Yes, i think it is a Win2k issue. It is really annoying. Even worse than source files, it can sometimes happen in the Class Wizard - and i've actually lost entire source files because of this one. I think CW does its work with temp files. When you make a change, CW creates and modifies a temp file, blows away the original file and tries to copy the temp to the original's name. Sometimes, CW will fail to copy the temp file back, after it has killed the original. The only chance of recovery is to find that temp file. Great fun.
-c
Smaller Animals Software, Inc.
|
|
|
|
|
I had a weird problem recently. I was closing VC when it asked me to save a file [this puzzled me no end as I thought I hadnt made any source changes], I clicked yes and forgot abt it till I reopened the project and found that one of my cpp files was now a zero byte file. I doono how or why it happnd. Luckily I had a 2-day oldbackup, so not much damage done.
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
I've had the one happen too. Never did figure out how it happened.
Michael
|
|
|
|
|
Are you sure that no other VC is running ?
It happens to me sometimes when VC crash, I need to kill it with the Task Manager.
Stephane
"It is ridiculous to claim that video games influence children.
For instance, if PacMan affected kids born in the eighties, we
should by now have a bunch of teenagers who run around in darkened
rooms eating pills while listening to monotonous electronic music."
|
|
|
|
|
Stephane Routelous wrote:
Are you sure that no other VC is running ?
Yes.
It happens to me sometimes when VC crash, I need to kill it with the Task Manager.
I've had that problem too, but I don't think they are related. I get the error even without a crash.
|
|
|
|
|
Yeah, check task manger and see if you see some orphan vc instances running [they are called vcspawn instances]. This happens some times when your program crashes in debug-run mode and takes vc down with it.
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
Sometimes I have open Visual Studio three times at one time,..never had this problem although I have Win2k
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Considering MSVC is the app that gave me a dialog
An unnamed file has an invalid path
I'd say it's a problem with MSVC. There are also known issues with MSVC heap management and W2k (read: bugs in MSVC6). The way to fix it was apparently to tweak some key under HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options (I'm still waiting for "Previous Version", "Obsolete Version" and "Next Version").
You might get lucky searching MSDN.
/Mike
|
|
|
|
|
I've had the same problem also. I can have two instances of MSVC with two different projects, one gives me the error, the other does not.
The good news is its fixed in the next version.
|
|
|
|
|
Do you have Norton Antivirus installed? Since I installed Norton 2003 on my XPPro machine, I started getting this error, too.
|
|
|
|
|
Hi guys,
how can i change the font of a specific row in a CListCtrl. If i use the SetFont() Function it changes the font for the whole Ctrl and i just want to change a specific row. Is that possible ???
Best Regards
Sonu
|
|
|
|
|
I think it's not a straightforward step.
You need to use the LVS_OWNERDRAWFIXED flag.
And do your own painting or drawing or whatever!
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
Hi,
I've seen that in the MSDN :
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/HTML/_core_cobject_class.3a_.accessing_run.2d.time_class_information.asp
void SomeFunction(void)
{
CObject* pMyObject = new CPerson;
if(pMyObject->IsKindOf( RUNTIME_CLASS( CPerson ) ) )
{
//if IsKindOf is true, then cast is all right
CPerson* pmyPerson = (CPerson*) pMyObject ;
...
delete pmyPerson;
}
...
delete [MyObject];
}
What are they doing here ?
I'm confused !
why delete pmyPerson here ?
What is this delete [MyObject] ?
Is that pseudo-code or what ?
Stephane
"It is ridiculous to claim that video games influence children.
For instance, if PacMan affected kids born in the eighties, we
should by now have a bunch of teenagers who run around in darkened
rooms eating pills while listening to monotonous electronic music."
|
|
|
|
|
Well.
This is my guess.
If you don't delete pmyPerson in that if() block, then maybe you should delete pMyObject. Perhaps that's what they meant.
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
Stephane Routelous wrote:
delete [MyObject];
That is not legal syntax. Whoever wrote that didn't have their coffee that morning.
--Mike--
My really out-of-date homepage
He who laughs last, didn't get the punchline and is just laughing so he won't look silly.
Sonork - 100.10414 AcidHelm
Big fan of Alyson Hannigan.
|
|
|
|
|
I'm writting the MDI program that lets user to draw lines by mouse, like AutoCAD.
In CMyView::OnPrepareDC(), i use pDC->SetMapMode(MM_ISOTROPIC) and SetViewportOrg()/SetViewportExt()/SetWindowExt(), to set the coordinate system : origin to Left-Bottom corner, X increase right, Y increase up.
Now, I want to change CMyView's base class from CView to CScrollView, and add SetScrollSizes() in CMyView::OnInitialUpdate().
but MM_ISOTROPIC cannot be used for CScrollView. How to use CScrollView in this coordinate system?
|
|
|
|
|
I'm using CEdit controls without borders. The resource editor won't allow reduction in the height of a CEdit control, for any given font size, below a minimum height. When borders are turned off the result is edit box text appearing too high. I wish to remove this surplus area in the edit box beneath the text.
I am able, by means of runtime creation (CEdit::Create()), to achieve this, through the specification of the CRect in the function to suit the size required. What I can't get to work is runtime modification (using SetRect() or SetWindowPos())to alter resource editor created CEdit controls.
Am I missing a simple step out somewhere or is this modification of a CEdit window rect post-construction just not possible?
Thanks
Jim
|
|
|
|
|
make sure you have the SWP_FRAMECHANGED bit set in the flags on SetWindowPos()
---
"every year we invent better idiot proof systems and every year they invent better idiots ... and the linux zealots still aren't being sterilized"
|
|
|
|
|
I've embedded an Edit Box in a ToolBar, but I would really like to only enable it to accept Numbers.
Do I have to derive a class from CEdit and overide whatever input funtion there is or is there an easier way?
Cheers
Asim
|
|
|
|
|
Check the 'numbers' option in the resource editor. If you need negative or floating point numbers, then you'll need to derive from CEdit.
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
Its embedded in a ToolBar there is no resource editor involved I have to create it with the create function.
In the style properties of the resource editor for an edit box there is an option for 'numbers' only input but I can't find any style flag in the documentation for that for use with the Create function.
Do you know what the actuall flag is?
cheers
|
|
|
|
|
|
I heard someone mention that something used unicode and so they would be using _T's everywhere. I wonder what the BST and _T() stuff is for. Its used all over the place in COM!
|
|
|
|
|
_T is a macro that expands to cause a string to be char* normally and wide under Unicode.
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|