? VB6 Weirdness 
Author Message
 ? VB6 Weirdness

When I make a change to a program in VB6, I always save the form, then save
the project & then re-compile & save the EXE.
However, when I close VB6, it always asks me if I want to save the project,
so I say yes.

BUT, when I use the Project & Deployment wizard, I it recognizes the project
as being newer than the EXE & asks me if I want to recompile, and, wanting
to be as safe as possible, I choose to do it.

Any ideas what's causing this?



Fri, 01 Jun 2001 03:00:00 GMT  
 ? VB6 Weirdness

Quote:

>When I make a change to a program in VB6, I always save the form, then save
>the project & then re-compile & save the EXE.
>However, when I close VB6, it always asks me if I want to save the project,
>so I say yes.

>BUT, when I use the Project & Deployment wizard, I it recognizes the
project
>as being newer than the EXE & asks me if I want to recompile, and, wanting
>to be as safe as possible, I choose to do it.

>Any ideas what's causing this?

I can answer the second part... When your compile, then save, then use the
deployment wiz, it checks to see if the time/date stamp on your existing exe
is older than the last save done, which if you (or VB6) save AFTER you've
made an exe, it is therefore, older... WHY it wants you to save after you
have just done so I'm not sure...


Fri, 01 Jun 2001 03:00:00 GMT  
 ? VB6 Weirdness
Tom,

I am not defendig the behavior, it is definitely a quirk.  But, the
reason you have to save after you compile, even if you saved right
before the compile, is for things like version number incrementing and
the like (ie compile once and the version number goes up, thus, you
have to save it to retain the new version number).  

Why VB6 PDW insists on a new compile, to which I almost always respond
'No', I am not sure.  It did definitely throw me the first time I saw
it though.  VB5 has the same issue of auto-increment, and the Setup
Wiz. was smart enough not to prompt over and over for a recompile, or
maybe it was simply ignoring the timestamp altogether.

Regards,

Charlie



Quote:


>>When I make a change to a program in VB6, I always save the form, then save
>>the project & then re-compile & save the EXE.
>>However, when I close VB6, it always asks me if I want to save the project,
>>so I say yes.

>>BUT, when I use the Project & Deployment wizard, I it recognizes the
>project
>>as being newer than the EXE & asks me if I want to recompile, and, wanting
>>to be as safe as possible, I choose to do it.

>>Any ideas what's causing this?

>I can answer the second part... When your compile, then save, then use the
>deployment wiz, it checks to see if the time/date stamp on your existing exe
>is older than the last save done, which if you (or VB6) save AFTER you've
>made an exe, it is therefore, older... WHY it wants you to save after you
>have just done so I'm not sure...



Sat, 02 Jun 2001 03:00:00 GMT  
 ? VB6 Weirdness
Hi Dave,

Quote:
>When I make a change to a program in VB6, I always save the form, then save
>the project & then re-compile & save the EXE.
>However, when I close VB6, it always asks me if I want to save the project,
>so I say yes.

        If you have your project setup to 'Auto Increment' the version numbers
then the App.Revision property will be incremented after a compile (in
preparation for the next compile).  This constitutes a change to the
project file, which causes the prompt for a re-save.

Hope this helps,
Len
---
Len Weaver
MeritSoft Corporation
Len DOT Weaver AT Sympatico DOT Ca



Sat, 02 Jun 2001 03:00:00 GMT  
 ? VB6 Weirdness
You're right - I have my program setup to auto-increment.

But this seems like a stupid way to do it....it seems that the only time it
should increment is as it's saving the next time - not after...

But - then again - maybe that's just me.

Quote:

>Hi Dave,

>>When I make a change to a program in VB6, I always save the form, then
save
>>the project & then re-compile & save the EXE.
>>However, when I close VB6, it always asks me if I want to save the
project,
>>so I say yes.

> If you have your project setup to 'Auto Increment' the version numbers
>then the App.Revision property will be incremented after a compile (in
>preparation for the next compile).  This constitutes a change to the
>project file, which causes the prompt for a re-save.

>Hope this helps,
>Len
>---
>Len Weaver
>MeritSoft Corporation
>Len DOT Weaver AT Sympatico DOT Ca



Sat, 02 Jun 2001 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. VB6 Report Datasource Dialogue Weirdness

2. VB6 weirdness on W7

3. Access 97 Class Mod Error Trap Weirdness

4. CDO sender object weirdness

5. Checking for open file weirdness

6. Document Protection Weirdness

7. Wildcard weirdness

8. Beyond Mail Merge - docvariable weirdness

9. Weirdness with properties in VS

10. ReadOnly Property weirdness in Datagrid?

11. Picture Box Weirdness

12. ZOINKS! Recordset Weirdness

 

 
Powered by phpBB® Forum Software