Questions tagged [vb6]

Visual Basic 6.0 (VB6) was the final COM-based version of the VB programming language and IDE, last updated in 2004. It is the predecessor to the modern VB.NET.

Visual Basic 6.0 () is the third generation event-driven programming language and integrated development environment (IDE) from Microsoft for its COM programming model. It is also considered a relatively easy programming language to learn and use, because of its graphical development features and BASIC heritage.

The final release of the COM-based Visual Basic was version 6 in 1998. It was last updated in 2004 through Service Pack 6.

  • The designated successor language is . For things like writing COM addins for Microsoft Office you would use or .
  • Support for the VB6 IDE ended on April 8th, 2008.
  • The runtime is supported as part of Windows Vista, 7, 8, 8.1 and 10 and Windows Server 2008, 2012 including R2 and 2016.

Resources:

10799 questions
3
votes
1 answer

VB.net Passing a structure to unmanaged dll

I'm migrating some VB6 code to VB.net, the code contains a structure that contains 1d arrays, 2d arrays, and few other variables. The general outline of the Vb.net structure is as under Public Structure Test Dim a As Single Dim b As Single …
Kevin Boyd
  • 12,121
  • 28
  • 86
  • 128
3
votes
2 answers

Best practices for deploying data to a custom folder

Sometimes when we issue an upgrade to our application we need to install some files to the application's Data folder. We want to make it possible for the users to move this folder to a place of their liking. But how to deal with this at install…
Dabblernl
  • 15,831
  • 18
  • 96
  • 148
3
votes
2 answers

Reading large binary file from VB6/VBA/VBScript

I'm trying to get an old-style VB6 application to read a large (greater than 2GB) binary file. I declare a buffer as: Dim TCBuffer as String TCPBuffer = String(4096, Chr(0)) And read the data in a loop using: Get #FileNum, , TCPBuffer But once the…
Jonathan Wood
  • 65,341
  • 71
  • 269
  • 466
3
votes
1 answer

Visual Basic COM DLL does not load COM .NET assembly at version upgrade

I used to have a Visual Basic (VB6) COM DLL (let's call it "dllouter") which referenced another Visual Basic (VB6) COM DLL (let's call it "dllinner") with an interface "Interface". "dllouter" loaded "dllinner" in the following way: Public objCom As…
BillyJoe
  • 878
  • 7
  • 25
3
votes
1 answer

VB6 IDE removed by Symantec Endpoint due to 'WS.Reputation.1'

One person on my team found their VB6 IDE was no longer working. We eventually realized that the file VB6.EXE (from C:\Program Files (x86)\Microsoft Visual Studio\VB98) was missing and that this was because Symantec Endpoint Protection (14) had…
StayOnTarget
  • 11,743
  • 10
  • 52
  • 81
3
votes
1 answer

Jenkins Pipeline: build steps not running concurrently?

I'm having trouble with a Jenkins pipeline. The thing is, it seems one of the steps is running in parallel with another (not intentionally): I have something like: ... step("build"){ bat [Visual Basic 6 compile command - vb6.exe file.vbp /outdir…
3
votes
0 answers

VB6 Force application to load local dll over registered one

my team needs to have the same application deployed in two different folders on the same server but with slightly different code. We'd like to have a base code on the folder A, and a version with a few changes on the folder B. I'm trying to…
trick
  • 78
  • 1
  • 9
3
votes
1 answer

Add two 32-bit integers in Assembler for use in VB6

I would like to come up with the byte code in assembler (assembly?) for Windows machines to add two 32-bit longs and throw away the carry bit. I realize the "Windows machines" part is a little vague, but I'm assuming that the bytes for ADD are…
ErikE
  • 48,881
  • 23
  • 151
  • 196
3
votes
1 answer

Debug & Release version of OCX incompatible "Variable uses an Automation type not supported in Visual Basic"

I have a legacy OCX control built in VS2010 and used in a VB6 ActiveX EXE. When I register the debug version of the OCX and try to build it with VB6 I get the error If I register the Release version then the VB ActiveX EXE container compiles and…
JonN
  • 2,498
  • 5
  • 33
  • 49
3
votes
3 answers

Update or delete current row of database results

I'm trying to port some old VB6 code to C# and .NET. There are a number of places where the old code uses a RecordSet to execute a SQL query and then loop through the results. No problem so far, but inside the loop the code makes changes to the…
Jonathan Wood
  • 65,341
  • 71
  • 269
  • 466
3
votes
3 answers

How can I edit a registry key with VB.NET or VB6?

I need to edit a registry key and set the data value to "4" I know how to do it through the command prompt but am trying to find some Visual Basic code to do it. If it helps, this is the…
user60220
  • 31
  • 1
  • 1
  • 2
3
votes
4 answers

VB6 - How to automatically break compatibility from command line (or msbuild)

We're implementing Team Build and know we need to write MSBuild scripts to build our legacy VB 6 app. It's configured to use Binary Compatibility and we break Compatibility occassionally and we'd like our new automated build process to be able to…
Ange
3
votes
1 answer

On windows 7, my VB6 app can't see 'System' DSN's but has no trouble finding 'User' DSN's

For a while I was stuck trying to get a visual basic 6 app working in Windows 7. The last remaining snag was that it just couldn't find the DSN when starting up. On a hunch, I deleted the system DSN and created it exactly the same way, but in…
lowlevel
  • 188
  • 3
  • 9
3
votes
0 answers

Using a .NET-based ActiveX control in VB6

I have a C# .NET 4.5 user control that I need to make available to a legacy project in VB6. (Part of a slow migration away from VB, but we can't do it all at once.) I have been using a sample .NET-based, C# ActiveX control project from Microsoft…
user2735420
  • 106
  • 5
3
votes
3 answers

VB6 Slow in Windows 10

I have some VB6 applications which have run well under every version of windows since XP. Now we are going over to Windows 10 x64 we are finding our our GUI application is very slow especially in SQL operations etc. We run all applications…
Simon Wait
  • 65
  • 1
  • 4