SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Strategies & Market Trends : TA-Quotes Plus -- Ignore unavailable to you. Want to Upgrade?


To: Dale Wingo who wrote (5525)7/22/1998 9:10:00 AM
From: Sean W. Smith  Respond to of 11149
 
Good Stuff Dale,

Thanks for sharing your experience...

Sean



To: Dale Wingo who wrote (5525)7/22/1998 11:17:00 AM
From: Gary Lyben  Read Replies (1) | Respond to of 11149
 
Dale -

Thanks for the post.

I don't know where the .ocx entries are coming from, we never used
any of those controls, but we'll look into it.

The data directories are hard coded, and have to be changed to match
your system - as you've already found out.

Here are some C snippets to get the data and buffer directories out
of the registry. You'll have to use the corresponding VB functions if
you want to get the directories from the registry.

HKEY hKeySetup; //Handle to the registry key for QP setup stuff
DWORD Size; //Registry value size
DWORD Type; //Registry value type

char DataDir[512];
char BufferDir[512];

//Get the handle to the quotes plus setup key in the registry
RegOpenKeyEx( HKEY_LOCAL_MACHINE,
"SOFTWARE\\QUOTES PLUS\\SETUP", 0,
KEY_ALL_ACCESS, &hKeySetup );

//Find out the type and size of the value to query
RegQueryValueEx( hKeySetup, "DataDir",
NULL, &Type, NULL, &Size );

//Get value out of registry
RegQueryValueEx( hKeySetup, "DataDir",
NULL, &Type, (BYTE*)DataDir, &Size );

//Clear the type and size
Size = 0;
Type = 0;

//Get the size and type of the value
RegQueryValueEx( hKeySetup, "BufferDir",
NULL, &Type, NULL, &Size );

//Get the buffer directory
RegQueryValueEx( hKeySetup, "BufferDir",
NULL, &Type, (BYTE*)BufferDir, &Size );