The problem about call dll from VB....

Dear All.
I have a device and  VB dll file.I want to use labview to call  dll.But Labview show "An Exception occurred within the external code ..."
Below is  to call this dll details.
1、FindHardware:
Call it at beginning when load program first, it can let program auto detect printer port address and model of dso scope.
parament
winversion:
winversion = 2  "Windows NT,XP"
UIP: open UIP(2048) array
UCP:open  UCP(1023, 1023 + 11, 6)  array
return:
board_model:
dso2902_128 = 27
Then is my program
Could somebody tell me what's wrong?
Attachment file is this dll.
http://us.f1.yahoofs.com/bc/500cf3ac/bc/dll/dll.ra​r?bfd1QSDBkHPgKI9c
Thanks.
由 Samyang 在 10-09-2005 07:14 AM 上編輯的訊息

I can't say I understand the documentation snippet you provides, and I also can't access the DLL, but here are a couple things...
1. I doubt very highly that a VB DLL is built with the C calling convension. I believe you should try the stdcall instead.
2. You have the winversion being passed by pointer, but the docs make it look like a regular integer. Is that correct?
3. Your board model is being passed by value, but it is listed as a return value in the docs. That would indicate an actual return value or a parameter passed by reference.
My guess is that one or more of the above is causing the stack to get corrupted or an invalid pointer to be accessed and that is generating the error. Is there anyway to see the document (pdf or webpage)?
Brian Tyler
http://detritus.blogs.com/lycangeek

Similar Messages

  • Hello apple I have the problem with my iPhone and my friends have this problem too. My iPhone have the problem about calling and answer the call. When I use my iPhone to call I can't hear anything from my iPhone but the person that I call can answer it bu

    Hello apple
    I have the problem with my iPhone and my friends have this problem too.
    My iPhone have the problem about calling and answer the call. When I use my iPhone to call I can't hear anything from my iPhone but the person that I call can answer it but when answer both of us can't hear anything and when I put my iPhone to my face the screen is still on and when I quit the phone application and open it again it will automatic call my recent call. And when my friends call me my iPhone didn't show anything even the missed call I'm only know that I missed the call from messages from carrier. Please check these problem I restored my iPhone for 4 time now in this week. I lived in Hatyai, Songkhla,Thailand and many people in my city have this problem.
    Who have this problem??

    Apple isnt here. this is a user based forum for technical questions. The solution is to restart, reset, and restore as new which is in the manual after that get it replaced for hard ware failure. if your within your one year warranty its replaced if it is out of the warranty then it is 199$

  • Does anybody can give me a simple example about the labview programme calling dll ?

      Does anybody can give me a simple example about the labview programme calling dll ?And the dll is also writed  by using labview .I just want to study  the process of the labview programme calling dll file.Thank you!

    Hi,
    Please click on "Find Examples" in the "Getting Started Window"
     A window named "NI Example Finder" will pop up.
     In this go to "Search" tab
    Type "DLLs"
    You will see a lot of examples. 
    If you're online, you'll see user examples too...

  • Problem in calling BRI from PRI

    Hi,
    I am having problem in calling BRI from PRI. I am getting below message while debugging. Also note that calling from BRI to PRI is successful.
    Mar 2 23:38:22: ISDN BR0/0 Q931: RX <- SETUP pd = 8 callref = 0x04
    Sending Complete
    Bearer Capability i = 0x8890
    Standard = CCITT
    Transer Capability = Unrestricted Digital
    Transfer Mode = Circuit
    Transfer Rate = 64 kbit/s
    Channel ID i = 0x89
    Progress Ind i = 0x8281 - Call not end-to-end ISDN, may have in-band info
    Calling Party Number i = 0x2183, '1726601501'
    Plan:ISDN, Type:National
    *Mar 2 23:38:22: ISDN BR0/0:1: Incoming call rejected, unbindable
    *Mar 2 23:38:22: ISDN BR0/0 **ERROR**: host_incoming_call: DIALER ERROR 0x1: b channel 0, call id 0x15E
    *Mar 2 23:38:22: ISDN BR0/0 Q931: TX -> RELEASE_COMP pd = 8 callref = 0x84
    Cause i = 0x8095 - Call rejected
    Pls help me.
    Anis
    9229109694

    Dear Dharmesh,
    Can u pls explain where to enable PPP Multilink.
    Dear p.bevilacqua ,
    I did what u told (configure "ppp chap username" under dialer interface), but the problem is same.
    Anis

  • Call dll from my dll

    I Have a dll file for my attendance machine
    and every thing are ok when I call dll from my exe application
    I want to create my own dll which my dll connect to attendance dll and get data from it and then insert data to tables
    a second question
    is there a method for calling my dll through windows batch file or I must create an exe application calling from it

    Let me explain a bit what a VFP DLL is for:
    You can only build one type of DLL, an OLE COM Server DLL. It'll mainly contain OLEPUBLIC class definitions, which are then usable in other programming languages. In any programming language capable to make use of OLE COM Server classes.
    If your project is named mydll.pjx and a prg or vcx contains a class myclass, the final DLL will have the OLE class "mydll.myclass" in it.
    This is overhead, if you use this in VFP. If you want to modularize your application, then create several EXE or build as APP. You can DO some.prg IN some.APP or you can create an object o = NEWOBJECT("myclass","myclasslib.vcx","myapp.app")
    to refer to a class inside a vcx compiled and build together with other project files into an app file.
    But any separation you do complicates the code use. A DLL is only needed, if some other programming language needs to use your VFP code. And that other programming language has to be able to instanciate classes.
    You don't need this, even if other programming languages would be involved. You can compile an EXE and that can be run. If needed with parameters. That's typically much simpler and could even be used by DOS batch files either using the DOS start command
    or directly your.EXE as man DOS commands also are merely EXE files.
    Bye, Olaf.
    Olaf Doschke - TMN Systemberatung GmbH http://www.tmn-systemberatung.de

  • I am facing the problem on downloading apps from Mac App Store, when I try to install the application from App store, I am getting an error message "Status_Code_Error" while click on "Login"

    I am facing the problem on downloading apps from Mac App Store, when I try to install the application from App store, I am getting an error message "Status_Code_Error" while click on "Login"

    Same problem here in Brazil.
    It seems to be a problem with logging in App Store in the Mac (Yosemite 10.10.2).
    When I tried the very same userid and password I was able to login in to use my iCloud account from the same computer and also from my iPhone.

  • I've got the problem about sharing the screen

    Hi, i bought iMac 21.5 (Late 2013), i'v upgraded it to the Mavericks. I've got the problem about sharing the display, i have thunderbolt to hdmi adapter and while i plug it to my TV, it doesn't work, it has no signal on TV, can someone help me ?? Thank Yo

    Hello Gukakila
    Start your troubleshooting with the article below. Try out the cable on a different tv or monitor to see if it shows up there. You may also need to reset the SMC and Parameter Ram.
    Apple computers: Troubleshooting issues with video on internal or external displays
    http://support.apple.com/kb/ht1573
    Regards,
    -Norm G.

  • I have the problem of calls getting failed.. Black Iphone 4S 16gb IOS 6.1.3. O2 Network.  Airtel India.     I have full bars of signal but cannot  make calls. Goes to "No service" then to "searching".     I constantly get "Call Failed" when making calls.

    I have the problem of calls getting failed.. Black Iphone 4S 16gb IOS 6.1.3. O2 Network - Airtel India.
    I have full bars of signal but cannot  make calls. Goes to "No service" then to "searching".
    I constantly get "Call Failed" when making calls.
    What could be done to solve the problem?

    Try settings/general/reset/reset network settings.  If that does not do it then contact your carrier

  • I've just bought an iPad and there's a line that runs the whole length of the screen about an inch from the outside edge of the screen. Have I bought a faulty product?

    I've just bought an iPad and there's a line that runs the whole length of the screen about an inch from the outside edge of the screen. Have I bought a faulty product?

    Try reset iPad
    Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears
    Note: Data will not be affected.

  • The problem about execution time of calling labview_dll in cvi . Urgent . Thanks

    Hello
    I read data from FPGA in labview with three host-vi . Then package  three host-vi to generate dll . When calling dll in CVI to read data,I  find the call time will reach more than 70~200ms. How caused this time ,is there any way reduce this time ?  
    Thank you

    Maybe the time was spent on the entering of dlls,every time I want to get data from FPGA, I would have to first enter the dll, then excute the dll, read data from FPGA, then send them from dll to CVI, that's a time consuming work。
    How can I reduce the time?
    If I can enter the dll only one time at programme beginning , then only read data each time . The time will be a little . How can I  do this ?

  • Problem about calling a DLL in LABVIEW

    Hi,
    I have a problem using Labview to call a DLL file, when I call the function " commandinterp() in labview, labview will always return error message"an error occured in external code, it might  have corrupted labview memory..."  attached is the DLL file and the labview code .so did the code i attached have any problem? or is it the problem of the DLL?  thanks
    Attachments:
    mydll.txt ‏22 KB
    callfunctionnode.vi ‏7 KB

    It looks to me that he might be missing an input parameter. 
    The line shows   int commandinterp (char cmd_line[]) {
    So is a char type an input argument for the function to be used as the variable name cmd_line?
    The attached VI does not show any input parameters doing into the DLL call.
    (I am not entirely sure.  Since the dll itself was not attached, I had to tell Labview to ignore the item when it looked for it.  Perhaps the way the VI opens up when the dll doesn't exist on my machine is different then if the dll did exist.)
    Message Edited by Ravens Fan on 07-20-2007 12:01 AM

  • Calling DLL from ABAP (BSP) in the background

    Hello,
    We are developing a picture upload webpage (BSP). When uploading the picture has to be checked for certain attributes. This can be done by a dll supplied by a supplier. The dll has as input the location of the image (on the server) and returns a returncode.
    How can I call the dll in het background with the input parameters and get the result? SAP is on a windows system. We are not allowed to use ActiveX, also we want to do the check in the background.
    With regards,
    Frank

    I am already further.
    I created an executable with Visual Studio and have import parameters. Now with SXPG_CALL_SYSTEM I am going to try to call the executable. I get the table EXEC_PROTOCOL back where the output of the executable is called.
    I know have to found out how to save the uploaded jpg to the server.

  • Call dll from plsql

    Hi
    I am trying to connect an external program(DLL) from pl/sql.
    for the practice i trying to call "GetComputerName" from kernel32.dll.
    i made the following step
    1. Creating a library .
    2. Creating a package .
    3. Set the listener.ora
    4. Set the tnsnames.ora.
    After solving the problame with the settings of the listener.ora
    I testing the function , it run with no error but return 'null' .
    I thing the problems is with the "parameter"
    I do not know of haw to send them .
    ----my pak-------------------------------
    CREATE OR REPLACE Package Body K32 As
    Function GetComputerNameK(lpBuffer out varchar2,nSize in out long )Return long Is
    External
    Library Sys.Kernel32 Name "GetComputerNameW"
    Language c
              WITH CONTEXT
    PARAMETERS (
    CONTEXT,
    --lpBuffer STRING,
              lpBuffer BY REFERENCE,
              nSize BY REFERENCE,
              --nSize INDICATOR short,*/
              RETURN INDICATOR--,
         /*     RETURN short */);
    End K32;

    Let me explain a bit what a VFP DLL is for:
    You can only build one type of DLL, an OLE COM Server DLL. It'll mainly contain OLEPUBLIC class definitions, which are then usable in other programming languages. In any programming language capable to make use of OLE COM Server classes.
    If your project is named mydll.pjx and a prg or vcx contains a class myclass, the final DLL will have the OLE class "mydll.myclass" in it.
    This is overhead, if you use this in VFP. If you want to modularize your application, then create several EXE or build as APP. You can DO some.prg IN some.APP or you can create an object o = NEWOBJECT("myclass","myclasslib.vcx","myapp.app")
    to refer to a class inside a vcx compiled and build together with other project files into an app file.
    But any separation you do complicates the code use. A DLL is only needed, if some other programming language needs to use your VFP code. And that other programming language has to be able to instanciate classes.
    You don't need this, even if other programming languages would be involved. You can compile an EXE and that can be run. If needed with parameters. That's typically much simpler and could even be used by DOS batch files either using the DOS start command
    or directly your.EXE as man DOS commands also are merely EXE files.
    Bye, Olaf.
    Olaf Doschke - TMN Systemberatung GmbH http://www.tmn-systemberatung.de

  • A problem about calling Labview vi in VB

    Hi all:
    I meeting a problem about data transfer and parallel operation between VB and Labview.
    Actually, I want develop a VB program, in which, the Labview VI can be called and corresponding parameters can be transferred to Labview. and then, I also can operate my system by VB program at same time. something like parallel operation (VB and Labview program).
     But the question is :
    1.   If I use "Call" method of ActiveX in VB,  and the LabVIEW subvi is not stopped (for example, a loop structure), I can not do  parallel operation on VB program. The error message is "other application is busy" which is attached below. The sample codes is also attached.
    2.   I tried to use other methods like "OpenFrontPanel" and "Run", but I am not sure how to transfer the parameter??
    3.  Then I tried to use "SetControlValue" to set the parameters, but there is a error " := expected", which is very strange, because the statement  I wrote is followed with the help documents [ eg: VI.SetControlValue ("string", value)], why it is still need a "=" ??
    Does anybody know something about it? Thanks a lot
    Message Edited by hanwei on 11-07-2008 03:18 PM
    Attachments:
    vb_labview_error_message_1.JPG ‏14 KB
    VB_to_LV.zip ‏10 KB

    I sure hope OP has solved it by now.
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • Problem about .xml file from PPro CS5 to FCP with RED and P2 file.

    I have create a Project in Premiere Pro CS5.
    I import the RED file R3D or P2  file XMF and editing my media.
    From menù File i select Export to "Final Cut Pro XML.."
    I open FCP and Import file XML but the media are not reconnect.
    "Warrnig: Non-critical error were found while processing an XML document.
    Would you like to see a log of these error now?"
    I want see the log file and...
    "<file>: Unable to attach specified media file to new clip."
    Where is the problem?

    Hi Dennis I re-format my MACPRO 8 Core and I installed Final Cut Studio Suite and CS5 Premium (no CS4)
    I install Blackmagick driver Decklink 7.6.3
    If I open the After Effects  and setting preview card blackmagic, I see the preview in external monitor.
    If I open the Premiere Pro and setting preview, I don't see the blackmagic card but the second monitor, DV....etc.
    In Premiere I see the blackmagic preset, but no the preview card.
    I have a second question.
    About Red file I want editing in Premiere Pro and i whant color correct in Apple Color from FCP.
    My problem is: my color program crash when I send file form FCP to Color (random mode)
    The sequence is:
    I import file red in PPro5 -- editing file --- export file xml.
    Close the PPro5.
    Open FCP import xml (no re-link media)
    Save de project in FCP
    Select sequence and send to Color.
    In this moment the Apple Color crash.
    I shutdown the MAC.
    I power-up the MAC
    Open FCP select the project and send the sequence to Color.
    Color see the project but no media.
    I re link the media and I editing in color my media.
    Why Apple Color program crash?
    Sorry for my English
    Many Thanks
    Distinti saluti
    Gianluca Cordioli
    Alchemy Studio'S di Gianluca Cordioli
    Via Pacinotti 24/B
    37135 VERONA
    cell.:+39 3385880683
    [email protected]
    www.alchemystudios.it

Maybe you are looking for

  • Why won't firefox crashes when I try to download the latest version of adobe flash player ?

    When I tried to download the latest version of Adobe Flash Player (10.1.85.3), nothing happened. Then something popped up.... http://i489.photobucket.com/albums/rr260/TaDaO0o/asdgahgfa.jpg?t=1287493272 (click it) when I clicked the "install missing p

  • Convert Internal tabel to pdf and send email

    Hi all, I have report in internal table and I need to email this report as an pdf attchment. It need not to be pdf file, can be any format but printer friendly. I am using function module SO_NEW_DOCUMENT_ATT_SEND_API1 but not able to send report as p

  • I dropped my Iphone 5s in the hot tub!

    I just got my new iphone 5s at christmas and my boyfriend dropped it in the hottub when reaching for his towel - it was only in the water  for about 3 seconds before i immidietly got it out and dried it, it was still on and the speakers to play music

  • How to hide hidden files in Java Browser

    My application has a browser. I use the following method from FileSystemView public File[] getFiles(File dir, boolean useFileHiding) with false as the second argument so that the browser doesn't display hidden files. It doesn't work completely. I fou

  • Creating responsibilities in iProcurement

    Hi, I have no experience in iProcurement so I need someone familiar with setting iProcurement. I understand that Purchasing is a pre-requisite of iProcurement. In other words, iProcurement uses purchasing. Does this mean a separate or additional Purc