vb6

differences between ETL with vb.net and vb6

is it supper difficult to work with a mysql database or an access database through vb6? i know it is rather simple with vb.net ...

What's the equivalence of vb6.0 frame control in .Net? panel or groupbox?

What's the equivalence of vb6.0 frame control in .Net? panel or groupbox? I recall that using frame in vb6.0 and disable it (frame1.Enabled = False) did not change its fore color of controls within it . ...

How to fix "Unexpected error (32801)" when compiling VB 6 program ?

Hi all I have to maintain an old VB 6 ActiveX DLL called by another 3rd party program for which I have no sources etc. This DLL works and compiles fine against the API of said program for about 6 years and 3 major versions. But now when I try to compile the DLL against a new major version the mentioned error occurs. It seems the error ...

How to call a visio macro from a stencil

i have written some Macros for Visio. Now I copied these to a Stencil called Macros.vss How can I call my Macros now? ...

Does COM automatically unload DLLs when there are no more object references?

For example, in language X: let x = CreateOject( "MyProgID" ) x.LateBoundCall() x.Release() // (or setting x to Nothing in VB-like language, etc) What happens to the DLL MyProgID lives in? Does COM unload DLLs automatically? EDIT This is assuming that the code above is in an executable that does not expose any COM. ...

Uninterruptible Windows Process

Hi Guys, We're starting a new custom project right now from a client and one of the requirements is the process cannot be terminated unless the system is shutting down, restarting, or logging-off. This application monitors the USB interface. We will be using WMI to query the device periodically. The client want's to run the applicatio...

Is there anyway to export a function (not a class) in VB6?

I want to create an ActiveX DLL from Visual Basic 6 from which I would like to call some public functions. I will call this DLL only from VB6. However, it seems that only classes get exported. Is there any workaround? I know there is a way to create DLLs from VB6 with standard WINAPI functions. This is not what I want, because I would ...

How do I get VB6 to integrate with Visual Source Safe 6.0?

We use Visual Source Safe 6.0 at work and VB6 is supposed to integrate smoothly with Source Safe. Both applications are installed on my PC, but VB6 is not showing the options to integrate with Source Safe (e.g. checking out a file, seeing if a file is shared, etc.). What do I need to do to get VB6 to integrate with Source Safe 6.0? ...

Differences & Similarities Between Programming Paradigms

Hi Guys I've been working as a developer for the past 4 years, with the 4 years previous to that studying software development in college. In my 4 years in the industry I've done some work in VB6 (which was a joke), but most of it has been in C#/ASP.NET. During this time, I've moved from an "object-aware" procedural paradigm to an objec...

Converting Milliseconds to Timecode

I have an audio project I'm working on using BASS from Un4seen. This library uses BYTES mainly but I have a conversion in place that let's me show the current position of the song in Milliseconds. Knowing that MS = Samples * 1000 / SampleRate and that Samples = Bytes * 8 / Bits / Channels So here's my main issue and it's fairly simple....

How to make autocompleting textbox in vb6 like this one?

hey all, well i want to have an autocompleting textbox like the one in the image below: this screenshot is from an accounting software. whenever the user focuses on a textbox and starts typing something the suggestions just popup under the control (as seen in the image under the Purc type textbox).This autosuggest functionality even wor...

Remove Add-in UI on uninstall

I have an outlook add-in which runs only on the first startup of Outlook, at which point it creates a toolbox and adds it to Outlook's command bar. I used this approach rather than creating a temporary UI on each startup because I want the user's decisions about the control to be persistent; if the user disables the control or moves it,...

Easiest way to find previous instance of an application

I have rewritten a VB6 application in Delphi. It should have only one instance running. How can I do this with minimum of code? In VB6 we just have to use one single line of code > If App.PrevInstance Then 'Take some action End If On goggling I did find a solution but it is very length and we have to mess with .drp file....

Porting VB6 app to VB.Net: Can anyone ballpark how much effort this is?

In 2002 I did a pretty large VB6 app for a client. It used a lot of UserControls and a 3rd party menu control (for putting icons next to menu names). It had dynamically "splittable" panels, TreeViews with multi-state checkboxes, etc. A very rich UI. My total time on the project was about 500 hours, which the client graciously let me spre...

Finding contained bordered regions from Excel imports.

I am importing massive amounts of data from Excel that have various table layouts. I have good enough table detection routines and merge cell handling, but I am running into a problem when it comes to dealing with borders. Namely performance. The bordered regions in some of these files have meaning. Data Setup: I am importing directly f...

vb6: get reference with given hwnd

hi, how can i get a control's reference with given hwnd? (i dont want to do it by querying eg. Form1.controls), it should work with the AccessibleObjectFromWindow api. unfortunately i couldn't figure it out how to use it. anyone would have a little code snippet? thanks ...

Easy - Read a file into a array

So I have a .dat file that just holds a list of names, each name is on a new line. I am having a day of complete mental blanks but how would I go about getting those names out of the file and puting them into a array. Thanks for any help ...

Writing excel file to vb6

i have an excel file template and i want save the written value in textboxes to the cells of excel using vb6 language. can anyone help me? ...

How to avoid automatic renaming of sub signature parameters in visual basic 6.

In Visual basic 6, i declare a sub like this: Private Sub test1(ByRef XmlFooOutput As String) ... End Sub Aafter that, I declare another sub like the following one: Private Sub test2(ByRef xmlFooOutput As String) ... End Sub Automagically, the first method is transformed in: Private Sub test1(ByVal xmlFooOutput As String) ....

Need Help Loading and Manipulating Bitmap Data

Using VB6, I need to load a bitmap image and subsequently manipulate some of its data - specifically, I want to rotate a section within the image, and in the end keep the image intact with the rotated section. How do I (1) find out where an image gets loaded into memory (a physical address), and (2) in what format is it stored, a 1-D ar...