I'm trying to begin my soujourn back into C++ from C# to add some much needed functionality to an existing program, but am having trouble getting the program to run in the first place. It compiles, but I think it's expecting to be run from the command line, based on the fact that it expects two input parameters. ( see "if( argc == 2 )" below ).
So I decided I'd just programmatically give whatever input path it needed in order to find the dll, and be on my way. But given that it's expecting an "unsigned char *", it won't allow me to assign the path explicitly.
How can I get this code to access a static path, such as "C:\MyProgram";? I tried:
pathstr = "C:\MyProgram";
but export_dll_functions() is expect an unsigned char *.
int main(int argc, unsigned char **argv)
unsigned char *pathstr;
pbc = &Brec;
pdevs = &devs;
pmsg = msgbuf;
if( argc == 2 )
pathstr = argv;
pathstr = 0;
if ( export_dll_functions( pathstr ) )