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

Getting column index of clicked column of listview

I did not find a native procedure to retrieve the index of the column, the info that is here: ListView1.ListItems.Item (ListView1.SelectedItem.Index) .ListSubItems (HERE) I know how to get the index of the line like…
3
votes
5 answers

Use C++ DLL with VB6

I just created a DLL for my boss in MSVC++2010. I selected "New Win32 DLL" with option "Export symbols", so, everything is completely standard. There are some predefined exports in the new project files, a class, its constructor, a global function…
Felix Dombek
  • 13,664
  • 17
  • 79
  • 131
3
votes
1 answer

Using InternetExplorer.Application object to check a checkbox on a webpage

I would like to use... Dim IE As Object Set IE = CreateObject("InternetExplorer.Application") With appropriate code to check a checkbox on a webpage The HTML Code on the rendered page is...
3
votes
11 answers

Which local database fits my situation?

I will be building a set of applications. One of these apps is unattended application (written in VB6) which will write data it receives from various sources to a local database. All the other applications (will be written in VS 2008/c# 3.0) will…
AngryHacker
  • 59,598
  • 102
  • 325
  • 594
3
votes
4 answers

VB6 type mismatch error

I am getting the following type mismatch error on the following IF obj.propery THEN ... END IF the code I am using is on visual source safe and when other developers run the same project the code runs with no error. The property is…
user322076
3
votes
1 answer

How to manually set the GUID for a VB6 Activex control

Recently we have an issue where we have to modify an ActiveX control which is developed long back. Problem is, we lost the source code, but we found another version of the same control with a different GUID. The requirement is to keep the old GUID…
JSR
  • 188
  • 8
3
votes
1 answer

VB6 Julian Date String to Date Object

Is there a function in Visual Basic 6 that can be used to convert a julian date string (99001-1st of Jan 1999) to a Date object? I have tried using CDate() but the results are not as expected. THanks.
Koekiebox
  • 5,793
  • 14
  • 53
  • 88
3
votes
4 answers

How does Process Explorer enumerate all process names from an XP Guest account?

I'm attempting to enumerate all running process EXE names, and have stumbled when attempting this on the XP Guest account. I am able to enumerate all Process IDs using EnumProcesses, but when I attempt OpenProcess with PROCESS_QUERY_INFORMATION Or…
Joe Jordan
  • 2,372
  • 2
  • 17
  • 20
3
votes
4 answers

Hotel Room Rates for different seasons

I have a database (MySQL) with a table containing date ranges (as startdate and enddate) and a rate field. The date range implies different seasons (low, high etc.). The scenario is such that a person checks in the hotel and his duration of stay is…
user569900
  • 31
  • 1
  • 3
3
votes
2 answers

Array as an argument in a procedure vb6 vs vb.net

Here it is a procedure in vb6 and it is working fine like the example included: ' Check_UnCheck ' check an array of some checkboxes, uncheck an array of another checkboxes ' Example of usage : CheckBox.Check_UnCheck Array(chkCheck3, chkCheck5),…
Max
  • 53
  • 5
3
votes
3 answers

Extract/Display Macro (VBA) from .xls files using VB6 (without opening Excel)

I understand it is possible to do so using Excel macro, see: Programmatically extract macro (VBA) code from Word 2007 docs, but what I want to do here is to use VB6 to make an application which does the same thing. I am having problem on how to…
Dean
3
votes
1 answer

How to Merge two CSV file based on matching value in VB6

I have two csv file with columns of Date, Open, High, Low and Close. Date column of both csv file may starts from different dates and any of the csv may not have the date value of another csv. Here, I would like to combine these two csv file into…
Balagurunathan Marimuthu
  • 2,927
  • 4
  • 31
  • 44
3
votes
5 answers

Profiling a COM application?

I have a big application written in Visual Basic 6 and I need to profile it. Is there something like ANTS Profiler but for COM applications?
drizzt
  • 2,756
  • 6
  • 27
  • 41
3
votes
3 answers

How should I lock the table in this VB6 / Access application?

I'm working on a VB6 application using an Access database. The application writes messages to a log table from time to time. Several instances of the application may be running simultaneously and to distinguish them they each have their own run…
Brian Hooper
  • 21,544
  • 24
  • 88
  • 139
3
votes
2 answers

Problems with 32-bit ActiveX DLL on 64-bit OS

I'm trying to move a classing ASP site to a 64-bit Windows 2008 server. The problem I have right now (there may be others if/when I get past this one) is that the site depends on an old VB6 DLL (32-bit), and I get the notorious "ActiveX component…
Jerad Rose
  • 15,235
  • 18
  • 82
  • 153