How to access HID Class Devide with C program??
HI, every,
I need to port an application from linux to Max OS X ,
Working on C enviroment.
On linux, API from
lib #include <linux/hid.h>.
I use to open/ioctl HID handle directly,
Now, On Mac OS X,How to do this,No hid.h in mac OX S?
I already read a doc about hid programm,It use IOKIT framework to do this.
On System, I already install XCode Tools, Why not find IOKIT packages.
Where is the IOKIT library found?
Could you help me?
Thanks
That's the way you do it. How did it fail? Did you get an error message or what?
Anyway, the idiom for dealing with standard input is this:
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String line;
while((line = in.readLine()) != null) {
// line contains one line of input
// do whatever you like with it
}Java 5 adds some other options.
Similar Messages
-
How to use the class CL_CTMENU with the method DISABLE_FUNCTIONS
Hi Friends,
How to de-activate some functions in the Menu bar?
Eg: - Sales document
Create
Change
Display
I want to de-activate "Change"
In other words: - How to use the class CL_CTMENU with the method DISABLE_FUNCTIONS in my program.
Regards,
Hari
Edited by: Bhatlapenumarthy Hari Krishna on Jun 9, 2008 5:22 PMKrishna,
It is not possible to deactivate the CHANGE option in themenu bar using the method disable_functions of cass CL_CTMENU. This method allows you to deactivate only the function codes of the CONTEXT MENU, which is available only when u press the left mouse button.
U can use the SET PF-STATUS 'XXX' EXCLUDING fcodes option to disable the CHANGE.
*****Reward points if useful
Regards,
Kiran Bobbala -
How to access Cotnet Services Webdav with anonymous?
How to access Cotnet Services Webdav with anonymous?
See the section entitled 'Enabling the Ability to Grant Public Access' inthe Content Services administrators guide. Once you have granted public access to a document you will not need to authenticate to access it.
regards,
-sancho -
I have an Ipad, I activated the time capsule with no issues. I added the airport Utility application without issue. However, I do not know how to access the hard drive with either my Windows computer or the Ipad. Does someone know how?
On windows load the airport utility .. latest correct version as possible.. there is no windows 8 but win7 works after a fashion.
Make sure the TC is using SMB compatible names.. short no spaces and pure alphanumeric.
Type the name directly into windows explorer.
\\TCname or \\TCIPaddress
If no luck turn off all the firewalls.. internal windows plus security software plus whatever other gargyoles and other rubbish AV software you have running.
Ensure windows is able to at least ping the TC by IP address and name..
Use the utility in windows to set file sharing to guest account on with full read and write access.. and set workgroup to WORKGROUP. -
How to access a class file outside the package?
created a two java files Counter.java and TestCounter.java as shown below:
public class Counter
public void print()
System.out.println("counter");
package foo;
public class TestCounter
public static void main(String args[])
Counter c = new Counter();
c.print();
Both these files are stored under "D:\Test". I first compiled Counter.java and got Counter.class which resides in folder "D:\Test"
when i compile TestCounter.java i got the following error message:
D:\Test>javac -classpath "d:\Test" -d "d:\Test" TestCounter.java
TestCounter.java:6: cannot find symbol
symbol : class Counter
location: class foo.TestCounter
Counter c = new Counter();
^
TestCounter.java:6: cannot find symbol
symbol : class Counter
location: class foo.TestCounter
Counter c = new Counter();
^
2 errors
what could be the problem. Is it possible to access a class file outside the package?ya that's fine..if we have two java files where both resides in the same package works fine or two java files which donot have a package statement also works fine. But my doubt is, i have a Counter.class which does not reside in a package and i have a TestCounter.class which resides in a package "foo", in such a scenario, how do i tell to the compiler that "Counter.class resides in such a path, please look at that and give me TestCounter.class". i cannot use import statement to import Counter.class in TestCounter.java because i donot have a package for Counter.java.
-
How to access a shared disk with two users account on same Mac
I am seeking how to share / access at same time with two accounts on a same Mac a disk that is shared with a TC or an AEBS. When a user account is connected to the shared drive and when I switch to the 2nd user this 2nd user cannot access / see the content of the shared drive and it receives an error message. I want to use this shared drive to store some GB of movies I do not want to have on my MacBook Pro SSD but still bring able to access them from the two accounts that are set on my Mac. Just like for an internal drive. I have tried all I could but it does not want to work. How do I do that ? Thanks.
If you were running this software, the Mac's Bonjour would automatically "discover" The Linux machine.
http://en.wikipedia.org/wiki/Avahi_(software) -
How to access OS User created with "identified externally"
I am able to
SQL> create user ops$deskuser identified externally;
while deskuser is one of my OS user.
I believe it is a very easy question, however I just do not know how to access this user from sqlplus., please help
Thanks in advanceoracle@mini:~> sqlplus system
SQL*Plus: Release 10.1.0.3.0 - Production on Sun Nov 13 21:11:47 2005
Copyright (c) 1982, 2004, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> create user ops$pops identified externally;
User created.
SQL> grant connect to pops;
Grant succeeded.
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options
oracle@mini:~> su - pops
\Password:
Illinois isn't exactly the land that God forgot -- it's more like the
land He's trying to ignore.
pops@mini:~> . oraenv
ORACLE_SID = [pops] ? orcl
pops@mini:~> sqlplus /
SQL*Plus: Release 10.1.0.3.0 - Production on Sun Nov 13 21:16:59 2005
Copyright (c) 1982, 2004, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> -
How to access Views of ERP with Netweaver BPM?
Hello,
i want to create an example-application with Netweaver BPM and Visual Composer.
For this, more employees should share the creation of a new Material in an ERP Backend.
Every emplyoee should enter data of a different View of MM01 ! (like Basic Data, Sales..., Purchasing., ..)
I thought about using the Service "Create Material Basic Data" but there are only little options for the data you can enter
(only InternalID, Base Units, Description...).
So my question is, how can i get access to the usual views of MM01 with Netweaver BPM and Visual Composer?
Or how can i enter more Materialdata with Webservices?
Thanks for your help,
OliverWhat you could also do is make use of MDM Webdynpro Components since your intention is probably to update master data at the end you can use MDM Webynpro Components and then use them a webdynpro application. Use the webdynpro component in the BPM Process in return or use the option given in the previous reply as well.
http://help.sap.com/saphelp_nwmdm71/helpdata/en/4a/387eb4a7ea1ca2e10000000a42189c/content.htm
Link to MDM WD Comps -
How to access a Beckhoff 9000 with TCP/IP?
Hello,
i´m using LV 8.5 with Windows-XP.
A Beckhoff9000 (BK9000) is connected via LAN.
What is working is, that i can ping my BK9000 in a cmd-box.
The BK9000 has also connected:
KL2134 (4 outputs)
KL2134 (4 outputs)
KL1418 (8 inputs)
KL9000 (end)
Is there an easy example of how to access these in- and outputs?
Something like
input:
- IP-address (192.168.0.23)
- module-number (1..3)
- input-number (1..4 or 1..8)
- mode (on/off)
output:
state (on/off)
Thanks for all help how to do this.
All i want to do is to enable or disable outputs and to read the state of an input.
best regardsHi OnlyOne,
did you see this thread?
Hope it helps.
Mike -
How can I hide an app from the list of purchased apps using iOS6? With iOS 5 you can swipe the icon to display a red Hide icon, but this doesn't work with iOS 6. Suggestions (that work) will be appreciated.
Yes. On a computer. Not ios6.
On iTunes on your computer under purchased, select the x on the top corner. That will hide them. -
How to access Workfow Container data in a program.
Hello I need to a access Workflow COntainer data for a particular workitem in a program. How to access these using Tables or standard function modules.
Thanks in advance.swc_container it_event_container.
swc_create_container it_event_container.
CALL FUNCTION 'SWW_WI_CONTAINER_READ'
EXPORTING
wi_id = wd_id
TABLES
wi_container = it_event_container
EXCEPTIONS
container_does_not_exist = 1
read_failed = 2
OTHERS = 3.
if sy-subrc = 0.
READ TABLE it_event_container WITH KEY element = 'name of your workflow container element'.
IF sy-subrc = 0.
w_variable= it_event_container-value.
ENDIF.
endif.
Regards
Kedar -
How do YOU name classes? (object oriented programming)
I am in the process of learning advanced object oriented design, and I am trying to use it in my personal programming project. I'm having a hard time implementing all of the classes I want for it because I can't think of what to call them.
So, my question is, in object oriented design, how do you name the implementations and abstractions that you make?
In other words, "implementations" can be thought of as "classes", and "abstractions" as "interfaces" in Java or "pure abstract classes" in C++. How do you name the classes and interfaces you make?
For example, do you use prefixes or suffixes on your names, such as "I" for "interface" or "Impl" for "implementation"? Do you add "-able" to the end of the name of an abstraction, such as "Decoratable"? Can you always think of simple logical names for all of your classes, and it just has never been a problem for you?
As an example of how the number of classes quickly grows, the Decorator Pattern will use at least five classes. I have no idea what I would name those in a programming project.drcouzelis wrote:
Trent wrote:Theoretically speaking, you'll have multiple implementations of the Window interface, which will have their own unique names suggested by their respective purposes. If not, then Window and its implementation should probably be merged into a single class.
Thank you for bringing that up.
How about this: The name of the implementation class will be HOW its implemented followed by the name of the interface.
A "Window" interface would have implementations such as "AllegroWindow", "GTKWindow", or "HaikuWindow".
In a video game, a "Character" interface would have implementations such as "GeneralCharacter", "ControllableCharacter", "PlayableCharacter", or "EnemyCharacter".
Does that sound like a good idea?
Indeed, classes are more specific than interfaces, subclasses are more specific as their superclasses... This should be reflected in their names, the name of a class that implements an interface should somehow make clear exactly what it is (e.g. what kind window). If you have a kind of window (for instance) that is really _just_ a window, nothing else, than the interface should become this class and the implementing classes should become subclasses. -
How to access sap data which in our program
Hello
I am using a custom program in which i am calling sap standrad includes. in one of the sap standrad include ,one internal table is getting filledup.now i have to display a message in my program based on that internal table.how to access the data in my program?Hello Raj
Please go through the sample code bellow, which may solve your problem
DATA: profile TYPE TABLE OF user04 .
CALL FUNCTION 'SUSR_GET_PROFILES_OF_USER_RFC'
EXPORTING
user_name = sy-uname
TABLES
profile = profile
EXCEPTIONS
user_not_exists = 1
no_authority = 2
OTHERS = 3.
IF sy-subrc .
WRITE : / l_r_usr02-ustyp. -
How to link third party software with labview program ?
I have designed a labview
program to analyse and make
graph and save the datas
from the photon counter using
ni USB DAQ 6008. And the
photon counter is controlled
by the third party software with
itself. both programs are
executing successfully. But
my task is run both the
program at the same time. i.e.
link the third party software
with my labview program.
How to i do this?Your question is too vague since you give no information as to this third party application. Is it an application you wrote? Is it an application that you cannot change? Does it have a programming interface? Can you eliminate this third-party application and control the photon counter yourself? Have you tried to do a search, as this question has come up before many times. For example:
http://forums.ni.com/t5/LabVIEW/how-do-I-use-labview-to-control-other-programs/m-p/424765
http://forums.ni.com/t5/LabVIEW/How-to-operate-another-application-s-GUI-from-LV/m-p/668088 -
How do I associate a protocol with a program?
I want to associate the 'cel' protocol with celestia so I can open cel:// urls but i'm not sure how to do it.
Opera:
Tools -> Preferences -> Advanced -> Programs and clicking "Add". Enter "cel" in the protocol field and enter "celestia" in the "Open with other application" field.
Repeat one more time with cel+http as the protocol.
Firefox:
Create a .js file in /usr/lib/xulrunner-1.9.1/defaults/pref.
celestia.js:
pref("network.protocol-handler.app.cel","/usr/bin/celestial");
pref("network.protocol-handler.warn-external.cel",false);
pref("network.protocol-handler.app.cel+http","/usr/bin/celestia");
pref("network.protocol-handler.warn-external.cel+http",false);
Or add the lines to ~/.mozilla/firefox/<whatever>.default/prefs.js
Maybe you are looking for
-
Hi, Two days ago I purchased The Dark Night Trilogy on my Apple TV. All three movies are available on my Apple TV, iPhone and iPad. Today I wanted to check out the itunes extras on my Mac but none of the movies are showing up. I checked under both
-
Dear Experts, I am working on Make to Order Scenario..........I have execute CK40N for the finished product and standerd cost estimate of finished product is coming Rs.322000 for a unit. Again when i m running Inquiry costing (VA11) ->Extras-> Costin
-
Ai CS3 - Pantone preview inconsistent ?
Select NEW "superfine" option "spot color options - LAB " in illustrator in to menu palete swatches. Preview in liblary PANTONE SOLID C i real! ... Exelent! I'm so happy! And now create box in my doc CMYK and fill selected color PANTONE... magic is g
-
I moved 3 small figures from an AI poster to PS so I could used the tools to make parts of each figure slowly transparent. Copy>Paste back in AI had a white background surrounding the Images. Why is that there and how do I get rid of it? I removed
-
i noticed this problem last night when someone calls me i can't hear them and they can't hear me. my mic works fine on voice notes, and I tried calls through viber and they worked fine too. when I pick up the phone the speaker button lights up withou