Page 1 of 1
vcruntime140.dll static ?
Posted: 26 Jan 2019, 01:42
by Peaceful
Is there a static way to build vcruntime140.dll in AutoHotkeySC.bin?
Changed to Visual Studio 2017 from /MD to /MT However, the build is good, but compiling it does not work.
Is there any static way to include it?
Re: vcruntime140.dll static ? Topic is solved
Posted: 26 Jan 2019, 06:15
by HotKeyIt
Does it run after build? Then compiling should not be an issue, instead AutoHotkeySC.bin you can use the AutoHotkey.exe compile.
Re: vcruntime140.dll static ?
Posted: 26 Jan 2019, 07:21
by Peaceful
Create AutoHotkeySC.bin with Visual Studio /MD option to /MT option
However, exe does not work after compiling with Ahk2Exe.exe
Tell me how to include vcruntime140.dll inside instead of outside.
I am sorry for my poor English.
Re: vcruntime140.dll static ?
Posted: 26 Jan 2019, 16:33
by HotKeyIt
The only way is to compile with /MT option, make sure you also change this for the lib_pcre project!
I have just tested on my computer and it compiles and works.
Re: vcruntime140.dll static ?
Posted: 27 Jan 2019, 03:05
by Peaceful
It still doesn't work after compiling it.
I have to give up. Thank you.
Can I get an AutoHotkeySC.bin x86 x64?
PS:
Please distribute the static version of vcruntime140.dll from the next update.
Re: vcruntime140.dll static ?
Posted: 27 Jan 2019, 06:35
by HotKeyIt
Static version would cause problems in multi-threading, I know it is a pain to distribute vcruntime140.dll with your program but unfortunately that is how Microsoft designed it.
Re: vcruntime140.dll static ?
Posted: 05 Mar 2019, 20:25
by HotKeyIt
Re: vcruntime140.dll static ?
Posted: 05 Mar 2019, 21:29
by guest3456
Does that mean no more need to ship the dlls with our exes?
Re: vcruntime140.dll static ?
Posted: 06 Mar 2019, 08:13
by HotKeyIt
Yes, if you ship MT version, dll is not required.
You just have to make sure that you don‘t manipulate memory in a different thread, because this might crash your application.
Re: vcruntime140.dll static ?
Posted: 06 Mar 2019, 10:29
by kyuuuri
HotKeyIt wrote: ↑06 Mar 2019, 08:13
Yes, if you ship MT version, dll is not required.
You just have to make sure that you don‘t manipulate memory in a different thread, because this might crash your application.
Does reading memory count as manipulating memory? If that's the case, to disable MT I only need to change back to MD? or do I need to do something more
Re: vcruntime140.dll static ?
Posted: 06 Mar 2019, 12:26
by HotKeyIt
No, reading is no problem.
You can switch between MT and MD as you like.
Re: vcruntime140.dll static ?
Posted: 08 Mar 2019, 00:47
by Peaceful
This is the answer to my long-held dream.
The H version is perfect now. Thank you so much.