I'm making my own texteditor as a way to learn a bit about the win32 API. Most of it is working just fine, like opening and saving textfiles.
It's also working fine to open files from the commandline by typing "myeditor path\to\file.txt" or using "drag and drop" from a textfile to myeditor.exe.
The thing I cannot figure out is how to make it possible to open files with "myeditor" by right-clicking on a text file and choosing "Open With". When I try doing that the editor is launched but does not load the textfile.
In an attampt to figure out what's happening I've added a messagebox that pops up when the editor is opened and displays the commandline arguments (which I use to open files). Those arguments look correct when using "Open With" but it doesn't load the file.
Any help would be greatly appreciated