Discussion:
VB in VS 2005: Solution fails to Build but no Error Reported
(too old to reply)
Charles Law
2007-05-26 09:18:18 UTC
Permalink
In the build output appears

========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========

However, the compiler does not generate any errors, and the Errors list is
empty.

This is an almost trivial program, but the compiler will not compile it and
will not tell me where the error is.

Has anyone else seen this?

Charles
Bob Butler
2007-05-26 13:37:22 UTC
Permalink
"Charles Law" <***@nowhere.com> wrote in message news:%***@TK2MSFTNGP03.phx.gbl...

There is no "VB" in VS 2005, only "VB.Net" and that's not the same language
--
You need to ask in a newsgroup with "dotnet" in the name. This group id for
VB 6.0 and earlier and does not include VB.Net or VB 200x.
Michael D. Ober
2007-05-26 15:34:06 UTC
Permalink
Crap answer.
Post by Bob Butler
There is no "VB" in VS 2005, only "VB.Net" and that's not the same language
--
You need to ask in a newsgroup with "dotnet" in the name. This group id
for VB 6.0 and earlier and does not include VB.Net or VB 200x.
Bob Butler
2007-05-26 15:43:25 UTC
Permalink
Post by Michael D. Ober
Crap answer.
LOL

Pot, Kettle.
Michael D. Ober
2007-05-26 15:35:38 UTC
Permalink
Charles,

Create a new project of the type you want and then copy/paste your code to
the new project. If that doesn't work, please provide more details, such as
the code and project settings.

Mike Ober.
Post by Charles Law
In the build output appears
========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========
However, the compiler does not generate any errors, and the Errors list is
empty.
This is an almost trivial program, but the compiler will not compile it
and will not tell me where the error is.
Has anyone else seen this?
Charles
Bob Butler
2007-05-26 15:43:04 UTC
Permalink
Post by Michael D. Ober
Charles,
Create a new project of the type you want and then copy/paste your code to
the new project. If that doesn't work, please provide more details, such
as the code and project settings.
But not here; this group is for VB 6.0 and earlier. VB.Net belongs in a
VB.Net newsgroup.
Robert Morley
2007-05-26 18:52:32 UTC
Permalink
For those who hadn't noticed, it's being cross-posted to both a VB and a
VB.NET group. The regular m.p.vb.bugs should be removed in further
responses, as that group is reserved for "classic" VB (VB6 and earlier).


Rob
Post by Bob Butler
Post by Michael D. Ober
Charles,
Create a new project of the type you want and then copy/paste your code
to the new project. If that doesn't work, please provide more details,
such as the code and project settings.
But not here; this group is for VB 6.0 and earlier. VB.Net belongs in a
VB.Net newsgroup.
Bob Butler
2007-05-27 00:28:47 UTC
Permalink
Post by Robert Morley
For those who hadn't noticed, it's being cross-posted to both a VB and a
VB.NET group. The regular m.p.vb.bugs should be removed in further
responses, as that group is reserved for "classic" VB (VB6 and earlier).
Ahh, I had not seen that. Apologies for any confusion.
Michael D. Ober
2007-05-26 22:31:19 UTC
Permalink
In that case, you should have put that in your original answer - not the
generic "VB doesn't exist in VS 2005" that the VB 6 fanatics spew. The
reality is that VC++ doesn't exist in VS 2005 in the same manner as it
existed in VS 6. I know because I have programs in both VB 6 and VC++ 6.
The VB 6 code has ported to VB 2005 a lot easier than the VC++ code did to
VC 2005. At some point, VB 6, with its mixed 16/32-bit COM model, will not
even be able to run on Windows. The end to VB 6 is definitely on the
horizon given that Longhorn (Windows 2008) will be the last version of
windows running 32-bit processors.

Mike.
Post by Bob Butler
Post by Michael D. Ober
Charles,
Create a new project of the type you want and then copy/paste your code
to the new project. If that doesn't work, please provide more details,
such as the code and project settings.
But not here; this group is for VB 6.0 and earlier. VB.Net belongs in a
VB.Net newsgroup.
Ralph
2007-05-27 20:04:49 UTC
Permalink
Post by Michael D. Ober
In that case, you should have put that in your original answer - not the
generic "VB doesn't exist in VS 2005" that the VB 6 fanatics spew. The
reality is that VC++ doesn't exist in VS 2005 in the same manner as it
existed in VS 6. I know because I have programs in both VB 6 and VC++ 6.
The VB 6 code has ported to VB 2005 a lot easier than the VC++ code did to
VC 2005. At some point, VB 6, with its mixed 16/32-bit COM model, will not
even be able to run on Windows. The end to VB 6 is definitely on the
horizon given that Longhorn (Windows 2008) will be the last version of
windows running 32-bit processors.
Mike.
Your enthusiasm for the future can be appreciated but your observations and
prophesies are a bit exaggerated.

The VC++ compiler included with VS2005 is quite capable of generating C++
sans any managed environment. The "reality" is while the IDE has changed
(features have different names, colors, placements, &etc.) there is no
substantial differences between VS6 and VS2005 when it comes to VC++. While
with VB the language itself has changed, VC++/CLI is an option.

The statement that VB6 code ports to VS2005 easier than VC++ code can not
possibly be based on any concrete personal experience. Pure fantasy.

That VB6 uses a 'mixed 16/32 bit COM model' is an extraordinary observation
and definitely would come as a surprise to any VB6 programmer.

As for the demise of VB6 - I think everyone is well aware that the VB
development platform is already over the horizon as far as MS is concerned.
However, the VB IDE and applications are supported on Vista, and according
to MS, apps will be supported on Windows Server 2008. Considering a support
life-time of 5 to 7 years, that means it will be at least 2013 before
current VB6 programmers need to be concerned.

[Which by the way, makes VB6 support almost 5x longer than "VB.Net - VS2003"
was supported. <g>]

It is true that MS has announced that "Windows Server 2008" is the last OS
to support 32-bit *processors*, BUT that doesn't mean 16-bit or 32-bit
*processes* won't be supported, or that 16/32-bit processors/processes won't
be supported with newer workstation OSs.

-ralph
Michael D. Ober
2007-05-27 23:15:41 UTC
Permalink
Post by Ralph
Post by Michael D. Ober
In that case, you should have put that in your original answer - not the
generic "VB doesn't exist in VS 2005" that the VB 6 fanatics spew. The
reality is that VC++ doesn't exist in VS 2005 in the same manner as it
existed in VS 6. I know because I have programs in both VB 6 and VC++ 6.
The VB 6 code has ported to VB 2005 a lot easier than the VC++ code did to
VC 2005. At some point, VB 6, with its mixed 16/32-bit COM model, will
not
Post by Michael D. Ober
even be able to run on Windows. The end to VB 6 is definitely on the
horizon given that Longhorn (Windows 2008) will be the last version of
windows running 32-bit processors.
Mike.
Your enthusiasm for the future can be appreciated but your observations and
prophesies are a bit exaggerated.
The VC++ compiler included with VS2005 is quite capable of generating C++
sans any managed environment. The "reality" is while the IDE has changed
(features have different names, colors, placements, &etc.) there is no
substantial differences between VS6 and VS2005 when it comes to VC++. While
with VB the language itself has changed, VC++/CLI is an option.
The VC++ linker uses a new interface which means that older libraries cannot
be used. This is a major change, especially when forced to use older
libraries. If there is a switch that will allow this, please let me know.
Post by Ralph
The statement that VB6 code ports to VS2005 easier than VC++ code can not
possibly be based on any concrete personal experience. Pure fantasy.
That VB6 uses a 'mixed 16/32 bit COM model' is an extraordinary observation
and definitely would come as a surprise to any VB6 programmer.
Take a look at the limitations of the ActiveX controls that shipped with VB
6. At least one of them, the progress bar control, is a 16 bit control. It
won't handle values longer than 2^15-1 for max value. I suspect there are
other controls with similar issues.
Post by Ralph
As for the demise of VB6 - I think everyone is well aware that the VB
development platform is already over the horizon as far as MS is concerned.
However, the VB IDE and applications are supported on Vista, and according
to MS, apps will be supported on Windows Server 2008. Considering a support
life-time of 5 to 7 years, that means it will be at least 2013 before
current VB6 programmers need to be concerned.
[Which by the way, makes VB6 support almost 5x longer than "VB.Net - VS2003"
was supported. <g>]
Bravo - MS actually did something right with regards to VB 6. Personally, I
suspect that VS 2002 & 2003 were designed to be a "throw away" answer to Sun
Microsystem's Java. In the VB world, you lost a lot of IDE features going
from VB 6 to VB 2002/3. Features that have almost all been restored in VB
2005. Also, the framework and ASP.Net changed dramatically from 1.x to 2.0,
yet the change from 2.0 to 3.0 was 100% backwards compatible.
Post by Ralph
It is true that MS has announced that "Windows Server 2008" is the last OS
to support 32-bit *processors*, BUT that doesn't mean 16-bit or 32-bit
*processes* won't be supported, or that 16/32-bit processors/processes won't
be supported with newer workstation OSs.
64 bit Windows OSs cannot run 16 bit programs, which eliminates many VB 6
program simply because their installers are 16 bit. This effectively
eliminates the ability for most people to install and run VB 6 based
programs on 64 bit Windows. Yes - I think it's a lousy solution since the
64 bit processors still have the ability to emulate an 8086.

I am definitely one of those people who feel VB 6 got shafted with the
introduction of VB.Net. Many of the features in VB 6 could easily have been
incorporated into VB.Net, yet MS deemed it either too difficult or not worth
the effort. It is interesting that the VBA for Word and Excel was actually
based on the VB 6 Control Creation Edition, which makes me wonder if MS had
always felt that VB 6 was a throw away language.

Mike.
Robert Morley
2007-05-28 00:31:23 UTC
Permalink
Post by Michael D. Ober
Take a look at the limitations of the ActiveX controls that shipped with
VB 6. At least one of them, the progress bar control, is a 16 bit
control. It won't handle values longer than 2^15-1 for max value. I
suspect there are other controls with similar issues.
Its max value has nothing to do with whether or not it's a 16-bit control.



Rob
Ralph
2007-05-28 02:56:32 UTC
Permalink
Post by Michael D. Ober
<snipped>
The VC++ linker uses a new interface which means that older libraries cannot
be used. This is a major change, especially when forced to use older
libraries. If there is a switch that will allow this, please let me know.
Linking object files compiled with different compilers is always an
adventure. But as they are COFF it is possible (depending of course on
initial compiler directives).

One of the many advantages of using a Dynamic Linking or COM.
Post by Michael D. Ober
Take a look at the limitations of the ActiveX controls that shipped with VB
6. At least one of them, the progress bar control, is a 16 bit control.
It
Post by Michael D. Ober
won't handle values longer than 2^15-1 for max value. I suspect there are
other controls with similar issues.
Another amazing revelation.

No complaint with the rest.

-ralph
Ken Halter
2007-05-29 14:13:02 UTC
Permalink
Post by Michael D. Ober
Take a look at the limitations of the ActiveX controls that shipped with
VB 6. At least one of them, the progress bar control, is a 16 bit
control. It won't handle values longer than 2^15-1 for max value. I
suspect there are other controls with similar issues.
Anyone that has problems creating their own progress bars, please raise your
hand.... want one that supports double floats?
Post by Michael D. Ober
Post by Ralph
[Which by the way, makes VB6 support almost 5x longer than "VB.Net - VS2003"
was supported. <g>]
Bravo - MS actually did something right with regards to VB 6. Personally,
I suspect that VS 2002 & 2003 were designed to be a "throw away" answer to
Sun Microsystem's Java. In the VB world, you lost a lot of IDE features
going
I'm sure the people that paid their hard earned money for VS2002/2003 would
love to hear they invested in "throw away" products <g>

Next, I'm sure the "but, VB.net code is very similar to VB code"... yeah...
and King snakes are very similar to Coral snakes. Only one will kill you.

Loading Image...
Loading Image...
--
Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
In Loving Memory - http://www.vbsight.com/Remembrance.htm
Jan Hyde (VB MVP)
2007-05-29 16:12:58 UTC
Permalink
"Ken Halter" <***@Use_Sparingly_Hotmail.com>'s wild
thoughts were released on Tue, 29 May 2007 07:13:02 -0700
Post by Ken Halter
Post by Michael D. Ober
Take a look at the limitations of the ActiveX controls that shipped with
VB 6. At least one of them, the progress bar control, is a 16 bit
control. It won't handle values longer than 2^15-1 for max value. I
suspect there are other controls with similar issues.
Anyone that has problems creating their own progress bars, please raise your
hand.... want one that supports double floats?
Post by Michael D. Ober
Post by Ralph
[Which by the way, makes VB6 support almost 5x longer than "VB.Net - VS2003"
was supported. <g>]
Bravo - MS actually did something right with regards to VB 6. Personally,
I suspect that VS 2002 & 2003 were designed to be a "throw away" answer to
Sun Microsystem's Java. In the VB world, you lost a lot of IDE features
going
I'm sure the people that paid their hard earned money for VS2002/2003 would
love to hear they invested in "throw away" products <g>
Next, I'm sure the "but, VB.net code is very similar to VB code"... yeah...
and King snakes are very similar to Coral snakes. Only one will kill you.
ROTFLMAO

J
Post by Ken Halter
http://en.wikipedia.org/wiki/Image:Coral_snake.jpg
http://en.wikipedia.org/wiki/Image:Serpent_roi_bandes_grises_01.JPG
Loading...