external

How to catch a moment when the external editor of TOLEContainer has been closed?

时间秒杀一切 提交于 2020-01-22 02:03:21
问题 Borland Developer Studio 2006, Delphi: I have a TOLEContainer object with AllowInPlace=False. When the external editor is closed and changed my OLE object I have to do something with this OLE object inside TOLeContainer. The problem is I can't catch a moment when the external editor is closed. OnDeactivate event is not working. Probably I should change the source code of TOLEContainer adding this event myself, but I don't know where is the best place for it. Can you advice some method? 回答1: A

Read a file from inside of an external Jar file?

烈酒焚心 提交于 2020-01-21 05:53:05
问题 I'm trying to read a file from inside an external jar using java.. For example, I have two jar files. One is "foo.jar" the other is "bar.jar". Inside of "bar.jar" is the file "foo-bar.txt". How do i read the file "foo-bar.txt" from inside of "bar.jar" using code in "foo.jar"...? Is this even possible..? I know that i can read a file from iside of foo.jar using this.getClass().getClassLoader().getResourceAsStream("foo-bar.txt"); But I don't know how to do it from an external jar.. can someone

Read a file from inside of an external Jar file?

可紊 提交于 2020-01-21 05:52:08
问题 I'm trying to read a file from inside an external jar using java.. For example, I have two jar files. One is "foo.jar" the other is "bar.jar". Inside of "bar.jar" is the file "foo-bar.txt". How do i read the file "foo-bar.txt" from inside of "bar.jar" using code in "foo.jar"...? Is this even possible..? I know that i can read a file from iside of foo.jar using this.getClass().getClassLoader().getResourceAsStream("foo-bar.txt"); But I don't know how to do it from an external jar.. can someone

Javascript and WebGL, external scripts

99封情书 提交于 2020-01-19 21:34:10
问题 Just curious; How do I place my webgl shaders, in an external file? Currently I'm having; <script id="shader-fs" type="x-shader/x-fragment"> #ifdef GL_ES precision highp float; #endif void main(void) { gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0); } </script> <script id="shader-vs" type="x-shader/x-vertex"> attribute vec3 aVertexPosition; uniform mat4 uMVMatrix; uniform mat4 uPMatrix; void main(void) { gl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0); } </script> In my html header,

Android get external IP [duplicate]

主宰稳场 提交于 2020-01-19 06:11:02
问题 This question already has answers here : Determine device public ip (13 answers) Closed 6 years ago . I am developing an application in android 2.1 and I want to display the external IP. How could I do this? Thanks in advance. 回答1: public void getCurrentIP () { ip.setText("Please wait..."); try { HttpClient httpclient = new DefaultHttpClient(); HttpGet httpget = new HttpGet("http://ifcfg.me/ip"); // HttpGet httpget = new HttpGet("http://ipecho.net/plain"); HttpResponse response; response =

Android get external IP [duplicate]

只愿长相守 提交于 2020-01-19 06:10:19
问题 This question already has answers here : Determine device public ip (13 answers) Closed 6 years ago . I am developing an application in android 2.1 and I want to display the external IP. How could I do this? Thanks in advance. 回答1: public void getCurrentIP () { ip.setText("Please wait..."); try { HttpClient httpclient = new DefaultHttpClient(); HttpGet httpget = new HttpGet("http://ifcfg.me/ip"); // HttpGet httpget = new HttpGet("http://ipecho.net/plain"); HttpResponse response; response =

Blackberry determine if using external power

风流意气都作罢 提交于 2020-01-17 06:35:08
问题 Is there a way to determine whether or not the Blackberry has a cable plugged in or not? (power/USB) I have tried a number of things so far... if(DeviceInfo.BSTAT_IS_USING_EXTERNAL_POWER > 0) { // Plugged in // TODO : Do something }else{ // Not plugged in // TODO: Do something else } The else is apparently dead code, and this doesn't work at all. I have however had some luck with the following: if((DeviceInfo.getBatteryStatus() ^ DeviceInfo.BSTAT_IS_USING_EXTERNAL_POWER) != 0) { // Plugged in

external App inside WPF (notepad.exe works but others don't)

我的梦境 提交于 2020-01-17 03:54:47
问题 I followed the tutorial made on this answer https://stackoverflow.com/a/5070001/3549929 and It worked fine for "notepad.exe", but when I try another app instead of notepad, it doesnt work, I see the app running in the background through task manager but it doesnt show in my WPF form. How can I control it? 来源: https://stackoverflow.com/questions/27421029/external-app-inside-wpf-notepad-exe-works-but-others-dont

cordova cant access external scripts, files, images

老子叫甜甜 提交于 2020-01-16 21:57:36
问题 This is driving me nuts. I have two versions of my app, a barebones version and an advanced version. I messed up some modules/plugins in the advanced version so I rebuilt it from scratch in a new directory. Copied all the necessary www/js/img folders to the newly created one. I verified i have installed all the same plugins, modules and packages - I then am able to build the app successfully and run it successfully. However, any reference to external scripts or files are getting a "404 (Not

cordova cant access external scripts, files, images

痞子三分冷 提交于 2020-01-16 21:56:26
问题 This is driving me nuts. I have two versions of my app, a barebones version and an advanced version. I messed up some modules/plugins in the advanced version so I rebuilt it from scratch in a new directory. Copied all the necessary www/js/img folders to the newly created one. I verified i have installed all the same plugins, modules and packages - I then am able to build the app successfully and run it successfully. However, any reference to external scripts or files are getting a "404 (Not