vb6

Are Visual Studio 6 typelibs handled differently in Visual Studio 2008 under Vista and 7?

I have written a standard DLL in Visual Studio 6 C++. I have also written a typelib to go with it so that it can be used directly in VB6 rather than via Declare. It works fine in VB6 under Windows XP. What doesn't work is when I take the DLL and the TLB into Vista and Windows7. There the .TLB registers fine with REGTLIB but the only ...

Change my applications's exe file version in VB6

i made an application in vb6 now i have given it a product version from project/properties but i noticed the win explorer has two tags for exe a product version and a file version. i want to edit the file version of my app's exe any idea how can i do that? file version should be x.x.x.x ...

Getting IP Address using UPnP InvokeAction not returning anything, help?

Basically, when i use vb.net or c#.net to do this, it works perfectly, but when i use vb6, it doesn't work, in my for loop where the relevant service in the relevant device is captured, here is the code that returns no result... ' serv is properly declared and instantiated by the for loop. Dim xins(0) Dim xouts(0) ...

vb6 : accessing registry values

I'm writing a simple vb6 button which tests the access of the registry values. I have the following: Private Function registry_read(key_path, key_name) as variant Dim registry as object set registry = CreateObject("WScript.shell") registry_read = registry.regread(key_path & key_name) End function Private Sub Command1_Click() MsgBo...

In VB6, when referencing a .NET component, why do I have to reference the .TLB file?

In VB6, when referencing a .NET component, why can't I reference the DLL? Why do I have to reference the .TLB file? ...

How to determine dependencies for VB6 project?

I am having troubles creating an installer package for a VB6 project. When I try to install the package created by the Package and Deployment Wizard there are errors when trying to copy and register some of the files (some files are in use, some say there is an error when trying to register). I would like to do away with these wiza...

Can Intel's Open Source UPnP Library be Used with VB6?

Just a question, as I was unable to register the related upnp.dll provided by the intel open source upnp tools package (as provided here: http://opentools.homeip.net/dev-tools-for-upnp ) from the VB6 references dialog, it said something to the effect of "can't register .dll", but since it is written in (i think) C or C++ I figured there ...

How do I use a .NET .DLL file or library in VB6?

I'm just wondering if there is something I should know of when doing this or will it work straight out of the bat as long as the .NET framework is installed on the client? I ask because when I attempted this, VB6's references dialog said "cant register that dll" Thanks ...

Documenting Visual Basic 6.0 code

I have just recently been asked to document 10 years worth of VB6 development done by one person. It's been some time since I looked at VB6 code myself, so I'm basically wondering if anyone has any tips for how best to go about it. Is there any good software, free or not, which would do something similar to javadoc out there for VB6, t...

How do I pass an Array (By Reference, in VB6) to a C\C++ *.dll subroutine?

I need to pass an empty Array of Variants to a DLL written in C (and available on all Windows versions), and the C code (which I have no control over and cannot edit) will populate the Empty Array of Variants with its some return values. Bascially, when I try this - the ByRef Array is always empty when it should contain the results of t...

Remembering which display application was closed on

Fairly straightforward question: How can I tell a VB6 application to remember what display it was closed on, and then when the application is launched again, to display the main form on that monitor? ...

Interop: when deploying a VB6 + .NET component, is the .TLB needed?

When deploying a software package containing a VB6 executable and a .NET component, is the .TLB file needed? If not, would it be sufficient to include the .DLL and have it regasm-ed during installation? ...

how can we pass data from crystal report(8.5) to vb form

I made Invoice By Crystal Report v8.5 (Vb6 & Access). There is item Name and Price. At last Net Payable Amount:500(Exp), I need to Show In words(Five hundred). Crystal built in Function is not appropiate for it. So write a function in VB6 and it works nice. Now problem is how i send this value Crystal Report (v8.5) to vb.(I know to sen...

How To Calculate Torrent Info Hash In VB6

I understand that you must calculate the SHA1 of the info dict in the torrent file, I am struggling Parsing the info dict, Do i Need to decode the bencoded info dict before calculating the sha1 hash?? How do I do it? ...

How can I distribute a number of values Normally in Excel VBA

Hi All, Sorry I know the question isnt as specific as it could be. I am currently working on a replenishment forecasting system for a clothing company (dont ask why it's in VBA). The module I am currently working on is distribution forecasts down to a size level. The idea is that the planners can forecast the number to sell, then can sp...

VB6 RSS Example?

i need an example - how to parse RSS feeds by under Visual Basic 6... help please) ...

Are .OCA files necessary for program execution?

In the system32 directory I saw an .OCX file with a corresponding .OCA file. I had thought .OCA files are used only by Visual Basic. Are they therefore unnecessary for program execution and could be removed? If they are unnecessary, why would there be an .OCA in the system32 folder in the first place? ...

How to restore the images uploaded for imagelist control in VB 6.0

Hi, I have a VB 6.0 application which contains some images inside a imagelist control. I want to know where these images get stored in the system.( because I want to use these images in another application and I dont have the images seperately in the system) So, the only way is to take the images from Visusal basic 6.0 project. Do we hav...