vb6

VB6 authored ocx on a .NET WinForm?

I've inherited a VB6 project that has a Form with VB controls (Label, etc) and Windows Common controls (Treeview, ImageList, etc), which looks like an ideal candidate for a usercontrol. I mentioned to a colleague the possibility of compiling it as an ocx ActiveX control to be used in a .NET WinForms project. They were slightly horrifie...

How can I tell that a directory is the Recycling bin in VB6?

I am attempting to port the code in this article to VB6, but I'm experiencing crashing. I'm pretty sure my error is in my call to SHBindToParent (MSDN entry) since SHParseDisplayName is returning 0 (S_OK) and ppidl is being set. I admit my mechanism of setting the riid (I used an equivalent type, a UUID) is pretty ugly, but I think it ...

VB6 to VB.net conversion

Exact duplicate: How to switch a large app from VB6 to VB.Net Exact duplicate: Best strategy for moving applications from VB6 to VB.Net Exact duplicate: Conversion tool comparisons for VB6 can any one please tell the tool which converts vb6 to vb.net thanks dagg ...

SQL Server 2000, ADO 2.8, VB6

Dear All, How to determine if a Transaction is active i.e. before issuing Begin Transaction I want to ensure that no previous transaction are open.. the platform is VB6, MS-SQL Server 2000 and ADO 2.8 ...

How do I get ToolStripMenuItem Shortcut Key to work when WinForms control is hosted in VB6 Form.

We have a scenario where we are exposing a set of WinForms UserControls via COM to a Legacy VB6 application. We have 3 different controls which have a MenuStrip on it that has the Control-F shortcut key mapped to a menu item which invokes a control specific find items dialog when the shortcut is entered. When we try testing this code in ...

vb6 windows media player

How can i play windows media audio/video file(wmv) in windows media control in vb6? I tried playing it through this code but it didn't work wmp.URL = App.Path & "filename" wmp.Controls.play ...

New MDI child resizes other maximized Forms

I have a project with a main MDI form. There is a child MDI form inside that is always present and cannot be closed (Is it possible to hide the close button while keeping the min and max buttons?). Because the child form is such an important part of the program, users like to have it maximized. When another MDI child pops up, the maxi...

Load image from memory into VB6 PictureBox

I'm not a VB6 developer so excuse me if I'm not making any sense. If I have a VARIANT array of bytes containing an RGB array of image data, is it possible to get that data to be displayed in a PictureBox? The PictureBox documentation suggests that the only acceptable sources are files. Additionally, the image size and other image infor...

Save file without Save Dialog in Visual Basic 6.0

I want to save a file without showing the save dialog because the file is always the same. How can I make it? Thanks. ...

How can I return a PChar from a DLL function to a VB6 application without risking crashes or memory leaks?

I have to create a DLL which is used by a VB6 application. This DLL has to provide several functions, some of them must return strings. This is the VB6 declaration: Declare Function MyProc Lib "mylib.dll" (ByVal Param As String) As String And this the Delphi implementation stub in mylib.dll: function MyProc(AParam: PChar): PChar; st...

DllRegisterServer entry point was not found

Hi when running my vb6 application I am getting error like " runtime error '53': file not found: rscomclNoMsg.dll" then i tried to register that dll from cmd line using regsvr32. Then Iam getting error like " DllRegisterServer entry point was not found". I copied rscomclNoMsg.dl in c:\windows\system32 and C:\Program Files\Microsoft...

Converting a function from Visual Basic 6.0 to C# is throwing AccessViolationException

I'm converting a function from Visual Basic 6.0 as: Declare Function RequestOperation Lib "archivedll" (ByVal dth As Long, ByVal searchRequestBuf As String, ByVal buflen As Long, ByVal FieldNum As Long, ByVal OP As Long, ByVal value As String) As Long In C#, I'm declare the function as: [DllImport("archivedll")] public static extern ...

Adding text / input box rendering to Access for a guided user interface experience

For software used in a call centre guiding agents through a set script they must follow while on telephone calls, with the script branching dependant on answers to questions given - My system uses a MS Access / VBA front end (isnt web based due to speed, phone integration), 'call scripting' is coded in VBA when needed, but what if i want...

C# - get event from SetWindowText

We are writing a plugin for an existing VB6 application (via COM interop), and we are requiring some functionality that they do not support. We could easily get the required functionality if we could somehow receive an event for when a particular control's text on their window changes. We can already grab their existing window handle o...

VB6 Application timing

I am attempting to profile a VB6 application. Basically I wanted to work out at a method by method level how much time execution is taking. However VB6 only supports times to 1 sec. Is there any good way of working out millisecs etc ? ...

VB6 Type Mismatch in For loop condition

I have been trying to find out why in the following code, the third time through the loop I am getting a Error type 13 Mismatch when the line "For lCount = 0 To maxCount" is being evaluated. I had originally thought the problem was in getting the value from the vArray, but testing shows it to be triggered by the "For" line. I haven't a c...

Need Ctrl+Break on laptop without a Break key

The crux of the matter: -new Dell laptop without a Break key. -VB6 and VS2008 IDEs use Ctrl+Break to pause execution for debugging. -I need a way to map another key combination to trigger a Ctrl+Break My setup may make this easier or harder but to be clear I am running Kubuntu 9.10 (latest stable) and WinXP in a VirtualBox VM. Obvio...

VB6 App Calling .NET DLL OutOfMemory Exception

We have a VB6 app that calls out to a .NET DLL. Occasionally, after the VB6 app has been running for a long time and has called the .NET code a lot, the .NET side of things throws an OutOfMemory exception, even though there is plenty of memory available on the machine. The VB6 memory space is also no where near it's limit. Does the .NE...

3D Software Renderer with VB6

Hi, I am IT student and I have to make a project in VB6, I was thinking to make a 3D Software Renderer but I don't really know where to start, I found a few tutorials but I want something that goes in depth with the maths and algorithms, I will like something that shows how to make 3D transformations, Camera, lights, shading ... It does...

VB6 ActiveX DLL Running Slow On Terminal Server 2008

I have a VB6 ActiveX DLL that has run fine on all our machines for several years. Recently our IT manager setup several locations so they remote into Terminal Server 2008 and run the program that accesses my DLL on the Terminal Server so that their databases are local to the corporate network. My DLL runs very slowly on the terminal serv...