msvcrt

How to build QTcore4.dll without dependency to MSVCx80.dll?

和自甴很熟 提交于 2020-01-05 08:47:11
问题 I have a windows screensaver that I want to recompile using the QT libraries, so that I can make available for more platforms. I am facing problems with the deployment on Vista and XP. I compile my screensaver statically with MT, and run the dependency checker. The results are: MyScreensaver.SCR needs several DLLS, QTCORE4.DLL but no MSVCx80.DLLs. So far this is fine. My problem is that QTCORE4.DLL in its turn, does need MSVCP80.DLL and MSVCR80.DLL As a result my application does not run on

Visual C++ Runtime Library Linker Woes

一个人想着一个人 提交于 2020-01-04 07:31:29
问题 Observe this close Scenario even though it appears to be the same as my previous questions. Still I am not getting an answer. So please don't report as a duplicate. I have a project which has 10 dependencies. First I compiled using the /MTD option in the C/C++ codegeneration section in the main project and all its dependencies are getting build successfully. Next I changed the option from /MTD to /MDd and again all dependent projects are getting build successfully. But for the main project

Cant Run Application Created With QT5 And VS2013 In Windows XP

我们两清 提交于 2020-01-01 11:55:07
问题 I have application created with QT5 and Visual Studio 2013 . I also use QT WebEngine in my application. My application works fine in windows 7 (32 bit) . For some reason i need to run it in windows xp sp3 (32 bit). When i run it, I get the following error: The procedure entry point strnlen could not be located in the dynamic link library msvcrt.dll I press OK several time and it goes away and my QMainWindow will pop out, But its totally BLACK and i see the following errors in debugger. class

Can you determine the source IP and port from a connected TCP socket?

醉酒当歌 提交于 2019-12-25 06:21:01
问题 I'd like to have my server determine the source IP and port of a client from a connected TCP socket. Since my clients are likely behind NAT's, I can't rely on being told by the client (in the protocol of the connection)... If this is possible, I'm going to need to implement it on both Windows and Linux... But an answer for either would help get me started... I am using C, and I'm looking for either libc or msvcrt based solutions. 回答1: Should work both in linux and windows: struct sockaddr_in

Static Libraries and the statically-linked MSVC++ runtime

*爱你&永不变心* 提交于 2019-12-25 03:23:47
问题 For building a static library , is the static C runtime statically linked at compile time (of the library) or at final EXE compile time? 回答1: According to Hans, the CRT (C Runtime) is not linked while compiling a static LIB using MSVC. It is linked at final EXE compile time. However, even though this is true. You still cannot mix C runtimes in static libraries. They all must use the same exact runtime (or the system runtime MSVCRT.dll) 来源: https://stackoverflow.com/questions/9578388/static

Piping Binary Data from Python GUI to c++ and back again

北城余情 提交于 2019-12-24 17:27:31
问题 I have been working on a project that pipes data back and forth between a QGIS plugin written in Python and some image processing code I have written in C++. After some community help via the following 2 questions I have gotten a console based sample code working that simulates an image, pipes it over to my C++ code, does some nontrivial processing, and then pipes it back and unpacks it correctly. I am having trouble porting this to a GUI style code. previous questions for reference: Data

Use fprintf on a socket in Windows

痴心易碎 提交于 2019-12-24 00:54:53
问题 I'm trying to use fprintf on a socket on Windows. Many of the online examples are UNIX examples. The equivalent code for Windows is what I'm asking about here. Ultimately, I'd like to do this: fprintf(file_handle_to_socket, "hello world\r\n"); I do not want to use WriteFile, snprintf or anything else. Just fprintf(). Pseudocode that more or less shows the steps would be helpful. Here is what I have so far: unsigned short port = enter_port; int result = 0; WSADATA wsaData; result = WSAStartup

Compile C in Visual Studio 2012 without MSVCRT runtime

南楼画角 提交于 2019-12-23 20:32:16
问题 Visual Studio 2012 (and earlier versions) are capable of compiling C code. Plain C , not C++. It would be a good feature if you wanted to avoid the runtime hazzle. I thought of compiling plain C binaries and was hoping to do so without the MSVCRT runtime. After adding the /TC (compile as C) option I was hoping to get a binary with only basic dependencies such as kernel32 and ntdll. But instead, this was linked: We want to use VS 2012 and not the runtime. The GCC compiler doesn't need it, so

Why does windows side by side (winSxS) install policy for auto upgrade when there are known issues between versions?

我怕爱的太早我们不能终老 提交于 2019-12-23 02:37:32
问题 We have an app compiled using MSVC 2K5, SP1 (version 762 msvcrt80) All is well, right up until somebody installs on the same machine .Net3.0SP1, and along with it msvcrt80 version 1433 is installed and a policy to automatically upgrade. Now we have random crashes all over the place and unhappy customers. I understand we can adjust our manifest files to force the usage of a specific version, but I've only found the really ugly way of copying detail that is auto generated and modifying it by

How do I find the cause of this linker error?

喜夏-厌秋 提交于 2019-12-23 01:45:15
问题 After going through a lengthy process to rename a project, my DLL project will not build in Debug mode (Release builds work): MSVCRTD.lib(msvcr90d.dll) : error LNK2005: _CrtDbgReportW already defined in LIBCMTD.lib(dbgrpt.obj) This project, and the five static libraries it depends on, are set to use "Multi-threaded Debug (/MTd)" (under C/C++|Code Generation|Runtime Library). I believe LIBCMTD.lib is the one for multi-threaded debug, but what is MSVCRTD.lib, and what could be causing this