Debugging a c++ dll from visual studio 2010

Hi everybody
I'm extending and optimizing a c++ dll that is called in a labview file. I have managed to get it update and running but it's not doing what is supposed to .
I need to debug it by setting break point in the c++ code because the labview part is just memory and display. How I can do that? Any help will be really appreciated
I'm using labview 2012 and VS210 express.
Tanks a lot
Amos
i attached the main file of the dll and the labview interface.
Solved!
Go to Solution.
Attachments:
Fistola mono array.llb ‏1024 KB
Dll lab.cpp ‏21 KB

I have deleted the main, and as far as i can see ( so means see that everything says debug, i'm in local system should i switch to remote?) the configurations is fine. the strange things is that he keep asking me to compile the file when i start the debug even if i just do it. i'm sure i'm calling the right dll and i have set break point everywhere but still nothing. i tried to run labview step to step but it isn't helping. in labview the dll node debug proprety is set to maximum.
i send you the adjurned dll
Attachments:
Dll lab.cpp ‏12 KB
dllmain.cpp ‏1 KB

Similar Messages

  • Problem to add .MDF file from Visual Studio 2010 application

    Hi All
    I would like to add to project WPF applicaction in VS 2010 .MDF file.
    The problem is that when I am trying to add new service-based database (.mdf) I am getting the error "Connection to SQL Server database files (.mdf) require SQL Server 2005 Express or SQL Server 2008 Express to be installed and running on the local computer.
    The SQL Server 2008 is already been installed. How to fix the problem?
    Thanks.

    That is the sql express service.
    It means it's already started and your error message is about something else.
    Go get this:
    http://www.microsoft.com/en-gb/download/details.aspx?id=22973
    In that is sql server express management studio.
    Use that to create your database as in my previous post.
    This way you can see the thing created, query it and tell it's not going to get copied around by visual studio.  It's way too easy to get messed up by visual studio if you create a database in your project.
    Do not create your database in visual studio.
    Connect to the database from your visual studio project.
    Don't create it from there.
    How did you set your sql express up?
    Is it mixed mode authentication or what?
    If you don't know then make it mixed
    http://msdn.microsoft.com/en-GB/library/ms188670.aspx
    My preference is to use entity framework to access the database.
    If you set up an entity data model in your solution that will sort your connection string.
    Please don't forget to upvote posts which you like and mark those which answer your question.
    My latest Technet article - Dynamic XAML

  • Error in deploying from Visual Studio 2010.

    Error occurred in deployment step 'Activate Features':  Field type SoftContent is not installed properly.
    Go to the list settings page to delete this field.
    Indul Hassan

    Hi,
    What if you delete this issued field and then deploy again?
    It would be better if more details about how you develop this solution can be provided, others will be easier to find the root cause of this issue for you.
    Two links about the similar issue for your reference:
    http://sharepoint.stackexchange.com/questions/42311/how-to-remove-a-field-from-the-list-settings-page
    http://www.fewlines4biju.com/2011/04/field-type-field-name-is-not-installed.html
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • Problem making a C++ DLL in Visual Studio 2010 work in LabView

    Hello, I've noticed that I cannot do ' extern "C" ' on the methods Open(), Close(), StartStreaming(), and StopStreaming() in the following Class:
    class ApplicationIo : public FiclIo
        friend class X5ScriptPlayer;
        friend class ApplicationSettings;
        typedef std::vector<__int64>    IntArray;
    public:
        //  Member Functions
        ApplicationIo(IUserInterface * ui);
        ~ApplicationIo();
        ModuleIo &  ModIo()
            {  return Module;  }
        unsigned int BoardCount();
        void Open();
        bool IsOpen()
            {  return Opened;  }
        void Close();
        void StartStreaming();
        void StopStreaming();
    How can I export the methods of the Class mentioned above? I've read the manuals and seen examples about how to get DLLs working in LabView, however none of them ever talk about when there is an actual Class involved and exporting the methods of said Class.
    Any help would be greatly appreciated.

    Okay, well at least that clears up one piece of the puzzle.
    Here is the wrapper I need:
    Here's the .h of the wrapper:
    #ifndef _APPIO_DLL_WRAPPER_H_
    #define _APPIO_DLL_WRAPPER_H_
    #define DLLEXPORT __declspec (dllexport)
    #ifdef __cplusplus
    extern "C" {
    #endif
    typedef struct ApplicationIo ApplicationIo; /* make the class opaque to the wrapper */
    DLLEXPORT ApplicationIo* Construct_AppIo(IUserInterface* ui);
    DLLEXPORT void Destruct_AppIo(ApplicationIo* LV_Ref);
    DLLEXPORT void Open(ApplicationIo* LV_Ref);
    DLLEXPORT void Close(ApplicationIo* LV_Ref);
    DLLEXPORT void StartStreaming(ApplicationIo* LV_Ref);
    DLLEXPORT void StopStreaming(ApplicationIo* LV_Ref);
    #ifdef __cplusplus
    #endif
    #endif /* _APPIO_DLL_WRAPPER_H_ */
    Here's the .cpp of the wrapper:
    #include "AppIoDll.h"
    #include "ApplicationIo.h"
    ApplicationIo* Construct_AppIo(IUserInterface* ui)
    return new ApplicationIo(ui);
    void Destruct_AppIo(ApplicationIo* LV_Ref)
    LV_Ref->Close();
    delete LV_Ref;
    void Open(ApplicationIo* LV_Ref)
    LV_Ref->Open();
    void Close(ApplicationIo* LV_Ref)
    LV_Ref->Close();
    void StartStreaming(ApplicationIo* LV_Ref)
    LV_Ref->StartStreaming();
    void StopStreaming(ApplicationIo* LV_Ref)
    LV_Ref->StopStreaming();
    The one problem I have with this is how am I supposed to get the pointer to the IUserInterface class to the C Wrapper constructor?

  • "Error occurred in deployment step 'Retract Solution': The solution does not have a WSP file associated with it." occurs while deploying from Visual studio

    HI,
    I get this error "Error occurred in deployment step 'Retract Solution': The solution does not have a WSP file associated with it. " when deploying my project from visual studio 2010 to
    SharePoint 2010 site. I tried restarting IIS, but it didn't help. This application used to work fine until the server crashed during the deployment process. All the other applications on the same server works fine also. Any ideas how to fix this issue? 
    Thanks in advance,
    AM

    Hi
    AM ,
    Thank you for your posting!
    According to your error message, it says your solution does not have a WSP file associated with it. Take a look at the file system.  After you Right Click -> Deploy Solution on the VS Solution, there
    should be a .wsp file at <Solution Directory>\bin\<debug|release>.
    Also the error can be occurring when the developer try to deploy solutions over pre-existing solutions  with material changed  in the solution.  Go to your Central Administration Site and then
    Operations and then Solution Management.  Make sure that there not already a solution with the same name deployed or installed there.  If there is, remove it and try deploying again.
    And you could look in logs and find if there is a below error in ULS log (C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS).
    Thank you for your understanding and support.
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Calling CVI DLL Function from Visual Studio

    HI all ,
    Iv'e created a DLL using CVI and i'm tring to call one of it's function from visual studio 6.0
    I'm getting a general error , is there a specific prototype that i need to set my functions in ordrer to call them ?!  
    Kobi Kalif
    Software Engineer

    You will need to distribute the CVI RTE along with your DLL, since anything you write in CVI is going to use the RTE.
    As far as calling the DLL functions, you can use the CVI defined macros
    <return type> DLLEXPORT DLLSTDCALL <function name> (<param1 type> <param1> ...) {
    to declare your functions in the DLL for access by a VS application.
    for example
    int DLLEXPORT DLLSTDCALL myfunction (int funparam1, double func param2) {
    There are options for identifying which functions to export from your DLL, I use "functions marked for export" but there are other choices available.  I also include a type library so when you type the name of a DLL funciton in VS6 you see a balloon popup with the function signature.  This is a check box in the target settings.  You have to create a ".fp" file (function panel file) to collect the function info for the library.
    From VB6 you can access the DLL a couple of ways, but I usually add the DLL as a reference.

  • Creating Proxy Classes in Visual Studio 2010 from SAP ES

    I am having problems with Microsoft's Visual Studio 2010 creaating a proxy class when importing a WSDL file from SAP's Enterprise Services.  
    When attempting to define the proxy class by pointing it to the endpoint WSDL, the import seems to work OK but the proxy class is not created.    I don't have this problem with other WSDL's from non-SAP sources.   There seems to be something "special" about the ES endpoint WSDL.
    Is anyone else having this problem?

    not always the 18th. For me it is the 14th. I think it is because I have  some buttons hidden already. But seems like it is always the last one.
      // The SAP Crystal Report logo is the last item on the 4th control.
    System.Windows.Forms.ToolStrip oToolStrip = (System.Windows.Forms.ToolStrip)crystalReportViewer.Controls[4];
                    oToolStrip.Items[oToolStrip.Items.Count-1].Visible = false;

  • Choose from List Condition - SAP 9.0 visual studio 2010

    Hi,
    How to set condition for CFL. I am using SAP 9.0 Patch Level 12, Visual Studio 2010. I could find the event, ChooseFromListBefore event. I tried coding as below,but its not working:Got error like "Public member 'GetConditions' on type 'SBOItemEventArgClass' not found."
    Private Sub ChooseFromListBefore(sboObject As System.Object, pVal As SAPbouiCOM.SBOItemEventArg, ByRef BubbleEvent As System.Boolean) Handles EditText0.ChooseFromListBefore.
       Dim pCFL As SAPbouiCOM.ISBOChooseFromListEventArg = pVal
                     Dim oCond As SAPbouiCOM.Condition
                    Dim oconds As SAPbouiCOM.Conditions
                    ' Adding Conditions to CFL1
                   oconds = pCFL.GetConditions() --Getting error in this line.
                    oCond = oconds.Add()
                   oCond.Alias = AliasName
                    oCond.Operation = Operation
                    oCond.CondVal = CondVal
                     pCFL.SetConditions(oconds)
    end sub
    Any help is appreciated.
    Thanks in advance.
    Parvatha Solai.N

    Hi Parvatha,
    The conditions should get from the CFL object it self, not the CFL Event object.
    Dim oCFL = oForm.ChooseFromLists.Item("cflUID");
    oConds = oCFL.GetConditions();
    Regards
    Edy

  • Is it possible to use Firefox to debug javascript files when running a web application using visual studio 2010

    I am trying to debug a ASP.Net web application within visual studio 2010 using Firefox. I am able to set breakpoints in my C# code and they work but if I set a breakpoint in a javascript file then these do not work when using Firefox. Is there any way to do this?

    Of course you can. I use the VS2010 built-in Javascript debug tool a lot, not only for IE, but also for firefox.
    I encountered the "break point not working" issue several times, according to my experience, following is the solution to this problem, give them a shot:
    1. There maybe errors in your javascript code, have a close look at your code, try to find the errors or eliminate this possibility.
    2. Sometimes you have to refresh the page once after the page is loaded the first time. This solves the problem most of the time.

  • Question about creating association between Sharepoint BDC entities using Visual Studio 2010

    I am following this tutorial:
    http://blogs.msdn.com/b/vssharepointtoolsblog/archive/2010/08/02/walkthrough-of-creating-association-between-sharepoint-bdc-entities-using-visual-studio-2010.aspx
    I am getting the following error:
     There is an error in the TypeDescriptors of Parameters on Method with Name 'CustomerToOrder' on Entity (External Content Type) with Name 'Customer' in Namespace 'BdcAssociationSample.BdcModel1'. The TypeDescriptors incompletely define where the Foreign
    Identifiers of Entity 'Order' in Namespace 'BdcAssociationSample.BdcModel1' are to be read. That Entity expects exactly '1' Identifiers, but only '0' TypeDescriptors with the correct Association were found from which to read them.
    I have viewed the following:
    http://lightningtools.com/business_connectivity_services/the-typedescriptors-incompletely-define-where-the-identifiers-of-entity-x-are-to-be-readbcs-error/
    after reading that article, I am still not sure what setting I am missing.  Does anyone have the full working source code from the msdn article linked above?

    Hi,
    According to your post, my understanding is that you got the symbols not loaded error.
    First try rebuilding your project by right mouse click the project > Rebuild If that doesn't work, try a clean of the project (right mouse click on the project > clean)
    If that didn't work check this:
    Right mouse click your project
    select [Properties]
    select the [Build] tab
    make sure [Define DEBUG constant] and [Define TRACE constant] are checked
    Click the [Advanced] button at the bottom of the Build tabpage
    Make sure that [Debug Info:] is set to [full]
    Click [OK] and rebuild the project ;
    Hope that works for you! (step 6 generates the .pdb files, these are the debugging symbols)
    What’s more, you can clean & re-compile the code, then install the respective dlls one more time to GAC (just remove them before adding to GAC again), do an IISReset to check whether it works.
    More reference:
    http://stackoverflow.com/questions/2155930/fixing-the-breakpoint-will-not-currently-be-hit-no-symbols-have-been-loaded-fo
    http://stackoverflow.com/questions/2301216/the-breakpoint-will-not-currently-be-hit-no-symbols-have-been-loaded-for-this-d
    http://geekswithblogs.net/dbutscher/archive/2007/06/26/113472.aspx
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • Visual Studio 2010 Upgrade - Unable to view some reports

    I converted an application that had been developed in VS2005 so that it would run in VS2010.  The application contains several Crystal Reports.  Now when I debug the application I can only view some of the reports.  With the others I get an exception with the message "Unable to find the report in the manifest resources.  Please build the project and try again." 
    The ones that work and the ones that don't all have the Build Action set to Embedded Resource.  I have tried removing a report from the project and then adding it back, but that made no difference.  A new report displayed fine. 
    Does anyone have any ideas about what could cause some of the reports to throw this exception?

    OK, here is the link to the thread I am replying to Visual Studio 2010 Upgrade - Unable to view some reports
    And here is what I posted to start the thread that I am replying to:
    I converted an application that had been developed in VS2005 so that it would run in VS2010. The application contains several Crystal Reports. Now when I debug the application I can only view some of the reports. With the others I get an exception with the message "Unable to find the report in the manifest resources. Please build the project and try again."
    The ones that work and the ones that don't all have the Build Action set to Embedded Resource. I have tried removing a report from the project and then adding it back, but that made no difference. A new report displayed fine.
    Does anyone have any ideas about what could cause some of the reports to throw this exception?
    As you can see, I have described the exception that occurs when I try to view some, but not all, or the reports while debugging.  I have also tried deleting a report and adding it back in but it made no difference.
    Is this enough information?

  • Compile Plug-in with Visual Studio 2010 beta

    Hello there,
    I know that only Visual Studio 2005 is supported for the Acrobat SDK. But maybe one of you is also experimenting with visual Studio 2010 and got it to work.
    I get the following error message. Did anyone solve this problem.
    Error    105    error MSB3073: The command "if not "¬roSDKPIDir%"a == ""a if not exist "¬roSDKPIDir%" mkdir "¬roSDKPIDir%"
    if not "¬roSDKPIDir%"a == ""a copy "C:\Users\test\Documents\Visual Studio 2010\Projects\EPapers_Button\EPapers_Button\Debug\EPapers_Button.dll" "¬roSDKPIDir%"
    if not "¬roSDKPIDir%"a == ""a echo EPapers_Button copied to "¬roSDKPIDir%".
    if "¬roSDKPIDir%"a == ""a echo not performed. AcroSDKPIDir environment variable not set.
    :VCEnd" exited with code 255.
    Thanks for your help.

    this is something that i tried i set AcroSDKPIDir to
    C:\acrobatxsdk\Adobe\Acrobat 10 SDK\Version 1\PluginSupport\Samples\WeblinkDemo\win32\Debug
    and in th e post build events i did the following
    <Target Name="PostBuildEvent" Condition="'$(PostBuildEventUseInBuild)'!='false'">
        <Message Text="Description: %(PostBuildEvent.Message)" Condition="'%(PostBuildEvent.Message)' != '' and '$(AcroSDKPIDir)'"/>
        <Exec Command="%(PostBuildEvent.Command)$(BuildSuffix)" Condition="$(AcroSDKPIDir)"/>
      </Target>
    can u be plzz more specific in terms of it
    the error i got is
    Error
    84
    error MSB4100: Expected "$(AcroSDKPIDir)" to evaluate to a boolean instead of "C:\acrobatxsdk\Adobe\Acrobat 10 SDK\Version 1\PluginSupport\Samples\WeblinkDemo\win32\Debug", in condition "'%(PostBuildEvent.Message)' != '' and '$(AcroSDKPIDir)'".
    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets
    112
    61
    WeblinkDemo

  • Crystal Reports for Visual Studio 2010 runtime LICENCE

    I want to welcome everyone. It's my first post on this forum.
    I want to provide my Windows Form application to a client. This application was written in VS 2010 and it uses SAP Crystal Reports for generating simple report.
    I've read [Crystal Reports Licensing Explained|http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/10cd9e15-120d-2c10-3fb5-be299000b6b7&utm_source=crvs2010&utm_medium=lp&utm_campaign=licensing_explained] pdf and I've learnt that in my case redistribution of software that embeds the Crystal Reports runtime engine is free.
    My question is:
    Is there something else I must include in my application package for instance a licence file? Or maybe I just have to include SAP CR runtime or ask user to download it from the SAP web site and that's it?
    Marcin

    Hello Marcin,
    Welcome.
    Please note that whenever you distribute your application (which uses Crystal reports) to others who may not have Crystal designer product, you need to provide the runtimes along with the application. The runtimes provide the necessary dlls in the machine for running Crystal inside the app.
    You can use an exe to install the CR runtimes and then deploy your app. OR you can include the msm files and create a deployment package.
    You will get the runtimes for CR4VS2010 [here|/people/coy.yonce/blog/2010/11/12/crystal-reports-for-visual-studio-2010-production-release-now-availableCystlR%2528SAPWeblogs%253ACrystal+Reports%2529].
    You might want to check [this|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313335333833323336%7D.do] link for details.
    Forgot to mention:
    we have dependency on C++ runtimes. Please look at [this|Visual studio setup project with merge modules - C++ problem; thread for details or do a quick search, in this forum.
    Hope it helps.
    Thanks.
    Edited by: A G on Dec 2, 2010 6:03 PM

  • Crystal Reports Version for Visual Studio 2010 Fails to Install

    Hi -
    I am trying to install the CR redistribution package for .Net 4.  When I run CRRuntime_32bit_13_0.msi I get an Error 1904 when it tries to register the commonobjmodel.dll.  If I manually register the dll using regsvr32 I get the following message:
    "The module 'commonobjmodel.dll' failed to load.  Make sure the binary is stored
    at the specified path or debug it to check for problems with the binary or dependent .DLL files."
    The dll does exist and is in the correct directory.  Is there another installer I should be using?
    Thanks.
    - Andrew

    Entering "1904 crystal" into the search box at the top right corner of this page, gives the following KB:
    [1534393  - "Error 1904. Module C:Program FilesSAP BusinessObjects..dtsagent.dll failed to register ..." when installing Crystal Reports for Visual Studio 2010 MSI runtime|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533333334333333393333%7D.do].
    See if that helps. If not, there are other KBs that will come up for CRVS2010...
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • Has anyone experienced check-in conflicts between RoboHelp 9 and Visual Studio 2010?

    Here's a description of what happens when I try to edit the properties of more than one Single Source Layout (SSL) in a single RoboHelp session:
    Open RoboHelp 9 project in Visual Studio 2010.
    Edit the properties of a SSL named "Layout A". When prompted by RoboHelp, check out the .SSL file.
    Save and generate the output.
    Edit the properties of the SSL named "Layout B". When prompted to check the .SSL out from version control, click Yes. RoboHelp displays the Cannot Complete Operation dialog box: “The files in the list below could not be checked out from version control. Exclusive access to these files is required to execute the selected action.”
    Shut down RoboHelp, re-open the project, and can then edit Layout B. I have to do this for each layout whose properties I edit.
    As an experiment, check the .SSL for Layout C out of Source Control (“Check Out – Prevent other users from checking out and checking in”), edit the properties of the SSL, and click Check In All from RoboHelp. In Source Control, the file shows as checked in; in RoboHelp, the SSL shows as checked out (the red check arrow appears to the left). Checking everything in from within RoboHelp does not check in the SSL for Layout C, and when I try to edit the properties for Layout D, the Cannot Complete Operation dialog box appears.
    Since I'm working with five SSLs, this problem is a nuisance (but not a showstopper). Should I be following a different process here?
    Thanks for any assistance.
    Chayah

    It seems I was a bit liberal with moving the libraries linked to in the instant client, i.e. copying the lib file and the depending .dlls to another location.
    Running the executable within the instant client directory with all dlls present solved this. I didn't realize this because DependencyWalker told
    me everything was fine.

Maybe you are looking for

  • BOM related issue-in sales order creation there is info message-

    hi all expert, 1)when user create sales order for BOM item.system show message"Consider delivery unit 6 ZUN in item 000020" where i can check the setting. 2) user create one BOM with t code cs01. mail item is-mm004 subitem is- MM02 and mm03 same sub-

  • Strange problem in converting between XML to string and vice versa

    i have an application that needs to send an XML document over the wire. For this reason, I need to convert the doc into a String at the sending side and back to Doc at the receiving side. This document is stored in a "CLOB" column in a table in the d

  • TS1702 Can any one help me?

    Got the iPad air done all the updates n all that then when I went to start getting some apps even like face book it keeps coming up that I need to verify email address when I have already done so it also says I have done so in my account .... Help an

  • How can I get my email to appear in order it was received instead of randomly?

    My email used to appear in the order it was received according to date/time.  Now it appears randomly with new messages mixed in with old ones.

  • Activation question: Lightroom

    If I deactivate LR CC on my computer #1 so that I can activate it on computer #3 Will I be able to reactivate it on #1 whenever I want in the future (even multiple times) as long as I deactivate it on another computer so that I only have it on 2 at a