Do VB .net Apps absolutely require .net framework to run? [duplicate] - vb.net

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Is the .Net framework required for even a single line of VB.Net?
I'm getting my programming feet wet by designing a simple vb .net program to run utilities and installations from a flash drive. I'm making good progress with the coding and design but I was surprised when I went to show off my work on a system with a fresh XP installation and got a "Not valid win32 application" error when I started the exe. Pretty embarrassing actually.
Is having the .net framework installed essential to loading a .exe coded in vb .net? If this is the case, is the only alternative to try and adapt the code to vbs script or something similar? Are there any other reasonable workarounds short of installing .net on the target system? Thanks in advance.

Yes.
It's named VB.Net for just that reason. :)
Adapting the code to VB6 (which needs a different series of DLLs installed on the target machine) or to VBScript will likely be quickest.

Yes, VB.Net does require the .Net Framework. However, Windows XP is getting pretty old now, and recently dropped below a 25% installed base on some indexes. Windows 7 ships with .Net 2.0 out of the box, and Windows 7 sp1 also has .Net 3.5 at least available on the machine.

Related

How Do I Update an Old VB Program

I wrote a VB program a few years ago. I don't know what version VB (or should I say Visual Studio) I used.
Today I tried to make some changes. I discovered I didn't have any version of VS installed on this computer. I have no idea how that happened. I found folders for VS 9.0, 10.0 in one area of Program Files. I found folders for VS (no version), VS 8, 9.0, 10.0, 11.0, 12.0,and 15.0. In another area of Program Files. The folders have all kinds of files in them but I couldn't find an executable. The Control Panel list showed no versions of VB or VS were installed.
I found a CD with Visual Basic 2010 Express on it so I installed it.
When I tried to open my program I got a warning that it was going to have to update it and would make a backup.
Then it opened and I got so many errors I have no idea what to do.
Oh, I guess I should mention, I'm just a retired engineer that enjoys doing projects like this for myself. I am not a professional programmer.
I suppose the quickest way to make the changes I need is to figure out which version of VB I used and find it and install it.
Is that a good idea or is there a better solution?
Note I am coding on a 64 bit processor but I want the code to run on a 32 bit Windows 8.1 tablet. The existing version did before.
Thanks,
Pete

The language DLL 'VB6FR.DLL' could not be found

I have developed a VB6 application with Microsoft Visual Basic 6.0 Enterprise Edition SP6.
I have copied the executable file to a computer C where VB6 is not installed.
I have installed on computer C the VB6 SP6 run-time redistribution pack available on this page : http://www.microsoft.com/fr-fr/download/details.aspx?id=24417
The following error message is displayed when I launch my application from computer C : The language DLL 'VB6FR.DLL' could not be found.
Why the VB6 SP6 run-time redistribution pack does not contain VB6FR.DLL ?
What pack contains VB6FR.DLL ?
Any help will be greatly appreciated.
You might have a better chance with the English/US version:
https://www.microsoft.com/en-us/download/details.aspx?id=24417
But to be clear, you cannot just copy VB6 from one system to another and expect the IDE itself to work fine, which is what I think you might be trying to do. Your best bet is to find the original CD and re-install it on the new system, or consider switching to VB.NET, which I honestly would personally avoid if it's a big project.

Losing database connection when changing project target framework

As in title I'm having problem with my VB project when I change its .NET Framework from 4.5.1 in which I have application written to v4 which is supported on windowsXP. When I make the change and try to compile my program database could not be found. Should I make any extra changes in project properties or why database could not be found?
Thank you for help!
The Jet engine is not supported on 64bit machines. I know it is crazy but it's true. Not sure what MS Access uses on 64Bit, must be something else.
Jet on 64Bit
Some places say it's not going to be supported, others say it is part of Office 2010 install and you can download a seperate driver.
I ran into this when deploying a web app to our 64Bit server and just found a way around using MS Access for our report server. Got luck.

vb6 dll in .net REGDB_E_CLASSNOTREG

Hope someone could help me..
I created a vb6 dll which suppose to use the printer.print method since i want an easier printer functions.. it runs smoothly in same computer using vb.net 2012 , the problem is after publishing it in newly installed OS with prerequisite installed computers
p.s. already tried installing vb6 IDE and tried the actual printer.print without a problem
Be sure your installer properly registers the DLL. Given your Title, this is probably the first culprit. But there will also be some (many?) VB6 runtimes which need to be installed as well. I am not sure if the standard .NET setup maker knows how to determine what they are and newer machines you install on may not already have them.
When you installed the VB6 IDE you probably fixed the runtimes issue for THAT machine, so it probably has to do with the DLL being registerd. For more installs, you may have to create a mini VB6 installer for the project to install the runtimes.
What is the target OS?

How to link a 32bit dll statically(!) into a 64bit C/C++ windows application?

a few years ago I was a Windows application developer.
In the last years I am dealing with kernel and system software.
Now:
I have a customer who tells me that he has a 64bit C/C++ application with
specific functionality. This functionality is a dongle request
and comes from an external 32bit dll.
He says that this functionality is given although I can not see the
DLL in memory.
If I delete the DLL, the 64bit application is still loaded.
That means the 32bit DLL is somehow a static part of the 64bit application.
Can that be true nowadays?
And if so how can I achieve that with Visual Studio?
Best regards
Burkhardt
Based on what I have found on StackOverflow.com it is not possible to load a 32-bit DLL from a 64-bit application (or vice versa) dynamically or statically. There are however a few workarounds.
See the following:
https://stackoverflow.com/a/12938217/184528
https://stackoverflow.com/a/5720902/184528
https://stackoverflow.com/a/11642165/184528