Hi guys,
I'm trying to create another dll with just forms and some shell method to call an external exe while allowing my main form to run unpertubed sort of something like a pseudo multithreading. And all of these wholesome goodness are in old vb6 legacy app.
So i'm trying to decide if i should use .net to write the dll or vb6 to write...
In the middle of converting VB6 code to VB.NET, I need to replace the following code that intends to close all open forms remaining in the application.
'close all sub forms
For i = My.Application.OpenForms.Count - 1 To 1 Step -1
'UPGRADE_ISSUE: Unload Forms() was not upgraded. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local...
Hi there guys.
When creating my Crystal Report I obviously set up a database and server connection that I use for development.
What I want to do now in my VB application is to dynamically set the database and server name to use with the reports. I have these values as the strings varServer and varDatabase.
Anyone know how to go about ...
I want to get the ControlName of .NET properties in VB6 code, just like described in this article. But unfortunately, it doesn't work for me. I always got 0 for bufferMem.
bufferMem = VirtualAllocEx(processHandle, 0, size,
MEM_RESERVE Or MEM_COMMIT, PAGE_READWRITE)
If bufferMem = 0 Then
Error Err, "V...
The desktop application I'm migrating makes heavy use of a treeview control, and many calls to TreeNode.FirstSibling, e.g.
'UPGRADE_ISSUE: MSComctlLib.Node property tvTreeView.SelectedItem.FirstSibling was not upgraded.
If tvTreeView.SelectedNode.FirstSibling.Index = 1 Then
...
End If
Is there an equivalent function to use?
...
Does anyone know if it is possible to generate ActiveX properties at run-time?
I only need to be able to get and set these properties from Visual Basic.
My ActiveX control is coded in C++ and I already know how to create properties by implementing hard-coded C++ get and put functions. However I have potentially a large set of prope...
I received some justified critical feedback on my last question (How to gracefully exit from the middle of a nested subroutine when user cancels?) for using the caption of a command button as a state variable. I did it because it's efficient, serving two or three purposes at once with very little code, but I understand how it could also...
Hello,
I am working on a VB6 application that uses an ADODB.Recordset object to dump data to an .xml file with the 'save' method, like the following:
adoRecordset.Save strDst, adPersistXML
where strDst is a string describing the destination.
Now, there are some rows in the database that are floats/doubles, for some table. For exampl...
This may seem to be a IT question, but most IT people I asked couldn't help me.
Where I work we have a Windows 2003 server where several developers connect via RDP. We downgraded the privileges of some of them (they were admin). And now when they start Visual Basic 6.0, they get the Windows Installer "Preparing to install" dialog. It dis...
Really all I need is 2 columns. The first column will have some text and the second column needs to have a combo box in it which will allow users to pick from it.
Bonus if the control is free.
...
I have a VB6 app that formerly worked perfectly on a Vista machine as a scheduled task, but it will no longer open on the same machine. The app generates export files in a specified folder with no direct output on the screen. I get no errors, no missing references, just absolutely nothing.
The machine is running Vista Business 32-bit...
I need to build an old VB6 application with a version number where the 4th digit is greater than 9999, for example, version 1.2.0.10003. VB6 won't let you do this; the build fails.
The current workaround is to build version 1.2.0.9999 and then manually edit the file in Visual Studio to insert the correct version. There must be a bett...
I have a Visual Basic 6.0 SP5 EXE project that results in a .EXE file.
This project references some custom DLL's (also made with VB6 projects).
This EXE and DLL's run OK on another machine.
Now I made some changes to the EXE source code. These changes run fine in the VB6 IDE.
Then I create the EXE file by running a Make. The generated E...
I want to do this: "If there's a module X containing a function Y then call it, otherwise don't."
I'm aware that I can use CallByName(Object, MethodName, ...) to call a method or property of an object instance.
Is it possible to call a global sub/function which is not bound to an object?
//Module1
Public Sub DoSomething
End Sub
//Mo...
I have a 32 bit in-proc STA VB6 dll. I sadly cannot do anything about this. My C# component greatly benefits from being 64 bit. Is there anyway to call/interface with this 32-bit dll from my 64 bit process? Any sort of wrapper or anything?
...
How can i get the content from HTML, removing the elements around it.
I am looking for an example using VB6
...
Hi Everyone,
I know that this subject has been done to death on news groups and there are forum posts for Africa - but I wanted the option of you experts on stack overflow :)
Our VB6 app occasionally just vanishes while the user is doing things and doesn't give any sort of error nor is it in the PC's error log!
I was wondering if any...
Hi,
It is my understanding that for a VB6 COM object when it goes out of scope Class_Terminate is immediately called on the object to allow it to clean up.
Is it possible to have that same functionality for a .NET object that is being called by COM?
The background to the question is based on the MSDN article: http://msdn.microsoft.com...
I can no longer find the CD that had the MSDN help for VB6, but I have a subscription to MSDN. The current MSDN library obviously does not have the VB6 online help.
What is the last MSDN library that includes the VB6 help?
...
I have a DLL written in VB 6 and another DLL written in Visual Studio 2005 (VB.NET).
Now I want to invoke the method of the VB DLL from my .NET DLL. What should I do for this?
Any thoughts?
...