so, how exactly do i edit the registry from a program? I have never even tried before, so you'll have to kinda walk me through best you can
also, my scripting language runs through an openGL app.....it's not a c++ app. Therefor it uses the
Code:
WINAPI WinMain( HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
code for it to run.....and I saw from sangdrax's submission to the rapid coding contest thing this in his main function:
-EDIT-
OK scratch the above, i just found out that lpCmdLine is the file passed to the program..........that's cool
now i've got to make it so when you double click on a .ost file, it runs the program.....
Code:
int main(int argc, char* argv[])
{
char* filename = argv[1];
Now, i'm assuming from that that argv[1] is the filename passed to the exe......
so how exactly woudl i implement that in to an opengl program?
thanks for the help