Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. APPLET and Java compatible dll

APPLET and Java compatible dll

Scheduled Pinned Locked Moved C / C++ / MFC
javatutorial
9 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SnaKeBeD
    wrote on last edited by
    #1

    can anybody tell me if it is possible to use a java compatible dll in an java applet, if yes please tell me how to use it...

    swaroop

    T 1 Reply Last reply
    0
    • S SnaKeBeD

      can anybody tell me if it is possible to use a java compatible dll in an java applet, if yes please tell me how to use it...

      swaroop

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2

      what have you tried ?


      [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

      S 1 Reply Last reply
      0
      • T toxcct

        what have you tried ?


        [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

        S Offline
        S Offline
        SnaKeBeD
        wrote on last edited by
        #3

        work i have done in the project 1. made the header file using javah as per the document given to me 2. and included the header dile in the dll vc++ project for making the dll 3. after dll creation i copied the dll in to the java workspace and also in the class directory. 4. the java code is showing runitime while i try to call the dll.

        swaroop

        M 1 Reply Last reply
        0
        • S SnaKeBeD

          work i have done in the project 1. made the header file using javah as per the document given to me 2. and included the header dile in the dll vc++ project for making the dll 3. after dll creation i copied the dll in to the java workspace and also in the class directory. 4. the java code is showing runitime while i try to call the dll.

          swaroop

          M Offline
          M Offline
          mandanani
          wrote on last edited by
          #4

          I am lost :confused: How come a VC++ dll (hope not COM dll) use in Java application. I am learning things which I have never dreamt of:)

          S 1 Reply Last reply
          0
          • M mandanani

            I am lost :confused: How come a VC++ dll (hope not COM dll) use in Java application. I am learning things which I have never dreamt of:)

            S Offline
            S Offline
            SnaKeBeD
            wrote on last edited by
            #5

            i mentioned vc++ bcoz i'm using the visual studio as my editor..the dll is a plain win32 dll completly in c++

            swaroop

            T 1 Reply Last reply
            0
            • S SnaKeBeD

              i mentioned vc++ bcoz i'm using the visual studio as my editor..the dll is a plain win32 dll completly in c++

              swaroop

              T Offline
              T Offline
              toxcct
              wrote on last edited by
              #6

              swaroopkb wrote:

              the dll is a plain win32 dll completly in c++

              that's contradictory... Win32 is plain C, not C++ at all ;P


              [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

              S 1 Reply Last reply
              0
              • T toxcct

                swaroopkb wrote:

                the dll is a plain win32 dll completly in c++

                that's contradictory... Win32 is plain C, not C++ at all ;P


                [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

                S Offline
                S Offline
                SnaKeBeD
                wrote on last edited by
                #7

                ok, its a win32 dll...tell me how to solve it please...also will this dll work with Applets, if i'm using a bridge using the java native interface..

                swaroop

                T 1 Reply Last reply
                0
                • S SnaKeBeD

                  ok, its a win32 dll...tell me how to solve it please...also will this dll work with Applets, if i'm using a bridge using the java native interface..

                  swaroop

                  T Offline
                  T Offline
                  toxcct
                  wrote on last edited by
                  #8

                  for that, i can't help, because i never had to use dlls in java code... are you sure you cant obtain some jars that already do what you're looking for by this DLL ?


                  [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

                  S 1 Reply Last reply
                  0
                  • T toxcct

                    for that, i can't help, because i never had to use dlls in java code... are you sure you cant obtain some jars that already do what you're looking for by this DLL ?


                    [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

                    S Offline
                    S Offline
                    SnaKeBeD
                    wrote on last edited by
                    #9

                    No i cant use a jar...bcoz my work is to convert the existing code to an applet. the code is too big to convert it to java...so the only way is to make a dll that is java compatible... when u tried with a small java program to access the dll it worked , but when i tried with applet it was not working...do u know whether there is any limitation for applets like ths one???

                    swaroop

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups