vb6

C# WindowsForms equivalent for VB6 indexed controls

In VB6 you have the ability to name your controls with an index. i.e.: cmdStartInterval(1), cmdStartInterval(2), ... . Then you have a method head like this: Private Sub cmdStartInterval_Click(Index As Integer) ... End Sub Is this also possible in a similary way in C#? ...

Risks around relying on VB6 applications

Given that the VB6 runtime ships with Windows 7 and will continue to be supported for the lifetime of the OS (until January 2020) and that the VB6 IDE, though no longer supported, is fairly stable, what are the risks around keeping mission-critical applications in VB6 for the next several years? ...

How do I run a VB6 project within Hudson?

Rather than build a whole project group (several DLLs and an executable) I want to run the group from the command line like this: VB6 /runexit project It eliminates the compile step and keeps the registry clean. I can setup a Hudson job which gets the latest code from source control and runs the command line. The problem I've run into...

Bestpractice approaches for reverse engineering VB6 code with out knowledge of the domain

target state: Porting VB6 Code into C#, undertake the whole project with all conceivable processes that are involved. What would be your approach if you do not have knowledge about the domain? There is nearly any documentation, just legacy code (up to 100.000 - 300.000 lines of code and comments vb6 files that contain up to 14.000 line...

Need help connecting to the database and loading informationtomy list view

Hi everyone ive created an application and i cant seem to connect it to the database, and my list view is empty when I run the application can you please help me with the code, the following code is for listview Private Sub CircuitsLvw_BeforeLabelEdit(Cancel As Integer) Dim rs As New ADODB.Recordset lblI.Caption = CircuitsLvw.ListItem...

VB6 and Com debug issues after XP Service Pack 3 install

My company recently upgraded our PCs to XP service pack 3. We still have some vb6 apps that connect to an EJB server via a JCOM bridge. These apps still work as compiled exes but i noticed that during debugging the IDE hangs when it tries to create a JCOM object. I suspected it was as a result of the XP upgrade and was able to confirm t...

Use the ADO OpenSchema Method to get table list, column list and value

I am unable to get the values of the selected column in the value listbox.Please guide me my mistake.There seems to be some mistake in the private sub ListValues Option Explicit ' The database file name. Private m_DBFile As String ' List the fields in this table. Private Sub ListFields(ByVal db_file As String, ByVal db_table_name As...

Is it bad practice to access a data member directly?

I recall being told by a professor the following is bad practice. But it makes stepping through code a lot less tedious. I'm just solicting comments on pros and cons: Friend Class MyClass Private isEmpty As Boolean Public Property IsEmpty() As Boolean Get Return isEmpty End Get Set(ByVal Value As Integer) isEmpty = value ...

Registration free COM: VB6 Executable referencing VB6 DLL

So, I've got a single VB6 executable that references multiple VB6 COM DLLs. Is it possible for me to generate, on-the-fly, a manifest for the executable as well as a manifest for each of the referenced DLLs? If so, then how? I would like to perform this operation as part of our build process without having to register the COM DLLs a...

VB6 DLL in Windows XP vs Windows Server 2003 SE

I would like to know if creating a VB6 DLL(using MS visual studio 6.0 enterprise edition) in Windows Server 2003 SE 32-bit and Windows XP SP3 makes any difference. I mean will there be any compatibility issues when I port VB6 DLL from XP to Windows Server 2003. Just like to know the internals of how it works. ...

Use variable to enter into table values

I am unable to use a variable as the vale for a table, though direct values are stored. I get the error as "Syntax error in INSERT INTO Statement.How do I overcome this ? sDBPAth = App.Path & "\SETMDBPATH.mdb" sConStr = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=" & sDBPAth & ";" & _ "Jet OLE...

Drag and drop from Outlook attachment to VB6 application

I am experimenting with drag and drop from an outlook email attachment to a custom application. It works just fine with C#, but now I'd like to get it working in VB6. My test code looks something like this: Private Sub grdLis_OLEDragDrop(Data As MSFlexGridLib.DataObject, Effect As Long, Button As Integer, Shift As Integer, X As Single, ...

Making a DLL COM accessible

I have a class library written in .Net that I would like to make available to VB6/VBA. What I tried did not work (obviously as I am asking this question). Here is what I did: I Created a Class Library Project in Visual Studio 2010 Express and put the code in a Class Module. I opened the project properties and went to "Assembly Informat...

Error When Instantiating an Object

I am in the middle of (trying) to create a Class Library available for use in VB6/VBA. With some assistance received here I have now done the following: Created a Class Library Project in Visual Studio 2010 Express and put the code in a Class Module. Learned I needed this wonderful thing called an "Interface"... Made one of those:) I o...

vb6 with inno setup... help me please

My name Andika I create software that is associated with the processing of payments and purchases of pulses. I create software using VB6, sqlite2009 for Inno to create the database and its set-up. I created a program called 'IZ' story short, if a user installs my program in the registry window will then make a folder in called "PCclient"...

Run time Error '6':Visual Basic

I am using Visual Basic 6 I have the following code structure: FUNCNINFO is a structure Public funcTable() As FUNCNINFO ----- ------ ReDim Preserve funcTable(0 To upsize + ns) When the value of (upsize + ns) is exceeding 32766,it is giving the runtime overflow error '6' Do you have any idea of the cause and the solution? ...

VB6 sending keypress to a textbox

Hey all, i am looking for a way to send a keypress letter/number to a textbox. The reason why i need this is that this textbox is a AutoComplete box that, when the user types, it displays a list of suggestions like google does. However, for it to work, the user has to click in the box and type something. I can send any number/letter to ...

Image control from Database in VB6

I have some images stored in a database and I want to populate an image control. All the examples I can find copy the image to the hdd and then use loadpicture to put it in the image control. Is there a way to push the image directly in without going to the hdd first? ...

changing the primary key value in SQL server 2005

I have a Table which has a Primary Key field which is not set to auto-increment. I want to change one of these primary keys to something different. The problem arises with the other tables relations. The thing is, the guy who built this system did not build relations in SQL Server, but rather manually coded some override in the program ...

strange assembler... could this be the cause of my apps crash?

I have a program in native C++ under windows that uses a VB6 DLL. The C++ app crashes with a "Floating Point In-exact Result" error when using that DLL, for a certain action. When I go into debug and do view assembler I get this line: 75A0FB7C je 759E8797 When you hover over the right most address it shows a tooltip with ...