V
Vio
I want to call this function, whose prototype is:
extern bool WXDLLIMPEXP_BASE wxEntryStart(int& argc, wxChar **argv);
I want to ignore both arguments essenially. My problem is with **argv.
In C this is called a handle to a struct. In C++ I don't know. But
mostly I suck at pointers, messing these up.
So, my question is: How do I initialize **argv in my call?
Things like following don't seem to work:
wxEntryStart(int argc=0, char *argv[]=NULL);
My choice:
wxEntryStart(0, NULL);
or:
char *argv[];//=";";
argv[0]=" ";
bool wxEntryStart(int argc=0, *argv);//wxEntryStart(int& argc, wxChar
**argv)
b1.cpp:142: ANSI C++ forbids declaration `argv' with no type
b1.cpp:142: conflicting types for `int argv[0]'
b1.cpp:141: previous declaration as `char * argv[]'
b1.cpp:142: invalid initializer
b1.cpp:143: type specifier omitted for parameter
make: *** [b1.o] Error 1
Much obliged for your help,
Vio
extern bool WXDLLIMPEXP_BASE wxEntryStart(int& argc, wxChar **argv);
I want to ignore both arguments essenially. My problem is with **argv.
In C this is called a handle to a struct. In C++ I don't know. But
mostly I suck at pointers, messing these up.
So, my question is: How do I initialize **argv in my call?
Things like following don't seem to work:
wxEntryStart(int argc=0, char *argv[]=NULL);
My choice:
wxEntryStart(0, NULL);
or:
char *argv[];//=";";
argv[0]=" ";
bool wxEntryStart(int argc=0, *argv);//wxEntryStart(int& argc, wxChar
**argv)
b1.cpp:142: ANSI C++ forbids declaration `argv' with no type
b1.cpp:142: conflicting types for `int argv[0]'
b1.cpp:141: previous declaration as `char * argv[]'
b1.cpp:142: invalid initializer
b1.cpp:143: type specifier omitted for parameter
make: *** [b1.o] Error 1
Much obliged for your help,
Vio