TNX, Andreas
P.S: Win 2000, vc++ 6.0 SP5
I haven't heard of a great solution.
I type Alt+B,B, to build, then F5 to run.
Maybe some day Microsoft will add a 'build-and-run' command, to
satisfy these frequent desire.
I get a similar problem with VC++6 on Windows98. If I click the build
all button, then the execute button, it gives me the same messagebox.
If I do the same thing on my Windows2000 box, I don't get the message.
Strange considering it is the exact same source code, project, etc.
-GJB
Another message box that annoys....
If I click compile (rather than build) and I'm in the wrong project, I
get asked if I want to add the file to the current project, I say no,
so I then get told I can't do the build.
What I actually want is a cancel on the first dialog because I then
realise I've done something stupid, rather than VS lecturing me (in
the second box) about why you can't compile a file that isn't in the
current project
R
--
Poetry's not window cleaning.
It breaks the glass.
-- Chase Twichell
Good luck,
Levon Hayrapetyan
"Andreas Delp" <mgu...@gmx.de> wrote in message
news:Xns91AEAF0FBDC...@62.153.159.134...
--- cut ---
Dim bNeedToRun
Sub BuildAndRun()
Documents.SaveAll True
bNeedToRun = True
ExecuteCommand "Build"
End Sub
sub Application_BuildFinish(numErr, numWarn)
if (bNeedToRun=True) Then
bNeedToRun = False
if (numErr=0) Then
ExecuteCommand "DebugGo"
end if
end if
end sub
--- cut ---
--
Sincerely,
Alexander
mailto:al...@rsdn.ru
http://www.RSDN.ru - Russian Software Developer Network
"Andreas Delp" <mgu...@gmx.de> ???????/???????? ? ???????? ?????????:
news:Xns91AEAF0FBDC...@62.153.159.134...
The compile command should search all projects - or at least all
projects that the current project depends on - to try and find one
that it can compile the source file for. And, it shouldn't offer such
dangerously misguided help - it is wrong far too often.