How to build a DLL that has Pascal calling conventions with application builder?

Hi,
I'm researching for possible solution to one of our problems.
In one case, solution would be to build a DLL from LabView
code. This should be simple task, but the application that
is going to load the DLL requires that the functions in the
library are exported using Pascal calling conventions,
similar to the C/C++ example code below.
DWORD APPEXPORT far APPPASCAL function(char hexr[])
Could this be possible with LabView somehow? Or is it best just
to write the DLL with C/C++?
Thanks.

Thanks Wiebe.
I don't know whether I need pass string pointers or not. The example
I posted was from the manual of the program that will be using the DLL
I build with LabView. I only wanted to show with it the exported calling
convention needed. It seems that it actually confused my question rather
than clearing it.
Anyway, now I know that it's possible to declare the calling convention
when building the DLL. And it's always good to know that I might encounter
different pointer types on the way, this may actually save me from a lot of
debugging some day.

Similar Messages

  • How do I get my messages to come through on my ipad Via my mobile number? They always used to but I've had to change all my Apple ID if that has anything to do with it? In iMessages it will only take an email address!

    How do I get my messages to come through on my ipad Via my mobile number? They always used to but I've had to change all my Apple ID if that has anything to do with it? In iMessages it will only take an email address!

    Hi EmilyWick123!
    Here is an article that will help you address this question about linking your Apple ID and phone number:
    iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/ht5538
    Thanks for being a part of the Apple Support Communities!
    Regards,
    Braden

  • How to fix a problem with my book pro that has a gray screen with a folder with a question mark on it

    does any one know how to fix a problem with my book pro that has a gray screen with a folder with a question mark on it?

    Hello Mokhtary123 and welcome to Apple Support Communities,
    It will help us diagnose your problem to know the exact model, size, year built, RAM installed and OS you're running.
    But basically your system can't find the boot disk. Usually this is a symptom of a dead/dying/corrupted hard drive;
    A flashing question mark or globe appears when you start your Mac - Apple Support
    OS X Recovery
    http://support.apple.com/en-us/HT4718

  • How do I find music that has been uploaded to iTunes from a purchased CD and iTunes is "unable to find the original file?" I no longer have the CD. I have tried all the usual methods of looking in my iTunes library and through Find. No Luck.

    How do I find music that has been uploaded to iTunes from a purchased CD and iTunes is “unable to find the original file?” I no longer have the CD. I have tried all the usual methods of looking in my iTunes library and through Find. No Luck.

    Backup drive?
    Subscribe to iTunes Match?
    If neither of the above and you don't have the CD and can't find your tracks on the computer then they you're stuck.  A file recovery utility will cost $100, plus another $100 for an external drive to which to resue the files, and may not even work.  You can buy a lot of CDs for $200.

  • How to get PDF file that has been transformed into docx into my filing system so I can work on it???

    How can I get the PDF file that was transformed into a docx file into my filing system to be able to work on it and translate it as the customer requested?

    THanks for your reply.
    Well what happens is I bought the program. It gives you a button to click,
    you log in and then a box opens up asking you to select the file, I go into
    my filing system (in Windows explorer) select the file, and the program
    converts it into docx, my choice.  I can read it there and when I try to
    copy and paste it into my file where the PDF version is saved, it behaves
    like an "image", and I can't save it.... or it saves likes something you
    save on the internet, so you have to go into internet every time you want
    to see it.    I have also pressed any amount of buttons to see if it will
    give me the option to save it any other way, and have found nothing.  What
    I would need is a file in docx.format that I can edit.  People send me
    things in PDF and sometimes I can just copy it off the PDF file and save it
    in WOrd, then I can translate it for them. But sometimes the PDF file
    doesnt allow me to copy the text.  If it is in image form, I cannot work on
    it.  It means printing it, so I can copy type it into Word... and for that
    I certainly wouldnt need to buy a program.  Its just double the work and
    ends up that the job takes twice as long.!
    Sorry  if I am a bit dumb with informatics.  But I simply could not find
    any way whatever to  copy the PDF file that was transformed into Word, in a
    format that would enable me to edit it.
    Kindest regards,
    Margery
    2013/12/2 Test Screen Name <[email protected]>
        Re: How to get PDF file that has been transformed into docx into my
    filing system so I can work on it???
    created by Test Screen Name<http://forums.adobe.com/people/TestScreenName>in *Adobe
    ExportPDF* - View the full discussion<http://forums.adobe.com/message/5890871#5890871

  • I am building an app that has hundreds of pages, is there a limit?

    I am building an app that has hundreds of pages, is there a limit? I think i could have about 400-500 pages. i have heard that if it resembles a book it will get rejected, does anyone know about this?
    thanks

    It will get rejected if it is a book. If what you are doing is impossible in iBooks Author (HTML and Javascript), then you are fine.

  • Calling a dll that has an unsigned char, unsigned char * in a function call

    I have a dll that has the following function that I am trying to call from LabView
     GetAvailableData( unsigned short * Num1,   unsigned short * pList,   unsigned short in,   unsigned short * ip  )  
    In this, the second parameter is an output. When I use call library function node, I  use the second arg to create an indicator. When I run this program, I see the return value to be zero.
     I use the following for arg2:
    Name: arg2
    Type: Numeric
    Data type: 16bit Integer
    Pass: Pointer to value
    Any help is appreciated. 

    dinks-
               Just some janitorial work first: when posting try and keep the spaces between lines to a minimal. Empty spaces just means less memory somewhere. To your question, I think some clarification is needed. Tell me if this is right, you have a dll that you are calling into LabVIEW using Call Library Function node and then trying to get this unassigned character.
     Yes. That is correct. 
    It returns 0 but it should be giving something else (what should it be returning?). Are you getting any errors running this or you are just not getting the expected value back? Thanks for the clairfication!!
    Thanks for the response. I think there are lot of nitty gritty details when calling a c++ dll from LabView that I need to learn. The unsigned char problem is solved when I modified the output to Array in Labview.
    I have issues using C++ functions that return a bool value. 
    The other problem is with C++ functions that return a HANDLE.
    In the first case where the return value is bool, I assigned the return value in LabView to  Signed 32 bit integer when I call this function,  the return bool value is some large number always irrespective of the C++ bool value (true or false).
    For the second case (return type HANDLE), I assume, I should specify the return value as signed 32 bit integer in the configure option of call library function node. I tried that and it returns the same value. The dll returns non zero if my hardware that I am interfacing with is found. If it doesn't find the hardware, the return HANDLE is 0. The Labview program returns the same value if I enable the hardware or disable the hardware.
    I am following the  Call DLL.vi example for using various data types in C++. 
    Really appreciate your help.

  • How to export a form that has Asian language in it to CSV file? Currently the CSV file shows [...] for Asian language characters

    How to export a form that has Asian language in it to CSV file? Currently the CSV file shows [...] for Asian language characters

    Hi George,
    Thanks! It does work in XML format. But since I would need to present the data in a spreadsheet, is there any other way I could go around it?
    Cheers,
    Su Ann

  • TS4036 How do I access content that has been backed up to iCloud?  I no longer have an iphone, but want to access the music/pictures I've stored to the cloud.  When I logged into iCloud, there was no tab or option to view store content.  Please help.

    How do I access content that has been backed up to iCloud?  I no longer have an iphone, but I want to access the music/pictures I've stored to the cloud.  When I logged in to iCloud, there was no tab or option to view content.  Please help.

    Without an iPhone or iPod Touch to restore the backup to, you cannot access the camera roll photos stored in the iCloud backup.  Signing into the account on your computer and enabling photo stream will only allow you to access photo stream photos from the last 30 days, and any shared stream you were subscribed to.
    You can redownload purchased music in iTunes on your computer as explained here: http://support.apple.com/kb/ht2519.

  • Please help , I have iPhone 4S and have updated to iso6, don't know if that has anything to do with the problem but I can't set the year on date and time to the correct year, it automatically goes to 2578 ? Plz help

    Subject:
    Please help , I have iPhone 4S and have updated to iso6, don't know if that has anything to do with the problem but I can't set the year on date and time to the correct year, it automatically goes to 2578 ? Plz help

    Settings>General>International.
    Set the calendar to "Gregorian". You have it set to Buddhist.

  • Why when I click on a item or a spot on a web page dose another tab open up that has nothing to do with what I am clicking on?

    The new tab goes to a website that has nothing to do with the site I am working with.

    hello, this sounds like a problem possibly caused by malware on your pc. please go to ''firefox > addons > extensions'' & remove any suspicious entries (toolbars, things that you have not installed intentionally, don't know what purpose they serve, etc). also go to the windows control panel / programs and remove all toolbars or potentially unwanted software from there and run a full scan of your system with the security software that you have in place and different other tools like the [http://www.malwarebytes.org/products/malwarebytes_free free version of malwarebytes] & [http://www.bleepingcomputer.com/download/adwcleaner/ adwcleaner].
    [[Remove a toolbar that has taken over your Firefox search or home page]]
    [[Troubleshoot Firefox issues caused by malware]]

  • I bought osx lion for download but I cannot find where it is on the app store.  i currently have 10.5.8 so I dont know if that has something to do with it.

    i bought osx lion for download but I cannot find where it is on the app store.  i currently have 10.5.8 so I dont know if that has something to do with it.

    You cannot use Lion until you have upgraded to 10.6.8:
    Upgrading to Snow Leopard
    You can purchase Snow Leopard through the Apple Store: Mac OS X 10.6 Snow Leopard - Apple Store (U.S.). The price is $19.99 plus tax. You will be sent physical media by mail after placing your order.
    After you install Snow Leopard you will have to download and install the Mac OS X 10.6.8 Update Combo v1.1 to update Snow Leopard to 10.6.8 and give you access to the App Store. Access to the App Store enables you to download Mountain Lion if your computer meets the requirements.
         Snow Leopard General Requirements
           1. Mac computer with an Intel processor
           2. 1GB of memory
           3. 5GB of available disk space
           4. DVD drive for installation
           5. Some features require a compatible Internet service provider;
               fees may apply.
           6. Some features require Apple’s iCloud services; fees and
               terms apply.
    You received a coupon you can use and redeem on the App Store to download Lion. There is no App Store in Leopard.

  • Hi, i want to buy a mac book pro. I was wondering if the ms office suit that i will buy can be a normal version or a one that has to be compatible with mac?

    Hi, i want to buy a mac book pro. I was wondering if the ms office suit that i will buy can be a normal version or a one that has to be compatible with mac?

    It must be compatible with Mac OS X. You have to install the Mac OS X Microsoft Office version > http://www.microsoft.com/mac
    Also, you can use the PC version, but in this case, you will have to install Windows on a virtual machine or Boot Camp, so it's better to use the OS X version. There are alternatives for Office, like Apple iWork or LibreOffice, if you want to try them before

  • WEBUTIL_C_API: Writing wrapper DLL's to address calling convention issues

    I am interested in calling the Windows API using WEBUTIL_C_API. In particularly, I am interested in calling FindWindow to obtain window handles. I registered the function as required, but have yet to get a meaningful result. Upon researching Metalink a bit, I encountered a post stating that FindWindow uses Pascal calling conventions, while WEBUTIL_C_API expects C calling conventions. The suggested solution is to wrap the API call in my own DLL, which adapts between the two calling conventions.
    I'm fairly adept at writing standard C code, albeit out of practice, and with a bit of Googling, I have even managed to compile a DLL using GNU gcc. Alas, I evidently don't understand all the compiler directives required to write the wrapper DLL that I have described. Has anyone else managed a similar task, who might share an example or direct me to some helpful documentation?
    Thanks,
    Eric Adamson
    Lansing, Michigan

    Mr. Ronald,
    Thank you for your assistance. After going through the webutil log file and the WebUtil Familiarization Manual a few more times, and lastly, metalink, it was stated in a metalink post that the "Cause for the Error WUC-20 can be that the webutil.cfg file has an invalid virtual directory: install.syslib.location".
    According the WebUtil Familiarization Manual (p.11 of 49), install.syslib.location=/webutil. I did just that, and the log file indicated that
    xxx.xxx.xxx.xxx:xxxxxxx: 2004-Jan-22 11:32:53.746 WUI[setProperty()] Setting property WUC_GET_LOCAL_PROPERTY to syslib.ffisamp.dll
    xxx.xxx.xxx.xxx:xxxxxxx: 2004-Jan-22 11:32:53.761 WUI[getProperty()] Getting property WUC_GET_LOCAL_PROPERTY
    xxx.xxx.xxx.xxx:xxxxxxx: 2004-Jan-22 11:32:53.761 WUI[loadSettings()] No local properties file to load
    xxx.xxx.xxx.xxx:xxxxxxx: 2004-Jan-22 11:32:53.761 WUI[getProperty()] Value of WUC_GET_LOCAL_PROPERTY=null
    xxx.xxx.xxx.xxx:xxxxxxx: 2004-Jan-22 11:32:53.777 WUI[setProperty()] Setting property WUC_URL_DOWNLOAD to 1|40960|Y|/webutil/ffisamp.dll|ffisamp.dll|WebUtil Install|Downloading required libraries; Please wait...|ffisamp.dll
    xxx.xxx.xxx.xxx:xxxxxxx: 2004-Jan-22 11:32:53.777 WUI[getProperty()] Getting property WUC_URL_DOWNLOAD
    xxx.xxx.xxx.xxx:xxxxxxx: 2004-Jan-22 11:32:53.777 WUI[downloadFromURL()] Source is http://<machine_name:port>/forms90/f90servlet/webutil/ffisamp.dll
    So I tried the absolute URL, http://<machine_name:port>/forms90/webutil, Voila! It worked. The point is somehow, the download url should not include .../f90servlet/...; just plain /forms90/webutil.
    Thank you for your time and assistance.
    Regards,
    thomas

  • Is there a way that I can call a Swing application

    Hi all,
    Is there a way that I can call a Swing application from html page.
    fox example when user clicks on the url in html will activate a swing local application
    thanks

    Assuming the local swing application is running, and you have an applet in the browser that has permissions to communicate with a server other than the originating server, you could use RMI or a regular socket connection.
    Due to the obvious security issues to letting javascript or an applet free access to the local machine, this is not something that a browser really supports.

Maybe you are looking for