Visual Studio for a Java Developer [closed] - visual-studio

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
This is probably a silly question but here goes:
I like to be able to see the source code of third party (OSS) libraries from within my projects. I always setup my projects like this when using java. Is this possible in Visual Studio? I am not interested in building them! Only have them available for reference if lets say an exception stack trace points to a third party component...

Debugging a third-party DLL in Visual Studio.NET? covers much of the details if you're trying to do this for debugging purposes. But in general, two points to take away. First, it's unfortunately a little bit harder than it would be in Java. Second, it depends heavily on what language you're using.
Essentially, you do the following if it's a .NET assembly you're working against.
Decompile the source code with something like Reflector, then treat the decompiled source code as a new library within your project and set breakpoints in the source.
Remove all references to the 3rd party library so that it is the decompiled code that is executing.
Don't forget to remove references to the source elements later.
If it's an existing open-source library, you can just compile the source yourself into program database (PDB) files, assuming there's a corresponding VS project. More on that here.

To achieve this you have to have pdb files.
If library is provided with debug symbol file you have to place pdb file in the same location that dll. During debug VS will ask you about location of source files.
You can read about it here http://msdn.microsoft.com/en-us/library/ms241613.aspx
The problem you will get if library is provided without pdb. If it is OSS dll you can compile it by yourself with pdb files. You will have to do it once.

Related

How can I get source code from exe files? [duplicate]

This question already has answers here:
Is there a Visual Basic 6 decompiler? [closed]
(6 answers)
Closed 1 year ago.
A few days ago, I have formated my disk and I have lost all datas.
Now I have only two VB6 exe files and I want source code from those.
Is there any way to recover source code from VB6 exe files?
Please help me.
You cannot, in general, retrieve source code from an executable as it's a one-way transformation from in this case visual basic to binary machine code. If you compiled your binary with debug information you have more information available. You can of course obtain assembly and there are a class of tools that is called decompilers that ease transformation to a high-level language like C. See for example https://reverseengineering.stackexchange.com/questions/8038/exe-to-c-source-code-decompiler. Sorry.

Linker Error: Cannot open input file 'd3dx9.lib'

This is a very simple question but I have been searching for a while now and have no luck. Im supposed to add it to the linker I beleive? Which is Project Properties > Linker > Input > Additional Dependencies. Im just confused on exactly what to do. Thank you.
The simplest solution is to add the Microsoft.DXSDK.D3DX NuGet package to your project and not use the legacy DirectX SDK at all. This puts the headers d3dx9*.h, d3dx10*.h, and d3dx11*.h into your include path. It also adds d3dx9.lib, d3dx10.lib, and d3dx11.lib to your link settings, and provides the required runtime DLLs 'side-by-side'. See this blog post.
Otherwise, to integrate the legacy DirectX SDK requires some special include/lib path ordering in VC++ Directories, and you'll have a number of other quirks to contend with. See Microsoft Docs for the details.
Of course, the real question is "Why are you using legacy Direct3D 9 in the first place instead of Direct3D 11?". For Direct3D 11 or Direct3D 12, you should avoid the legacy DirectX SDK and D3DX9/D3DX10/D3DX11 entirely. See Living without D3DX.

How do I automatically find all dynamic libraries my Rust program uses (and put them into one directory)? [duplicate]

This question already has answers here:
How do I find out which dlls an executable will load?
(10 answers)
Closed 4 years ago.
I am building a Rust application that uses the iui crate.
When I click the executable after doing cargo build, I get an error saying that the DLL isn't in the path. I did put the DLL in the path to see if it worked and it did but it opened a command window with the GUI which it doesn't do that when I run cargo run.
I don't know a lot about how Rust builds executables and I don't know where Rust keeps the dependencies so I would like to know how I can get all my dependencies in a single path. Having something that can grab all the dependencies for me would be nice because the dependency has other dependencies that I probably need to add and I really don't know what they are.
I plan on making an installer for my Rust application and I will need all of the dependencies for it to work.
It's not specific to Rust. For Windows, you'll find the tools in this answer: How do I find out which dlls an executable will load?

Voice Recognition : Need help setting up Alize on windows 7 [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I want to use alize for voice recognition. I need some guidance in alize setup. I am using windows 7.
Alize is a toolkit for speaker recognition , verification and segmentation.
To set up the system once you have compiled alize binaries the easiest way is to take one of the demos avaliable in the Website.
Alize is decomposed into ALIZE library (.dll/.lib) and LIA_RAL which is a library + some tools that will allow you to build the system by command line.
Alize needs to work with signal parametrizations (features) extracted by other libraries like : SPRO and HTK. I will recommend you to compile SPRO because most of the examples use it, however HTK file format is also allowed or even with matlab you can save your own parametrization in SPRO/HTK format.
once you got you binaries , spro binaries and your demo folder , just copy the requiered files into the bin folder. Now read the readme and follow the script execution , you may prefer work in cygwin or use a window bash port.
the tricky parts with ALIZE/LIA-RAL are the path manipulation. Most of the "File not found" exceptions com from un-appropiated format in guide files: paths must be relative, without starting slash and the files does not contain extensions. ej: "emocions/angry/15a04Wa". You have to remember that the C code includes the slash and appends the extension to the name using the information present in the corresponding config file.
Check the code for details about parameter meaning , its the easiest way.

how to retrieve the source code from a dll written through VB6? [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Is there a vb6 decompiler?
Is there any way that i can retrieve the source code from a dll written through VB6. There are no other files except the dll itself
there are several options (although you never get the original source code and sometimes it ain't pretty if the DLL has been compiled to native code!)... see http://www.program-transformation.org/Transform/VisualBasicDecompilers.
For example http://www.vb-decompiler.org/products.htm
Google search for "VB6 disassembler" revealed this product: http://www.vb-decompiler.org/products.htm
I've never used it myself.
There is no equivalent of .Net ILDASM.exe for VB6 though, and the results from such disassembler products will not be as pretty as the original source code.

Resources