Legacy VB 6 Remote Debugging desktop application - vb6

I would post what I have tried, but I have not yet found any information on how to do this. I've searched and have not come up with any answers.
I would like to be able to debug a desktop application that was written in VB 6 and is installed on a remote machine in my network from within my local VB 6 IDE.
The reason I'm using VB 6 is because the application is legacy and is being maintained (a pain).
Any help with this is greatly appreciated!

I've never managed to do this.
I would suggest installing VB6 on the remote machine and running the application interpreted using a remote desktop session.

Related

VB6 App on VM Runs Over RMM Utility But Crashes Over RDP

Alright StackOverflowians, this is a strange one, so bear with me and be kind. Also, this may be more of a question for ServerFault, but I'm hoping other developers out there may have seen this behavior and / or have some insight.
I have a VB6 application (custom built but the source code is long gone) which is running on a Windows Server 2012 R2 VM. When I connect to the VM using an RMM utility (ConnectWise) I can run the application as expected and everything is happy and good. However, when I connect to the VM over traditional RDP, the application crashes on startup and cites the error as COMCTL32.DLL, Exception Code: c0000005. I login as the same user in both scenarios.
I believe that this did work over RDP once-upon-a-time, but it's been probably 6 - 8 years since I've done this.
I've been finding information about the exception code listed above as an "Access Violation" and have followed some steps to disable Data Execution Prevention, but this had no effect. If I wasn't seeing this with my own eyes, I would not believe it is happening. Would welcome any tips or information, especially if you've seen similar behavior before.

system.net.sockets and windows 10 error?

I'm having a very strange problem with an application in windows 10. It consists of several .exe in the same computer communicating between them with sockets using system.net.sockets library.
The problem I have is that after installing Windows 10 in a new computer, install all windows updates and then installing that application, connection to sockets doesn't work correctly and the application fails. The strangest thing is that if you leave the computer alone for 1-2 days the applications starts working just fine. The same has happened after installing version 1803 update, it stops working and then works one or two days later.
Any idea of what can it be? Has anyone seen something similar?
It really seems to be related to the 1803 update you mentioned.
Symptoms:
Running an application from a network share will fail when creating a socket;
Copying the very same application to a local drive/path will work just fine, without any further modification.
We are also struggling with this while connecting to an Oracle database (both ODBC and ODP.NET) and it seems the issue has recently been acknowledged:
https://support.oracle.com/knowledge/Oracle%20Database%20Products/2399465_1.html
It also seems this is a recurrent Windows bug:
Win Socket Creation fails with Error code 10022 if non super user
https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/3076a9cd-57a0-418d-8de1-07adc3b486bb/socket-fails-with-error-10022-when-application-is-run-from-certain-network-shares-on-vista-and?forum=wsk
Sorry, no effective solution at the time (other than copying the app binaries to a local folder). I'll update this answer once we get a better solution.
OK, looking a little further I found here in SO that this might be related to a SMBv1 network share, which describes the environment we had here (the network share was disabled because of another bug we faced - thanks MSFT).
Re-enabling SMBv2 / SMBv3 on the server solved the issue.
Related post:
After Windows 10 update 1803 my program can't open a socket when running from network share

MS Access VBA made on Windows 7 fails on Windows 8

I am having a very frustrating issue which im not able to resolve.
I have created a database program on windows 7 which i am not able to run on Windows 8. The error i receive is "Error communicating with the OLE server or ActiveX Control".
To test out what is causing it i have erased VBA code and the program has started successfully. To test it out even further I have created an empty database with 1 form and vba code for a simple messagebox (Windows 7) and it has failed me on windows 8 again, same error message.
Any help would be appreciated , because google isn't helping me
EDIT: Computer language is English, Keyboard language English/Lithuanian, Region Lithuania, VBA font Arial(Baltic) tested all these as well but didn't seem to fix my issue
EDIT2: I have identified the problem , it actually is System Locale, Windows 7 computer is using system locale - Lithuania, Windows 8 is using English (US). Does anyone know how to solve this problem? my company has multiple windows 7 and windows 8 computers, changing locale is not an option
One possible problem is the versions of the various DLLs that your VBA code uses.
In the VB editor Go into Tools/References on Windows 8 and see if there any library references that it can't find. Then look at the list below and see if you can select a later version to fix it.

Running an application installed on a remote machine through the browser

I have written a C++ program in Visual Studio 2010 and
now I would like to ask someone in a different country
to connect to my Win7 laptop and run the program.
I would like them to use their browser to access my program.
Context: a little prototype for an international study; i.e.
I write a program and ask a number of users in different countries
to participate and run my program, so that I can collect some data.
How do I do this?
Thanks in advance,
Use chrome Remote Desktop
Its same as rdesktop, but works via browser - they will have to install the extension
https://chrome.google.com/webstore/detail/chrome-remote-desktop/gbchcmhmhahfdphkhkmpfmihenigjmpp?hl=en
Note: This might same as they installing rdesktop locally

Trying to create dev with SPEasySetUp and VMWare

I am trying to create a dev box for SharePoint 2010 Server utilizing the following:
http://blogs.msdn.com/b/cjohnson/archive/2010/10/28/announcing-sharepoint-easy-setup-for-developers.aspx
So first of all this is new to me. I understand that these are instructions are for dual boot in Windows Native, but I am more interested in using a VHD/image of the OS to run on VMWare.
I have tried creating an image of a running virtual machine with sysprep tool, but hit a dead end with capturing the image to a file that I can reference within the running machine to run the scripts against.
I took a look at Diskpart on TechNet, but as I am new to this, I am not sure this is what I want to do?
I tried installing to the local host (virtual machine that is running) and am getting an error there also; fails at Windows Identity Framework.
It is a clean install of Windows 7 (literally nothing else), and the UAC has been disabled.
Is there any insite, help, or advice anyone can provide me regarding this? I would really appreciate it as I have to get working on the development aspects of SP (workflows, web parts,etc), and need a dev env, and I can't seem to get anywhere with this.
Thanks
Justin

Resources