10-27-2005 06:03 AM
10-27-2005 10:41 AM
10-27-2005 10:52 AM
It seems like the Windows shell sends the full path of the item as a commandline parameter to the target of the Send To action. For example, if the following program is the target of the Send To action, it will print the path of the file you send on the standard output window. So, basically you can use argv[1] to get the path of the item sent, but make sure you first check argc to make sure the commandline argument is present.
#include <stdio.h>
int main (int argc, char *argv[])
{
if (argc > 1)
puts(argv[1]);
getchar();
return 0;
}
- Mohan
10-27-2005 11:05 AM
10-27-2005 11:12 AM
New question:
How can I register a filetype, so I just have to doubleclick a file of that type and it is automatically opened by my LabWindows program?
10-27-2005 11:24 AM
10-27-2005 11:30 AM
10-27-2005 12:46 PM - edited 10-27-2005 12:46 PM
Message Edited by Mert A. on 10-27-2005 12:49 PM
10-28-2005 02:00 AM
The application itself could provide instructions to update the registry: at program start check the registry and if the corresponding key does not appears in it, create necessary key and values.
In case you want to automate the process, you could write a simple program to execute after installation in the Application builder (Create Distribution Kit >> Advanced options).
10-28-2005 02:17 AM