How do you associate file types with your application? I need to do it for windows, and linux, and mac. And also, how do you make the files open when they are dragged to the program's icon?
Thanks.
File type associations and opening when files are dragged.
-
- Posts: 1691
- Joined: Sun May 18, 2008 9:42 pm
File type associations and opening when files are dragged.
That would be illogical captain...
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
Re: File type associations and opening when files are dragge
Not sure how with *nix systems, but with Windows it's stored in the registry.3DModelerMan wrote:How do you associate file types with your application? I need to do it for windows, and linux, and mac.
When you drag a file onto a program or its icon, the file name and path of the dragged file are sent to the program as a command line argument.3DModelerMan wrote:And also, how do you make the files open when they are dragged to the program's icon?
Thanks.
-
- Competition winner
- Posts: 1123
- Joined: Sun Jun 10, 2007 11:14 pm
Code: Select all
int main( int argc, const char* argv[] )