dll

Cygwin 64-bit cannot early-bind to DLL created by MSVC , giving __cxa_atexit error

风流意气都作罢 提交于 2020-06-16 17:01:18
问题 Here is the C++ program compiled by up-to-date Cygwin64 (gcc/x86_84-pc-cygwin/9.3.0): extern "C" __declspec(dllimport) void foo(void); int main(void) { foo(); return 0; } with commandline: g++ -o mre.exe mre.cc /f/temp/simpledll/x64/Debug/simpledll.lib For SimpleDLL I created a new Windows C++ DLL using VS Community 2019, switched to x64 target, disabled PCH, and added simpledll.cpp: extern "C" __declspec(dllexport) void foo(void); void foo(void) { MessageBoxA(NULL, "In simpledll foo", "Title

Static lib vs DLL in visual studio

六月ゝ 毕业季﹏ 提交于 2020-06-16 11:31:28
问题 I have built VTK in my computer with both dll and .lib files. When I want to create a project that uses VTK, I have to include the header files and link .lib files in project properties. In addition I have to add the .dll files in to the project path as well. I have several questions regarding this, What is the difference between .libs and .dll files? Is it possible to create a project with only using either .dll or .lib files. (I can link the .lib files and not add dlls to path or add dlls

How to start a thread in DLLMain?

*爱你&永不变心* 提交于 2020-06-13 12:28:25
问题 How can I start a thread in DLLMain means std :: thread - fundamentally. No means WinApi, and STL means. When I run the function in the flow, then I crash the application is called from this DLL. Thank you in advance. This code gets the hash sum on the file (exe) and writes it to a file. (* .txt). But the application crash void initialize() { string buffer; thread t(calclulateHash, ref(buffer)); t.detach(); } BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) {

How to start a thread in DLLMain?

ⅰ亾dé卋堺 提交于 2020-06-13 12:27:44
问题 How can I start a thread in DLLMain means std :: thread - fundamentally. No means WinApi, and STL means. When I run the function in the flow, then I crash the application is called from this DLL. Thank you in advance. This code gets the hash sum on the file (exe) and writes it to a file. (* .txt). But the application crash void initialize() { string buffer; thread t(calclulateHash, ref(buffer)); t.detach(); } BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) {

VC6 on Win 10 Debugging when a DLL in another DLL gives User Breakpoint hit

痴心易碎 提交于 2020-06-01 06:11:42
问题 I just installed a Windows 10 machine, since Windows 7 is now dropped... along with the old, classic VC6. Plus the Service pack 6, and the Platform SDK installed. I have been using it this way with no issues on my Windows 7 machine for decades (too long to go into why not upgrade to VS 2010, 2012, 2015, 2017, 2019, yada yada, yada... Subject for a different debate) I brought up an existing project I was working in before the end of the year. Big exe, several DLLs in it, C++ objects, etc...

VC6 on Win 10 Debugging when a DLL in another DLL gives User Breakpoint hit

Deadly 提交于 2020-06-01 06:10:25
问题 I just installed a Windows 10 machine, since Windows 7 is now dropped... along with the old, classic VC6. Plus the Service pack 6, and the Platform SDK installed. I have been using it this way with no issues on my Windows 7 machine for decades (too long to go into why not upgrade to VS 2010, 2012, 2015, 2017, 2019, yada yada, yada... Subject for a different debate) I brought up an existing project I was working in before the end of the year. Big exe, several DLLs in it, C++ objects, etc...

System.DllNotFoundException: Unable to load DLL 'SqlServerSpatial110.dll': The specified module could not be found

China☆狼群 提交于 2020-05-29 08:33:03
问题 I am doing a project which having some functions on Geographical distance calculation. So I use geographical datatypes in entity framework by adding nuget package SqlServerSpatial110.dll for that function. I think my code is correct. Everything is working on local server. But when I uploaded it to server it shows the error below: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.DllNotFoundException: Unable to load DLL

System.DllNotFoundException: Unable to load DLL 'SqlServerSpatial110.dll': The specified module could not be found

丶灬走出姿态 提交于 2020-05-29 08:32:02
问题 I am doing a project which having some functions on Geographical distance calculation. So I use geographical datatypes in entity framework by adding nuget package SqlServerSpatial110.dll for that function. I think my code is correct. Everything is working on local server. But when I uploaded it to server it shows the error below: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.DllNotFoundException: Unable to load DLL

Can Visual Studio 2019 pack the DLLs it requires in just a small .exe file?

ぃ、小莉子 提交于 2020-05-29 06:15:56
问题 I made a Windows application with C++ WinAPI by using Visual Studio 2019. After finishing, I built it, and executed with my computer. It works perfectly. Then I sent to my friend who didn't have Visual Studio. It said that it needs "msvcp140d.dll" "ucrtbased.dll" "vcruntime140_1d.dll" "vcruntime140d.dll" to open it. Then I found them in my computer, put them in the same dir with my application, and sent them to my friend. It worked fine, too. But My question is "Is there any way to pack them

How do I include a .jpg into a dll?

断了今生、忘了曾经 提交于 2020-05-27 21:20:49
问题 I have a third-party application that creates a dll file out my .cs code. In my .cs code I reference a file. How do I compile the dll or .cs to include the .jpg file along with the code? The options I have for the third-party application does not allow me to export the .jpg The import process only looks at the .cs and the associated .dll. Is there a way to add the file to the dll once the third-party application has created the dll in the export process with visual stuido or something? 回答1: