🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: no.it.programmering.visual-basic
1 messages
1 total messages Started by Chetan Phull Thu, 06 Aug 1998 00:00
Please look at my code to help me with extracting a key from registry. - module1.bas (0/1)
#4
Author: Chetan Phull
Date: Thu, 06 Aug 1998 00:00
22 lines
1867 bytes
Hello people,
	I want to determine whether Win32 is using Large or Small
fonts.  I've found out what entry in the registry will tell me this.
	A guy on IRC helped me out and gave me a whole bunch of his
code I had to sort through.  It SHOULD work but Visual Basic 5
w/Service Pack 3 preforms and illegal opperation and is forced to
close.  I'm including the problem file with this message.
(MODULE1.BAS)
	I know exactly where the problem is:

            ReturnCode = RegQueryValueEx(hKey, "fonts.fon", 0&,
REG_SZ, lpData, lpcbData)

if I replace "fonts.fon" with a NULL string, it'll pass this line fine
but it doesn't do what I want it to.  However, whenever I add
"fonts.fon," it pauses after processing that line.  Someone told me to
put ByVal where necessary but I don't know how to use ByVal very well.
Could someone out there look at this code and fix parts that need
fixing?  Thanx a lot.

Chetan Phull
phull@interlog.com
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads