On 08/12/05 Christopher Bergström wrote: > b) Looking for a good/easy to install Forum software (that will work > under Mono) This is the best candidate I've found so far > (http://www.yetanotherforum.net/) Progress or lack thereof can be seen > here (http://www.themp3pool.com/forum/) > a. My first error seems to be looking for Kernel32.dll. (Umm.. > Anyone got the source to this file so I can put it in my mono/1.0 > directory ;) > > System.Reflection.TargetInvocationException: Exception has been thrown by the > target of an invocation. ---> System.DllNotFoundException: Kernel32.dll > in (wrapper managed-to-native) > yaf.classes.HiPerfTimer:QueryPerformanceFrequency (long&) > in <0x00036> yaf.classes.HiPerfTimer:.ctor (Boolean bStart) > > I think I remember seeing something in the dev list about > QueryPerformanceFrequency.. Is this a matter of recompiling yaf.dll under > mono or removing the offending code?
You can write the trivial C code that uses gettimeofday(), compile it to a shared library and either name it libkernel32.so or another name of your choice and then add a dllmap entry to redirect calls for QueryPerformanceFrequency (and likely QueryPerformanceCounter) to the new shared library (see the mono manpage for details). lupus -- ----------------------------------------------------------------- [EMAIL PROTECTED] debian/rules [EMAIL PROTECTED] Monkeys do it better _______________________________________________ Mono-devel-list mailing list [email protected] http://lists.ximian.com/mailman/listinfo/mono-devel-list
