C++

Je voulais savoir si une personne connaissait une variable standard dans visual c++ qui se nomme 'LSAPI_KEYDIR' ainsi que la bibliothéque dans laquelle elle se trouve.
Elle contient un nom de répertoire.
MERCI

7 réponses

  1. Merci beaucoup de tes réponse et de ton aide.
    Cordialement.
    S.MOSSOT
    -1
    1. Contributeur
      autant pour moi j ai mal lu:
      1-il faut créer un repertoir style c:\keys
      2-convention de nomage au cas ou plusieur repertoire sont necessaires
      3- il faut creer une variable d'environement system qui s appelle
      LSAPI_KEYDIR (dans panneaus de conf/system/avancé /variables d'environement)
      4-dans cette variable tu met le chemin du repertoire créé c:\keys

      COIN!
      -1
      1. et je peux créer ma clé n'importe où dans le registre ?
        -1
        1. Contributeur
          ba en gros c'est pas une variable dans un header comme tu le pense mais une clé de registre.
          il faut juste que tu la crée

          COIN!
          -1
          1. Contributeur
            page 6

            Security Keys Setup
            The trader keys, the associated Security Server and Certifying Authority key-files reside in the
            member’s key file. These keys have .pem extensions. The name of the file is derived from the trader’s
            mnemonic, for example, trader ABC will have a key-file named ABC.pem.
            Each key-file is locked with the trader’s password, which will be distributed with the trader key. Every
            trader must have their own key-file which must be visible on every machine used to logon to the
            Trading Host. In addition, each trader must also be able to see the Security Server’s key-file
            (server.pem) and the Certifying Authority’s key-file (cacert.pem).
            Once the Security keys have been received, a folder or directory needs to be created on the PC or
            Unix workstation used to access the environment, and the keys copied into this area. The API will
            allow trader keys to be specified in known sub-directories under the current key-directory specified by
            the LSAPI_KEYDIR environment variable.
            Introduction to LIFFE CONNECT®
            API_Functional_Descriptions8.0.2.Doc Version 1.3 Page 7 of 59
            Note: Live keys and Testing keys cannot be kept in the same folder or directory. New replacement
            keys that have different expiry dates should also be kept in a separate directory with the
            associated new versions of the server.pem and cacert.pem key-files.
            Setting System Environment Variables
            Create a directory and set the environment variable on your machine as follows:
            1. Create a local directory, eg. C:\KEYS\ for Windows 2000 compliant machines and
            /usr/local/KEYS/ for Unix machines.
            2. If multiple directories are required, there is a strict naming convention for the subdirectory. It must
            be called keys1. The validation process only recognises correctly named subdirectories. All
            subsequent subdirectories must follow in order, e.g. keys2 and keys3.
            3. Set the following system environment variable:
            LSAPI_KEYDIR
            4. Set the environment variables value to the key location, i.e. C:\KEYS\ or /usr/local/KEYS/
            Note: If this variable is not set, the API will not be able to locate the keys.
            
            -1
            1. voila où j'en suis :

              3. Set the following system environment variable:
              LSAPI_KEYDIR
              -1
          2. en effet, l'API que je suis en train de developper et pour la gestion de liffeconnect.
            Mais dans cette documentation il n'y a rien d'expliqué au sujet de cette variable et elle n'existe pas dans leur définition.
            -1