vb6

How to check out all VB6 Project files from VSS?

I have a VB6 project in Visual Source Safe 6.0. When I open the project I want to Check Out (Get) all the files in the project so that I can edit them. I have the VSS Options (within VB6) set to act on the Project recursively, but when I check out the project.vbp it only checks out the project file, not all the modules, etc. Those file...

How to convert a number to a bytearray in bit endian order

I am trying to uncompress some data created in VB6 using the zlib API. I have read this is possible with the qUncompress function: http://doc.trolltech.com/4.4/qbytearray.html#qUncompress I have read the data in from QDataStream via readRawBytes into a char array, which I then converted to a QByteArray for decompression. I have the com...

Creating a compressed (or zipped) folder

Is there a way to programmatically create a compressed folder in Windows? I can't see a way to do this using the FileSystemObject (although there is the 'Compressed' attribute). I've seen zip dll's but I'd prefer to avoid having to re-distribute a dll if possible. Windows XP natively supports compressed folders after all. ...

Buildprocess for ActiveX / COM / VB6 enterprise projects

We have developed a software system using ActiveX/COM (VB6) technology from microsoft. In the last year, i get more and more interested in automated build processes and SCM at a whole. I intensively searched big parts of the web for information about best practices how to do scm with COM based software systems. The "problem" with COM is...

How can I convert VB6 code to C#?

Does anyone know a way to convert from VB6 code to C#? Is there a tool that can do this for me? ...

How can I debug a VB6 project that has a .net interop project which uses an app.config file?

I have a .net interop project that uses an app.config file. When I am running the VB6 project that is using the interop control in Debug mode, the ConfigurationManager cannot find the app.config file. When I make the VB6 project into an exe and rename the app.config file to (VB6 binary name).exe.config, the ConfigurationManager can find ...

How do I determine if an array is initialized in VB6?

Passing an undimensioned array to the VB6's Ubound function will cause an error, so I want to check if it has been dimensioned yet before attempting to check its upper bound. How do I do this? ...

What to do if I don't have Visual Basic 6.0 and need to compile a VB6 project?

A client wants me to do some maintenance work to a VB 6.0 application (migration to .NET is also in the pipeline), but he doesn't have the development tools because he received just the source code and running application from the original programmer, who is no longer available. Microsoft doesn't sell Visual Studio 6.0, as far as I know...

VB6 Date Datatype: Precision and formatting

Guys, Does anyone know 1) how precise the vb6 Date date type is (by way of fractions of a second) and how to format it to show fractions of a second. I'm revisiting vb6 after many years absence, and for the life of me can't remember. The things I used to know . . . Thanks P.S. I considered putting a "memory-leak" tag on this, beca...

Is there a mode for Visual Basic (VB6) in Emacs?

I would like to use Emacs to edit some VB6 files but Emacs does not appear to have any of built-in niceties of other languages such as syntax highlighting, etc. Any plugins/extensions? What else can I do to make Emacs an acceptable and comfortable IDE for VB? ...

Replace control arrays before migrating from vb6

With a view to avoiding the construction of further barriers to migration whilst enhancing an existing vb6 program. Is there a way to achieve the same functionality as control arrays in vb6 without using them? ...

What's the equivalent of XMLHTTP from VB6 in C# .Net 2005?

I'm trying to convert some code that worked great in VB, but I can't figure out what objects to use in .Net. Dim oXMLHttp As XMLHTTP oXMLHttp = New XMLHTTP oXMLHttp.open "POST", "https://www.server.com/path", False oXMLHttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded" oXMLHttp.send requestSt...

Visual Basic Project Code to UML diagram tool

Hi all, I have been given the task of converting an old VB6 program to C#. Unfortunately the project has 8 modules, lots of code in each and tons of nested IF statements and just plan horrible design. I am hoping to find a tool that would take all the files and generate some sort of UML diagram to show the basic flow of code to allow ...

Testing Delphi DLL crashes VB6 IDE

I've had my first go at writing a DLL in Delphi. So far so good. By using a typelib I've been able to pass Widestrings to and from the DLL without difficulty. What's curious at the moment is that I'm using VB6 as the testbed, and every time I run a test within the IDE, the program runs and then the IDE process suddenly disappears from m...

Can I create a single VB6 OCX with multiple controls?

Hi, I have inherited a load of VB6 code which has tons of individual OCX files, each of which contain a single control. I have two questions: Firstly, Is it possible to refactor them so that I can have a single OCX file with all the OCX's in it? Secondly, if it is possible, how do I do this? TIA ...

What's faster in VB? Removing an element from an array or inserting one?

Which is faster? someCondition has the same probability of being true as it has of being false. Insertion: arrayList = Array("apple", "pear","grape") if someCondition then ' insert "banana" element end if Deletion: arrayList = Array("apple","banana","pear","grape") if not someCondition then ' remove "banana" element end if ...

"Object variable or With block variable not set" when attempting to create COM object

I have a VB6 dll that is trying to create a COM object using the following line of code: Set CreateObj = CreateObject("OPSValuer.OPSValue") However this fails with the error "Object variable or With block variable not set". I can see OPSValuer.OPSValue in dcomcnfg and it appears to be registered fine. Does anyone have any ideas about...

VB6, File Doesn't Exist, How do I handle Gracefully?

Hi, I am testing an application that checks if a file exists across a network. In my testing, I am purposefully pulling the network plug so the file will not be found. The problem is this causes my app to go unresponsive for at least 15 seconds. I have used both the FileExists() and GetAttr() functions in VB6. Does anyone know how to...

Interop Controls not picking up XP Styles

I created an Interop user control in VS2005. When the user control is shown inside VB6, it does not pickup/use the XP styles (The buttons and the tabs look like VB6 buttons/tabs). How do I get the XP styles to work with my control while it is in VB6? ...

Any tools to aid porting vb6 to vb.net ?

I just inherited control of a largish VB6 codebase. It doesnt have much in the way of active X other than the crystal reports engine and MS access work it does. I want to move it to .net before the tool set and skill sets dry up completely (if they havent already). Can anyone recommend any good tools to convert/migrate vb6 code to vb.ne...