Arvo Bowen
Arvo Bowen

Reputation: 4929

What files used to compile a vb6 application?

Background

For the record, I used to love coding in VB6 (except when sub-classing) WAY back in the day. Now I feel dirty even having to post this question (not to mention having to actually work on the old code someone else developed).

I love c# and would develop everything from ground up in c# if I had the time. Ironically trying to get VB6 to work at times in Windows 10 is a nightmare. Recently I have been just trying to recompile some source with much frustration.

Two methods have been used...

1. In the VB6 IDE:

I simply open the project in the IDE and do File>>Make MyProject.exe then click OK to compile the project.

This works sometimes. Most times it seems to compile just fine and when it starts to write the EXE the whole IDE just crashes for a few different reasons depending on what is happening.

2. Using a batch file:

I create the following batch file make.bat int he same directory of my project with the following in the bat file...

del *.obj
"c:\Program Files (x86)\Microsoft Visual Studio\VB98\VB6.EXE" /m MyProject.vbp

This also works sometimes (even when #1 will not work). When using this method I see the obj files getting created (just like when building from the IDE) and then it just exits leaving the obj files. This is how I know it crashes too.

The Question

I want to see if someone can tell me EVERY exe used to compile an application. I plan on trying my best to turn off DEP (Data Execution Prevention) for those applications. From what I can see completely disabling DEP seems to allow me to compile it with more success but I hate turning it off. I just want the Windows 10 OS to completely ignore the files being used when I compile the VB6 applications.

If there are any other solutions to help resolve this issue I have with VB6 constantly crashing please do let me know. I have done a lot of research on this and have not found a really reliable answer as to how to get VB6 to play nice with Windows 10.

Upvotes: 2

Views: 1344

Answers (1)

Arvo Bowen
Arvo Bowen

Reputation: 4929

I'm not sure if this is EVERY exe used to compile a VB6 project but the two I know of are...

  1. LINK.EXE
  2. C2.EXE

Upvotes: 0

Related Questions