Hi Ketil,

I am having problems with the error messages sent to the output window:
[b]Console Window shows:[/b]

Microsoft (R) Incremental Linker Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.

DialogTmplt.obj : error LNK2001: ???????????????????????????? _ExitProcess@4
DialogTmplt.obj : error LNK2001: ???????????????????????????? _FindWindowA@0
DialogTmplt.obj : error LNK2001: ???????????????????????????? _SendMessageA@0
DialogTmplt.obj : error LNK2001: ???????????????????????????? _wsprintfA@0
DialogTmplt.obj : error LNK2001: ???????????????????????????? _WinExec@0
DialogTmplt.obj : error LNK2001: ???????????????????????????? _FindWindowExA@0
DialogTmplt.obj : error LNK2001: ???????????????????????????? _GlobalAlloc@0
DialogTmplt.obj : error LNK2001: ???????????????????????????? _GlobalFree@0
DialogTmplt.obj : error LNK2001: ???????????????????????????? _GetLastError@0
DialogTmplt.obj : error LNK2001: ???????????????????????????? _FormatMessageA@0
DialogTmplt.obj : error LNK2001: ???????????????????????????? _lstrlenW@0
DialogTmplt.obj : error LNK2001: ???????????????????????????? _WideCharToMultiByte@0
DialogTmplt.obj : error LNK2001: ???????????????????????????? _lstrlenA@0
DialogTmplt.exe : fatal error LNK1120: 13 ?????????????????????????

[b]RadASM Output Window shows:[/b]

Microsoft (R) Incremental Linker Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.

DialogTmplt.obj : error LNK2001:
DialogTmplt.obj : error LNK2001:
DialogTmplt.obj : error LNK2001:
DialogTmplt.obj : error LNK2001:
DialogTmplt.obj : error LNK2001:
DialogTmplt.obj : error LNK2001:
DialogTmplt.obj : error LNK2001:
DialogTmplt.obj : error LNK2001:
DialogTmplt.obj : error LNK2001:
DialogTmplt.obj : error LNK2001:
DialogTmplt.obj : error LNK2001:
DialogTmplt.obj : error LNK2001:
DialogTmplt.obj : error LNK2001:
DialogTmplt.exe : fatal error LNK1120: 13

Make error(s) occured.
Posted on 2004-04-17 13:29:16 by donkey
Hi donkey

Seem like the linker emits some strange characters (unicode?).

KetilO
Posted on 2004-04-19 03:26:13 by KetilO
Hi Ketil,

I am not sure but it doesn't look like it, I tried to dump it directly to hex and this is what I got for the following 2 lines

GoDLink.obj : error LNK2001: ???????????????????????????? _JackShot@4

GoDLink.exe : fatal error LNK1120: 1 ?????????????????????????

GoDLink.obj : error LNK2001:
GoDLink.exe : fatal error LNK1120: 1

bytesRead = 31 (GoDLink.asm, 181)
00403140 : 47 6F 44 4C - 69 6E 6B 2E - 6F 62 6A 20 - 3A 20 65 72
00403150 : 72 6F 72 20 - 4C 4E 4B 32 - 30 30 31 3A - 20 0D 0A 00
00403160 : 00 00 00 00 - 00 00 00 00 - 00 00 00 00 - 00 00 00 00
00403170 : 00 00 00 00 - 00 00 00 00 - 00 00 00 00 - 00 00 00 00
00403180 : 00 00 00 00 - 00 00 00 00 - 00 00 00 00 - 00 00 00 00
00403190 : 00 00 00 00 - 00 00 00 00 - 00 00 00 00 - 00 00 00 00
004031A0 : 00 00 00 00 - 00 00 00 00 - 00 00 00 00 - 00 00 00 00
004031B0 : 00 00 00 00 - 00 00 00 00 - 00 00 00 00 - 00 00 00 00
00000128 : BYTES TOTAL

bytesRead = 39 (GoDLink.asm, 181)
00403140 : 47 6F 44 4C - 69 6E 6B 2E - 65 78 65 20 - 3A 20 66 61
00403150 : 74 61 6C 20 - 65 72 72 6F - 72 20 4C 4E - 4B 31 31 32
00403160 : 30 3A 20 31 - 20 0D 0A 00 - 00 00 00 00 - 00 00 00 00
00403170 : 00 00 00 00 - 00 00 00 00 - 00 00 00 00 - 00 00 00 00
00403180 : 00 00 00 00 - 00 00 00 00 - 00 00 00 00 - 00 00 00 00
00403190 : 00 00 00 00 - 00 00 00 00 - 00 00 00 00 - 00 00 00 00
004031A0 : 00 00 00 00 - 00 00 00 00 - 00 00 00 00 - 00 00 00 00
004031B0 : 00 00 00 00 - 00 00 00 00 - 00 00 00 00 - 00 00 00 00
00000128 : BYTES TOTAL
Posted on 2004-04-19 08:27:57 by donkey
Looks like the debugger also strips off the characters of interest.

KetilO
Posted on 2004-04-20 01:43:20 by KetilO
Hi Ketil,

I think the key is the ReadFile function that I used only read the first part (bytesRead = 31) and did not even read the rest. I am wondering what LINK uses to output the information, perhaps they write directly to the console screen buffer ? I have not tried ReadConsoleOutput because in the end the experiment with LINK and GoAsm didn't do what I wanted it to do so I dropped it, but I will try it soon...
Posted on 2004-04-20 01:57:24 by donkey