I know how to program in java(Should I learn c, c++?)

I know how to program in java. I want to be able to communicate with the hardware on my pc. I also hear that C, C++ is a lower level than java. Lower level meaning it can communicate with the hardware. I know java is very portable could do interfacing and could do so many things with the java programming language. I find the java programmig language cool. Now when I read about the JNI(java native interface) I think I could communicate with methods from java to functions in c++. I want to learn c++ and use it with JNI.
Posting this topic because I want to be sure about what I'm doing.
Thanks
George

in fact, memory management is the main pitfall in C++ programming. The following may give you a few headaches:
- destructors
- header files which try to include eachother
- "memory access violation"
- templates (upcoming java includes generics, which is similar)
- pointers
If you can overcome the above problems, you'll find that c++ is much like Java, only a bit more low-level. Accessing hardware directly however is quite a challenge (espescially under Windows which doesn't allow direct access for as far as I know), but not impossible. I don't know exactly, but I think it involves developing a small driver layer.
It's to bad you learnt Java before C++, the other way around would have been much easier.

Similar Messages

  • Whoever updated BoxLayout must not know how to program in Java

    Why would you allow anyone to update their source that doesn't know what they are doing.
    Notice that BoxLayout is non-consistent with any other layouts.
    i.e. Why do you think that JPanel allows you to create a Layout when instantiating the object?.
    The way it is now, you have to call another method.
    Yeah, one method might not make a difference in performance but all the inconsistencies add up. Overhead....
    Yeah, I am the one that you screwed over - but whatever!
    Edited by: cosmic_string on Mar 6, 2008 5:55 PM
    Edited by: cosmic_string on Mar 6, 2008 5:56 PM

    I doubt that admin would read your concerns.
    This is not the appropriate forum to post this.

  • How to program a midi foot controller on Mainstage? Does anyone knows how to program the foot controller with exclusive solo channel in order not to dance "tip tap" while from clean guitar I go to crunch or solo? How to do this programming on Mainstage?

    How to program a midi foot controller on Mainstage? Does anyone knows how to program the foot controller with exclusive solo channel in order not to dance "tip tap" while from clean guitar I go to crunch or solo? How to do this programming on Mainstage?
    I basically managed to learn how to invert parameters which allows me to be as default in the clean guitar channel and if I switch the first button on the midi foot controller I switch to crunch, but at this point I tryied so hard to programm the second and third button to switch, only through a button in one step, to a third channel for distorsion or a 4th channel for solo guitar but I couldn't figured out how this work can be done!
    I would appreciate if anyone could help or share this experience with others who are experiencing the same problem.
    Cheers.
    F.

    I cannot seem to get mainstage to recognize my FCB either. I am using IFCB. Anyone figure this out?
    Thanks,
    Eric

  • I don't know how to program my DVR to edit out the commercial​s

    Does anyone know how to program the DVR not to record the commercials?  Its not a problem on public television, of course.

    Actually often very easy to do, but we will not see it again.  The Industry has fought against it and made all the manufacturers remove such features.

  • How to program in Java to delete a ZipEntry in ZipFile

    As we all known we can delete a zipentry in zipfile easily using WinZip,but how to program in Java to delete a ZipEntry in ZipFile? I can not find API function in ZIP package.Please help me,thanks.

    I think there are no methods to delete a particual file from a zip file -
    maybe there are packagers for that but not in java.util.zip
    you can just write your own function uncompress - and create a new file again - you can look here to get some examples
    http://www.idevelopment.info/data/Programming/java/zip/

  • I have a DI-151RS, or DI-150RS (?) from DATAQ. Any one know how to program it in LabView?

    I have a DI-151RS, or DI-150RS (?) from DATAQ. Any one know how to program it in LabView?

    You will find it at:
    www.ultimaserial.com/classroom.html

  • What kind of math sould I know for successful programming in java 2d?

    I want to write fun and little games in Java but am blocked by lack my maths knowledge.I mean I am not
    able to do what I want.
    I know only matrix,determinant,sets,logic,and a little graph theory.I forgot some maths such as differential equation,
    probability,numerical methods due to my being math-phobic.
    So please what maths should I learn or improve to full-fill my wish.
    best regards,
    saddened vegeta

    For any programing:
    You should know basic number representations and when the computer approximates numbers or has actual number values in each (decimal vs integer types).
    You should understand overflow and underflow.
    Know what a significant digit is and why it is significant and what makes the others not significant.
    (NOTE: the previous are things that will save you a world of frustration in "I'm not getting the right answer.")
    For graphics and gaming:
    If you don't know Trig, then you should become at least familiar with how to use the functions.
    Basic Geometry or at least have a reference to and a working knowlege of formulas--a lot of this just goes hand in hand with Trig.
    You should know basic physics on ballistics--Force, Distance, Acceleration, Gravity, Friction (if you can ignore this component, then things are a whole lot simpler--but you should at least know why).
    I'm sure there is a lot more, but off the top of my head this will do. If you know these few things, then you'll be far ahead of many.

  • I don't know how to program my DVR to edit out the commercials

    I had heard that that feature was available with the DVR.  Does anyone know how to do that?

    There is no way to edit out the commercials. If you are watching a previously recorded show or are in a buffer for live TV, you can skip past the commercials. The skip button on the remote and be programmed to jump ahead 10sec, 30 sec, 1 min, 5 min. So set the time frame to skip and press the skip button until you are past the commercials. I then use the previous button to jump backwards to where the show started again. That can be programmed to the same time frames. Me personally, I have mine set to skip 30 seconds and jump back 10. With the average commercial break being 3 minutes, I press the skip button about 6 times very quickly, then press it until I'm into my show. Once in my show, I jump back 10 seconds at a time until either the very end of the commercial break or the start of the show.
    Anthony_VZ
    **If someones post has helped you, please acknowledge their assistance by clicking the red thumbs up button to give them Kudos. If you are the original poster and any response gave you your answer, please mark the post that had the answer as the solution**
    Notice: Content posted by Verizon employees is meant to be informational and does not supersede or change the Verizon Forums User Guidelines or Terms or Service, or your Customer Agreement Terms and Conditions or plan

  • How to program in java

    hey guys. i am an undergraduate student. graduating next spring 2007. i did all my programming languages which were required in my course in 2004 and since that i have not taken any programming classes. i got my internship as a database administrator so got into MSaccess and Sql and VbA scripting. since my graduation year is near i want to be strong in database and programming and i was just reading about the employers what kind of programming they prefer and most of the times out of 100 you can say 80% needs java. so i have realized if i have my skills good in java and database job wont be any problem. i would like you to tell me about books i can buy from amazon.com or resources on internet from which i can understand the concept of programming again and then once my concept is clear about all the data types and functions i can start learning java. i would like you to tell me good java books also and some advance. the only book i have is the second edition of Java how to program. Thanks alot for all your help.

    The perverbial List:
    Free Tutorials and Such
    Installation Notes - JDK 5.0 Microsoft Windows (32-bit)
    Your First Cup of Java
    The Java� Tutorial - A practical guide for programmers
    New to Java Center
    Java Programming Notes - Fred Swartz
    How To Think Like A Computer Scientist
    Introduction to Computer science using Java
    The Java Developers Almanac 1.4
    Object-Oriented Programming Concepts
    Object-oriented language basics
    Don't Fear the OOP
    Free Java Books
    Thinking in Java, by Bruce Eckel (Free online)
    Core Servlet Programming, by Merty Hall (Free Online)
    More Servlets, by Marty Hall (Free Online)
    A Java GUI Programmer's Primer
    Data Structures and Algorithms
    with Object-Oriented Design Patterns in Java, by Bruno R. Preiss
    Introduction to Programming Using Java, by David J. Eck
    Advanced Programming for the Java 2 Platform
    The Java Language Specification
    Books:
    Head First Java, by Bert Bates and Kathy Sierra
    Core Java, by Cay Horstmann and Gary Cornell
    Effective Java, by Joshua Bloch
    Enjoy
    JJ

  • How to program in JAVA to write a file to CD

    Hi,
    How to write a program in JAVA to write a file in CD (Using CD-Writer)...

    Install packet-writing software and then write to the cd just like any drive.
    If you're using Windows XP, it has basic capabilities for this built in.
    http://support.microsoft.com/default.aspx?kbid=306524
    http://support.microsoft.com/default.aspx?kbid=279157

  • Anyone know how to program an HTML page to recognize an iPhone?

    I want to program my site so that it knows when an iPhone comes so I can direct to a different area. Anyone know how to do this?

    Hello.
    MobileDev - Maybe you can help me with this.
    Im just about to release a new website and it works fine on all browsers (PC and Mac), however some pages do not display correctly on the iPhone, but they do on a computer:
    http://www.howardjones.com/mystuff/iphone/test/uk/
    I have made this example. granted it does not look perfect on a computer, as I have just uploaded this as an example for the iPhone (3 images will not show as they are linked elsewhere - not to worry about that)
    A normal page displays like this:
    http://www.howardjones.com/mystuff/iphone/test/dvd/revolutionremixed.html
    Someone told me it was the javascript not interpreted correctly on the iphone.
    Do you or anyone else have any ideas or suggestions/
    Thanks
    glenn

  • Anyone know how to Save an Java Image to gif or png file?

    I'm trying to build a Map Edito for game, I want to import some images which and a lot of tiles in each of them. I want to cut each tile 24x24 out, then save it in an invidual file.
    Anyone know how to save to file? any easy way?
    I know there is somehthing call JPEGEncoding to save into jpeg...
    thanks!

    Java Advanced Imaging does it nicely, take a look.
    I do not remember the extact syntax right now, but have used it in the past.

  • Hello, Does anybody know HOW to programming TLS negotiation using WINHTTP in Windows 8.1?

    Hello 
    I made a program using WINHTTP . I had a question blow...
    "I tried to wireshark capture network traffic when connecting to that SERVER using 'IE browser'. First
    client_hello message does not include RC4 with TLS ver1.0. But next client_hello message include RC4 with TLS ver1.0.  Because that SERVER only supports RC4 cipher in TLS 1.0(no SSL3.0). I think
    windows 8.1 automatically modify cipher suite. "
    I just had a answer from someone . It is a new function in windows 8.1. It's called "Application protocol
    negotiation" in Windows 8.1. 
    so, I wonder about ... Is it possible to programming disable negotiation function? It means .. I want first
    client_hello message has RC4 cipher. Because when i WINHTTP function, client_hello message does not include RC4 cipher in TLS 1.0. 
    Can i include RC4 cipher in TLS 1.0 using WINHTTP function? or can i programming TLS negotiation using
    WINHTTP? is it possible? or not?
    please hellp me. 

    Hello . 
    Thank you for your answer. It was helpful. But i have some question.
    I added blow source code . But it didn't work. i mean .. TLS_RSA_WITH_RC4_128_SHA and TLS_RSA_WITH_RC4_128_MD5 cipher
    added to the top of the prioritized list. But Client_Hello message didn't include that cipher.
     Only Windows 8.1(testpc) does not work.
    I don't know why...  
    SECURITY_STATUS Status = ERROR_SUCCESS;
    LPWSTR wszCipher = (L"TLS_RSA_WITH_RC4_128_SHA");
    LPWSTR wszCipher2 = (L"TLS_RSA_WITH_RC4_128_MD5");
    Status = BCryptAddContextFunction(
    CRYPT_LOCAL,
    L"SSL",
    NCRYPT_SCHANNEL_INTERFACE,
    wszCipher,
    CRYPT_PRIORITY_TOP);
    Status = BCryptAddContextFunction(
    CRYPT_LOCAL,
    L"SSL",
    NCRYPT_SCHANNEL_INTERFACE,
    wszCipher2,
    CRYPT_PRIORITY_TOP);

  • Any one know how to delete unresponsive java scripts in menu bar

    I have unresponsive java scripts that i can not force quit. i went to finder and deleted it from the source i believe but the script is still unresponsive please help

    If you want to just add an image to a JPanel, create a JLabel and add the image to that, then add the JLabel to the JPanel. If you want it to be the background of the JPanel, check this out:
    http://manning.com/sbe/files/uts2/Chapter15html/Chapter15.htm
    15.2 is where you'll find your answer along with sample code. The whole book is useful, take a look through it if you're interested.

  • Would anyone know how to program the Labview code for the following: Recording an analog input signal for 100msec and then repeating this 100 times in order to finally have an averaged signal (waveform)​?

    I have added a vi, but it doesn't quite work. Would be very grateful if someone could help, thanks!
    Attachments:
    Average_0411041_2.vi ‏77 KB

    The attached VI collects 100 ms of data and does a rolling average. Since your sub-VI were not included I created this from scratch. There are comments in the code. I hope this is what you need.
    Dirk
    Attachments:
    rollingaverage110x100.vi ‏47 KB

Maybe you are looking for

  • Added sound card, no onboard audio no more

    i added an sb live value for the use of the joystick port only, not wanting to use ti as a sound card. the onboard audio of my 865pe neo2 fis2r msi 6728 no longer works. so how can i get back my onboard audio? my speakers are still plugged into the o

  • How do I alphabetize a list in Pages 5.1?

    I've found threads on how to do it in the old version of Pages, but I am having trouble now finding how to do it in the newest version. Any help? I've got my text into a table already.

  • Appraisal template - Columns

    Hi all, I am trying to analyze the appraisal template. The columns which are defined in template show up in the document. we have columns for final appraisal, start date, end date and obviously they are visible in the document. Question is what happe

  • Multiple iPods, multiple computers, one account???

    I have four computers and will soon have four iPods (one model #M946OLL, three new Nanos) My main computer has iTunes loaded with all our downloaded and purchased music. Please advise as to how I set up the three new Nanos, each with their own comput

  • CS6 to CC: problem installing CreativeCloud on desktop

    I upgraded to from CS6 tot Creative Cloud. But I cannot install CreativeCloudSet-Up.exe on Windows (Vista). The installer just opens the Adobe Application Manager. So in the end, I cannot use Typekit for desktop, which I am granted to. I've been busy