PDA: How does the VI in the "Calling External Code (Inline C Method)" example link to the called functions?

The PDA module provides an example of calling external code via an inline C
The inline source code from the example:
     OSVERSIONINFO info;
     info.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
     Err = GetVersionEx(&info);
     MajorVersion = info.dwMajorversion;
     MinorVersion = info.dwMinorversion;
The PDA build specification includes *no* additional source files of any kind.  The only source file in the build is the top-level VI.  Where are the definitions for the OSVERSIONINFO type, and the GetVersionEx function drawn from?
The VI builds and runs fine on the PDA, but I don't understand how.

Donovan B wrote:
Hi Dan,
It looks like there is an OSVERSIONINFO struct and GetVersionEx function available in the coredll.lib for the application to call on a PDA running Windows Mobile 5.0.  On both operating systems, it looks like the GetVersionEx function is defined in winbase.h, so I am not sure if there is some kind of linking between the two or if the header file is automatically included when building the executable or not.  Let me do some more research and I'll let you know.
The information for the function on Windows Mobile can be found here.
Message Edited by Donovan B on 12-19-2007 06:33 PM
While the API functions are mostly the same for Windows Mobile and normal Windows the actual implementation and compilation is obviously not and there is no need for that. Windwos Mobile is typically (not sure if there are other versions at all) ARM based, while the desktop version is x86 based. A huge difference.
And when LabVIEW creates a PDA executable it mostly creates a bunch of hidden C files, invokes the Visual C for Windows CE
tool chain and lets it create the executable. The Visual C for Windows CE tool chain comes with its own import link libraries for accessing WinAPI functions and those import link libraries reference the functions in the DLLs as they are implemented for Windows Mobile (CE). There is no kernel32.dll in Windows Mobile and why should it? You can't move normal Windows code that would expect that DLL to Windows Mobile anyhow, since it has a completely different CPU and there is always a complete recompile with the Windows CE toolchain necessary anyhow.
Rolf Kalbermatter   
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions

Similar Messages

  • I was using my notes earlier today and now for some reason they are all gone. How does this happen and is there anything I can do to get them back, the new ones also that haven't been synced.

    I was using my notes earlier today and now for some reason they are all gone. How does this happen and is there anything I can do to get them back, the new ones also that haven't been synced.

    See Recover your iTunes library from your iPod or iOS device.
    tt2

  • The curser includes a text box from a previous image or link when the curser is positioned on the side of the page. i click and it goes away but only to return again on the next launched page. how do i get rid of this?

    the cursor includes a text box from a previous image or link when the cursor is positioned on the side of the page. it will mainly happen when i hit "back" from the page i was on. i click and it goes away but only to return again on the next launched page. i also keep several tabs open and it will carry over to any one of them i go to. how do i get rid of this?
    == This happened ==
    Every time Firefox opened
    == when i upgraded to most recent version 3.6.8

    A number of extensions can cause that problem, you'll need to do a little troubleshooting to find out which extension is causing that to happen for you.
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

  • How does iPad Mini with Cellular Sprint Captel work in hard of hearing person for captioned calls and music?, How does iPad Mini with Cellular Sprint Captel work in hard of hearing person for captioned calls and music?

    How does iPad Mini with Cellular Sprint Captel work in hard of hearing person for captioned calls and music?, How does iPad Mini with Cellular Sprint Captel work in hard of hearing person for captioned calls and music?

    How does iPad Mini with Cellular Sprint Captel work in hard of hearing person for captioned calls and music?, How does iPad Mini with Cellular Sprint Captel work in hard of hearing person for captioned calls and music?

  • HT2736 How does a content provider obtain a redemption code to provide to others for free downloads of their own content

    How does a content provider obtain a redemption code to provide to others for a free iTunes download of their own content. This would be similar to what Starbucks does. However, it would the actual content provider and not a third party.

    Same issue. We produce a number of Podcasts and are about to launch a national print campaign to promote them under a single brand identity.
    I tried that method already as well, but got the response back that I needed to contact a different department using the "report this podcast" link associated with the Podcast in iTunes (which, of course, doesn't have any options for anything close to this type of request.) Been 48 hours and no response yet. Anyone had any success with this?

  • Hello Apple I work in one of the shops phones in the Kingdom western Saudi Arabia you now restore a backup to the customer by mistake recovered to copy another client now been linked to the phone and ask me to check, I do not know PIN number

    Hello Apple I work in one of the shops phones in the Kingdom western Saudi Arabia you now restore a backup to the customer by mistake recovered to copy another client now been linked to the phone and ask me to check, I do not know PIN number
    <Edited by Host>

    These are user forums. You are not speaking to Apple here. I'm sorry but we cannot assist you. Contact your Apple vendor in your country. Customer Service: Contacting Apple for support and service - this includes international calling numbers.

  • TS2776 I have my iphone 5 for 7 months now and from time to time, my contacts, without notice, get scrambled, i.e., multiple contacts go into one, or I lose contacts....How does this happen and why?   And is there a quick fix to reset the contacts as they

    I have my iphone 5 for 7 months now and from time to time, and without warning, my contacts get scambled, i.e., multiple contacts become one.   I am losing my patience.   Help.

    I couldn't find the edit button on my original post so I am posting an update here.
    I have gone through more apps and have had good luck on all but one more.  And it's not that the app doesn't work, I am talking about the Yahoo Weather app, It works fine, but when you swipe between cities the screen lags a bit and it sometimes doesn't move between pages the way it should.  On iOS 7.1.2 it was smooth as butter but on iOS 8.0, not so much.  I will post a note in the app store to let them know.  I really like the Yahoo app better than the new stock app.
    I have been going through my games and they all work fine. Angry Birds (Original and Stella), Canabalt, Minecraft, Bejeweled 2, Silly Walks, PopWords, Doodle Jump, Deep Green all seem to work just fine. 
    Starbucks app works as it should. 
    I will stop back again next week after I have had the weekend to play with it in detail and post my thoughts again.

  • How does one pass import parameters to a report within a method?

    Hello all,
    Well how does one  pass import parameters to a report which is within a method ...end method.
    for example :
    method 123
    SUBMIT reportname using selection '1000'
    endmethod .
    Here we need to pass values into the selection screen and run the report for those values.
    The values are say 'ABC'   (  tablename "DEF" and field name "HIJ" ).
    I hope the question is clear, awaiting your response 
    Thanks and Regards,
    Sandeep.

    Go to SE24
    Parameters: Give the Parameter name, Typing method is "Type" is the domain type that u are selecting, say for e.g :  Parameter is "P_CONT" , its associated type "CHAR32" etc
    For Select Options:  Parameter name say "S_CUST", Type"importing". For this you need to give an associated type which must be created as "TABLE TYPE " in SE11. That table type needs to have a "LINE TYPE" .
    LINE TYPE is a Structure created with components "SIGN, OPTION, LOW & HIGH" for select-Options.
    NOTE: for a Table type related to Customer data fields "say KUNNR", the line type created must have the Component Type and data Type corresponding to the Data Element associated with "KUNNR" ;i.e: "CHAR" etc.
    See if this is clear to you or revert back in case of any Confusion.

  • How does committed date in STO- different company codes gets calculated

    Dear All,
    Please let us know How does committed date (ATP date) in the STO across different company codes gets calculated
    Regards
    Ahmad Idais

    Hello,
    RA is always a Company Code specific process due to the possibility of financial postings.  I think that your WBS structure better be reconsidered not to mix up different Company codes at different levels, but maybe having a parallel nodes for different Company codes.
    I also believe there is a consulting OSS note to explain the standard system behavior, just search the OSS.
    Since you already have a master data in place it must be quite easy for you to test how the system behaves.
    Regards,

  • Help! Just copied iTunes media to second external drive and now have broken links in the original drive??

    Hi everyone
    I wonder if anyone can offer me some advice to rectify the problems I'm experiencing in my itunes?
    I have been saving my media to an external hard drive since rebuilding my itunes collection, while keeping the library on the hard drive of my MBP.  This was working well with no problems but as my media reached 300GB on my external I thought I would copy it to another external hard drive as back up, and after that I decided to also make a copy of my library data to the same second external drive so I would have a full back up of itunes in case of failure of my main hard drive...
    So after copying my media from my first external drive to the second, and then copying the library data from my MBP hard drive it seems the copy of my media and the copied library are working fine on my second external hard drive, but now when I open the first external drive where I originally was saving my media files I am suffering quite a lot of broken links???...I followed the copy process as I have done in the past although I did not tick the check box for renaming and moving my media as it was about to be copied,and I thought that was correct as I used the consolidate function to copy it..
    Been trying to figure out how to rectify the problem tonight and am getting nowhere fast.  Can anyone offer suggestions as to how I can sort the issue on my original external hard drive as it's the one I prefer to store my media on and it was functioning perfectly before?? from having a tidy and clearly functioning itunes I now have a mass of problems....
    I hope this is clear to someone.....as I was hoping to have it fixed in readiness for a new MBP...am I missing something obvious?

    OK, this should sort you out...
    Move the following files and folders from /Volumes/Backup/iTunes  up to /Volumes/Backup/
    Album Artwork (folder)
    iTunes Library.itl
    iTunes Library Extras.itdb
    iTunes Library Genius.itdb
    iTunes Library.xml
    sentinel (hidden)
    Launch iTunes. It should warn that the library is missing. Browse to the file /Volumes/Backup/iTunes Library.itl and open it.
    Go to iTunes > Preferences > Advanced and change the media folder location to /Volumes/Backup/Music. Let iTunes consolidate files if it asks, if not use File > Library > Organize Library... Tick Consolidate files and click OK.
    Close iTunes. Rename /Volumes/Backup/Music as /Volumes/Backup/iTunes Media. Start iTunes.
    Go to iTunes > Preferences > Advanced, check that the media folder location now reads /Volumes/Backup/iTunes Media. If necessary, change and then close and reopen iTunes.
    Go to File > Library Organize Library... and, if not greyed out, tick Rearrange files in the folder iTunes Media, then click OK.
    Delete /Volumes/Backup/iTunes/iTunes Media which now contains redundant copies.
    Move the following files and folders from /Volumes/Backup/ into /Volumes/Backup/iTunes
    Album Artwork (folder)
    iTunes Media (folder)
    iTunes Library.itl
    iTunes Library Extras.itdb
    iTunes Library Genius.itdb
    iTunes Library.xml
    sentinel (hidden)
    Launch iTunes. It should warn that the library is missing. Browse to the file /Volumes/Backup/iTunes/iTunes Library.itl and open it.
    Go to iTunes > Preferences > Advanced, check that the media folder location now reads /Volumes/Backup/iTunes/iTunes Media. If necessary, change and then close and reopen iTunes.
    Each time you change something and start iTunes just check that a track will play. If not, close iTunes and undo your last action.
    That should be it. You can clone this iTunes folder to any other drive and the clone is a functioning copy of your library.
    tt2

  • How does one sync or use an external hard drive with Aplle TV?

    I have a 1 terabyte hard drive loaded with mp4 movies. I'd like to have my itunes library read from it and display these movies on my TV. can i do this without moving my entire itunes library to the external drive and if so how can it be done?

    augybendoggy wrote:
    I have a 1 terabyte hard drive loaded with mp4 movies.
    another option, of course, would be to press option while dragging the content from the HD into an open iTunes window. this will cause iTunes to index the path to the original's location - same effect as unticking +copy to+... in the advanced preference pane.
    foolproof method if you don't want to (or forget to) check the settings when adding new content ...
    JGG

  • Can you call external code from XE?

    Hi,
    I have an application that uses external code, called via extproc. During a standard Oracle installation, I need to modify the listener configuration to allow it to do so. This is done by modifying listener.ora like follows:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\ora10_2)
    (PROGRAM = extproc)
    (ENVS = "EXTPROC_DLLS=ANY")
    without the 'ENVS' entry, the listener security prohibits the loading of our code.
    The touble I have on XE is that attempting to restart the listener after this change gives an error:
    TNS-01155: Incorrectly specified SID_LIST_LISTENER parameter in LISTENER.ORA
    NL-00303: syntax error in NV string
    Does this mean that external code cannot be used? or does anyone know a workaround?
    Thanks in advance,
    Jim

    One obvious problem is the missing close paren, seen when you reformat as follows:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\ora10_2)
    (PROGRAM = extproc)
    (ENVS = "EXTPROC_DLLS=ANY")
    ) <--- this is missing

  • How does my company become an Authorized Apple Reseller? I've tried everything in the books.

    Tried every which way and keeps hitting a brick wall. Even got an Apple Resale Certificate ID assigned to my company, only for that to become "invalid". Anyone has any idea how to resell especially the iPad 2 without having to apply to become a reseller through the web? Would it be possible to resell under another reseller? This is pretty frustrating.

    Unfortunately, we are all just users here, so you will need to contact Apple:
    http://www.apple.com/contact/

  • How does Sharepoint 2013 Server farm using BLOB data, Hyper-V with virtual machines storing the BLOB data?

    Hello Community
        A Sharepoint 2013 Server farm created on a physical server
    stores it's documents in SQL Server according to how SQL Server is setup.
        If a Sharepoint 2013 Server farm is using Hyper-V and Virtual machines
    how is BLOB data stored ?  
        Thank you
        Shabeaut

    Are you looking to use Remote Blob Storage? or RBS of SQL with SP?
    It is going to be same way as it is configured for physical server.
    Thanks, Ashish | Please mark a post helpful/answer if it is helpful or answer your query.

  • How to "Move" final cut pro to external drive.  When I drag it duplicates the application. can I just delete the application on the MacBook?

    I want to "Move" Application Final Cut X Pro to my external hard drive but when I drag it only copies it.  Can I delete it from the hard drive now.
    How do I tell Final cut X pro that I want it to use the External drive for all files?

    Keep the application on your hard drive and when you save files save them to the external

Maybe you are looking for