Comment redefinir argc et argv ?

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
21
22
...
int
main(
    int argc,
    char** argv
)
{  
    //INIT_ARGS()
    argc = 4;                                                       
    
    argv =                                                      
    {                                                                   
        (char*)"-ORBconfig_domains_dir",                                
        (char*)".",                                                     
        (char*)"-ORBdomain_name",                                       
        (char*)"config"                                                              
    };

server_bus = IT_Bus::init(argc, argv, "tests.routing.corba_soap.server");

...
Pourquoi ce code ne compile pas :
t\unit\services\routing\bug_7571\testprog.cxx
testprog.cxx
\aspen\test\unit\services\routing\bug_7571\testprog.cxx(46) : error C2059: synta
x error : '{'
\aspen\test\unit\services\routing\bug_7571\testprog.cxx(46) : error C2143: synta
x error : missing ';' before '{'
\aspen\test\unit\services\routing\bug_7571\testprog.cxx(51) : error C2143: synta
x error : missing ';' before '}'
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.