please how to add winsock library to Visual C++ 2008 Express? I tried including <windows.h> alone, than <windows.h> and <winsock.h>, but I get LINK error on WSAStartup().
I found somewhere that you need to add additional dependencies for your project, so I brought up linker for project properties, and in the select box for additional dependencies there was no ws_32.lib, So I tried to add it manually (write it) but still LINK Error....
Visual C++ Express don't install the full Windows SDK. You can download and install the full SDK from Microsoft.
After installing the SDK there is a tool (it will be on the start menu) to register the SDK directories with Visual Studio. After than you should be able to reference winsock.
Related
I need to open the Jint solution downloaded from here :
https://github.com/sebastienros/jint
(i've downloaded the zip with all the files, later i decompressed them and then i try to open the solution's file using visual studio)
Visual Studio (both 2012 Express and 2013 Express) tell me that the main project is not compatibile, i have tried Microsoft Visual Studio Version Selector but still not working.
Anybody can tell me why this happen and how i can open and view that solution with all its projects properly loaded?
Here a screen of my situation :
This project targets the Portable Framework. You might need to install the Windows Phone SDK or some other component depending on your version of Visual Studio. Please refer to this page for more details.
I have a very simple MFC application built in VS12. When I’m trying to install it on a Surface tablet (Win 8.1) I’m getting an error about mfc110ud.dll being missing. I looked up this dll and it says “MFCDLL Shared Library - Debug Version”. The problem is I’m building my app in Release mode. Why do I still depend on VS?
Use the linker /verbose Option to find the module or library that requires the DLL Version of the MFC.
See this particular post:
mfc110ud.dll is missing for vc++ project on visual Studio 2012
Potentially a duplicate (recompile with "Use of MFC" as "Use MFC in a static Library" when you compile)
I created a MFC project with VS2013 and it works fine on my computer. But it won't run on a computer without VC++ Redistribution 2013 installed.
Can I specify a lower VC++ runtime version of an MFC project in Visual Studio?
I think even if it is lower vc++ runtime version, you may face similar problem.
If you can tolerate exe file is larger than before, just change the value of Use of MFC to Use MFC in a Static Library in project property page. By doing so, you don't need to distribute mfc modules related.
Otherwise, you have to distribute relative mfc modules such as mfc100.dll.
This link may help you.
You need to create installation package for your program. As Visual Studio user, you can create an installation with InstallShield Limited Edition. Installation package should contain correct C++ and MFC runtime version for your program.
See also:
InstallShield Limited Edition http://msdn.microsoft.com/en-us/library/dn531020.aspx\
Walkthrough: Deploying Your Program (C++) http://msdn.microsoft.com/en-us/library/bb384837.aspx
Specifically, to add VC++ Runtime: On the Redistributables tab in the editor window, select the Visual C++ 11.0 CRT check box. If you use MFC, check also MFC redistribution.
I'm using Visual Studio Professional 2012 (with Update 2) and since I have a project that needs to be built with the VC++ 2010 toolset I also installed Visual C++ 2010 Express (with SP1).
I use the newer 2012 IDE also for the older projects. So for these projects I set the Platform Toolset to v100. And when I also set the runtime library to /MT or /MTd I get the following error:
error LNK1127: library is corrupt
for libcpmt.lib or libcpmtd.lib, depending on the configuration.
What could be wrong here?
Installation history:
VS2012 Professional
Windows 7 SDK
Uninstalled VS2012 and Windows SDK
VC++ 2010 Express
VS2012 Professional
If I understood correctly, you installed VS2010 after installing VS2012? If not, please edit your question to make it clear.
This sequence of installations is not recommended by Microsoft, and there are plenty of caveats and ReadMe's to navigate in order to find out what's happened.
I suggest that the best thing to do is to reinstall VS2012 (or do a repair install), then see what - if anything - is still broken.
I've enabled openMP using the project settings, but when I do #include I get an error the file doesn't exist. I'm using Visual Studio stadnard edition, not Express... what else is missing? Every page I find simply says to turn it on in project settings and it will work.
omp.h and vcomp.lib is only available in VS Pro editions.
Did you add the directory containing the file omp.h to the list of directory search paths? Go to "tools - options - projects and solutions - VC++ Directories", then "show directories for" "include files". Add the path in here.
The solution for Visual Studio 2008 Express to develop OpenMP on Windows also works with the Standard Edition.
Basically you need to install the Windows SDK for OpenMP to get the libraries and headers. In my case I had to install the patch KB974479 too, but that may not be the case if one enables Microsoft Update for VS2008 (which I forgot to enable for all Microsoft products right after installing Windows).