vb6

What do ! and # mean when attached to numbers in VB6?

I have recently come across numeric literals such as 10! and 50# in Visual Basic programs. Could anyone tell me what these punctuation marks mean? ...

How can I detect an .exe file that is produced by vb6 and recognize different vb6 files from each other?

I'm writing a program to detect which ".exe" file is generated by "Visual Basic6". I found that at the "entry point" of each vb file, there is an address at offset 1 from "entry point" which points to a location that contains the string: "vb5!", is that a certain signature? Can I be sure that in every vb files this string is exist? Then,...

check that outgoing network is open on port 443, with vb6

in Visual Basic 6 How can i check that communication to port 443 is opened for network requests? I must NOT use any 3rd party controls / activeX / OCX, so I'm looking for ways to send / receive an https or just make a connection to a server which is serving on 443, using windows (2k/2k3/xp/7/vista) API calls. There is a known server I...

Query>Checking with Today Date in VB

I have created the database in Microsoft Access with this query SELECT * from booking WHERE BOOK_DATE = DATE() order by book_time* it returns 3 records which has BOOK_DATE = today date but... when i tried to place it in the Visual Basic with Data Control and DBGrid, i enter the query in the RecordSource property, but the data didn...

Dependency/NDepend type tools for VB6

This question talks about Vb6/.Net but all the answers address the .Net aspects but not the VB6 aspects. Would anyone know of tools that allow a simillar kind of graphing/dependency try to be created for VB6 apps. I assume that it would have be done from source. ...

Visual basic 6.0 simple application set in Task Scheduler

I have a requirement to create an application to upload data into database from csv file which run in a specific date. The only programming language that the company allowed is to use Visual Basic 6.0 or VBA. I already create an application using a standard exe file in Visual basic 6.0. Is there any way around how to create this this wit...

How to Call A .NET Created DLL in VB6 Application?

I need to call a VB.NET DLL in VB6 application, does anybody has any ideas? Thanks a lot. ...

solve 2147317562 (800288C6) Duplicate ID in inheritance hierarchy

Hi, When I tried opening VB application(which has .Net usercontrols embedded) I got error saying "error while loading the project" and .Net user controls are not loaded. Then I tried adding components to the VB application then I got the error: 2147317562 (800288C6) Duplicate ID in inheritance hierarchy I searched in net and understood ...

old vb6 prog stopped working

Hello, I know big blocks of code aren't loved much but the below piece of code is a program soneone that left long before i started wrote in VB6. This program worked until yesterday, when it suddenly decided to stop working. The program runs as a job in SQL and no one knows how SQL finds it. We where able to relocate the original code ...

In VB6 what is the default type for a variable?

If one declares a VB6 variable thus... Public THISVAR, THATVAR, THEOTHERVAR what type are the variables created? ...

how to convert vb6 to visual c++ native code?

We have a client who wants to convert a bunch of VB6 projects in to VC++ native code. I would like to know if there are any tools available for such conversion. We tried http://vbto.net/, which converts, but generates tons of compile errors. The tool creates all cpp projects as "exe", while many of the source VB6 projects are "activex d...

How to get the string from an address specified by a long in VB

In vba, There is an address held by a long type which points to a null-terminated string, but I can't find a way to get the string from this address: long str_address = ... string str = ? Would you please shed some light on this? ...

How to read one line of text at a time and write back out to another file in VB6

I have very little experience with VB6 and I need some help. I'm trying to read from file "A" one line at a time, make changes to that line, and write it back out to file "B". Appending File "B" as I go. I've found plenty of info on the web but none of it matches what I'm looking for. If there's anyone who knows of a good link or can s...

Is there a way to increase the ammount of open dao recordsets at vb?

I've opened a dao recordset at a VB application. The problem is that I received an '3037' runtime error, this error says that I can't open any more tables or queries. So, I have to close some, but this doesn't seem to work... Is there any way to increase the number of opened recordsets? I use the next code to sort a FlexGrid table when ...

inno setup install vb6 app dll

I recently compiled a vb6 application with inno setup that when i install, works fine on winxp when i tried it on vista, i got error message i noticed it was a dll registration problem, so i try to register the dll manually to see if it corrects the problem. when i tried that, i got this error is there anyway i can correct the prob...

how to convert vb6 to vb.net programmatically

Visual Studio comes with Wizard that converts vb6 code to vb.net. Is there are any way to call this conversion via code? ...

compiling VB6 code in .NET environment

Is one able to compile VB 6 code in Visual Studio.NET ? In other words, is it backwards compatible with older VB code? Since I know there is a difference between managed code (.NET) and unmanaged code, I am wondering if Visual Studio.NET is able to compile unmanaged code as well? Kind regards, Kris ...

Out of memory error in VB6 application

Before anyone says it, I know this isn't the way it should be done, but it's the way it was done and I'm trying to support it without rewriting it all. I can assure you this isn't the worst bit by far. The problem occurs when the application reads an entire file into a string variable. Normally this work OK because the files are small, ...

does visual studio 2008 professional have a built in graphing library?

i am moving a vb6 application into c# the vb6 app was using csXgraph graphing library. i have no clue how to access COM objects using c# and dont know if it is even the best idea to do it this way. so i would like to know whether visual studio already has some kind of built in graphing library that i can use with a sql server database h...

TABCTL32.OCX(1.1.0)

I am trying to upgrade a VB6 project to run it on VB8, but I am getting an error which says that you need to install TABCTL32.OCX(1.1.0). What shall I do? Please Help. Thanks in advance. ...