creating .netmodule using Visual Studio 2005 Final Post Build Event
Here's the deal:
I need to use the usb port trough Java , since jUSB en JSR-80 ( the soon to be official javax.usb package ) both don't support using usb trough java in windows yet I will gain acces to the usb port trough a C# dll , in orde to communicate then between the C# generated dll and my Java classes I'll use JNI.
An example can be found here : http://www.codeproject.com/useritems/javacsharp.asp
Creating the header file from the class file is not the problem.
When building the C# dll I use the post build event ( as suggested in the article , since else you will always have to type those things in the cmd manually ) .
So in the post build event i put the line
This will according to the msdn documentation , use the dll which I just build, and output it to the default output directory ( since /out: is not being used ) .
csc /t:module $(OutDir)\$(ProjectName).dll
Still I get the error
Anyone has some experience using these options in the command line or knows what im doing wrong here ??? ( I've done everything just the same way it is stated in the article ... )
Error 1 The command "csc /t:module bin\Debug\\HelloWorld.dll" exited with code 9009. HelloWorld
Many thanks in advance,
ps: It seems quite a hack to acces usb in Java on windows this way , but to me it seems the only way possible since in our project it is clearly being stated that we need to build a java class which will allow to acces the usb hub.