com-port - nfcomm (??Att. Dalius Brokevicius??)

TheDoubleHTheDoubleH Member Posts: 67
edited 2001-03-30 in Download section
I have downloaded the nfcomm - but I have a problem with it.

The PC is running NT4.

I seems like, that when NT4 boots, the settings are deleted?

Does anyone knows annother ocx I can use, I would be very interested..


Regards


Henrik Helgesen
Kind Regards

Henrik Helgesen,
President | Helgesen Consulting
about.me | LinkedIN

Comments

  • AdministratorAdministrator Member, Moderator, Administrator Posts: 2,500
    Thread moved to Download forum.
  • dbdb Member Posts: 82
    Settings can't be deleted, if they stored correctly. They are stored in registry HKEY_CURRENT_USER/Software/Perfo/nfcomm/...

    After changing values you must call SaveParam() method for settings saving.

    Before starting communication call LoadParam() method. It loads settings from registry.

    good luck
  • TheDoubleHTheDoubleH Member Posts: 67
    I also do so...

    On the setup-form I have a botton, wich calls the SetupDisplay - As of now, The client has to change the settings every morning, after logging on.


    <BLOCKQUOTE><font size="1" face="Verdana, Arial">code:</font><HR><pre>
    ShowDisplay(Display : ARRAY [2] OF Text[20])
    NFComm.LoadParam;
    NFComm.OpenPort();

    FOR i := 1 TO ARRAYLEN(Display) DO BEGIN
    Display := ANSIASCII.Display(Display);
    NFComm.SendStr(FORMAT(Display,MAXSTRLEN(Display[1])));
    END;

    NFComm.ClosePort();


    Function - SetupComport()
    NFComm.AboutBox;
    NFComm.LoadParam;
    NFComm.ShowParam;
    NFComm.SaveParam;

    </pre><HR></BLOCKQUOTE>

    Ideas anyone?


    Kind Regards

    Henrik Helgesen,
    Navision Solution Developer
    Kind Regards

    Henrik Helgesen,
    President | Helgesen Consulting
    about.me | LinkedIN
  • dbdb Member Posts: 82
    Hmmm,

    I havn't been tested it on NT, maybe there are problems with registry ?
    Try to check:
    Did are stored settings in registry after SaveParam()?
  • TheDoubleHTheDoubleH Member Posts: 67
    Hmm CurrentUser was the key.

    After a few days, it was OK - By then, alle different users loggin on to this PC, had done the settings.

    Sorry for the inconvenience.

    Mod: You can close this topic.



    Kind Regards

    Henrik Helgesen,
    Navision Solution Developer
    Kind Regards

    Henrik Helgesen,
    President | Helgesen Consulting
    about.me | LinkedIN
Sign In or Register to comment.