On 04/30/08 Maser, Dan wrote: > I've got a situation where my managed app p/invokes to my unmanaged > library. The unmanaged library also gets used in regular unmanaged > processes. > > The library has some logic that uses the name of the executable. > Which doesn't what I want when it's used via the interop. For example > when the library is used from "my_regular_program.exe" it generates an > output file of "my_regular_program.output". When I interop to that same > library and run under mono using the command line "mono my_assembly.exe" > the library generates "mono.output" when naturally I'd prefer > "my_assembly.output".
Since you control both ends, make things explicit by having a function in the unmanaged lib that is used to set the basename and p/invoke that from the managed program. lupus -- ----------------------------------------------------------------- [EMAIL PROTECTED] debian/rules [EMAIL PROTECTED] Monkeys do it better _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
