vb6

Equivalent (functionality) of ObjPtr from VB6 in C#?

前提是你 提交于 2020-01-04 07:19:23
问题 Does any one know if C# has an equivalent of ObjPtr from VB6, or equivalent functionality (see more info below)? Here are a couple of links to info on ObjPtr devx , thevbzone. Basically I have a third party treeview that I need to walk thru to get specific nodes but the only (relevant) info the nodes have is name ... but the node names don't need to be unique. So I need to get a unique value for each node as I walk thru it the first time so when I walk thru it again I know which is which. In

VB6 Memory Limitations

梦想的初衷 提交于 2020-01-04 07:02:47
问题 I'm currently supporting a VB6 application (that we are replacing, but it's a slow process!) that is running on several servers. Can anyone tell me please what the maximum amount of memory of VB6 process can address is? We are using a variety of operating systems: Windows Server 2003 32bit Windows Server 2008 64bit Windows Server 2008 R2 64bit I've tried using resources like this: https://blogs.msdn.microsoft.com/tom/2008/04/10/chat-question-memory-limits-for-32-bit-and-64-bit-processes/ But

How to stop initial form maximising when run as startup RDP program?

杀马特。学长 韩版系。学妹 提交于 2020-01-04 06:32:15
问题 The startup form in my VB6 app is behaving strangely when started in a Terminal Services (Remote Desktop) session, with both the host and client being XP Pro machines. The form is meant to be centered but it actually maximises and its content goes to the top left and it looks very strange. Note, this only happens when the app path is used for the "Start the following program on connection" field under the Program tab in the RDP client. Apparently there is a solution if you are running Server

VB6 application on a 64bit machine

醉酒当歌 提交于 2020-01-04 05:49:06
问题 I'm maintaining an old VB6 application, that uses some Sheridan 3D controls (SSPanel and SSTab, found in threed32.ocx and tabctl32.ocx). Will this application work on a 64-bit machine (I guess the 32 in threed32 comes from the bit number?) If not, what can I do to make it work? 回答1: It should run fine via WoW. EDIT: Since you've clarified that it's a 16-bit application 1 , if it's a LOB application that absolutely must run then you could try Windows XP Mode for Windows 7 and later. If you've

How to exit the program immediately?

倖福魔咒の 提交于 2020-01-04 04:36:26
问题 Using VB 6 and Access 2003 I am using two command buttons (process, cancel) When I run the Program, press cancel button – The form unloads immediately. If I press the Process button and then Cancel button, the form is not unloading immediately. In Process button, I wrote the code like this: Getting the data from the database and creating a record set, creating a temporary table…, Is there any way to exit the program immediately at the time of VB code working with database (like Creating

VB 6.0 system tray application doesn't close gracefully when Windows shuts down

橙三吉。 提交于 2020-01-04 04:16:18
问题 I'm using the following code within a VB 6.0 application to allow give the application a system tray icon: Option Explicit 'user defined type required by Shell_NotifyIcon API call Public Type NOTIFYICONDATA cbSize As Long hwnd As Long uId As Long uFlags As Long uCallBackMessage As Long hIcon As Long szTip As String * 64 End Type 'constants required by Shell_NotifyIcon API call: Public Const NIM_ADD = &H0 Public Const NIM_MODIFY = &H1 Public Const NIM_DELETE = &H2 Public Const NIF_MESSAGE =

vb6: redimensioning of 2D dynamic array

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-04 02:44:06
问题 I am using arrays to store properties of steam according to it's pressure. Right now I have properties of exactly 9 pressures so I'm using static array. I'd like to be more flexible so I'd like to switch to dynamic arrays. When I use ReDim foo(1 to i, 1 to 10) in loop I completely loose all data except last line. When I use ReDim Preserve foo(1 to i, 1 to 10) or ReDim Preserve(i,10) Program throws error of "Runtime error '9': subscript out of range" . i goes from 1 to 9. How can I add line

Permission Denied opening an Excel File using Excel 12.0 Library & VB6

你离开我真会死。 提交于 2020-01-04 01:23:15
问题 I have used Excel in my VB6 apps many times before, and have never run into such a weird problem trying to accomplish something very easy.. I am trying to open an excel (xls or xlsx) file and read through values, as you can probably see. When I try to open the file, I get an error 70 (permission denied) error. The odd thing is that there is no other instance of excel open (in task manager apps or processes). No one else is trying to access the file whatsoever. I can open the file in excel

JAWS, Accessibility and VB6

回眸只為那壹抹淺笑 提交于 2020-01-03 22:54:08
问题 I am just beginning to learn about accessbility specifically in relation to JAWS - so newbie alert! I am looking to modify an old vb6 app which has a form with a 3 column flexgrid. There is a custom edit box which is overlaid on the form for editing in the right most column. On row change, ideally JAWS needs to read the contents of the 2 leftmost columns on that row. I am wondering how best to implement this? I have seen possible solutions of loading into a text file and shelling out to JAWS

Delete all files within a directory vb6

廉价感情. 提交于 2020-01-03 18:43:13
问题 I was wondering if anyone could help me with a vb6 function that would delete all files within a directory (excluding subdirectories). 回答1: One line, using the VB6 statement Kill Kill "c:\doomed_dir\*.*" The help topic says "In Microsoft Windows, Kill supports the use of multiple-character (*) and single-character (?) wildcards to specify multiple files". As an aside - I prefer to avoid the Microsoft Scripting Runtime (including FileSystemObject). In my experience it's occasionally broken on