vb6

vb6 to vb.net dll compatibility version

旧城冷巷雨未停 提交于 2021-01-27 13:24:10
问题 I explain my problem : I have some program (5-6) in vb6, and a lot of DLL in vb6. We will perform a migration of these DLL and program in Vb.Net. We want to start with DLL, and each program references 2 or 3 DLL. I want to perform the migration of the DLL in vb.net (no problem for that) but i want to keep the (binary) compatibility between my old vb6 DLL and the new one in vb.net Because without that i will have to re build each application using this DLL because the compatibility is broken.

Automation support for Visual Basic 6 ListView

我是研究僧i 提交于 2021-01-27 08:20:18
问题 I need to get value/text of control via automation interface (coding with C++/C#). I tried with UI Automation API and this is some result captured by the Inspect: UI Automation recognize these control as pane and I can't get list view text item or get/set slider value as normal. Tried with other tool like MSAA, Automation Spy give the same result. After researching, I found that control with class name like ListView20WndClass , Slider20WndClass , ... belong to Visual Basic 6 control. So, Is

How to bring “System.Drawing.Image” to DIB

狂风中的少年 提交于 2021-01-27 07:23:39
问题 I have created a consumable COM Class Library. The class library gets the image of a camera. It's of type Image / Bitmap. I consume the class library in VB6, and I need to show this image in VB6. How could I convert this System.Drawing.Image to something that VB6 can display? Can I use a DIB (using CreateDIBSection, etc.)? If yes, how exactely can a System.Drawing.Image be converted to a DIB? Thank you! 回答1: Here's what I've done in the past. First, a couple prerequisites: you get a Byte()

How can I share an interface between VB6 and C#?

二次信任 提交于 2021-01-27 07:10:49
问题 I would like to be able to code a class interface which I can implement in C# and VB6 classes so that these classes can be handled in the same way within VB6 code but I can't make this work. In VB6 I want to have come class VB6Class using the Implements key word to implement some interface ISharedInterface. In C# I want to have some other class C#Class which I can expose to COM as also implementing ISharedInterface. The goal is that VB6 code will then be able to operate on VB6Class and C

How to get records by using foreign key in one table using primery key another table in visual basic 6.0

这一生的挚爱 提交于 2021-01-07 02:16:48
问题 i have two tables in same database: table1 contains order_no(primery key) and cust_name table2 contains order_no(foreign key) (which also have duplicates entry per food item ordered in single order), table_no , items , date , cust_name and so on... so my question is how can i show the records in listbox and datagrid or in textbox using table1's primery key order_no so i can get all the records which have assigned the foreign key with same order number in table2 i am using visual basic 6.0 回答1

How to get records by using foreign key in one table using primery key another table in visual basic 6.0

▼魔方 西西 提交于 2021-01-07 02:16:00
问题 i have two tables in same database: table1 contains order_no(primery key) and cust_name table2 contains order_no(foreign key) (which also have duplicates entry per food item ordered in single order), table_no , items , date , cust_name and so on... so my question is how can i show the records in listbox and datagrid or in textbox using table1's primery key order_no so i can get all the records which have assigned the foreign key with same order number in table2 i am using visual basic 6.0 回答1

How do I know the input I get from a MsgBox?

筅森魡賤 提交于 2020-12-12 11:12:11
问题 In VB6 I am trying to find out how to get the input from the user in a MsgBox Here is my code: Dim myAnswer As Integer myAnswer = MsgBox("Do you want to buy this upgrade?", vbOKCancel, "Upgrade Description") The MsgBox comes up with an ok and cancel button but I don't know how to tell whether or not they clicked ok or cancel. 回答1: Here: Dim myAnswer As Integer myAnswer = MsgBox("Do you want to buy this upgrade?", vbOKCancel, "Upgrade Description") If myAnswer = vbOK Then MsgBox "You clicked

How do I know the input I get from a MsgBox?

巧了我就是萌 提交于 2020-12-12 11:12:09
问题 In VB6 I am trying to find out how to get the input from the user in a MsgBox Here is my code: Dim myAnswer As Integer myAnswer = MsgBox("Do you want to buy this upgrade?", vbOKCancel, "Upgrade Description") The MsgBox comes up with an ok and cancel button but I don't know how to tell whether or not they clicked ok or cancel. 回答1: Here: Dim myAnswer As Integer myAnswer = MsgBox("Do you want to buy this upgrade?", vbOKCancel, "Upgrade Description") If myAnswer = vbOK Then MsgBox "You clicked

How do I know the input I get from a MsgBox?

徘徊边缘 提交于 2020-12-12 11:11:41
问题 In VB6 I am trying to find out how to get the input from the user in a MsgBox Here is my code: Dim myAnswer As Integer myAnswer = MsgBox("Do you want to buy this upgrade?", vbOKCancel, "Upgrade Description") The MsgBox comes up with an ok and cancel button but I don't know how to tell whether or not they clicked ok or cancel. 回答1: Here: Dim myAnswer As Integer myAnswer = MsgBox("Do you want to buy this upgrade?", vbOKCancel, "Upgrade Description") If myAnswer = vbOK Then MsgBox "You clicked

Static code analysis for VB6 and classic ASP

ぐ巨炮叔叔 提交于 2020-12-10 03:55:51
问题 I'm looking for a static code analysis tool that will determine if I have orphaned functions in my VB6 code. The problem I'm running into is we make calls to the VB6 code from classic asp. Is there a tool that will look at both the classic asp and VB6 and determine if there are any orphaned functions? 回答1: Great Migrations offers a VB6/COM/ASP processor that can produce precisely what you are asking for. These detailed "reference reports" are a side benefit of the primary purpose of the