What external libraries are available
If you never herd about Meson before: 🤔. https://mesonbuild.com/ Hay there I was just wondering, what is the D equivalent to C++ Boost and or Poco libraries? Just wondering because I would like to start playing with other developers libraries and use them in a collection of examples for the library. The examples will be lunched to a GitHub repository as a show case so the library developers can show a link to new potential users that seek examples. What I mean by Boost or Poco equivalent is a grouping of fully functional packages/modules. It’s ok if you recommend a single library and it is a plus if Meson build is apart of the library. I am aware of Mir Libraries being a group of libraries and incorporates the use of Meson, however I normally like to see what my options are to better plan my applications.
Where can I find a reference for compiler flags?
If you never herd about Meson before: 🤔. https://mesonbuild.com/ I was surprised to find out about Visual D. And now I’m getting concerned about whether my current D projects will work on windows beings that I am about to move my operations on a Windows computer. Where can I find a reference for compiler flags? Also any recommendations for making windows compatible programs? I would like to use the standard libraries over none standard.
Re: Is there anyone on the official website who is willing to submit this?
On Tuesday, 4 June 2019 at 22:02:54 UTC, FrankLike wrote: Hi,everyone, Is there anyone on the official website who is willing to submit this? If you can submit, the development of D language is a good thing. "https://open.soft.360.cn/regist.php"; "link.exe" and "optlink.exe" found the Trojan virus: - Type: "Trojan-HEUR/QVM19.1.A5B9.Malware.Gen" Description: Trojan is a malware disguised as a normal file that steals your account, password, and other private information. Scan Engine: Cloud Feature Engine File path: "...link.exe" File size: (230,472 bytes) Document fingerprint "(MD5)": "5c092ecec3788eb7f7df2673dcbd6f5c" Digital Signature: D Language Foundation Is the digital signature valid: valid Handling suggestions: quarantine files -- Does anyone know what is going on? Is there anyone on the official website who is willing to submit this? If you can submit, the development of D language is a good thing. "https://open.soft.360.cn/regist.php"; Thank you. False positives. Unfortunately, virus scanners chronically have problems with the DMD compiler. Probably, because the object file format is very different to the more common mscoff. Please feel free to report this false positives yourself. We don't have the resources to cater for every virus scanner out there. Thanks!
Is there anyone on the official website who is willing to submit this?
Hi,everyone, Is there anyone on the official website who is willing to submit this? If you can submit, the development of D language is a good thing. "https://open.soft.360.cn/regist.php"; "link.exe" and "optlink.exe" found the Trojan virus: - Type: "Trojan-HEUR/QVM19.1.A5B9.Malware.Gen" Description: Trojan is a malware disguised as a normal file that steals your account, password, and other private information. Scan Engine: Cloud Feature Engine File path: "...link.exe" File size: (230,472 bytes) Document fingerprint "(MD5)": "5c092ecec3788eb7f7df2673dcbd6f5c" Digital Signature: D Language Foundation Is the digital signature valid: valid Handling suggestions: quarantine files -- Does anyone know what is going on? Is there anyone on the official website who is willing to submit this? If you can submit, the development of D language is a good thing. "https://open.soft.360.cn/regist.php"; Thank you.
Re: File Exception, Access is denied - prompting for administrator's rights
On Tuesday, 4 June 2019 at 16:30:41 UTC, BoQsc wrote: Is there any way to prompt for administrator's rights, to save the additional effort of lots of clicks? Looking at: https://stackoverflow.com/questions/31844584/is-there-an-api-call-to-prompt-user-for-uac-elevation You can try something like this: ``` import core.sys.windows; SHELLEXECUTEINFO shex; shex.cbSize = shex.sizeof; shex.lpVerb = "runas"; // runas, open shex.lpFile = "rdmd"; shex.lpParameters = `"--eval=copy("""test.txt""","""C:/Program Files/test.txt""")"`; shex.nShow = SW_SHOW; //SW_HIDE; shex.fMask = SEE_MASK_NOCLOSEPROCESS; BOOL retshx = ShellExecuteEx(&shex); import core.Thread: Thread, msecs; // Give it 5 seconds to finish if (retshx) { int count = 0; DWORD exitCode; do { if (!GetExitCodeProcess(shex.hProcess, &exitCode)) break; if (count++ < 50) { Thread.sleep(100.msecs); } else break; } while (exitCode != STATUS_WAIT_0); // STILL_ACTIVE CloseHandle(shex.hProcess); } ``` Here I use rdmd with --eval, but you can use any program that does the file handling you want. Note that lpParameters has weird escape rules: parameters are space separated unless quoted with ", and to get actual quotes you use three of them like """.
Re: Dub dependencies / How to use own Github fork?
On 2019-06-01 14:09, Robert M. Münch wrote: On 2019-05-30 18:29:44 +, Steven Schveighoffer said: You can dub add-local your local fork, and it will use that instead of going out to code.dlang.org. Ok, any chance to switch back and forth between local/remote versions? If you developing a package and a dependency simultaneously and don't what to publish new versions of the dependency all the time I recommend specifying the path to the dependency, see "Use a folder to source a package from" [1]. [1] https://dub.pm/package-format-sdl.html#version-specs -- /Jacob Carlborg
File Exception, Access is denied - prompting for administrator's rights
Hello everyone, I'm Windows 10 as of right now, I have this situation where I would like to update /hosts file, however sometimes I do not have the required permissions, since sometimes I forget to run the .d script with administrator's rights. Is there any way to prompt for administrator's rights, to save the additional effort of lots of clicks? import std.file; void main(){ append("C:/Windows/System32/drivers/etc/hosts", "hahaha"); } std.file.FileException@std\file.d(859): C:/Windows/System32/drivers/etc/hosts: Access is denied. 0x00404223 0x00402295 0x00403751 0x004035EB 0x00402DE7 0x75688494 in BaseThreadInitThunk 0x773741C8 in RtlAreBitsSet 0x77374198 in RtlAreBitsSet
Blog Post #0041 - File Dialog VII - The ColorChooser Dialog
For the first blog instalment this week, we look at the ColorChooserDialog and discuss the differences between it and the ColorChooserButton as well as how to by-pass white as a default color. You can find it here: http://gtkdcoding.com/2019/06/04/0041-colorchooserdialog.html