Problems with external dll

I everybody,
I'm trying to control an instrument (Bayspec wavecapture, FBG interrogator) by means of Labwindows 9.0. I have the SDK provided from Bayspec, which consists of a library .lib file, a .dll file and an header .h file. I added the .lib and .h files to the project, put the .dll file in the same project directory, and write a minimal code to try to open and close the device. After compilation I received a lot of errors, some of that I solved "empirically": problems with the types WORD, BYTE, LPCSTR, which I solved by adding into the header file:
#define WORD int
#define BYTE char
#define LPCSTR const char (but probably should be const char*)
function missing prototypes error, which I solved by specifing into the function definition the void type, i.e.:
DLL_PORT_TYPE    BOOL  DLL_PORT_FUNCTION_TYPE DLL_Open_Device(void);
instead of
DLL_PORT_TYPE    BOOL  DLL_PORT_FUNCTION_TYPE DLL_Open_Device();
After that I was able to compile without any error or warning, but when I build everything I have the following project link error:
Undefined symbol '_DLL_Open_Device@0' referenced in "bayspec_2.c".
I suppose the dll was realized with/for visual c++ 6.
The first lines of the .h file are the following:
#ifndef _Sense2020DLL_
#define _Sense2020DLL_
//difine the export type
#define DLL_PORT_TYPE __declspec(dllexport)
#define DLL_PORT_FUNCTION_TYPE __stdcall    //this can be used in visual basic program
I feel that in that lines could be located the problem, but I'm a newbie programmer.
Thanks a lot if you can help me and sorry if the solution was into the official documentation because I was unable to found it.
Cosimo

Hi Badal,
I would suggest to you to open a new thread on the NI Forum. This would allow you to submit your topic to a very large community instead of continuing an old post with very low visibility. By the way a took a look on the instrument driver network and I din't get any feedback about the istrument you are looking for. So it might be useful for you to ask to the Bayspec if they provide for some LabWindows/CVI(?) instrument driver.
Good luck for your search and have a great day.
Matteo C. - Test Engineer

Similar Messages

  • Controling a user interface with extern DLL

    Hi,
    I am currently developing an application that is based on a graphical interface. I divide my code into multiple DLLs. By going this route, I met several problems. I want to know some facts:
    1 - from the DLL can I  assign values ​​to textbox,  read listbox of the GUI:GetCtrlVal (panelHandle, PANEL_TEXTBOX, val); (the GUI is integrating in the project who call the DLL)
    2 - I use global variables "extern int" in my files. h and my functions. How do I change this variable declaration when I migrate to the DLL.
    If you have any exemple describing how can i control a GUI with extern DLL.
    Thanks

    Hey Fishingman,
    It looks like this post is very similar to your other post on Application Architecture.  If this is the case, let's continue this discussion on this thread so that it is easier to follow for anyone else who may be keeping up with this. 
    To expand on my original response a little though - if you are just looking to be able to modify the user interface in a dll then take a look at this link.  It explains how to set up dll function calls to modify a user interface.  Again, I wouldn't suggest building your entire GUI through different dlls but it is definitely possible to modify it within a dll.
    Regards,
    Trey C.

  • Problems with external context mapping

    Hi ,
    I am having the following problems with external context mapping from one WD component to another.
    Problem description:
    In the <i>Component Interfaces</i> I have defined a WD interface "InfA".
    In the <i>interface controller</i> of this compoenent,I have ContextA and attributeA(cardinality 1..1).The contextA is marked as an "Input Element".
    Now my webdynpro componentB adds InfA as used component.In componentB I decalre a contextB with attributeB and map it to contextA to set up the external context mapping.
    Now I expect that if any webdynpro component implements this WD interface InfA ,he has access to contextA with the data getting filled from contextB.
    After i have created the component for the used component I try to fill values in the source node contextB thru this code:
    wdContext.currentContextB.setB(value);
    But in the runtime I keep getting error nullPointerException for nodeContextB,suggesting that the mapping has not been completed.
    Can anyone suggest due to what the error can come ,and, if its a webdynpro bug ,is there a workaround??
    Thanks in advance for your help.
    Best regards
    Sourav

    HI,
    Valery : I personally checked  by doing the example, if the names of value attribute are different in the child's interface and parents component controller then it throws the exception.
    Sourav: NullPointer Exception is thrown when something is not properly initialised, if in the main component the cardinality of mapped origin is 1.1 then you need to access it element directly like:
    wdContext.currentParentNodeElement().setFname("Abhijeet");
        wdContext.currentParentNodeElement().setLname("M");
    i will suggest just check out if you are declaring some element of value node and without initialising taking its use or what?
    if this doesnt solve your problem, please post the expanded exception.
    hope it helps
    let me know if you face nay problem
    regards

  • Problem with external punchout in SRM Server 713

    Hello,
    We upgrade from SRM_SERVER 701 SP 04 to SRM_SERVER 713 SP 02, now we have a problem with external catalog, we did not change anything in standard call structure, however now when the user access to external catalog, select a product and "checkout", SRM returns to shopping cart screen without products and no message are register in log in transaction code SLG1.
    Our parameters in structure are:
    10                     https://xxxxxxxxx                          URL
    20 VIEW_ID          NAME                            Fixed value
    30 VIEW_PASSWD     XXXXXX               Fixed value
    40 USER_ID          SY-UNAME                   SAP field
    50 BRANDING      search5                     Fixed value
    60 LANGUAGE      ES                           Fixed value
    70 COUNTRY      MX                             Fixed value
    75 EASYORDER 1                          Fixed value
    80 target _top                                  Fixed value
    85 ~caller      CTLG                              Fixed value
    90 OCI_VERSION     4.0                     Fixed value
    91 FILTER                                      Fixed value
    92 OPI_VERSION 1.0                     Fixed value
    100 HOOK_URL                             return URL
    110 returntarget      _top                       Fixed value
    we made some test with parameter BYPASS_INB_HANDLER, set as 'X' but this not solve our issue.
    We have an implementation in badi BBP_CATALOG_TRANSFER to map product category, even if I set an external breakpoint in this implementation, system does not pass through it, also we test with this implementation inactive and behavior is the same, nothing transfer to shopping cart
    Does anyone know what's missing?
    Thanks in advance.
    Best regards,
    José Luis D.

    Hello Jason,
    Thank you for your answer, but as I told, If I set an external breakpoint it does not stop for debugging, so I can't see table as you recomended. This process (debugging) is familiar to me, in last version I can do it.
    Any suggestion?
    Thanks in advance, best regards
    José Luis D

  • I have a problem with external editing preferences where Photoshop will not launch when I choose "Edit In"...

    Hi. I have a problem with external editing preferences. If I add Photoshop as an external editor, it won't launch when selected, if I add it as an additional external editor it will. Why? How can I fix this as I need to use Photoshop and another program as the additional external editor.
    I use a Mac running OS X (10.8.5) and PS CS4 and LR 5.7. Any ideas on a fix? Thanks in advance.

    I don't know why Photoshop won't start. However, it's possible to create external editor presets using the additional external editor tools. There are instructions on how to do this in the Lightroom help. You could assign Photoshop and create one preset, and then assign another program and create another preset.
    I don't know if deleting your preferences would fix the problem or not. It can sometimes fix other problems.
    Preference and other file locations in Lightroom 5

  • XML fetch failed -- possibly a problem with AvXml.dll or its permissions

    When attempting to access the Status Monitor I receive the following error message:
    XML fetch failed -- possibly a problem with AvXml.dll or its permissions.
    Check that the "AvXml" virtual directory settings in IIS have proper permissions and allow execute access.
    I've tried all combos of security on the IIS directory. What am I missing?

    Hi Lindborg
    I have that problem with version 4.0 (X), it is due?, As I fix?.
    Unity I have a failover cluster, I have several problems, sometimes not let me delete mailbox, I can retrieve messages.
    thanks for any help you can provide.
    Regard

  • Problem with External 2.1 digital speakers

    Anybody have any problems with external digital speakers connected to the SPDIF connection?  I have a 1215-600XT, and I tried connecting my old DELL Boston Acoustic 2.1 speakers.  They worked, but any time a "sound" played, a loud pop would follow the end of the sound track.  If its multiuple sounds (i.e. an application that is making numerous alert sounds) I get multiple pops.  It even happens at the endf of music tracks.  It was so annoying, I stopped using the speakers.  before I invest in another set of speakers, want to know I am not wasting my time.
    Also, anyway of getting the soundcard to support digital 2.1 or other sound?  The set-up screen only shows stereo for external speakers and no way of adding more.
    Sincerely
    Scott

    pmoney,
    If you need a RMA, you will need to contact Customer Support either via email or phone. Also, it may be a fault with the sub and not just the cable alone, anyway contact Customer Support and they will be able to assist further.
    Jason

  • Error code 36 (problems with external hard drive)

    I have just upgraded to Yosemite and am now having major problem with my external western digital hard drive.  I cannot create new folders and when I hit command N I get error code 36.  I also cannot move files from one folder to the next.  When I try to move them I get the error message: "The operation cannot be completed because a file of that name already exists" and that simply isn't true.  None of the files' names exist in the other folder.

    Ok, It appears to be the fault of Western Digital.  I ejected the hard drive and then plugged it back in and it said that the drive was broken but I could still read the files and it told me to save the files on another disk and reformat.  So it was just a coincidence that I upgraded to Yosemite at the same time that my external hard drive broke.

  • Problem with solver DLL load and Excel 2010

    Since upgrading from Office 2007 to Office 2010 we've started to experience a problem with the solver addin when our own analytics addins is also loaded. I have found a solution, but I think it may highlight a problem with the latest version of the solver
    addin for Excel 2010.
    Firstly, to describe the problem - the solver addin seems to load normally when Excel 2010 starts up, however when a "Solve" is performed we are seeing a "File not found: Solver32.dll" error at the final "Keep Solver Solution" stage. This only happens our
    own analytics addin is loaded. We've been careful to make sure that our own addin does not change the working directory and also that it has been built against the correct Excel 2010 SDK libraries. We do not see this error with any other versions of Excel
    running on the same PC or any other environment.
    After some searching we found other people were having similar problems and after a bit more probing I found a solution that works - but that I'm not very happy with.
    If I copy the Solver32.dll from:
      C:\Program Files (x86)\Microsoft Office\Office14\Library\SOLVER
        (where it was installed)
    into :
      C:\Windows\SysWOW64 
        (where Windows 7 keeps its 32 bit system DLLs)
    then the problem goes away.
    This seems to indicate that somehow Office 2010 has a problem that causes it to search in the wrong folder for the Solver32.dll when another addin is loaded in between the original Solver32.XLAM at start up and the use of the Solver in the sheet (which eventually
    requires this DLL to be loaded). Oddly, this only happens after a solution is found and "Keep Solver Solution" is selected - and I'm not sure why it's not looking for Solver32.dll any earlier.
    This is not a problem with any earlier versions of Excel and I suspect is a bug in the Office14/LIBRARY/SOLVER implementation. Is there any way to get this followed up?
    Thanks,
    Andy

    I'm facing the same issue. With an Excel VSTO add-in we're building. When the add-in is enabled the assembly solver32.dll can't be found. With our add-in disabled the DLL is resolved as (Sysinternals Process Monitor trace):
    EXCEL.EXE CreateFile
    C:\Program Files (x86)\Microsoft Office\Office14\Solver32.dll
    EXCEL.EXE CreateFile
    C:\Windows\SysWOW64\Solver32.dll
    EXCEL.EXE CreateFile
    C:\Windows\system\Solver32.dll
    EXCEL.EXE CreateFile
    C:\Windows\Solver32.dll
    EXCEL.EXE CreateFile
    C:\Program Files (x86)\Microsoft Office\Office14\Library\SOLVER\SOLVER32.DLL
    and with our add-in enabled the following locations are tried, but solver32.dll won't be found:
    excel.exe CreateFile
    C:\Program Files (x86)\Microsoft Office\Office14\Solver32.dll
    excel.exe CreateFile
    C:\ArcGIS\______path to our add-in install location_____________\Solver32.dll
    excel.exe CreateFile
    C:\Windows\SysWOW64\Solver32.dll
    excel.exe CreateFile
    C:\Windows\system\Solver32.dll
    excel.exe CreateFile
    C:\Windows\Solver32.dll
    excel.exe CreateFile
    C:\Program Files\Common Files\Microsoft Shared\Windows Live\Solver32.dll
    excel.exe CreateFile
    C:\Program Files (x86)\Common Files\microsoft shared\Windows Live\Solver32.dll
    excel.exe CreateFile
    C:\Windows\SysWOW64\Solver32.dll
    excel.exe CreateFile
    C:\Windows\Solver32.dll
    excel.exe CreateFile
    C:\Windows\SysWOW64\wbem\Solver32.dll
    etc...

  • Problems with External Monitor In XP

    Ok, I've got a huge problem with XP on Bootcamp.
    I've recently got a Samsung TV which I can use as an external monitor. This works absolutely fine when I'm using OSX, recognizes the TV and can use it as a second screen.
    When I try to use the same monitor in Windows under Bootcamp, it works as an extension of my desktop, but not able to mirror my desktop. I want to do this so I can play my games on a large screen instead of a small one.
    I've trawled the forums on this kind of problem and found a few answers. However, many of them talk about the ATI graphics drivers. I've downloaded the appropriate drivers and the control center from the website, but to no avail.
    People have also said about going into display properties: settings: advanced and selecting the ATI tab. I have no ATI tab.
    Also with the Catalyst Control Center, when I try to run it, it tells me that I dont have permission to change the settings and to contact my administrator, even though I am the administrator.
    Does anyone have any ideas how I can solve this?
    By the way. I'm connecting the external monitor via the DVI on my Macbook Pro to the HDMI connection on the TV.
    Many thanks
    Chris

    My logic tells me, if you are using a new MBP the way it's designed is that even if you are plugged in at times it will go in battery mode for a few minutes in order to prevent battery damage, than it will recharge. This happens in the background without notice. However, within this couple of minutes you might notice your display screen to sleep because it is setup to sleep in 1 minute or less in the preference under battery mode. So within that window you might have your screen go blank since the entire process takes a lot more than a minute. I hope this helps.

  • Inkscape/X11 Problems with external Monitor

    Hello,
    I´m using Inkscape to create vector art on my MacBook Pro.
    Since my update to Mavericks I´m having problems with X11. I have the version 2.7.5 of XQuartz installed currently.
    After some troubles, Inkscape opens up just fine.
    But I cannot drag Inkscape over to my external monitor, which is based to the right of my notebook.
    Inkscape simply disappears.
    I´m quite the DAU ;-) with Computers and Software, so it would be nice, if you can help me.
    Thanks a lot in advance!
    Best,
    Sonja

    How about trying a native Mac app like iDraw http://www.indeeo.com/idraw/

  • Configuration problem with external Western Digital My Book 2 TB drive

    How do I fix a configuration problem with my external Western Digital My Book 2 TB drive which used to both read and write. Something has happened so that the drive is now read only? There is 600 GB of data on the drive that I cannot lose, thus am very concerned about messing around with formatting the drive which is raid 1 and filled with data.

    may not like to hear, but I'd skip on MyBook cases, nice looking as they are.
    Get a 2nd drive case to recover to.
    http://www.macsales.com/firewire
    may need to play with the demo Data Rescue 3 from Prosoft
    Backup/recover before repair is usually in order
    never have one backup set. THREE sets of your data, minimum.
    3rd party disk maintenance and repair should be a must and given rather than rely solely on Apple Disk Utility.
    Data and system maintenance and recovery plan - should be like practice for sports, arts, military with practice and making sure you will know how and the tools you need - ahead of time
    Resetting USB/FW ports, try another if one won't work. When 10.6 came out there was a lot of grinding teeth with external drives not working or mounting.

  • Permissions problem with external HD

    Prior to updating to 10.4.3, I was able to write to any external HD to transfer large files betweek my iBook and a windows PC. After upgrading, I am no long able to use 3 out of the 4 external HDs that I used to be able to. I always get an error message stating a problem with permissions. I get info on the drive and it says read only and will not allow me to change to read and write. I plug the same drive into my Windows PC and change the permissions to read and write, and get the same message when I go back to my iBook, I get the same read only problem.
    Any ideas?

    Eric,
    I, too, apologize for the delay in posting. I have been away from the discussions for a rather extended period.
    Well, any NTFS formatted volume will only be accessible to you as read only. No, this is not something new, but has always been the case. To make matters worse, I have heard that Windows no longer provides any way to create a FAT-32 volume; one must use OS X to format the volume or use a third-party application in Windows. This information may be incorrect, but I wouldn't be surprised if it is true (we're talking about Microsoft, here).
    If you can copy any data on this drive to some other location, then use Disk Utility to format it as FAT-32, the data can then be copied back and it can be used to transport the data cross-platform, with read/write access on both ends. Is this a possibility for you?
    Scott

  • Problem with external Lacie disk

    Hi!
    I have some serious problems with my Lacie 250GB Porche disk.
    The disk shows up on my desktop but it does not allow me to read and write to it. Apple's disk tool does not manage to fix the disk. I have tried running Diskwarrior, but it gives me an error saying that the disk could not be rebuilt due to a disk malfunction. I am now using Techtool Pro 4.0.4. I have not used Techtool before, only DW. Im running a process called "Recover Files Using Directory Data"...is this the one I should be using? The manual was'nt all that clear about this...Please please help me as I have 44GB of client projects on this disk.
    Thanks in advance,
    Tom - Norway

    Hi Richard!
    Thanks for your response!
    I have now bought Data Rescue II from ProSoft:
    http://www.prosofteng.com/products/datarescueinfo.php
    It seems that the problem is my external harddrive and not the machine. I get read errors when I try to open projects in Photoshop / Indesign etc.
    There are of course companies that can retrieve my data, but thats like my last solution cause they cost loads of money
    Hoping that Data Rescue can clone my data to this new hd. The process seems to be taking days... 165.2 hours left and it has been working for two days now
    Tom - Norway

  • RMDATIND uploading problem with external material numbers

    Hi,
    I'm using LSMW direct input program RMDATIND (Object:0020 Method:0000) for creating materials.
    I have a problem with uploading materials which have two types of external material numbers.
    For example one material number is 1111-333 and then we have 10000000. The problem is that direct input won't create materials with number 1111-333 though it's possible to create them manually. It works fine with material 10000000.
    Does anyone know how fix this issue?

    Sweth123 wrote:
    Hi Guys:
    >
    > Clicked check box External number assignment without Check., When I am creating a material (mm01) with only numeric characters it is giving me an eror message saying for this material type Numeric characters are not allowed.
    >
    > i should be able to create a material with external number range and it can be numeric or alpha numeric?
    >
    >
    > Thanks
    > Sweth
    Hi,
    go to the path Define Number Ranges for Each Material Type click on maintain groups & select the materila type & select the mouse on material type & click on maintain after that maintain the number ranges.
    for ex: from 300000000 to 399999999 internal no.range
                from A                to ZZZZZZ     external no.range
    from this u can able to create a material with external number range and it can be numeric or alpha numeric
    Regards
    Raj.

Maybe you are looking for

  • IMac extremely slow! Run EtreCheck. SOS with diagnosis! Thx

    Hello, I will need your expertise, I have an iMAC 21.5 inch, Mid 2010. (Processor  3.06 GHz Intel Core i3 - Memory  4 GB 1333 MHz DDR3 - Graphics  ATI Radeon HD 4670 256 MB - Software  Mac OS X Lion 10.7.5 (11G63)). Lately, I have been experiencing a

  • ITune Music Store song wont go back to my mac

    I updated my iPhone and iTunes to the latest versions this morning. I was looking and saw an album i wanted so i bought it. I plug my iPhone into my computer (the only computer i EVER plug it into. The the music i bought from my phone won't sync to m

  • Printing customize cash and bank voucher

    Hi sap gurus, Currently when I am giving print for fbcj and f-58 sap standadard format for cash and bank is coming in german language. I want to change this format with english language and alteration of some fileds. please suggest me the tables wher

  • EWA Reports

    Hi All, I use SAP 4.7 enterprise x200 i have configured the EWA reports through my solution manger (kernel 700) in the EWA report we encounter certain issues. in System Config -> S/W Config -> SAP Kernel release (3.2.2) i have kept all my systems in

  • My macbook pro 2006 fan goes high and then makes a fast beep and shuts down it been happening since i updated

    my macbook pro 2006 fan goes high and then makes a fast beep and shuts down it been happening since i updated it should i update to lion?