Author Topic: nrComm1->LoadConfig( ? , ? , ? );  (Read 1677 times)

To

  • Newbie
  • *
  • Posts: 2
    • View Profile
nrComm1->LoadConfig( ? , ? , ? );
« on: March 14, 2012, 10:58:08 am »
Hello,

I can not figure out what to put in a parameter to the following statement:
nrComm1->LoadConfig(

Could you help me?

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: nrComm1->LoadConfig( ? , ? , ? );
« Reply #1 on: April 18, 2012, 09:13:55 pm »
Hello

This method loads serial port settings from system registry.

It has following declaration:
procedure LoadConfig(const Root:HKEY;const Key,Name:string);virtual;
  where Root handle of root key (f.e.  HKEY_LOCAL_MACHINE)
  Key path to key (fe 'Software\MyApp')
  Name name of binary value for keep serial port settings (fe 'rs232')

Roman Novgorodov
DeepSoftware LLC
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.

To

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: nrComm1->LoadConfig( ? , ? , ? );
« Reply #2 on: June 05, 2012, 03:04:23 pm »
Hello,
Thank for your answer.

I try it but it's not OK.

I try :       nrComm1->SaveConfig(HKEY_LOCAL_MACHINE,"c:\application\exe\","RS232");

And a error is : Le projet Project.exe a déclenché la classe d'exception ERegistryException avec le message 'Failed to set data for ' □□2".

Could you help me?

cptang

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: nrComm1->LoadConfig( ? , ? , ? );
« Reply #3 on: November 09, 2012, 10:01:14 am »
Hello,

I can not figure out what to put in a parameter to the following statement:
nrComm1->LoadConfig(

Could you help me?

save:
nrComm1->SaveConfig(HKEY_LOCAL_MACHINE,"SOFTWARE\\System\\Windows","rs232")    ;
load:
nrComm1->LoadConfig(HKEY_LOCAL_MACHINE,"SOFTWARE\\System\\Windows","rs232")    ;