I am working on an installer that requires some customactiondll ihave understod that i need to have a cpp file that could be converted to .dll .
I have been reading the posts on the internet mst of them relates to VS 6.0 , i am using this VS 2010 Ultimate, i am running a x64 machine i have written the .cpp file , please help me step by step increation of a .dll in VS 2010 ultimate i have got Votive installed as well.
I am not using any of the VS's to create my installers however i am using Notepad ++ for the XML coding and command line to compile my code .
Please help me step by step so that i can successfully create a .dll
For the time being one can consider Wix Tutorial What's not in book!
I am working with CASAMPLE.dll that can be downloaded here!
Please help
Thanks
In VS2010 create a C++ Custom Action Project and create what functions you need and upon building this it will create your DLL file in the bin folder..:)
Related
I have a problem that will be very simple to solve but I don't know how to do it.
Scenario: I want to run an emulator coded in C++ by a YT (javidx9) in Visual Studio. The project is here: https://github.com/OneLoneCoder/olcNES and the folder is "Part#2 - CPU"
Problem: I never use Visual Studio, so its something new for me, and my problem is that I don't know how to run the project (emulator). And I can't find any post or article on the internet about my problem. (I tried to create an empty project in VS and then copy the emulator files to the folder of my empty project and then run it, but it sent me an error that the files were not found (and its because that isn't the correct way to run the program and I don't know how to do it)).
My request: I would be very grateful if someone could explain to me how to open and run this project (the emulator) correctly in Visual Studio.
Thanks!!!
Your project does not have. sln file. You need to create new project in visual studio. Last file has main function as below. You need to run this main file(olcNes_Video1_6502.cpp)
You may need to check path of headers included from other projects.
I have a C++ project in Visual Studio 2017, which I built an executable file from, using the answer from this question found on MSDN , the .exe was built successfully, but when I copy this file to another PC and try to launch it, it returns me an error message, which says that launching of this app is impossible, because libcurl.dll is absent, what should be done, for avoiding this problem ?
Here's the preset which I'm using for .exe creation
P.S.
If it is of any help, when I created the project, I've chosen Empty Visual C++ Project.
I recently downloaded GDAL source code from here
I want to compile it and I want to modify it. So I started with its source code which I have downloaded.
Now I have seen that in supported compilers there is Visual C++ here...
How to setup it?
EDIT:
I have successfully setup it but now i am looking for some options to run GDALDEM.cpp.
You can get Visual C++ by downloading the free version of Visual Studio from Microsoft. Follow the link you have supplied, and go to the downloads section.
Once it's installed you should be able to read the help to see how to open and compile your project.
For Setup, I did it... just sharing so someone can save time
Step 1 Download this Project from here
This project is just project file. You need to copy GDAL source code to it in next steps..
Step 2 Extract it.
Step 3 Now copy paste all folders/files from gdal-1.11.1 folder to project solution folder
Select all files as shown below, press Ctrl +C
Now paste in extracted project
Step 4 Now open Visual C++ -> Open Project -> Select Project
Step 5 Simple Setup done....
As an extension on one of my earlier projects that required printing PDF files from command line, I now need to print them duplex.
Therefore I have found an open source piece of software called SumatraPDF and added a patch using Visual Studio Express 2012 that enables duplex settings in command line and compiled. This software works completely on Windows 7 64bit however on Windows Server 2003 64bit it returns an error message:
C:\Program Files (x86)\SumatraPDF\SumatraPDF.exe is not a valid Win32 application.
I have found examples on the internet of others having this issue when compiling applications using VSE2012 and have tried to follow the advice given. This being to change the project platform to Windows XP (v110_xp) after installing VS Service Pack 3, however to do this I would have to change the project configuration type from Makefile to Application (.exe) and after testing this causes errors during compilation.
I have now also implemented #Hans advice with the same result.
If anyone can help I would be most appreciative.
Thanks.
NB - I have looked at other questions regarding this subject and did not feel any supplied me with a solution, apologies if I have overlooked it.
I am very desperate now...
I have project in Visual C++ 2010 using Qt and OpenCV. I got to phase I need to load XML file using openCV. But, I have no idea where is the working directory of my project, when run thru VS (F5). I mean, I read all config, copied desired file almost everywhere in my project folders, but it still is not seen by my EXE (OpenCV)...
What Am I doing wrong? Thanks.
right click on your project click on properties/Configuration Properties/debugging you start in whatever working directory is set to.