Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Use a .dll file.

 
sudipto shekhar
Ranch Hand
Posts: 826
Chrome Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, is there a way through which i can access the .dll file of the system through my servlet? I want my servlet to use one of the .dll file in the windows C dir. Is this possible?
Please help.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'd need to use JNI to access any DLLs. There are libraries that remove some of the pain of doing that, like Jacob and Jawin.
 
sudipto shekhar
Ranch Hand
Posts: 826
Chrome Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do i have to learn MFC for that?

 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you check out how those libraries work?
 
sudipto shekhar
Ranch Hand
Posts: 826
Chrome Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes i did.
I want a windows pop-up which will require mfc coding.
the thing is i am tryn to control a hardware connected to my machine which requires the system .dll file.
And as far as i think now is that i dont have to go with MFC now as that depends on the application that i create.
What do you say?
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, it's hard to say what a machine we don't know anything about might or might not require. What does its documentation say?
 
sudipto shekhar
Ranch Hand
Posts: 826
Chrome Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to do this through a servlet.
I wont be using any of the windows component,then is MFC required?
[ November 01, 2008: Message edited by: Sudipto Shekhar ]
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ulf Dittmer:
What does its documentation say?
 
Paul Clapham
Sheriff
Posts: 21126
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A Windows pop-up? MFC? Those sound like display technologies to me. If you want to use them in a servlet, then they would be displaying something on your server. Was that what you wanted to do?
 
Rob Spoor
Sheriff
Pie
Posts: 20546
57
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Correct. If you want to display a message to the client, use JavaScript. Or an applet if you prefer that, but then you're not using server-side code anymore. So JavaScript it is
 
sudipto shekhar
Ranch Hand
Posts: 826
Chrome Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, this is not what i intend to do.
When the client requests for the servlet,the servlet invokes a call to the .dll file which is of a device driver,say of a bluetooth device and says it to switch it on! And in this process when ever a .dll file is accessed i want the the system to pop-up a window to ask for the permission to do so... so that is what it meant to be!
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64967
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where do you want the popup to appear? On the client or the server?
 
sudipto shekhar
Ranch Hand
Posts: 826
Chrome Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
on the server....as the whole thing is in an experimental stage.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What good does a popup that is shown on the server - who's going to see that? I think a more detailed problem description would help.
 
sudipto shekhar
Ranch Hand
Posts: 826
Chrome Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i said my work is in an experimental stage..hence it makes it makes no difference if i show it on the client side or the server side.i want a pop-up....on the server,for now. And for the detailed description i had said what i want to do.

 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sticking the tongue out to people who are trying to help you isn't very nice, is it?

Without further details I'm afraid I can't contribute anything else.
 
sudipto shekhar
Ranch Hand
Posts: 826
Chrome Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well dear its not like that.
you interpreted what was not at all intended,you know!
Thanks any ways.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic