creating .netmodule using Visual Studio 2005 Final Post Build Event

This is a discussion on creating .netmodule using Visual Studio 2005 Final Post Build Event within the C# Programming forums, part of the General Programming Boards category; Here's the deal: I need to use the usb port trough Java , since jUSB en JSR-80 ( the soon ...

  1. #1
    and the Hat of Clumsiness GanglyLamb's Avatar
    Join Date
    Oct 2002
    Location
    between photons and phonons
    Posts
    1,109

    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
    Code:
    csc /t:module $(OutDir)\$(ProjectName).dll
    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 ) .

    Still I get the error
    Error 1 The command "csc /t:module bin\Debug\\HelloWorld.dll" exited with code 9009. HelloWorld
    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 ... )

    Many thanks in advance,

    Ganglylamb.

    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.

  2. #2
    Anti-Poster
    Join Date
    Feb 2002
    Posts
    1,399
    If I did your homework for you, then you might pass your class without learning how to write a program like this. Then you might graduate and get your degree without learning how to write a program like this. You might become a professional programmer without knowing how to write a program like this. Someday you might work on a project with me without knowing how to write a program like this. Then I would have to do you serious bodily harm. - Jack Klein

  3. #3
    and the Hat of Clumsiness GanglyLamb's Avatar
    Join Date
    Oct 2002
    Location
    between photons and phonons
    Posts
    1,109
    Indeed setting the environment path variable to the csc compiler works perfect.

    At least I would expect from a Visual Studio Final version that their error message would give me more insight then just error code : blabla ... or at least they should automatically look into the path of the csc since the IDE itself will probably wrap around csc to compile projects.

    Thanks pianorain .

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Avoiding Global variables
    By csonx_p in forum Windows Programming
    Replies: 32
    Last Post: 05-19-2008, 01:17 AM
  2. Visual Studio C++ 2005 first task "Create a window"
    By csonx_p in forum Windows Programming
    Replies: 3
    Last Post: 04-15-2008, 06:49 AM
  3. Problem with Visual Studio 2005
    By Duskan in forum C++ Programming
    Replies: 2
    Last Post: 08-25-2007, 03:04 PM
  4. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  5. Help linked lists Visual Studio 2005
    By snap_Dragon555 in forum C++ Programming
    Replies: 4
    Last Post: 11-30-2006, 04:53 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21