bonjour,

j'ai cette fonction en c++:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 
ASC_initializeNetwork(T_ASC_NetworkRole role,  int acceptorPort,
                      int timeout, T_ASC_Network ** network,               unsigned long options)
{
    const char *mode;
 
    DUL_NETWORKKEY * netkey;
 
 
    OFCondition cond = DUL_InitializeNetwork(mode, &acceptorPort, timeout, DUL_ORDERBIGENDIAN | options, &netkey);
    if (cond.bad()) return cond;
 
    *network = (T_ASC_Network *) malloc(sizeof(T_ASC_Network));
    if (*network == NULL) return EC_MemoryExhausted;
    (*network)->role = role;
    (*network)->acceptorPort = acceptorPort;
    (*network)->network = netkey;
 
    return EC_Normal;
}
j'aimerai le proposer en DLL pour d'autre programme, j'aimerai savoir comment je doit faire.

d'avance merci