Using GetProcAddress to find JNI_CreateJavaVM

Hi, a quick question.
I understand the function below returns the address of the JNI_CreateJavaVM function. How exactly do I use it below to call the function (i.e. JNI_CreateJavaVM)?
Note: GetJVMLibrary returns the location of jvm.dll on the system.
void *JNU_FindCreateJavaVM()
    HINSTANCE hVM;
    char temp [1024];
    int tempInt = GetJVMLibrary (temp, 1024);
    hVM = LoadLibrary (temp);
    if (hVM == NULL) {
        return NULL;
    return GetProcAddress(hVM, "JNI_CreateJavaVM");
}

Note: GetJVMLibrary returns the location of jvm.dll on
the system.
void *JNU_FindCreateJavaVM()
    HINSTANCE hVM;
    char temp [1024];
    int tempInt = GetJVMLibrary (temp, 1024);
    hVM = LoadLibrary (temp);
    if (hVM == NULL) {
        return NULL;
    return GetProcAddress(hVM, "JNI_CreateJavaVM");
void (*createJVM)();
createJVM = JNU_FindCreateJavaVM();
createJVM();
the JNI_CreateJavaVM function. How exactly do I use it
below to call the function (i.e. JNI_CreateJavaVM)?:) Now I remember, why I like Java so much that I got afraid of C. Compare:
void a()
  puts("pater mentulam perdepso");
void* functionReturnsAPointerToAFunction()
    puts("hey");
    return a;
int main()
  void (*dynamic)(); // dynamic is a pointer to a function, that returns a void
  dynamic = functionReturnsAPointerToAFunction(); // function returns real function
  dynamic(); // call the function returned by the other function
This is handy

Similar Messages

  • I am trying to use iCloud to find my stolen iPod, but it says I don't have any devices with my account, help?

    I had my iPod stolen out of my school bag. I was told to use iCloud to find it. But when i got onto iCloud it said something like i don't have any devices set up or something. Any idea of what i can do to find my iPod location?

    On your iPod Touch.
    iCloud- Find My iPhone overview
    Find My iPhone
    What To Do If Your iDevice Is Lost Or Stolen
    iPhone, iPod Touch, and iPad
    If you activated Find My Phone before it was lost or stolen, you can track it only if it is connected to the Internet by Wi-Fi or cellular. What you cannot do is track your device using a serial number or other identifying number. You cannot expect Apple or anyone else to find your device for you. You cannot recover your loss unless you insure your device for such loss. It is not covered by your warranty.
    If your iPhone, iPod, iPod Touch, or iPad is lost or stolen what do you do? There are things you should have done in advance - before you lost it or it was stolen - and some things to do after the fact. Here are some suggestions:
    This link, Re: Help! I misplaced / lost my iPhone 5 today morning in delta Chelsea hotel downtown an I am not able to track it. Please help!, has some good advice regarding your options when your iDevice is lost or stolen.
      1. Reporting a lost or stolen Apple product
      2. Find my lost iPod Touch
      3. AT&T. Sprint, and Verizon can block stolen phones/tablets
      4. What-To-Do-When-Iphone-Is-Stolen
      5. iCloud- Use Lost Mode
      6. What to do if your iOS device is lost or stolen
      7. 6 Ways to Track and Recover Your Lost/Stolen iPhone
      8. Find My iPhone
      9. Report Stolen iPad | Stolen Lost Found Online
    It pays to be proactive by following the advice on using Find My Phone before you lose your device:
      1. Find My iPhone
      2. Setup your iDevice on iCloud
      3. OS X Lion/Mountain Lion- About Find My Mac
      4. How To Set Up Free Find Your iPhone (Even on Unsupported Devices)

  • While using Google to find a website, the catagories appear, but when I click on one of the links, it takes me to a different website. Most of the time the sites seem to be like larger versions of pop-ups, and are all advertising or trying to sell somethi

    When using Google to find a website, Google lists the various sites, but when I click on them, the take me to a larger version of a pop-up. Most are advertising sites that are trying to seel something
    == This happened ==
    Every time Firefox opened
    == A few days ago

    Maybe these will help:
    https://discussions.apple.com/message/17677533#17677533
    https://discussions.apple.com/message/18324129#18324129
    https://discussions.apple.com/message/18203126#18203126

  • How do I use Spotlight to find the location of a document?

    Spotlight used to show the location of document when I hovered the mouse over an item in its list. It no longer does this. Now it tells me that a document exists and allows me to open the document, but doesn't tell me where to find the document. How do I use Spotlight to find the location of a document?

    Hi Thomas ...
    Open System Preferences > Spotlight then select the Search Results tab.
    Select the all the categories for the search results you want.
    Restart your Mac.
    If that didn't help the Spotlight preferences may be corrupted.
    Go to ~/LIbrary/Preferences
    Move the com.apple.spotlight.plist file from the Preferences folder to the Trash.
    Try Spotlight.
    edited by:  cs

  • Using Grep to find/replace

    I'm trying to find out how to use GREP in find/replace to chage the formatting of some text that comes in from a spreadsheet.
    I worked out the GREP query "~b(\d\d)~b", which finds a paragraph return, followed by two digits, followed by another paragraph return
    and then it is replaced by "\t $1~b", which is a tab, the two found digits and a para return.
    What i need to do is to amend the query to find ANY number of digits, (which may be comma delimited: eg 23, 36, 48 ,50), and then replace with a tab + found text.
    I suppose what I'm looking for is a way for the query to find "any text between two paragraph returns, no matter what tthe length", but I don't know how to do this.All the Wildcard options seem to find just one exampler (one digit, one character etc)

    And you came so far
    The operators for repeat are ? (zero or once), * (zero or more) and + (once or more). You can also specify exact numbers: {at least,up to}.
    All of these operators are "greedy" by default -- they will match as much as possible. To match as least as possible (which I'm sure you'll come up against, sooner or later), add another ? after the repeat expression.
    So this will find one digit, then optionally another (which will always be included):
    \d\d?
    and this one digit, then zero or as much as ten million million zillion:
    \d\d*
    which is functionally the same as
    \d+
    And this will find between 3 and 8 digits but will forced to use the shortest possible match:
    \d{3,8}?
    That said: A quick & dirty solution for your actual problem is to find any amount of digits, spaces, and comma's:
    ~b[\d, ]+~b
    (we need the plus here because otherwise it would also match an empty line). The [..] brackets an Inclusive list --- it will match any of the single codes inside.
    A more complicated but 'neater' way is to search very specifically only for number, comma, space, number sequences -- it's neater because that way malformed lines (comma without a space) will be skipped!
    (It also introduces another code -- the parentheses operators. Look them up in a good GREP reference --lost of people are enthousiastic about Peter Kahrel's O'Reilly title, because it's about using GREP in InDesign.)
    ~b\d+(, \d+)*~b

  • Use REGEXP_INSTR to find a text string with space(s) in it

    I am trying to use REGEXP_INSTR to find a text string with space(s) in it.
    (This is in a Function.)
    Let's say ParmIn_Look_For has a value of 'black dog'. I want to see if
    ParmIn_Search_This_String has 'black dog' anywhere in it. But it gives an error
    Syntax error on command line.
    If ParmIn_Look_For is just 'black' or 'dog' it works fine.
    Is there some way to put single quotes/double quotes around ParmIn_Look_For so this will
    look for 'black dog' ??
    Also: If I want to use the option of ignoring white space, is the last parm
    'ix' 'i,x' or what ?
    SELECT
    REGEXP_INSTR(ParmIn_Search_This_String,
    '('||ParmIn_Look_For||')+', 1, 1, 0, 'i')
    INTO Position_Found_In_String
    FROM DUAL;
    Thanks, Wayne

    Maybe something like this ?
    test@ORA10G>
    test@ORA10G> with t as (
      2    select 1 as num, 'this sentence has a black dog in it' as str from dual union all
      3    select 2, 'this sentence does not' from dual union all
      4    select 3, 'yet another dog that is black' from dual union all
      5    select 4, 'yet another black dog' from dual union all
      6    select 5, 'black dogs everywhere...' from dual union all
      7    select 6, 'black dog running after me...' from dual union all
      8    select 7, 'i saw a black dog' from dual)
      9  --
    10  select num, str
    11  from t
    12  where regexp_like(str,'black dog');
           NUM STR
             1 this sentence has a black dog in it
             4 yet another black dog
             5 black dogs everywhere...
             6 black dog running after me...
             7 i saw a black dog
    5 rows selected.
    test@ORA10G>
    test@ORA10G>pratz
    Also, 'x' ignores whitespace characters. Link to doc:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/conditions007.htm#i1048942
    Message was edited by:
    pratz

  • How to find my my iphone 4S and iphone 4 using the Iphone Finder Apps?

    How can we use the Iphone Finder to find multiple units of Iphone 4s?

    Apple - iPhone 4S - Locate your missing iPhone with Find My iPhone - http://www.apple.com/iphone/built-in-apps/find-my-iphone.html  But I think that only does one phone at a time because it isn't designed as a general person tracking feature.
    Or are you just trying keep track of a group of phones in a general sense?  I believe there is a Friends app (can't remember the name) which lets "friends" permit other friends to send a request to a phone to let the phone show where it is located.
    Sometimes it helps to put this kind of question in more context because rather than getting just an answer to your question you may get a solution to the issue.

  • Using Terminal to Find Locked Files

    Hello all,
    I am a photographer and often use the locking feature on my camera to lock certain images, ones that are good shots.  With Windows, I was able to sort by whether a file was locked or not.  However I am finding that Mavericks does not have this feature.  Therefore I have resorted to using terminal to find locked files.  However I was wondering if I could get assistance in creating a script/command that would take the results of the files I found locked and either copy or move them into a subfolder.
    IE: I have an event folder called BRB-Team1VsTeam2.  I use the command "find . -flags uchg" to find the locked files.  What I need to do now is get the returned result and either copy or move into a subfolder called "locked".
    I tried "find . -flags uchg && cp /locked" but I know the logic isn't quite there but I haven't played with terminal too much to know what I am doing.
    So anyone have a solution to this?  Or know of an application to at least let me search/filter/sort by the file status (IE: Locked vs unlocked)?

    Here is the basic idea, adjust as necessary. The -d option limits the depth into the folder you are searching. You don't need it; I just added if you want to limit the depth into subfolders.
    find /search/path -d 1 -flags uchg -exec cp {} /destination/path \;
    You could roll this up in an Automator workflow, Service, or Folder Action if you want:
    By checking the "Show this action when the workflow runs" you can choose the destination folder at run time. If always the same, leave it unchecked.
    A Folder Action would work on the items added to a particular folder. The find command would have to be modified.
    A Service could be used to pick the source folder, or to add a shortcut command.

  • I want to use The Duplicate Finder to get rid of duplicates in iphoto. I created a library as a folder on my desktop.  Should I trash the photos in iphoto before I run the duplicate finder?

    I want to use The Duplicate Finder to get rid of duplicates in iphoto. I created a library as a folder on my desktop and droped it into Dupe Finder.  Many dupes were found.  Before I have it auto select dupes, should I trash the photos in iphoto?  Or will Dupe Finder do that for me automatically?

    1 - if you want to remove duplicates from your iPhoto library you would not be using a copy of it
    2 - don't do anything without a good, current backup
    3 - reading the Duplicate Finder web site does not tell me tha tit is safe to use on the iPhoto library - i suggest you use one of the known good and tested duplicate eliminations programs - see this discussion for links - https://discussions.apple.com/message/24363132#24363132
    4 - One cardinal rule - NEVER make any chnages to the structrure or content of the iPhoto library using any porogram (including the finder) other than iPhoto - the programs listed in the linked discussion use iPhoto to do the deleting
    LN

  • How to include subtitles to DVD using burn in finder?

    Hi
    I have downloaded french movie in .avi and it has .srt file with it with the subtitles. So when I go to burn the movie using burn in finder window how do I include the subs to work with it?
    Thanks in advance
    Tracy

    HI Tracy,
    You need QuickTimePro to do this. http://www.apple.com/quicktime/download/
    Also, check out the QuickTime forums for help.
    http://discussions.apple.com/forum.jspa?forumID=932
    Carolyn
    Message was edited by: Carolyn Samit

  • Using powershell to find out how many people are using the on-prem SkyDrive

    Hi
    Is there a way of using powershell to find out how many people are using the on-prem SkyDrive?
    Thank you.

    Hi,
    According to your post, my understanding is that you wanted to use PowerShell to find out the users who use the on premise SkyDrive.
    As this is the forum for SharePoint Server, I recommend you post your question to the forum for PowerShell or SkyDrive.
    Windows PowerShell forum:
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/home?forum=winserverpowershell
    SkyDrive forum:
    http://answers.microsoft.com/en-us/onedrive/forum/sdsignin?tab=Threads
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • Using sar to find out what maxed cpu at 4am?

    Is it possible to use sar to find out what process maxed out a solaris 10 t5140 at 4am? Would I use sar for this or some other application such at dtrace? We have a few spikes that happened between 1am and 4am and I need to know what caused it.
    Any help is appreciated!
    thanks,
    Lucas

    I don't see sar doing this well.
    You could run a cron job to grab a 'ps' list at that time, or you could use 'dtrace' to give you a list of every program that executes during a period of time. Either might be good information.
    Darren

  • Using Spotlight to find photos named in iPhoto

    I have iPhoto 4 but am upgrading to 6 soon. Reading about how iPhoto organizes photos has been very helpful. I think I can get used to having to use iPhoto to manage my photos (how Windows of it!), although I do not like the idea of a photo having a different name in iPhoto than in the Finder. For instance, I use Spotlight a lot, but it does not seem to find the names of photos in iPhoto. Is there a way to use Spotlight to find photos in iPhoto?

    Mark
    Welcome to the Apple Discussions.
    Spotlight will not find photos outside of the Search in the iPhoto Window. It doesn't index the library6.iphoto file. So, titles comments and keywords etc are not indexed.
    I think I can get used to having to use iPhoto to manage my photos (how Windows of it!),
    You don't have to use iPhoto you know. But if you do, finding your pic files is very easy. There are three ways (at least) to get files from the iPhoto Window.
    1. Drag and Drop: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    2. File -> Export: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
    3. Show File: Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.
    Rolls in the iPhoto Window correspond exactly with the Roll Folders in the Originals Folder in the iPhoto Library Folder. You can move photos between Rolls, you can rename rolls, edit them, create them, as long as you do it via the iPhoto Window. Check out the Info Pane (wee 'i', lower left) the name and date fields are editable. Edit a Roll Name using the Info Pane, the Roll Folder in iPhoto Library Folder/Originals will also have the new name.
    although I do not like the idea of a photo having a different name in iPhoto than in the Finder.
    iPhoto is a photo organiser, not a file organiser. If you're concerned with file names, stick to the Finder. Or name the files before importing them to iPhoto. Other than that, find them visually, or by date, comment, title in the iPhoto Window.
    Regards
    TD

  • TS4006 Can someone please tell me how I use icloud to find my ipad

    Can someone please tell me how to use iCloud to find my iPad and lock it out as well?

    Peter Stokes 100 wrote:
    Simple I was led to believe I could store stuff in iCloud without the need for a Mac thereby making space on my laptop. You live and learn.
    You can, iPhones/iPads and Macs work, as do PC's once there is an open account.
    This is typical Apple to be honest. The only reason I use iTunes is for my iPod. Perhaps I need to find another mp3 player.
    You do not need iCloud for iTunes, I am sorry that you misunderstand but iCloud and iTunes do not require each other.
    I'm certainly not paying the inflated prices that Apple charge for their laptops that are quite frankly no better than my Dell.
    I've had Dells, they are worth what you pay, no more.

  • Is it possible that using serial number find location of Ipod?

    I lost my ipod touch in Korea last 2 weeks. How can I do for find out my Ipod? Is it possible that using serial number find location of Ipod?

    If you had the Find My iPhone application installed and location services turned on, you can track the iPod touch, but you can not use the serial number to track it.

Maybe you are looking for

  • Adobe Reader 10.1.8 cannot open pdfs on latest iMac and MacOS

    Hello, I have a new iMac that I got last spring (Feb. 2013) and it came with the latest Adobe Reader, 10.1.8. (I just recently updated my mac OS to Maverick.) Since starting to use this new computer I've had huge problems opening pdfs. that I downloa

  • Loyalty Management

    Hi All, Our client is going to start loyalty implementaion so kindly share information regarding Business content technical details in BW .

  • Error Executing Database Query. (Please help)

    I can't get this query to work properly. I have gone over it so many times.. I can't count, I don't get why it's throwing an error. Here is my code, and followed by the error: My update query: <cfquery name="UpdateDetails" datasource="#APPLICATION.da

  • After tryed all of the suggested website still looks wrong

    Youtube looks like this on Firefox latest version. [http://img9.imageshack.us/img9/5070/image1ik.jpg link to picture] http://img9.imageshack.us/img9/5070/image1ik.jpg On internet explorer: [http://img269.imageshack.us/img269/8207/image2uv.jpg link to

  • Invalid value in field wip entity name

    hi I create cto cycle i did the following steps. create sales order in model item progress order -create onfiguration item star item is created . progress order to create supply eligible jobis created after that in wip discrete job form type the job