vb6

How can In verify that my .Manifest file is valid?

I'm converting a VB6 app to use a Manifest for Reg Free deployment. I created a manifest with Make My Manifest but when I run the app I get an error (below). I want to make sure that my manifest isn't somehow invalid. (I opened it up and it looks Ok except for some unprintable characters, which seems odd for an XML format file. **----...

Native VB 6 Replacements for Sheridan 3d controls (like ssCommand, ssCheck, etc.)

I'm working on an VB6 app and I'd like to get rid of the old Sheridan controls and replace them with built in VB6 controls. However, some of those controls have some nice properties, like the ForeGround on the ssCommand button. The standard VB6 command button doesn't have a foreground property. I know that VB6 potentially has lots of o...

What is the known performance difference between a Microsoft.VisualBasic.Collection and a .NET System.Collections.Generic.Dictionary(Of TKey, TValue)?

I'm working on a fairly large project for a trading company in Philadelphia. The company utilizes automated trading algorithms which process streaming quotes and send out quotes for hundreds of products dozens of times per second. Obviously, performance is a significant concern. (Which makes me question why we're using VB.NET, but that's...

How to extract data from a XML file

Hi experts, I am using the MSXML4.0 parser in VB6. I have an XML file that is browsed and selected by the user. The XML contains lot of tags.I am intersted in mining out the data that is contained in the child nodes of a tag named leadmeasurements. The lead measurements tag will also contain a lot of child nodes... I do not know how to ...

formatting in Excel from VB6

hi experts I am using the Excel Automation to create a excel sheet and write data to it.. I want to know how i can make only particular cells to BOLD and how i can make the cell size to autofit to its contents.. Pls help ...

What does Setup Project do for .NET COM?

Ok, imagine the simplest solution in Visual Studio 2008 with framework 3.5 (OS = Win XP) where I have added a class library. Then I've added a COM Class. This COM Class is so simple, it only exposes 1 function: Public Function SayHello() As String Return " Hello." End Function I've build this class library, which produced the .dll and ...

Is it possible to get cell text from a remote applications StatusBarWndClass?

I have a legacy vb application that has data in a status bar I want to use to drive a .NET application. I have used spy++ to gain some insight into the window structure and have successfully used FindWindow and FindWindowEx to get handles to the StatusBarWndClass. Now I am struggling to get access to the actual data in the status bar. I...

How do I call a method in a custom ActiveX dll using java/vb script

I have created an ActiveX dll using VB6 and packaged it using the Package & Deployment Wizard which has resulted in a cab file and a demo HTML page. This ActiveX dll contains a simgle method that returns a string and accepts no arguments. The trouble I'm having is that when I call the method I always get a "Object does not support thi...

How to offer a 'confirm' dialog which then fires server-side code.

I have been given the task to re-code an old VB6 page. This page exports data from our database and imports it into another. While the export/import is happening, I need to offer the user confirm boxes. The context and results of these confirm boxes all depend on server-side validation. In the old code, the author simply did: If Ms...

Parameter type for a complex object in a COM-visible function (VB6)

Should we use object or variant? What difference does it make? ...

Why does my VB6 IDE loses its buttons and menu items?

I still have to use the VB6 IDE. Unfortunately every time I start the IDE one of the buttons of the toolbar disappears. Almost always it's the Run button which goes first. Sometimes also items from the menu bar or the context menus are missing. I have to reset the toolbars almost every time I start the IDE (Which is quite often durin...

What ftp library to use in VB6

Hi, We are using the builtin ftp in VB6. (Drag and drop control) The ftp dll that follows VB6 is tied to IE. And after upgrading from IE6 to IE7 the DLL changes and makes it impossible to connect to a password protected ftp. What ftp libraries/dll's are available to use from VB6? Preferably open sourced. ...

Problems passing in a UserControl as a parameter in VB6

I have a COM-visible method which looks something like the following: Public Sub SomeMethod(someControl as Object) On Error Goto ErrHandler Dim someSpecificControl as SpecificControl MsgBox TypeOf someControl is Control MsgBox TypeOf someControl is SpecificControl On Error Resume Next Set someSpecificControl = someCon...

calling a DLL made in VB6 from C

Okay, this one is the reverse of the last question I struggled with... I feel like I'm sooo close to getting it but it's just not working. Before, I was trying to compile a DLL in C, and then call it from VB, but I realized that's not really what I want (I want the program to be written in C, while using a VB frontend, not the frontend b...

How to link the ffmpeg transcoding process information into a vb6 GUI app?

hi guys, i'm playing with a vb6 gui frontend for ffmpeg and as of now all i can do is to call the ffmpeg via cmd.exe which will shows the command prompt while the whole process is still running. And i thought this was the norm seeing how WinFF, another pascal based frontend gui for ffmpeg works. But i was blown away when i saw this othe...

Why is my VB6 variant changing depending on when it is assigned?

I am new to VB6 (and visual basic in any form) development and I've come across a problem. There may be lexical errors below because I formatted the code to be a little more readable inside of the post here, but the essence of the question remains. Here is the code My problem is that the values displayed by the MsgBox calls (the second ...

Simplest way to send messages between Matlab, VB6 and VB.NET programs

We are upgrading a suite of data acquisition and analysis routines from VB6 programs to a mixture of VB.NET, VB6, and Matlab programs. We want to keep the system modular (separate EXEs) so we can easily create specialized stand-alone analysis programs without having to constantly upgrade one massive application. We have used MBInterPro...

Detecting Vista Starter three-open-app limit

I'm working as a developer, curently mantaining a VB6 app that desperately needs to work fine under Vista. However, it must work fine under Vista Starter Edition, since is the version new computers here (Argentina) come with. Now, onto the technical stuff: my app uses ImageMagick's convert to process images (resizing, black and white se...

VB6 Dynamic Array Determination

In VB6 you can declare an array statically and dynamically. When an array is declared dynamically, is it possible to determine if the array was declared dynamic and therefore would possibly need a "redim" before it can be used? i.e. I'm looking for something like: if myarray is dynamic then redim ... end if myarray(x) = y ...

ole32.dll causes GPF. How to interpret DebugDiag report?

Hi, My app (EasyJob) causes an access violation error on exiting. This only happens on some systems, mostly Vista, but it has happened on some XP boxes. The application is written in VB6. After finding a system that shows this behavior, I ran DebugDiag on my process and got this report: Function Arg1 Arg2 Arg3 0x04246c81 ...