TCC v10 finding its own icon?

May 20, 2008
11,414
99
Syracuse, NY, USA
If TCC v10 is started in a directory other than its home on the disk, it doesn't seem to find its own icon and starts with the default console icon. Examples of this are (SHELLEX is a plugin wrapper for ShellExecuteEx()):

1. from a PowerPro button with startup dir equal v:\
2. from a TCC prompt: v:\> START [/dv:\] d:\tcmd10\tcc.exe
3. from a TCC prompt: v:\> SHELLEX d:\tcmd10\tcc.exe "" v:\

If it starts in its home, it displays its own icon. Examples are:

1. from a PowerPro button with startup dir equal d:\tcmd10
2. from a TCC prompt: v:\> START /dd:\tcmd10 d:\tcmd10\tcc.exe
3. from a TCC prompt: v:\> SHELLEX d:\tcmd10\tcc.exe "" d:\tcmd10
 

rconn

Administrator
Staff member
May 14, 2008
12,363
150
vefatica wrote:

> If TCC v10 is started in a directory other than its home on the
> disk, it doesn't seem to find its own icon and starts with the
> default console icon. Examples of this are (SHELLEX is a
> plugin wrapper for ShellExecuteEx()):

Nothing to do with v10 or TCC; that's normal (albeit undesirable)
Windows behavior. (It also happens with v9, v8, v7, etc.)

(It's impossible for TCC to fail to find its own icon, as it's embedded
in TCC.EXE.)

Rex Conn
JP Software
 
May 20, 2008
11,414
99
Syracuse, NY, USA
vefatica wrote:


> disk, it doesn't seem to find its own icon and starts with the
> default console icon. Examples of this are (SHELLEX is a
> plugin wrapper for ShellExecuteEx()):

Nothing to do with v10 or TCC; that's normal (albeit undesirable)
Windows behavior. (It also happens with v9, v8, v7, etc.)

(It's impossible for TCC to fail to find its own icon, as it's embedded
in TCC.EXE.)

I've gone years without seeing 4NT/TCC fail to start with its own icon. And for at least 10 years I've had a PowerPro button that started 4NT/TCC in v:\ (not where it lives). And my shell extension 4NTHere.dll (which uses CreateProcess()) always got it right. Doesn't TCC actively set the console icon?
 

rconn

Administrator
Staff member
May 14, 2008
12,363
150
vefatica wrote:

> ---Quote (Originally by rconn)---
> vefatica wrote:
>
>
> > disk, it doesn't seem to find its own icon and starts with the
> > default console icon. Examples of this are (SHELLEX is a
> > plugin wrapper for ShellExecuteEx()):
>
> Nothing to do with v10 or TCC; that's normal (albeit undesirable)
> Windows behavior. (It also happens with v9, v8, v7, etc.)
>
> (It's impossible for TCC to fail to find its own icon, as it's embedded
> in TCC.EXE.)
> ---End Quote---
> I've gone years without seeing 4NT/TCC fail to start with its own icon. And for at least 10 years I've had a PowerPro button that started 4NT/TCC in v:\ (not where it lives). And my shell extension 4NTHere.dll (which uses CreateProcess()) always got it right. Doesn't TCC actively set the console icon?

TCC sets its icon to the icon embedded in TCC.EXE. The path is never
referenced and is irrelevant (except to Windows, which screws it up).

Rex Conn
JP Software
 
May 20, 2008
11,414
99
Syracuse, NY, USA
On Sun, 18 Jan 2009 21:06:51 -0600, rconn <> wrote:


>TCC sets its icon to the icon embedded in TCC.EXE. The path is never
>referenced and is irrelevant (except to Windows, which screws it up).

Are you saying TCC v10 calls SetConsoleIcon() with a valid handle to its
embedded icon? I have never seen that fail. And I would expect that by the
time TCC gets to do that, Windows is finished with its icon monkey-business.

What do you use for a debugger? I've used WinDbg (debugging tools for Windows)
and never got familiar with DevEnv's debugger (now I have VS2008). What would
you recommend?
 
Similar threads
Thread starter Title Forum Replies Date
rconn Take Command/LE and TCC/LE v10 build 57 uploaded Support 0
Charles Dye Crash in TCC.EXE v10.0.0.49 Support 0
rconn Take Command / TCMD/LE / TCC/LE v10 release build 48 uploaded Support 2
rconn Take Command / TCMD/LE / TCC/LE v10 beta build 47 uploaded Support 5
rconn Take Command / TCMD/LE / TCC/LE v10 beta build 46 uploaded Support 9
rconn TCMD/LE and TCC/LE v10 build 44 uploaded Support 2
rconn Take Command / TCMD/LE / TCC/LE v10 beta build 43 uploaded Support 9
MickeyF TCC crashing when copying multiple files (now resolved) Support 6
C COMSPEC constantly reset to TCC.EXE Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT v28 Released Support 0
C How to? starting TCC/TCMD v25 Support 2
CWBillow TCC and TCMD in Powershell Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.24 uploaded Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.23 uploaded Support 0
Alpengreis Fixed Crash after copy dialog with big TCC.exception.log Support 5
rconn News Take Command / TCC / CMDebug / TCC-RT v27.01 Build 22 Uploaded Support 0
L FTYPE in TCC, less quirky than in cmd.exe Support 3
V Set path permanently from within TCC? Support 3
DrusTheAxe Runaway TCC.exception.log filling drive Support 5
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.21 uploaded Support 0
Joe Caverly tcc.exception.log Support 3
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.20 uploaded Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.19 Support 0
FreezerBurnt Help making a CMD and TCC compatible batch file Support 7
vefatica SCRIPT ... TCC disappears Support 2
rconn News Take Command / TCC / CMDebug / TCC-RT v27.0.18 Support 0
Jesse Heines Access Denied errors in TCC 27 Support 9
fpefpe How to? tcc inifile (%_ininame) Support 3
M How to? Black TCC Prompt Support 2
D Differences between TCC and CMD with COPY /b Support 4
M Oracle batch OPatch.bat.bat not working in TCC but correctly in CMD Support 5
Jay Sage Extra TCC Tasks Support 6
vefatica Can I turn off the minimize to tray mechanism in TCC? Support 5
N Command execution slows down in TCC Prompt after a while Support 6
R Upgrade TCMD 19 to TCC 26 Support 1
Joe Caverly Set a batch variable (%1 - %n) when TCC is executing a batch file Support 5
samintz How to? Is this doable in TCC? Support 2
rconn News Take Command / TCC / CMDebug / TCC-RT 26.02.41 Uploaded Support 0
D TCC tab detaching & restarting Support 3
Ó Recent git output not shown on TCC Support 1
P Kill all other instances of tcc from a btm batch file Support 2
L Using TCC.exe through an SSH connection Support 3
M TCC color issue in ConEmu Support 4
Alpengreis UTF-8 problem in TCC related to Python Support 7
Alpengreis Python support for 3.8.3 in TCC v26.x? Support 2
rconn News Take Command / TCC / CMDebug / TCC-RT 26.01.40 uploaded Support 0
Peter Murschall TCC V26.01.3x Debugging has problems with Alias /R Support 1
rconn News Take Command / TCC / CMDebug / TCC-RT 26.0.37 Uploaded Support 0
vefatica TCC waits for Office apps Support 4
Joe Caverly .BAT works in TCC-RT 25, but not in TCC-RT 26 Support 4

Similar threads