vb6

How to determine if DLL is COM or .NET?

被刻印的时光 ゝ 提交于 2020-01-24 03:03:46
问题 I have an updater program, the pulled files from server has mixed vb6 dll and .net DLLs in one directory. How to determine if a dll is a COM one? (so i can invoke regsvr32 to it from the updater program) 回答1: I guess one way to do it would be to try load the file with System.Reflection.Assembly.LoadFile(). If you get a BadImageFormatException, it's not a valid .NET assembly. There's probably a neater way of doing this, but this should work. http://msdn.microsoft.com/en-us/library/b61s44e8

mozilla firefox activeX

試著忘記壹切 提交于 2020-01-24 00:13:32
问题 I like firefox more than IE, so am looking for firefox webbrowser activeX control just like the IE webbrowse control to use in my vb6 project. Where can i get it or can someone give me directive as to how to make/compile the gecko st code to activeX thanks 回答1: I wonder if this is what you're looking for: http://code.google.com/p/geckofx/ Or this: https://developer.mozilla.org/en/Roll_your_own_browser_-_An_embedding_HowTo Or even a similar question here on SO: Is it possible to Embed Gecko or

What is the purpose of CLS files and DLL files in VB?

青春壹個敷衍的年華 提交于 2020-01-23 05:22:10
问题 Does anyone have a good explanation of what the different meaning of the CLS, DLL, and VBP files in a VB project are? 回答1: CLS file is a class file containing the source code for one class. VBP file is a project file. You open a VBP in the VB6 IDE to browse or edit the code for that project. Projects can also be included in groups (VBG files), roughly equivalent to what .Net calls solutions . DLL file is a compiled executable library built from your VB6 source code. See Wikipedia The VB6

VB6 — using POST & GET from URL and displaying in VB6 Form

我与影子孤独终老i 提交于 2020-01-23 04:08:29
问题 How can my VB6 form POST 2 vars, pull the results from a URL and then assign a VB6 var to the results? I need someone to show me VERY basic VB6 sample code or point me in the right direction. This is the simplest form - in the final product, the PHP vars will write to MySQL, but that's not what i need help with. I have a simple PHP page that accepts 2 parameters: test.php?var1=secret&var2=pass Here's my really simple PHP code <?php $var1 = $_GET['var1']; $var2 = $_GET['var2']; $varAcc =

How to include adovbs.inc file in an aspx page?

纵然是瞬间 提交于 2020-01-21 22:08:32
问题 I'm converting ASP classic page to ASP.NET. What's the proper way of including files with .inc extension to aspx pages? <!--#include virtual = "adovbs.inc" --> I've notice that each time that I change one of those pages containing the include directive pointing to .inc files to aspx, I'm getting all sort of errors from those .inc files. I feel like just rewriting the logic inside those .inc files into vb classes. 回答1: The purpose of adovbs.inc or adovbs.asp was to provide a list of named

How to include adovbs.inc file in an aspx page?

╄→尐↘猪︶ㄣ 提交于 2020-01-21 22:05:38
问题 I'm converting ASP classic page to ASP.NET. What's the proper way of including files with .inc extension to aspx pages? <!--#include virtual = "adovbs.inc" --> I've notice that each time that I change one of those pages containing the include directive pointing to .inc files to aspx, I'm getting all sort of errors from those .inc files. I feel like just rewriting the logic inside those .inc files into vb classes. 回答1: The purpose of adovbs.inc or adovbs.asp was to provide a list of named

Converting VB6 Custom Type (with Fixed Length Strings) to VB .NET

本秂侑毒 提交于 2020-01-21 09:42:05
问题 I have upgraded some VB6 code, which uses fixed length strings in custom types, to VB .NET by using the UpgradeWizard and am having trouble with the use of the LSet method that I was hoping someone could help me out with. The Existing VB6 code (type declarations); Public Type MyType PROP1 As String * 15 PROP2 As String * 25 End Type Public Type MyTypeBuffer Buffer As String * 40 End Type Example usage; LSet instOfMyTypeBuffer.Buffer = ... LSet instOfMyType = instOfMyTypeBuffer What would be

properties of c# class is not visible at visual basic 6.0

℡╲_俬逩灬. 提交于 2020-01-21 09:01:27
问题 I have created a class in c# and made the com visible property is true. But, i could not see the its properties at visual basic 6.0. what could be a problem? please help me 回答1: Define a public interface that is also ComVisible, and have your class implement that. Then use tlbexp.exe to generate a type libary from your C# assembly: tlbexp ComServer.dll /out:ComServer.tlb You need to add a reference to the type library from VB6, not the assembly. How does VB6 know where your assembly actually

How to return the value of AUTO INCREMENT column in SQLite with VB6

删除回忆录丶 提交于 2020-01-19 07:55:39
问题 I have a table in SQLite: CREATE TABLE "EventType" ( [EventTypeID] INTEGER PRIMARY KEY, [EventTypeName] VARCHAR(50) NOT NULL UNIQUE ); Since EventTypeID is an integer and a primary key, that automatically makes it an auto-incrementing column, and that works fine. I'd like to insert a row into the table and get the newly incremented value from VB6. Dim oRs as Recordset dim oCmd as new Command oCmd.ActiveConnection = GetConnection() oCmd.Source = "insert into EventType (EventTypeName) values (

How to return the value of AUTO INCREMENT column in SQLite with VB6

感情迁移 提交于 2020-01-19 07:55:09
问题 I have a table in SQLite: CREATE TABLE "EventType" ( [EventTypeID] INTEGER PRIMARY KEY, [EventTypeName] VARCHAR(50) NOT NULL UNIQUE ); Since EventTypeID is an integer and a primary key, that automatically makes it an auto-incrementing column, and that works fine. I'd like to insert a row into the table and get the newly incremented value from VB6. Dim oRs as Recordset dim oCmd as new Command oCmd.ActiveConnection = GetConnection() oCmd.Source = "insert into EventType (EventTypeName) values (