Using the Registry

forum.sourcecode (2000-2005) & (2005-2010)
Elio Boezio

Using the Registry

Post by Elio Boezio » 27 Jun 2008, 14:58

 Posted by:  Elio Boezio 

Hi NG,

I'm probably doing something dumb, but here's my problem anyway:

I want to read an entry in the PDF section and I'm using this bit of code:

Call SalUseRegistry( TRUE, PDFCreator' )
Call SalGetProfileString( 'Program', 'ProgramFont', 'NOT FOUND', sTemp, 'PDFCreator' )

I expect the entry to be in the following section:


Trouble is, my default value is returned and when I look at the registry, it's "grown" a new section called


This is particularly scary, because I'm not trying to set a value - just read an existing value!

I don't know if it's relevant, but I'm using GTD 3.0.0.PTF1 on WinXP.

Any ideas?


Tom Heaverlo

Re: Using the Registry

Post by Tom Heaverlo » 27 Jun 2008, 15:03

 Posted by:  Tom Heaverlo 

I suggest you download "", available from

It takes away a lot of the headache in reading/writing to the registry.


Elio Boezio

Re: Using the Registry

Post by Elio Boezio » 27 Jun 2008, 15:40

 Posted by:  Elio Boezio 

Thanks, Tom - I'll give that a bash!


Return to “td.sourcecode”

Who is online

Users browsing this forum: [Ccbot] and 0 guests