vb6

VB6: create IHTMLElementCollection from scratch

hi, is it possible to create an IHTMLElementCollection from scratch? i'm having a htmldocument and want to return only certain elements from it as IHTMLElementCollection. for example theres a table, and i want to put all table rows with a certain classname into the collection. any ideas if it's possible? thanks ...

How can I rename a VB6 executable?

I'm trying to automate a VB6 build where different apps are built from the same source by: Changing "Conditional Compilation Arguments". "Make Project" to a different executable name. I can do part of this on the command line: VB6.EXE /m Project.VBP /d BUILD_OTHER_APP=1 but the executable still has the name "Project.exe". If I rename...

Visual Basic 6 causes Visual Studio 2010 to attempt an installation

I'm using Visual Basic 6 for a legacy project and it's been working fine. I recently installed the Visual Studio 2010 RC and now when I start VB6 I get an installer with the title "Microsoft Visual Studio 2010 Professional RC - ENU". If I click Cancel I can then open my project in VB6. Is there any way of getting rid of this, or am I ju...

EOF of excel in vb6

how do i write the code in vb6 in finding the EOF of excel file can anyone help me? i try to code this and it works.. ---> Dim excelApp as Excel.Application Dim excelWB as Excel.Workbook Set excelApp = New Excel.Application Set excelWB = excelApp.Workbooks.Open("D:\Book1.xls") Dim xlsRow as Long Dim EOF as Boolean xlsRow = 1 D...

What causes VB6 "Run-Time Error '5': Invalid Procedure Call or Argument"

In VB6, users occasionally receive this error and I am unable to reproduce it. Run-Time Error '5': Invalid Procedure Call or Argument I am referencing the "MSWord 10 Object Library" and sometimes this error occurs at some point after the application has opened MSWord 2002. However, this app has referenced the MSWord 10 Object Library ...

Read a binary file into an array.

What's the fastest way (using VB6) to read an entire, large, binary file into an array? ...

SetParent() on a VB6 application from a C# app

Aloha all! I am trying to use the win32 API to set the parent of an application to a panel in my C# application. I can get most applications to work... However I have one application which was written in VB6 which I am having problems with... When I inspect it using spy++ the application loads in 2 main forms 'ThunderRT6Main' and 'Thu...

Crystal Reports Version

I have an application which was written in Visual Basic 6.0 and some version of Crystal Reports (I believe with a version that came with it). I need to make a few updates to the report now. We have the .rpt file. Is there a way with which version of Crystal Reports that this was created? ...

Using Git with VB6

Our company has a large codebase in VB6, and we currently use VSS which, for all that we hate about it, at least integrates into the VB6 IDE. My own team, which is using .NET, are now looking into alternative SCMs like my personal favourite, Git. With Git Extensions, it seems we will be able to integrate Git commands into the Visual Stu...

" addressof " VB6 to VB.NET

Hello, I´m having some problem to convert my VB6 project to VB.NET I don't understand how this "AddressOf" function should be in VB.NET My VB6 code: Declare Function MP4_ClientStart Lib "hikclient.dll" _ (pClientinfo As CLIENT_VIDEOINFO, ByVal abab As Long) As Long Public Sub ReadDataCallBack(ByVal nPort As Long, pPacketBuffer As B...

vb6 api/spy question

hi all, i'm trying to control some soulseek features from VB6 - the problem is the SysTabControl32 - how can i read out which tab is selected? the api spyer only returns the SysTabcontrol32 but no tab button. thx ...

Microsoft office 11.0 (Word & Excel) Object Library work with Office 12 (Word & Excel) for VB6

Hi all friend; I have an application using VB6 and I use Microsoft Word 11.0 object library and Microsoft Excel 11.0 object library to use for the report purpose. But there are some computer in my work place using Microsoft Office 2007, so they cannot generate the report (with excel chart) from my application. I try to use late bindin...

Windows 7 Missing Shortnames

I noticed that if you get a Scripting.File object from certain windows files (Example: any wav in C:\Windows\Media) the Scripting.File.ShortPath property shows the long path. Curious I dropped to the command prompt and tried Dir /A /X and sure enough the short paths were missing from all the files in that directory. Anyone know: A.) Wh...

vb6: set SysTabControl32 by code

hi, i'm coding a little app for controlling soulseek - what i want do is clicking the "Search Files" button by code. i've got the handle to the tabbed control (SysTabControl32) and managed to change the tab with following code: rc1 = SendMessage(hwnd, TCM_SETCURFOCUS, ByVal 0, ByVal 0&) the problem: the tab control is changing t...

how to validate username and password in vb6?

i have created a database in mysql5.0. i want to display the data from it. it has table named login. it has 2 columns username and password. in form i have 2 text fields username and password i just want to validate input with database values and display message box. connection from vb to database is established successfully. but its not...

vb6 displaying problem

i have created a database in mysql5.0. i want to display the data from it. it has table named login. it has 2 columns username and password. in form i have 2 text fields username and password i just want to validate input with database values and display message box. connection from vb to database is established successfully. but its not...

VB6 ImageList Frm Code Generation

Note: This is probably a shot in the dark, and its purely out of curiosity that I'm asking. When using the ImageList control from the Microsoft Common Control lib (mscomctl.ocx) I have found that VB6 generates FRM code that doesn't resolve to real property/method names and I am curious as to how the resolution is made. An example of the...

How to implement SEH (Structured Ecxeption Handling) in VB6?

Could someone provide some example on implementing SEH in VB6? Everything I've seen so far is in C++ ...

How to automatically fix MISSING reference in a dll when a referenced library is broken in VB6?

What do you do when you break compatibility on a common library used by many other libraries on your development machine? What i usually do is: For every dll that reference the broken one Checkout dll Checkout vbp project Open vpb project with VB6 Ide Click on References button Uncheck MISSING reference and OK Click on Reference...

Static code analysis tools for VB6

Right now we are maintaining some old project written in VB6 we are planning to implement continuous integration server for it. We would like to implement some code analysis as well to track that maintanability at least not getting worse. Basically there is only one requirement - the tool should be command line so we can call it from con...