vb6

C# to VB6 COM events ("object or class does not support the set of events")

Really pulling my hair out with this one... I have a C# project with an interface defined as: /* Externally Accessible API */ [InterfaceType(ComInterfaceType.InterfaceIsIDispatch)] public interface ISerial { [DispId(1)] bool Startup(); [DispId(2)] bool Shutdown(); [DispId(3)] bool UserInput_FloorButton(int flo...

convert old delphi 5 project to diagrams (also vb6)

Does anyone know of any (free) tools that will convert an old Delhi 5 project into class diagrams / uml or any form of diagrams for ease of reading? Also, if you know of any VB6 tools (again, preferably free) that would also convert to some form of diagrams? ...

Efficient way of uploading xls records to DB

Hi, What would be the most efficient way to upload records from an excel file to a table in the database. I am not allowed to use DTS/ SSIS. So I would like to know if there is a better alternative than reading records sequentially from the file and firing commands. Thanks. ...

disable items in a combobox

I have a combobox from which i need to programmatically disable items depending on an external event. The external event is done, I just need to disable the selection of the item and have it greyed out (like a context menu when certain options aren't available). It was decided that having items simply disappear would confuse users but ...

How do you get VB6 to initialize doubles with +infinity, -infinity and NaN?

VB6 doesn't appear to make it that easy to store +infinity, -infinity and NaN into double vars. It would help if it could so that I could do comparisons with those values in the context of complex numbers. How? ...

What's the "standard" way to initialise a COM based library

I've been working on a .NET library. Of course .NET has a good way of working with configurations, and therefore I can document to library users what they should put in their app.config. However I've also to expose the library as a COM object, for legacy support. Some users of the library will be VB6 applications, which doesn't have a...

Cross-compile/Recompile an ActiveX for mobile devices

Hi, In our project, we have a lot of ActiveX controls written in VB6. On big (x86) computers it works very well. These controls are hosted on website. And mobile users also wants to use it. So is there any possible solution to recompile/cross-compile an .ocx and make .cab file to works under ARM architecture? Or maybe I can emulate x86 a...

Code review tool for VB 6.0

Hi is there any tool for Code riew that can used in VB 6.0 IDE ...

Path Not Found error when opening VB6 project from a shared folder on Virtual PC 2007 (XP sp3)

I currently work on a small software team that primarily maintains legacy software. I am trying to set up a VirtualPC that we can use to do this maintenance. Specifically, I would like to be able to debug and run VB6 web apps from a folder on the host pc. My constraints are as follows: The VirtualPC will not be registered on the domain...

Loading/interacting with a vb6 COM dll from a 64bit Application

Hi, I am working on an application that has more than a few dlls written in VB6. VB6 code includes COM dlls and ocx controls. The rest of the code is in C++ and C#. I have been assigned the task to make the application code base compatible with 64bit architectures. Loads of help material is available for C/C++ code so thats not a proble...

TAPI on Windows 2008 64 bit edition

I have an old app I support (written in VB6) and it interfaces with TAPI. Recently the app got installed on the Windows 2008 Server 64-bit edition. However, the TSP driver for TAPI installation, even though, it got installed, gave an innocuous looking warning. However, the driver (which is 32-bit for sure), does not appear to have b...

How many asterisks should I use when declaring a pointer to an array of C-strings?

I am having a VB application request a list of users from a C DLL: VB will ask the DLL how many users there are, and then initialize an array to the appropriate size. VB will then pass its array by reference to a DLL function, which will fill it with usernames. I started writing the C function like this: foo(char **bar); which would be ...

Disable column in MSHFlexGrid in VB6.0

Hi how to disable particular columns in MSHFlexgrid in VB6.0? i don't want my user to edit the values in a particular column. ...

Date format in VB6

I am using VB6 for my application. I've populated Excel with the RecordSet obtained from a SQL query. One column called Time_period has values like "2/31/2006" "12/29/2000" etc. I need to pass these inputs to another SQL query for processing. I am little confused with the formats, as Oracle accepts inputs of type "23-Jul-2009", "02-...

Stored procedure time out - but fine when run from SSMS

I have a stored procedure which is erroring with "Timeout expired". The code involved is ADO/VB6. The stored procedure itself is not a problem, you can run it in a query window and it takes less than a second. The code used to get the connection etc is also modularised and in use all over a huge application. It is only in this one pla...

Help Reading Line Breaks In A Text File

Hi all, I have a TXT file that i need to import via an application, but for some reason i need to open it in wordpad first and then save it before importing it. I'm guessing it has to do with Line Breaks. Cause if i open it in notepad first, there are no line breaks, but if i open it with wordpad the lines are seperated. Does anyone kn...

Locking removable drive?

Friends, How to lock/unlock(software based) removable disk/drives in VB6? I need to know any specific win32 routines are there for this purpose? ...

Dynamic two or more levels sub-menu generation in vb6

Friends, Tell me how to generate more than 1 levels of sub-menu in VB6 at runtime? Explain in brief? Any specific controls are there? But i dont want to use external controls! ...

Data from web-page to a text box in application?

Friends, I saw a program(RAPGET) which downloads a file from RapidShare for the given link? I like to design a program like this which gets the information about weather-forecast from a web-page and it should display in the textbox in vb6? Help me to do this? ...

Recordset in VB6.0

Hi, I'm retrieving Data from a Database in a record set using VB6... so while retrieving data using Select in SQL I added a column called Comments along wit it so that in the recordset, all the columns of the table+'Comments' column would be present... I don't want to(and also I cannot) update any contents in the database as i'm only 'fe...