- char *str = "/this/is/a/path.txt";
-
- return OnDropFiles(x, y, 1, &str );
+ size_t number = 0;
+ char *text = (char*) data;
+ size_t i;
+ for (i = 0; i < size; i++)
+ if (text[i] == 0) number++;
+
+ if (number == 0) return TRUE;
+
+ char **files = new char*[number];
+
+ text = (char*) data;
+ for ( i = 0; i < number; i++)
+ {
+ files[i] = text;
+ int len = strlen( text );
+ text += len+1;
+ }
+
+ bool ret = OnDropFiles( x, y, 1, files );
+
+ free( files );
+
+ return ret;