top of page
Search
lukaswalker79

dll file in visual studio 2008: Benefits and challenges



  • To let your Visual C++ compiler and linker know about the location of CrashRpt include and lib files, do the following.If you use Visual Studio 2005 or 2008, open menu Tools-> Options. Then in appeared dialog, select Projects and Solutions->VC++ Directories.If you use Visual Studio 2010 or 2012, open the Property Manager window, multi-select all projects in your solution and right click the selection. In the appeared dialog, open Configuration Properties->VC++ Directories.Finally,In the 'Show directories for' combo box, select 'Include files', then add the path to \include directory to the list.

  • In the 'Show directories for' combo box, select 'Library files', then add the path to \lib directory to the list.

Here should be replaced with the actual path of the directory you unzipped CrashRpt distribution to.Before you start using CrashRpt API functions in your program, do not forget to include CrashRpt.h header file in the beginning of your code:// Include CrashRpt header#include "CrashRpt.h"You also need to add CrashRpt LIB file to the list of input libraries for your project. In the Solution Explorer window, right-click your project and choose Properties item from the context menu. Then open Configuration Properties->Linker->Input->Additional Dependencies and then add CrashRptXXXX.lib to the list of libraries (here XXXX should be replaced with CrashRpt version number).Using CRT as Multi-Threaded DLL (/MD) in Release ConfigurationIt is important that you configure your project to use C runtime libraries (CRT) as Multi-threaded DLL (/MD) for Release configuration. This is the way recommended in MSDN. See the Exception Handling and CRT Linkage section for more information.In the Solution Explorer window, right-click your project and open project Properties. Then choose Configuration Properties->C/C++->Code Generation. In the Runtime Library field, choose Multi-threaded DLL (/MD). See the figure below for example.This should be done for all projects in your solution to share single CRT DLL.Note:In Debug configuration it is not important what CRT linkage you use. Typically your default debugger intercepts exceptions instead of CrashRpt in Debug configuration.Multi-threaded DLL (/MD)


  • For example, assume you use Visual Studio 2008 and CRT 9.0 linked as DLL, but some dependent module in your application was compiled in Visual Studio 2005 and uses CRT 8.0 linked as DLL. In such situation a CRT error in the dependent module won't be intercepted by CrashRpt, because error handlers are installed for CRT 9.0 only.Enabling Program Database (/Zi, /DEBUG) in Release ConfigurationTo be able to recover the stack traces from the crash minidump, the debugger needs your application's debugging symbols (PDB files).To enable the generation of PDB files:In the Solution Explorer window, right-click your project and open project Properties. Then choose Configuration Properties->C/C++->General. In the Debug Information Format field, choose Program Database (/Zi).

  • Choose Configuration Properties->Linker->Debugging. In the Generate Debug Info field, choose Yes (/DEBUG).

Steps 1 and 2 should be performed for all projects in your solution that support program database (EXE, DLL).The steps 1 and 2 are presented on the figures below.Program Database (/Zi)




how to add dll file in visual studio 2008




The DLL source comes with solutions for Visual Studio 2008, 2010, and 2012 (the 2012 one also compiles in 2013). However the project requires the VC++ 2008 toolchain. Since Visual Studio 2008 is a slightly outdated IDE it doesn't have the best features, so you should install Visual C++ 2008 Express and Visual C++ 2013 express to get the best development experience. If you don't want to do that just developing in VC2008 is fine as well. Any of the paid versions of Visual studio from these years will also work. Both of the express ones can be downloaded for free from Microsoft's website.


You can find your property sheets inside your projects directory. At this point, it is a wise decision to back them up into some special directory, to always have them at hand in the future, whenever you create an OpenCV project. Note that for Visual Studio 2010 the file extension is props, while for 2008 this is vsprops.


I have been tasked with setting up CATIA CAA RADEV5-6R2016 SP3 for a client on Windows 10 x64Enterprise 2016 LTSB. I have trudged my way through. Ihave installed CATIA in C:\ProgramData\DassaultSystemes\B26(no spaces in file path as recommended here: =27371 ) . I'veinstalled Visual Studio 2008 SP1 and all thehotfixes (listed in 3DS.com's Program Directory for V5 SP3),Visual Studio 2012 Update 4 and all the hotfixes,and have activated RADE throughCATVBTLicenser.exe.


I attached a .png of the list of Visual Studio requirements forRADE to this post. (I just realized only VS 2012 is supportedon V5-6R2016 SP3, but not VS 2008.) In the second column, I see aparenthetical statement: "CRT and MFC Redistributables aredelivered with V5 media and should be installed on targeted host."What are CRT and MFC Redistributables? I don't see anything namedas such in our CATIA files.


In the solution explorer in VS2012, if you right-click on CAATesBody.m and "Set asStartUp Project," you should be able to run the .cpp filefrom visual studio and have debugging power. I tried that andI got an error box saying "This project is out of date: Would youlike to build it?" Then the build fails because it cannot openinclude file: iostream.h ...


But when I compile the same VB journal file into a DLL through Microsoft Visual studio 2008 and give the DLL reference to the customized command button, I get the error as follows "The file is not encoded in valid UTF-8 and contains some characters that are not in the locale character set".


I was answering a question about visual studio 2005.You are right, writing unmanaged plain-jane c++ code(nothing wrong with that!) is not my cup of tea anymore...But can you use VS to write really native, unmanaged code? I wonder.


The support page on explains that the msvcr90.dll file needs to be redistributed along with compiled application (in this case the mex files). Since most Windows computers seem to have this file already installed (probably because it is redistributed with many other applications), we do not include it in the FieldTrip release. There are many places on the internet where you can download the msvcr90.dll file if you find it missing on your computer. Note that it will be installed alongside the Microsoft Visual Studio 2008 Express Edition.


The Visual Studio solution file visual\VS2010\zstd.sln contains many projects that will be compiled to the visual\VS2010\bin\$(Platform)_$(Configuration) directory. For example zstd set to x64 and Release will be compiled to visual\VS2010\bin\x64_Release\zstd.exe. The solution file contains the following projects:


I am currently working with Unity3D, and need to import a .dll file compiled in VS2008, using .net 2.0. It works perfectly well on the PC version and it works just like I want it to, but it somehow breaks my iOS build. I'm not even using the .dll on mobile devices, and the code linking to the dll (DllImport) is compiled only in the PC build. 2ff7e9595c


0 views0 comments

Recent Posts

See All

Comments


bottom of page