Can not find size_t during import a dll and calling a function crash labview

Hello, experts
I need to use FingerLakeInstrument  DLL ( see the attached) inside Labview to talk to a CCD camera. it is built from microsoft visual studio C++
I unzip FLI dll in my D:\proj\...\linfli-32 and import dll from there. created a c:\FLIDBG.txt as FLI dll needs to write debug message to it if FLISetDebugLevel() or others are called.
During importing the dll, first thing I got is <sys/types.h>  ( ie size_t ) cannot be found. I have installed free version of microsoft visual studio C++
but can not find "typedef unsigned int size_t"
at the end, I just added
 typedef unsigned int size_t;
in the libfli.h. Having done that, I am able to import all functions into Labview and have a user library called libfli.
However, as soon as I start calling a simple function in a test.vi, such as FLIGetLibVersion(char* ver, size_t len), which involves nothing other than the library, the labview will crash.
I created a simple C test.exe which calls many functions without any problem
any suggstion?
regards
xiaofeng
Solved!
Go to Solution.
Attachments:
libfli-32.zip ‏93 KB

Hi, Smercurio_fc
thanks for your reply. Yes, you are pointing to the right place.  I have solved the crash problem.
when importing DLL into Labview using Tools\import\Shared Library (.dll), Labview automatically set the calling convention as C not as stdcall (WINAPI).  it is this that later the labview crashes when a function is called.  as soon as I manually re-selecte calling convention as stdcall, my test.vi works OK (see attached).
I tried Call Library Function too to call libfli.dll, as long as I select stdcall as call convetion. the test.vi works.
How do I know which Call convention I need to choose if  there is no infomation from DLL provider?
as for the size_t,
I add   #include <crtdefs.h> in libfli.h and 
 add additional include path as
C:\Program Files\Microsoft Visual Studio 10.0\VC\include.  this  solved the "not found" issue.
for this case I know that the DLL is built from VC++,  is this right way? 
again, thanks for your time.
xiaofeng
Attachments:
test.vi ‏13 KB

Similar Messages

  • I am trying to download xfinity tv go app. I can not find it in my App Store and can not download it from the comcast website. All I get is a blank screen in the App Store. My Apple ID is associated with a Canadian address. How can I find the app?

    I am trying to download xfinity tv go app. I can not find it in my App Store and can not download it from the comcast website. All I get is a blank screen in the App Store. My Apple ID is associated with a Canadian address. How can I find the app?

    Its possible the App is not available in the Canadian store if the link doesn't work for you.
    https://itunes.apple.com/us/app/xfinity-connect/id320788270?mt=8

  • Hello i lost my ipod touch 5g and I can not find I lost 8 months ago and i try

    hello i lost my ipod touch 5g and i can not find i lost 8 months ago and i try to find whith  find my iphone I need help please

    See my response to your other post

  • Macbook air can not find imac during migration

    I try to migrated my macbook air from my Imac but for some reasons they can not find eachother . on the air I click from other mac it show the code,then on the mac i clickto other mac and it do not show the code ? Please help

    If you haven't done so already, try resetting the printing system.
    OS X Mavericks: Reset the printing system  also Yosemite
    Try setting it up as something other than AirPrint. I have seen several posts where that was the problem.

  • Can not find a way to delete pages and to crop pages

    Hello.
    I have the Adobe Create PDF and can not find a way to either delete pages from a document or to crop a document page.
    Please help me out.
    Thanks

    You need to ask in http://forums.adobe.com/community/createpdf

  • Siri can not find certain contacts in my contacts to call them

    I have a Marcus Jones in my contacts.  When i ask Siri to dial Marcus Jones, she says she can not find marcus jones and only presents marcus smith or allison jones.  I dont understand.

    I also have this issue, when as for a contact, it showed me three contacts with the same last name, but not the one I was looking for...  I validated it was in my contacts.

  • About once a week, I can be doing some really important uni work and the bloody thing crashes and states 'not responding'

    I open Firefox, then as soon as it opens it states 'not responding' then starts working, then 'sticks' on every page/site I go to. Am doing important uni work and am getting sick of this happening, it's either great or rubbish and very bloody annoying.

    upgrade your browser to Firefox 9 and check
    * getfirefox.com

  • Can not find javax.ejb.CreateException when lookup and create EJB instance.

    Hi,
        I installed SAP CE 7.2 and NWDS 7.2. When i call create() of EJB's home interface from JAVA stand alone app to create EJB instance, the complier state that it need  'javax.ejb.CreateException'. How can i find the jar that contain 'javax.ejb.CreateException' to solve this problem?
    Thank a lot,
    Thongie
    Edited by: Thongie on Jul 8, 2011 7:30 PM

    Thank a lot, I can found EJB20.jar at 'usr\sap\<sid>\<instance_id>\j2ee\j2eeclient\'

  • Where can I find detailed instructions on transferring message and call logs ?

    I failed to find good info on this using search etc. I switched from Droid X to Galaxy Note 3 recently. On Verizon Cloud, it tells I have the logs uploaded but my Galaxy Note 3 does not display them and I am unable to download the logs into my new phone from Verizon Cloud. Thanks in advance for any help.

    Thank you Tominque. Here is the update: I misunderstood the restore phone option as going to factory settings after I had used my phone for a few days and feared to touch it. However, later I saved some of the stuff on my phone and took a chance after talking to one of your helpful reps and it worked. I got my messages and call logs into my phone, happy ending. It would be nice if there is a little more explanation on the Verizon Cloud.

  • Aperture 3 can't find images during import

    I create a project and try to import images into it. I hit import, the directories open yet when I navigate to folders that have images in them none of the files show-up in the window. I can see the folders but they look empty.
    Doesn't matter if the images are jpeg, gif, RAW or whatever.
    This has happened to me twice while trying to work a deadline. Even quitting Aperture 3 and restarting it doesn't work. Repairing permissions doesn't work, rebooting the MacBook Pro doesn't work. But when I get home and lo and behold now they show up even though I've done nothing differently, maybe the only difference is that I'm plugged into AC power.
    Very weird. It's not a drawing previews issue. I've let the laptop sit and no image filenames show-up. Not even in a folder with a few jpegs in them that should be a snap to render. I'm running Aperture 3.0.1
    Really ticking me off as I've been on deadline and my Photoshop CS3 won't open Canon 7D RAW files. (I refuse to buy anymore Photoshops due to the RAW plugin blackmail to upgrade). Had to use Canon DPP to convert the files since my DNG converter was outdated and I was in the field with no bandwidth to download a new one.
    Example screen snapshot: http://www.hawaii247.org/baron/20100306-Aperture3.jpg
    Anyone else have this issue?

    I also have this problem, both on my desktop and my laptop while using Aperture 3. This is just one of many, many bugs which is causing me a lot of frustration while using this. Apple, you really need to fix this, and the other bugs -- which are considerable and numerous.
    And why is Aperture sooooooo slow? Just retouching takes forever, while the same tool in Photoshop is immediate. Exporting large files are problematic, and sometimes the menu bar disappears. NOT GOOD SOFTWARE!

  • Hello i lost my ipod touch 5g and I can not find I lost 8 months ago and i try to find whith  find my iphone I need help please

    help

    The battery would be dead by now
    - If you previously turned on FIndMyiPod on the iPod in Settings>iCloud and wifi is on and connected go to iCloud: Find My iPhone, sign in and go to FIndMyiPhone. If the iPod has been restored it will never show up.
    - You can also wipe/erase the iPod and have the iPod play a sound via iCloud.
    - If not shown, then you will have to use the old fashioned way, like if you lost a wallet or purse.
    - Change the passwords for all accounts used on the iPod and report to police
    - There is no way to prevent someone from restoring the iPod (it erases it) using it unless you had iOS 7 on the device. With iOS 7, one has to enter the Apple ID and password to restore the device.
    - Apple will do nothing without a court order                                                        
    Reporting a lost or stolen Apple product                                               
    - iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number

  • I can not find my sent emails on iPad2 and the icon is no longer on the screen.

    I have an Ipad2 under accounts I have the icon inbox and under it a trash can but there is not a sent email icon. How can I locate sent emails? On my first Ipad there is a sent icon.

    Welcome to the Apple community.
    Check your account details are correct, check that you are using the correct details for Location, Region and Time Zone.
    You might also try logging out of and then back into your iTunes account and restarting your router.
    Rentals should appear under their own heading in the ‘Movies’ feature, you might also check at Settings > iTunes Store > Check For Rentals.

  • I can not find my cd for this printer and wanted to know how to get another cd to update new laptop

    How can I get a new CD for my printer HPc309g?  Can it be mailed to me?

    You can download and install the latest software for your printer from the "Support & Drivers" link at the top of this page.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • There is more data storage on the hard drive and I can not find it (should be deleted)

    Hi I need some help, i recently bought a Macbook Pro, so good with that but when storing my files I realized I had sent more files, I deleted my files and it took me hours! and when checking the status of storage I realized I had more 20GB hard drive and I can not find that data stored anywhere! and i made the securely empty.
    P.S. I had a small problem when cleaned the trash, I stopped for lack of time but when i stop it, I realized I had nothing inside then... (should leave something at least, because it was an incomplete process.)
    (here says that i have 40.54 GB from other stuff, and i'm just using like 13Gb of my data) its in spanish by the way... sorry for that.
    Thanks for your patience!

    Other (Otros) is everything but Applications according to your chart. That includes operating system and files.

  • IPhone 5  I can not find facetime

    I Bought in Saudi Arabia iPhone 5 and I can not find facetime the mobile Model ( md663ae ) And I did not find it in the settings

    Maybe the FT app or s/w part was omitted from the iPhones sold in SaudiArabia when you purchased them.
    But,
    I have an iPhone5 bought in the US.
    Currently I am in Saudi Arabia and I use FaceTime everyday to talk to my girlfriend.
    In India I found that FT does not work when on 3G, it works only over WiFi.
    But to my delight, in Saudi Arabia FT works on 3G as well.
    Then, a month ago, I bought a new iPhone5 for my friend in India.
    FT was available on the phone and we used it in India.
    As I did not open the box in SaudiArabia, I am not sure if FT on the phone I purchased in Riayadh works in Riyadh.
    Iam pretty sure that FT work on phones being sold in Riyadh now-a-days.

Maybe you are looking for

  • Windows 8.1 to Synology NAS (DS2413+) - SMB 20MB/s but HTTP 100MB/s?!

    Hello all, Using the normal Windows 8.1 file sharing (SMB) on a high-end laptop with a mapped drive to a shared folder on my new Synology NAS (DS2413+), I get approximately 20MB/s speed... which is so slow the NAS is pretty much useless in my office

  • WebService is not invoking from OAPage

    Hi, I created a BPEL WS which creates a employee in oracle EBS and deployed sucessfully.My requirement is to invoke this WS from a custom OAF page.I generated all STUB java classes and done all coding in the controller of the page.The problem is WS i

  • Very imp vendor evalution

    please provide me the relevant configeration settings step by step for vendor evalution. regards meena

  • Copy columns of an internal table

    hi, i want to copy columns of an internal table into another internal table, now i loop the original table to one workarea and then get the field i need, and then append to destination table. is there any more effective way ?

  • JDBC 8.1.6 (2.0) and JDK 1.2 java.sql.SQLException

    I wrote an applet program and access to Oracle database using JDBC 2.0 (Oracle 8i 8.1.6). When testing, I got errors java.sql.SQLException: No suitable driver. Who havd any idea to solve this problems. It works fine when I use JDBC 1.2 and JDK 1.2 .