I want to create a an Array with Hex pointers!!

Hi all,
I want to create an array that uses Hex as addresses, so that if I want to call on the 16th array element I wouldn't use array[15] but would use array[F] instead, and if I want the 18th element it would be array[11]. Is there any good way of doing that?

They're just numbers. You increment them by adding one to them...
    int x = 0x43AF;
    int y = 232 + x;
    int z = 0x9A + 0x10B + 4 + 5 - 0x88FEF;
    int a = x + y;
    z ++;
    a += y;
    x += (0x9F9F - 55 * y);They could be bytes, too, or they could be longs, shorts, or chars. It's just a different way to type constants. The way you create your array isn't any different than normal, nor is the way you treat the numbers. The primitive data types that can support those numbers doesn't change either... they're just integers, but with a different notation.
As far as converting an integer to a hexadecimal String, you can use the appropriate wrapper object's toHexString method:
    int x = 0xBEEF; // doesn't matter if you type 0xBEEF or 48879 or 0137357
    System.out.println("x = " + x + " decimal");
    System.out.println("x = " + Integer.toHexString(x) + " hex");
    System.out.println("x = " + Integer.toBinaryString(x) + " binary");
    System.out.println("x = " + Integer.toOctalString(x) + " octal");If you want to parse a hexadecimal string that the user enters, use the parseXXX method in the appropriate wrapper class. Keep in mind that, for hexadecimal numbers, these methods will get confused by a "0x" at the beginning. So, if you are converting a String to an integer using base 16, you'll have to make sure you strip off the "0x" at the beginning if there is one.
    int x = Integer.parseInt("BEEF", 16);
    int y = Integer.parseInt("48879", 10); // '10' is optional here
    int z = Integer.parseInt("137357", 8);
    int a = Integer.parseInt("1011111011101111", 2);x, y, z, and a should all end up with the same value if I did the conversions right.
Go to http://java.sun.com/docs/books/jls/second_edition/html/lexical.doc.html#48298 and read section 3.10.
Jason

Similar Messages

  • I have 2 apple id's with different apps and data saved under each.  It's very annoying so now I want to create a new id with my primary email address I use now.  If I do that is there any way to transfer all my saved apps and app data like game saves etc?

    I have 2 apple id's with different apps and data saved under each.  It's very annoying so now I want to create a new id with my primary email address I use now.  If I do that is there any way to transfer all my saved apps and app data like game saves etc so I don't lose all of that information and can easily switch to a singular apple id?

    Apple does not transfer content bought with one Apple ID to another Apple ID. Apple will not merge two Apple IDs.
    If most of your content was bought with the Yahoo! Apple ID but you now want the Gmail address for your Apple ID, the trick will be to change the address used for the Yahoo ID with the Gmail address. However, to do that you must first free the Gmail address from that other Apple ID. Use the instructions from Apple to substitute another address that is not used as an Apple ID for your Gmail address in the Apple ID with the Gmail address. Then, when the Gmail address is no longer used in an Apple ID, you can use the same instructions to substitute the Gmail address for the Yahoo address in the Apple ID with the Yahoo address.
    Changing the email address you use for your Apple ID -
    http://support.apple.com/kb/HT5621

  • I want to create a HD disc with my Adobe Premier Elements but I am getting low resolution.  When I go to share the DVD to disc the form only offers 8pixels at the bottom.  How do I burn this DVD in HD with higher number of pixels?

    I want to create a HD disc with my Adobe Premier Elements but I am getting low resolution.  When I go to share the DVD to disc the form only offers 8pixels at the bottom.  How do I burn this DVD in HD with higher number of pixels?  I have read other forums on burning HD DVD's but I do not see the option to turn the 8 pi into 40 pi the one forum recommended.  I want my DVD to be HD so I may sell these videos online for my business.  I can't sell them the low quality they are burning now.  Hopefully you can help me.  Thanks.

    desalvom
    Thank you for your reply.
    You cannot burn your high resolution video that you can view on your computer to an AVCHD on DVD disc
    that will replay through a regular DVD player. But players are marketed under a variety of names with
    different support opportunities. One manufacturer may call its product MultiMedia Player, media player, Blu-ray player,
    etc.The bottom line is the specifications for each of the players that are candidates for the playback of
    the AVCHD format on DVD disc or the format of interest.
    If you upload your HD (1920 x 1080) video to YouTube, YouTube converts the video to flash format, but it goes up as the HD video.
    But, beware. Look at the YouTube viewing setting when your uploaded video is playing back. The YouTube default is not
    HD. It might be 360p, 480p. If you have a 1080p video, then before the YouTube playback, you should be looking
    at the video with the YouTube 1080p HD setting for best viewing. That is a YouTube matter.
    Best results depend on you
    a. setting up the Premiere Elements project preset to match the properties of the source media. That means, if
    you have 1080p source, you (manually) or the project (automatically) set the project preset at
    NTSC
    DSLR
    1080p
    DSLR [email protected]
    or the PAL counterpart, depending on your region need.
    b. if you upload your video to YouTube using the Premiere Elements feature, there is a HD preset, but you cannot
    customize it.....if you need customization, then you can export your Timeline to a file...in this example
    Publish+Share
    Computer
    AVCHD
    with Presets = MP4 H.264 1920 x 1080p30 or PAL counterpart
    and then customize the preset under the Advanced Button/Video Tab of that preset. In increase quality, you might look to increase
    the Bitrate under Advanced Button/Video Tab settings - without compromising the file size.
    Then you would upload that file to YouTube at the YouTube web site.
    All of the above are factors that need looking into in order to determine the why for what you wrote
    I have published a shortened advertisement video to YouTube- say 5 minutes-
    and it is low quality
    Often SD video upscaled to HD can present poorly. But, you are dealing with a HD workflow so that should not be introduced into the matter. The setup of the project and
    the properties of the source video are important, but let us start with the above and rule in or out those considerations first.
    Thank you. As always, any clarification needed, please do not hesitate to ask.
    ATR

  • I want to create a second library with the same account on a separate hard drive....

    Hi,
    I am running out of room on my iMac to store all of my iTunes music and video. I want to create a second library with the same account on a separate hard drive. Will iTunes Match match both libraries ? Will I be able to acess both libraries from all my devices? Can iTunes Match merge them together so I can have easy access to everything?
    Thanks for any advice.
    christos

    Unfortunately, you can't.  The primary address for your iCloud account must be a non-Apple email account.  The only exception to this is for former MobileMe subscribers who migrated to iCloud when MobileMe closed, which was 18 months ago.

  • I have a photo of an ice surface and another of a flower. Now I want to create a merged photo with the flower lying under the ice. I understand that I shall use the function "Layer" and have even read in the manual and looked on a video, but that informat

    I have a photo of an ice surface and another of a flower. Now I want to create a merged photo with the flower lying under the ice. I understand that I shall use the function "Layer" and have even read in the manual and looked on a video, but that information is not sufficiently detailed for me. I have tried several options, but I come now way. Generally it seems that your information is only for the ones who can, not for the people who can´t although it is we who really need to learn. Please give me a step by step (click by click) information on how I can get the ice above the flower and then make the ice partly transparent so the flower is seen underneath. Please send me an e-mail Erik Solbu [email protected]

    Open a new document big enough for your image. Then additional open your ice and flower image as well. Copy each and paste it into your blank document. They will be placed on their own separate layers.
    Make sure in your layers panel. (Bottom right) the ice is above the flower, by dragging it in place. In that same layers panel click the ice layer to select in and find the opacity meter above. Drag to the left until you get the effect you desire.

  • Hi I want to create a search form with drop down search criteria. This form should then search on the same site and display the search results. Is there HTML available for this? Or an oline site that I can use to build this form? I created a form in Jotfo

    Hi I want to create a search form with drop down search criteria. This form should then search on the same site and display the search results. Is there HTML available for this? Or an oline site that I can use to build this form? I created a form in Jotform.com, but this form doesn't search the site, instead it sends me an e-mail. Do you have a solution for me? Thanks.

    Hi I want to create a search form with drop down search criteria. This form should then search on the same site and display the search results. Is there HTML available for this? Or an oline site that I can use to build this form? I created a form in Jotform.com, but this form doesn't search the site, instead it sends me an e-mail. Do you have a solution for me? Thanks.

  • Purpose: to create photo galleries to insert or not items: 1) with phocagalery, it works 2) with the transfer via lightroom, I do not see the downloaded files but if I want to create a directory folder with the same name, he said he is already, I see noth

    purpose: to create photo galleries to insert or not items:
    1) with phocagalery, it works
    2) with the transfer via lightroom, I do not see the downloaded files but if I want to create a directory folder with the same name, he said he is already, I see nothing in the media in content management
    Can you help me

    Mahsa21,
    We are glad that we were able to resolve the international calling plan issue for you.  If you need assistance,please  reach out to us.
    thanks,
    Tonya D.

  • I'm so confused!! I just want to create interactive pdf files (with video and flash files), but this free trial version is confusing!! help!?!

    i'm so confused!! I just want to create interactive pdf files (with video and flash files), but this free trial version is confusing!! help!?!

    Thanks for your suggestions. I checked to see if the options you suggested were set incorrectly but they were set to sync all. This led me to think the problem was actually in the iphone. I re-initialized the iphone and did not allow the system to restore any of the previous settings. In essence, I forced the phone to reset to factory settings. Then my video podcasts started syncing. All is well now. I did notice that I had seven podcasts selected that were "HD" presentations, and as such, are not compatible with the iphone. I don't know if this had anything to do with my earlier situation, but now I'm getting the video podcasts automatically. I'm happy. It wasn't much fun forcing the iphone to forget all of my preferences and I'm still customizing the phone now several days later. I think I have everything working and back to normal except I haven't identified any of my email accounts as of yet. Thanks for your help.

  • Want to create a user field with type alphanmumeric and structure text through coding

    i want to create a user field with type alphanumeric and structure text through coding.am using vb
    plz help me

    Hi.
    Please take a look at samples in SAP B1 SDK.
    Dim oUserFieldsMD As SAPbobsCOM.UserFieldsMD
    oUserFieldsMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
    ' Adding "Name" field
    '// Setting the Field's properties
    oUserFieldsMD.TableName = #YOUR_TABLE_NAME#
    oUserFieldsMD.Name = "Name"
    oUserFieldsMD.Description = "Name"
    oUserFieldsMD.Type = SAPbobsCOM.BoFieldTypes.db_Alpha
    oUserFieldsMD.EditSize = #LENGTH_OF_FIELD#
    '// Adding the Field to the Table
    lRetCode = oUserFieldsMD.Add
    GC.Collect() 'Release the handle to the User Fields
    Hope it helps.
    Regards,
    Pawel

  • I want to create an iPad app with multiple issues of the same magazine inside it

    I want to create a digital magazine for iPad. I know with Digital Publishing Suite I can create apps for iPad.
    But there is a problem. Is not clear in the website if with the Single Edition I can create an app that contains all issues of the magazine, or if I have to create a new app for each issue of the magazine that I want to publish.
    Could you please get me out of doubt?
    Please, I need a quick answer. Thanks in advance!

    This should help:
    http://boblevine.us/digital-publishing-suite-101-single-edition-vs-multi-folio-apps/

  • Want to create Document new version with BAPI_DOCUMENT_create2

    Hi,
    I want to create a document with new version with the help of existing document in DMS. In my development of module pool
    i can add new file and also i can create new version of existing document. all this i can do from my Z-development.
    When on initial time when there is no dicument exist BAPI creating new document correctly with attached files. also i am able to create a new version of that document if i am excuting applicatin from my PC. if this appication run from another system to generate new version BAPI is giving me Error.
    i am passing below data in DOCUMENTFILES(table parameter of BAPI) for existing File which is available already in older version.
    DOC_HEADER-DOCUMENTTYPE = 'ABC'
    DOC_HEADER-DOCUMENTNUMBER = '456'
    DOC_HEADER-DOCUMENTVERSION = '00'
    DOC_HEADER-DOCUMENTPART = '000'
    FWA_DOCFILE-STORAGECATEGORY = 'ZDMS'.
    FWA_DOCFILE-WSAPPLICATION = PFX_EXT.
    FWA_DOCFILE-DOCPATH = F_FILEPATH.
    FWA_DOCFILE-CHECKEDIN = ''.
    FWA_DOCFILE-ACTIVE_VERSION = 'X'.
    FWA_DOCFILE-DOCUMENTTYPE = WA_COMDOC-DOKAR.
    FWA_DOCFILE-DOCUMENTNUMBER = WA_COMDOC-DOCNR.
    FWA_DOCFILE-DOCUMENTPART = WA_COMDOC-DOKTL.
    FWA_DOCFILE-DOCUMENTVERSION = WA_COMDOC-DOKVR.
    FWA_DOCFILE-APPLICATION_ID = WA_DOCFILE-APPLICATION_ID.
    FWA_DOCFILE-FILE_ID = WA_DOCFILE-FILE_ID .
    FWA_DOCFILE-DOCFILE = F_FILENAME.
    APPEND FWA_DOCFILE TO FIT_DOCFILE.
    I am passing all those data which i am getting from BAPI_DOCUMENT_GETDETAIL2 for existing attached file. Need help.

    use BAPI_DOCUMENT_CREATENEWVRS2 ..

  • I have 3  h.264 files which i want to create a dvd movie with?

    hi guys
    i hope you can help.
    i have 3 seperate h.264 files (video has been graded and colour corrected) which i want to put on a dvd as one seamless movie.
    my friend did the exporting and had to do it in smaller chunks because it kept crashing his computer., the format he used was h.264, now its very important that i can create a dvd movie with these files to be viewed on a standalone dvd player..
    how would do i this? most efficient method and preserve  good quality?

    One thing to be aware of is when you burn a disk image in Encore, you'll end up with a .iso disk image file.  In the past I made the mistake of dragging the .iso file into the  dvd-r folder and burning it from finder.   This made it so it burned as a data DVD that didn't play on my DVD player.  In order to make playable copies of the DVD using the disc image you have to use the apple Disk Utility application located in utilities to burn a playable DVD.  Do this...
    Open Disk Utility located in / Applications / Utilities /  Disk Utility.
    Click Burn in  the tool bar at the top of the window and select your Adobe Encore disc image (.iso).
          3.  Select the Appropriate DVD burning drive and insert your blank disc. Make sure your disc is free of dust and fingerprints before burning to reduce the probability of failure.
         4. Click Burn to create your DVD disc.
         5. Remember to test your disc in several DVD players if possible before burning additional copies.

  • Want to create Graphic User Interface with Adobe CC but which package is best to use?

    I have a CC subscription and (instead of finding yet another package to use) figured there should be something I can use to create the icons needed.  Would appreciate being pointed in the right direction regarding which software within the CC suite I could use.
    I've attached some examples of the GUI that I need to create/edit.  The previous creator (who no longer works with business) used SolidWorks.

    Thanx Mylenium.
    Yeah, the SW is very . . . clunky.
    Have looked started looking at using Photoshop while waiting for Illustrator to download,
    I will admit I am loving learning how to use my CC Suite, just a bit of a struggle sometimes figuring out which is the better software to use for the different things I want to create.
    Erica

  • I want to create a simple docuement with 2 pages?

    I want to my plugin to create a simple document as soon as My Plugin is loaded in Indesign. I have derived my class IStartupShutdownService  so that it's called in startup.
    But this is failing at line 23 below.
    What else do I need to include in my .fr file?
    class LTestStartupShutdownServiceImpl : public CPMUnknown<IStartupShutdownService>
    public:
        LTestStartupShutdownServiceImpl(IPMUnknown* boss);
        virtual ~LTestStartupShutdownServiceImpl();
        virtual void Startup();
        virtual void Shutdown();
    CREATE_PMINTERFACE(LTestStartupShutdownServiceImpl, kLTestStartupShutdownServiceImpl)
    LTestStartupShutdownServiceImpl::LTestStartupShutdownServiceImpl(IPMUnknown *boss):CPMUnknown<IStartupShutdownService>(boss)
        do
            const PMReal width=612, height=792;
            const int32 numPages=5, numPagesPerSpread=1;
            // Create the command.
            InterfacePtr<ICommand> newDocCmd(Utils<IDocumentCommands>()->CreateNewCommand());  //<-----this is coming null and failing
            ASSERT(newDocCmd);
            if (newDocCmd == nil)
                break;
            // Set the command's parameterised data.
            InterfacePtr<INewDocCmdData> newDocCmdData(newDocCmd, UseDefaultIID());
            ASSERT(newDocCmdData);
            if (newDocCmdData == nil)
                break;
            newDocCmdData->SetCreateBasicDocument(kFalse); // Override the following defaults.
            PMPageSize pageSize( width, height);
            newDocCmdData->SetNewDocumentPageSize(pageSize);
            bool16 bWide = kTrue; // landscape orientation.
            newDocCmdData->SetWideOrientation(bWide);
            // Size margin proportional to document width and height.
            PMReal horMargin = width / 20;
            PMReal verMargin = height / 20;
            newDocCmdData->SetMargins(horMargin, verMargin, horMargin, verMargin);
            newDocCmdData->SetNumPages(numPages);
            newDocCmdData->SetPagesPerSpread(numPagesPerSpread);
            // Create the new document.
            CmdUtils::ProcessCommand(newDocCmd);
        while (false);
    LTestStartupShutdownServiceImpl::~LTestStartupShutdownServiceImpl()
    void LTestStartupShutdownServiceImpl::Startup()
    void LTestStartupShutdownServiceImpl::Shutdown()
    Below is the .fr file:
    * Boss class definitions.
    resource ClassDescriptionTable(kSDKDefClassDescriptionTableResourceID)
    Class
      kLTestStartupShutdownServiceBoss,
      kInvalidClass,
      // Implementation of IStartupShutdownService
      IID_ISTARTUPSHUTDOWN, kLTestStartupShutdownServiceImpl,
      // Implementation to IK2ServiceProvider to identify the service type as startup-shutdown
      IID_IK2SERVICEPROVIDER, kLTestStartupShutdownServiceImpl,

    Hi maddy,
    I want to save the document to MyDocuments folder, I tried to look in IDocFileHandler but I can not get a function which takes path/name as input with docRef.
    Can u suggest how can my document to disk?
    I dont want user to enter any detail, the document just created should get saved on Disk with the use of some commands only.

  • I want to create an image gallery with forward back nav, master image with a click to pop out zoom

    Hi Musers,
    I'm currently building a photography website and need some help building a specific type of gallery.
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    Below is a description of the gallery I want to build:
    On the gallery page the gallery appears as a single 'Master Image' with forward and back 'Navs.' and a 'Counter' underneath this single 'Master Image'. Lets say that there are 10 images in this gallery. When the viewer clicks on the forward 'Nav.' the 'Master Image' changes to the next image in the sequence of 10 and the 'Counter' below confirms this progression, in this example the 'Counter' changes from 1 of 10 to read 2 of 10, the 'Master Image' displayed is the second image in the sequence.
    Simple so far.. This above I can do as this is just a basic gallery. What follows is what I cannot find a solution for.
    I want the gallery viewer to be able to click on the 'Master Image' and launch an enlargement of that image overlaying the gallery page, very much like the way the 'Lightbox' widget displays an enlarged image. When the viewer clicks off the 'Ligtbox' or enlarged image it dissapears, reverting the page view back to the standard gallery view with 'Master Image', 'Navs.' and 'Counter'. I do not want the expanded / Enlarged 'Lightbox' image accompanied by a thumbnail gallery, 'Navs.' / Navigation arrows or a 'Counter'. What I want is to be able to launch an enlarged version of the 'Master Image' as an overlay on the gallery page, something like a pop out.
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    Can anyone explain how I can do this? Is it possible?
    The solution I want seems to be a highbrid between the standard gallery with navigation arrows kept but minus thumbnails and captions with some of the functionality of the lightbox gallery widget.
    I very much appreciate any help anyone can give.
    Thank you

    Hi Harriet,
    Thanks for the message. I'm sure as time goes on new features will be introduced but it's a bit of a shame that the widget library is a little basic, oh, and at times it's just that little bit buggy. So far I'm really impressed by Muse despite being ever so slightly disappointed by some of it's limitations. I'd like to see more image gallery options, the ability to set up a client login area or a client ftp within a site, I also tried embedding video but as I'm no programmer the result looked clumsy so some focus on this would be a help. Considering that a good number of people benefiting from a Muse site will be online retailers a zoom function should have been there from the start.
    Best regards
    Jacques

Maybe you are looking for