vb6

data transfer in vb6

i have two databases name (trial1) and (trial2) and table name studmast in trial1 and trial2. I want to transfer data of studmast in trial1 to studmast in trial2. can anybody help me?? ...

Bizarre VB6 Make Error

Hi all, I've got a really strange error and any light that anyone can shed on this would be greatly appreciated. We're under the gun (as usual) and I need to find an answer for this quickly. I made some changes to some VB6 source which builds a COM object. The automated build which builds our app returned an error. No problem I thou...

How to reuse my VB6 application?

First of all, as I am using VB6, please confine your kind suggestions to techniques applied to VB6. I have a set of controls related to each other as the above figure shows. It includes several treeviews, a split bar, a listview, a subform( a usercontrol), and etc. When I click or change the treeview nodes in the left, the right cont...

"Object variable or With block variable not set" runtime error in VB6

Hi, I've got a problem with VB6. I have a form with several ComboBox objects on it. I wish to populate the ComboBoxes via a function that takes a SQL query as a parameter. So the code looks like this Private Function FillComboBoxFromMDB(ByVal sDBName As String, _ ByVal sSQL As String) As ComboBox ...

Does VB6 have linq expressions?

I'm arguing with one guy about linq in visual basic.He shows linq expressions in vb,but I can't be sure if it's managed or unmanaged(vb6),because I've never used any of them. Does VB6 have linq expressions? ...

VB6 - LUA Integration

I'm wondering if anyone has any tips for integrating LUA and VB6. I am running a small Online RPG that would be awesome to add some scripting to. ...

VB6 Implements & events

I have an older VB6 project that I'm trying to add unit tests for. I was breaking dependencies in classes by mocking objects. Everything was going great until I found some dependencies that were raising events and now I've hit a wall. Here's a quick example of what I'm trying to do that DOESN'T WORK: ITab.cls: Option Explicit Publi...

Generating Excel Files with VB6

I am looking for suggestions on this specific question: What's the fastest way to generate Excel files (regular XLS, not the XLSX ones) in Visual Basic 6 (VB6)? Thanks a lot. ...

visual basic 6, trying to rebuild non-working project

We are NOT in the best situation! We have been given the 'latest' project files, and they don't compile. So we are trying to reconstruct the solution and restore it to a working state. We copied all the modules and forms into one project and yet when we compile it is not picking up all the form events, such as Form_Activate. The eve...

Filling listbox from ado query far slower in vb2005 than vb6. Can I speed it up?

I converted some code from vb6 to vb2005 that opens a recordset and populates a listbox with about 8,000 names. It uses classic ado. The vb6 code does it in about 0.75 of a second, the first vb2005 code does it in about 5.5 seconds while the second vb2005 code does it in about 4.5 seconds. Is there any way to improve the vb2005 performa...

Connect to an access database in a remote directory using dao (VB6)

I need to replace this structure: dim base as dao.database set base = opendatabase ("c:\path\name.mdb") with another in which the .mdb is located in a server directory. I tried: dim base as dao.database set base = opendatabase ("\\server\folder\name.mdb") but it did not work. I'm using VB6. Any ideas? ...

Calculate the start and end date of a week given the week number and year in C# (based on the ISO specification)

I need to generate a report that shows the 52 weeks of a year (or 53 weeks as some years have) and their start and end dates. There is an ISO spec to do this but seems awfully complicated! Im hoping someone knows of a way to do it in C# or Visual Basic (its actually for Visual Basic 6 but I will try port it across) ...

What's the proper source for Windows Common Controls 6.0 component (MSCOMCTL.OCX)?

Hi, I'm experimenting with writing ActiveX controls and noticed that I can't seem to create an ActiveX control in Visual Basic (6.0) which features slightly more sophisticated controls. Simple controls like labels, buttons and check boxes seem to work fine, but as soon as I try to add e.g. a tree control to my form, the ActiveX control ...

Using NAnt and Ivy to build a VB6 project...

Hi there, I am working on a continuous integration system for both .Net and VB6 applications using Subversion, CruiseControl, NAnt and Ivy. The .Net side of things isn't too much of a problem, but I need a little guidance with the VB6 side of things, more from the 'DLL-hell' side of things! My current set-up is getting all dependent f...

creating queries during runtime in msaccess

hi, i have to create reports with certain data from an access database. i want to automate this process by the use of visual basic. i have created queries to achieve this but the problem is each time i have a different database(with same structure). queries that i have has "create table", due to which i am unable to fire those queries f...

Loading data in to a combo box is slow.

I have a VB6 application with a search screen. On the search, I have 9 combo boxes. Some of the combo boxes only have a couple items, but some have a couple hundred items. It takes a long time (couple of seconds) to populate the data. Each combo box is configured the same: Sorted = False, Style = 2 - Dropdown List 3 of the combo bo...

How to add my own training files in SAPI 5.1

Actually I am working on an application in which I want to add training apart from SAPI default trainings. Because I am manipulating English Language to form a meaning word in my own language although it is not a standard but my supervisor requirement is to use some proper nouns into SAPI therefore I am facing difficulty in adding my own...

.NET control's event not working in COM on Windows Embedded for POS

I have an InteropUserControl in a .NET assembly that works fine in other operating systems such as Windows XP and Windows 2000. My company sells hardware along with the software we develop, and we get different types of all-in-one touchscreen workstations. Some All of one particular brand installed with Windows Embedded for Point of Sale...

How can I use a VB6 COM 'reference' in IronPython?

Hello. I'm currently developing what is more or less a script that needs to get some data from a VB 6 COM dll. This dll is currently used in a MS Word VBA project, and it exports classes, etc to the VBA code. It is added in the Tools -> References menu in the VBA editor, and I can see it's classes in the object browser of VBA. From my ...

Vb6 application works in the IDE but the executable crashes

Hi all!!! I have a little problem with visual basic 6 project. Everything works fine in the IDE but when the executable crashes every time I run the application. The application uses callbacks to communicate with a C++ dll. Even code as simple as showing a message box fails when the callback starts. I changed the compilation mode to P-...