🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #931

Anyone make their own fonts under 3.0 SDK?

#931
From: Todd Day
Date: Wed, 19 Dec 1990 16:07
102 lines
2408 bytes
Well, I've followed Microsoft's example in Chaper 18 of the Guide
to Programming TO THE LETTER including errata.  Well, it doesn't
work.  I keep getting complaints from the compiler about undefined
segments.  Here are the errors:

masm lcdnums;
Microsoft (R) Macro Assembler Version 5.10
Copyright (C) Microsoft Corp 1981, 1988.  All rights reserved.

cMacros Version 5.20 - Copyright (c) Microsoft Corp. 1984-1988
Windows support

  49366 + 164448 Bytes symbol space free

      0 Warning Errors
      0 Severe  Errors

  link lcdnums.obj, lcdnums.exe, NUL, /NOD, lcdnums.def

Microsoft (R) Segmented-Executable Linker  Version 5.10
Copyright (C) Microsoft Corp 1984-1990.  All rights reserved.

LINK : error L2049: no segments defined

There was 1 error detected
LCDNUMS.MAK(7) : fatal error U1013: 'link lcdnums.obj, lcdnums.exe, NUL, /NOD, l
cdnums.def' : error 2


Here are the rest of the files except for lcdnums.fnt:

lcdnums.asm
-----------
title	stub file to build lcdnums.fon resource file

include	cmacros.inc

sBegin	CODE
sEnd	CODE
end




lcdnums.def 
-----------
library	lcdnums

description	'FONTRES 100,96,96: LCD Numbers'

exetype	windows

stub	'winstub.exe'
data	none





lcdnums.mak 
-----------
lcdnums.obj:	lcdnums.asm
	masm lcdnums;

lcdnums.fon:	lcdnums.def lcdnums.obj lcdnums.rc lcdnums.fnt
	link lcdnums.obj, lcdnums.exe, NUL, /NOD, lcdnums.def
	rc lcdnums.rc
	rename lcdnums.exe lcdnums.fon





lcdnums.rc 
----------
1	font	lcdnums.fnt




Here is the .map file that results from the assembler:
lcdnums.map 
-----------

 lcdnums

 Start     Length     Name                   Class
 0001:0000 00000H     _TEXT                  CODE
 0001:0000 00000H     _DATA                  DATA

 Origin   Group
 0001:0   DGROUP




So, what the heck am I doing wrong?

-- 
Todd Day |   todd@ivucsb.sba.ca.us   |  ucsbcsl!ivucsb!todd

** Ask me about the August, 1991, Gold Rush mini-rallye! **
Technical Details
Message-ID: <1990Dec19.160729.16021@ivucsb.sba.ca.us>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucsd!hub.ucsb.edu!ivucsb!todd

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucsd!hub.ucsb.edu!ivucsb!todd
From: todd@ivucsb.sba.ca.us (Todd Day)
Newsgroups: comp.windows.ms.programmer
Subject: Anyone make their own fonts under 3.0 SDK?
Message-ID: <1990Dec19.160729.16021@ivucsb.sba.ca.us>
Date: 19 Dec 90 16:07:29 GMT
Organization: QuickSilver Rallye Team, Santa Barbara, CA
Lines: 102