tags:

views:

1550

answers:

3

Is there a way to compile a VB6 component into 64 bits?

My feeling is that the answer is "no", but I would like to confirm this.

Please, if you can, paste a link to an authorative source that would confirm.

+11  A: 

No. I hope this counts as authoritative.

64-Bit Windows
Visual Basic 6.0 runtime files are 32-bit. These files ship in 64-bit Windows Operating Systems referenced in the table below. 32-bit VB6 applications and components are supported in the WOW emulation environment only. 32-bit components must also be hosted in 32-bit application processes.

The Visual Basic 6.0 IDE has never been offered in a native 64-bit version, nor has the 32-bit IDE been supported on 64-bit Windows. VB6 development on 64-bit Windows is not and will not be supported.

EFraim
vb6 doesn't even have a 64 bit integer type. To get a filesize you actually have to call the Windows API by passing in a Currency type, because that is the only vb6 type large enough to hold the 64 bit return value. Then you have to multiply by 1000 to get the actual value.
Robert Harvey
A: 

No it cannot (well Microsoft has not released a compiler to compile it for a 64-bit environment), but this does not mean that it won't run on a 64-bit system. To run it in conjunction with IIS, you'll need to install the 32-bit version of IIS.

Kevin
The question is about VB6, not VBScript. What's IIS got to do with it?
John Saunders
Well there are Web Classes, and then for that matter VB6 libraries called from classic ASP (same thing really). Then there were OLEISAPI2 and similar shims for using VB6 to write ISAPI applications.
Bob Riemersma
Well, forgive me for being presumptious, but normally when someone asks about compiling in 64-bit they want to know if they can get it to run on a 64-bit server. IIS comes into play, because most systems which are 64-bit are servers meaning they are generally web/com servers. VB6 was the major language to write com components for business systems. I was pointing out that in a pinch you can get a vb6 component to run in 64-bit system even when it's an ASP web application.
Kevin
A: 

No there is no any compiler to compile in 64 bit. There is no hope.

vishal
What if you're hoping to stop maintaining the old VB6 codebase, and start working in something like VB.NET/WPF instead? :)
mjfgates