Using the Registry

forum.sourcecode (2000-2005) & forum.td.sourcecode (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:

HKEY_CURRENT_USER\Software\PDFCreator\Program

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

HKEY_CURRENT_USER\Software\PDFCreator\PDFCreator\Program

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?

Elio

Tom Heaverlo

Re: Using the Registry

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

 Posted by:  Tom Heaverlo 

I suggest you download "Registry.zip", available from http://sqlweb.vnuk.org/index.htm

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

Tom

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!

Elio

Return to “td.sourcecode”

Who is online

Users browsing this forum: [Ccbot], [Mojeek] and 0 guests