vb6

Which VB6 controls are supported by Microsoft?

I'm looking for a replacement for the Sheridan 3D Panel (ssPanel) and I'm trying to figure out which of the Controls in the Projects>Components I can add to my project which will be supported by Microsoft. (I.e., I don't want to add a control that MS doesn't officially "support", like the MS Forms 2.0 Object Library). Update Microsoft d...

Converting dllimport from vb6 to c# 3.5

Hi, I have some code in VB6 which imports a function from a dll, it uses the byVal and byRef keywords, I want to convert that code into C# 3.5. Is there going to be a problem with unicode encoding of the strings? Do I declare the varibles that are "byRef" in vb6 into "ref" varibles in the C# code? It seams that return value is entered...

Using VB6 to search for existence of DataFile in Outlook

Hi, I am wanting to write an Add-In for Outlook 2003 which, when Outlook is opened, search for the existence of a datafile called DMSDataStore and if it doesn't exist will install the datafile. I have managed to create the Add-In using VB6 and it runs when I open Outlook. However I haven't found the best/easiest way to search for the ...

populating ADODB command Binary parameters in VB6

I need to modify someone else's VB code, and I don't have much experience with VB6. I need to call a SQL2000 stored procedure using ADODB. One of the parameters is of type Binary and it's giving me problems. Every time I create the parameter, I get an error "Application uses a value of the wrong type for the current operation". The error...

Visual Basic in VS2003/2008

Hi All, I have a VB6.0 application, created by someone in this company before me. Now I have to make some changes in it, is it possible to compile a VB6 project in VS2003 or VS2008?? If yes, then how? Do I need to do something special for that. If no, Can I install VB6 as seperate app on my machine where I have both VS2003 and VS2008 i...

Compare two date times

Hi All; Newbie to VB6 please help, Struggling with something I just can’t get right, label1 display a last transaction date/time which I get from a date base throw a query label2 is the system date/time. I have a timer that execute a command button after executing the command button I want to check if the date/time in label1 is smaller ...

Checking if a file exists on a 64 bit Vista machine with a 32 bit program

So, I have a 32 bit program which needs to check if files exist. However, the locations (which can come from both shortcuts and the registry) often make use of Environment Strings. I use the ExpandEnvironmentStrings api to expand them, then check if the file exists. However, because it is a 32-bit application (note environmental strin...

Why is my VB6 application manifest ignored on 64bit machines ?

Hi I have the following manifest embedded in a VB6 application. <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <assemblyIdentity version="1.0.0.0" processorArchitecture="X86" name="ExeName" type="win32"/> <description>elevate execution level</descr...

Problem with attaching a process in VS 2008

Hi guys, I am not sure what the issue is as I am new to this issue, but I'll describe the problem best I can. I have reportwriter dll written in VB6. I use this reportwriter in a web app (my main app). At the moment, I am building the reportwriter project into a dll into the a folder in my main app's solution. I have been told VB6 aut...

Bubble Chart controls for VB6

Hi, Can anyone recommend a charting control (or package etc) that has a bubble chart and will work in a VB6 application? I've found a few that appear to support this but I've not worked with them... FusionCharts ChartFX for COM ComponentOne I have used Gigasoft ProEssentials but they don't seem to have a bubble chart ChartFX ha...

How do I find the current font size at bookmark?

We are using VB6 and Word.Basic object to create documents. Text is inserted at a variety of bookmarks. Our latest requirement wants us to increase the font size for a given insert. We are currently doing this by setting the font size to 12 rather than the 8 that is normally there, however from a maintenance standpoint, I would rather be...

VB6: alternative to the HTML Object Library (for parsing HTML)

hi all, i've been using the html object library for a while for parsing html. the library itself works perfectly, the only problem is that loading/initializing html using createDocumentFromUrl (even if it's a small file) takes much too long. does anyone know an alternative component? thx ...

Is there something special you need to install to enable the Examples in the VB6 help file?

I've always assumed that the VB6 help was just deficient in that few (or no) examples were included. But it does have the link for Example in the help, it's just greyed out and not accessible. Then I thought "maybe there's just something extra in the MSDN that needs to be installed". Any ideas? ...

How to read system processor id in VB6.0

Dear all, can any one help me out in extracting system processor id in vb6.0,, i used following code to extract but only for laptop this code is able to extract processor id but for the desktop it is unable to extract.... The code is as follows...................... Public Function MBSerialNumber() As String 'RETRIEVES SERIAL NUMBER...

Utility to Convert Legacy VB6 Function Calls to .NET

I am looking for a utility/tool to convert calls to legacy VB6 functions to the .NET equivalent. For example, it would convert this... FormatCurrency(Cart.TotalAmount) Len(Str) UCase(Str) UBound(PaymentsArray) To this... Cart.TotalAmount.ToString("c") Str.Length Str.ToUpper() PaymentsArray.Length - 1 Does anybody know of one, or a...

Window cmd in trascoding process

hello experts , i'm tryng to capture the data from a cmd process (read the last line of a trascoding process show in a window type comman line, to put the bitrate data into a vb6 form with this data build a remainnig time and the progress) the expert WQW send me a source code using the scripting host object model. with this line i can c...

ADO Command Object Records Affected broken when moving to SQL Server 2008

My company is in the process of moving a database from SQL 2000 to SQL 2008. I am in the process of testing some of our legacy applications and came across a VB6 app that is running into a bug. The code is attempting to run a simple update for a record and check that the Execute method has affected more then one row using the RecordsAf...

Making class module from a form

Is it possible to convert your from to a self contained class module in vb6? ...

What is the default VB6 charset?

Hi, we have an application written in Java which reads some text generated by a VB6 application. The problem is: this VB6 application generate this output using some special characters, like ç,ã,á which we don't know in what charset. So the question is: is there a default charset used by VB6? Which is it? ...

VB6-how to create log file in VB6 while launching application

I want to log the exceptions occurred during execution of my app. Before this I handled it with message box. I am new to VB 6. Please provide some sample code to create log file and to save exception messages. Thanks.. ...