Where to install / TSAWARE in a Visual Basic 6.0 project in Visual Studio 98
I need to set the / TSAWARE flag for a legacy VX 6.0 ActiveX EXE. I can do it with
BINEDIT /TSAWARE app.exe
after creating the app, but I think there must be a way to select it in the VB6 project itself in Visual Studio. I've looked at the project properties but can't see anywhere to set linker options. The project is an ActiveX component.
This question mentions this in Visual Studio 6.0 with C ++ in the linker, but hasn't seen a way to do it in VB, which doesn't seem to have an explicit link setting.
source to share
In fact, the "VB6 linker" (VS 6.0 LINK.EXE) does support this flag. Of course, you might have to make sure that you have installed VS 6.0 Service Packs with at least Service Pack 6 (SP6).
To trigger this, you can edit the Project.VBP file by adding a section:
[VBCompiler]
LinkSwitches=/TSAWARE
Using the more recent Microsoft (R) COFF / PE Dumper Version 8.00.50727.42 "to compile the compiled EXE for confirmation, it shows up as 8000 DLL characteristics Terminal Server Aware
.
This worked for a very long time as far as I know, possibly with Service Pack 3.
source to share
You will need to do it as you do now, this flag is not supported by the VB6 linker:
A@ALEX C:\Program Files (x86)\Microsoft Visual Studio\VB98
> link /OUT:x.exe /TSAWARE x.obj
Microsoft (R) Incremental Linker Version 6.00.8168
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
LINK : warning LNK4044: unrecognized option "TSAWARE"; ignored
source to share