How add all folders of a diretory using -J ?

2020-04-01 Thread Baby Beaker via Digitalmars-d-learn
Exemple: Inside folder Project I have ten folders. How can I add this ten folders using dmd and -J command? I don't want add one by one.

There is Dlang Telegram Bot based on the official Telegram Bot API?

2020-04-03 Thread Baby Beaker via Digitalmars-d-learn
I create Bots for Telegram using Python or PHP. But I love Dlang and would like to create my Bots in Dlang. Is there any support for Dlang to create Telegram Bots?

Error: module `vibe` is in file 'vibe\vibe.d' which cannot be read

2020-04-03 Thread Baby Beaker via Digitalmars-d-learn
#!/usr/bin/env dub /+ dub.sdl: name "hello_vibed" dependency "vibe-d" version="~>0.8.0" +/ import vibe.vibe; void main() { listenHTTP("127.0.0.1:8080", (req, res) { res.writeBody("Hello Vibe.d: " ~ req.path); }); runApplication(); } Message error: Error: module `vibe`

Re: Error: module `vibe` is in file 'vibe\vibe.d' which cannot be read

2020-04-03 Thread Baby Beaker via Digitalmars-d-learn
On Friday, 3 April 2020 at 20:49:33 UTC, Steven Schveighoffer wrote: On 4/3/20 4:21 PM, Baby Beaker wrote: [...] That error generally means it can't find the import. Dub should take care of the download of the module, and the import directory. Note, this runs for me on my system. Try doin

Vibe-d Error Message and failed with exit code 1

2020-04-04 Thread Baby Beaker via Digitalmars-d-learn
Program.d #!/usr/bin/env dub /+ dub.sdl: name "hello_vibed" dependency "vibe-d" version="~>0.8.0" +/ import vibe.vibe; import std; void main() { writeln("Ola Mundo!"); listenHTTP("127.0.0.1:8080", (req, res) { res.writeBody("Hello Vibe.d: " ~ req.path); }); runAppl

Re: Error: module `vibe` is in file 'vibe\vibe.d' which cannot be read

2020-04-04 Thread Baby Beaker via Digitalmars-d-learn
On Friday, 3 April 2020 at 20:49:33 UTC, Steven Schveighoffer wrote: On 4/3/20 4:21 PM, Baby Beaker wrote: [...] That error generally means it can't find the import. Dub should take care of the download of the module, and the import directory. Note, this runs for me on my system. Try doin

Re: How user dub packages in dmd without dub.exe ?

2020-04-05 Thread Baby Beaker via Digitalmars-d-learn
On Saturday, 4 April 2020 at 21:54:34 UTC, Andre Pany wrote: On Saturday, 4 April 2020 at 20:21:03 UTC, Marcone wrote: I want import modules from dub packages in my program.d and run using dmd.exe without dub.exe. How can I make it? Becouse when I try to import it says that can not found. Ag

Can I use Dlang in Qt5 instead C++ for develop Android Apps?

2020-04-13 Thread Baby Beaker via Digitalmars-d-learn
I want develop Android apps using Qt5. But C++ is very hard. I want to use Dlang becouse Dlang is very easy.

Python eval() equivalent in Dlang working in Runtime?

2020-05-01 Thread Baby Beaker via Digitalmars-d-learn
There is a Python eval() equivalent in Dlang working in Runtime?

Hided Subprocess in Dlang

2020-05-02 Thread Baby Beaker via Digitalmars-d-learn
I am creating a program in Dlang with graphical user interface. I want this program to run a hidden sub-process in the background. But when I click the program to run this process using spamShell or executeShell, open the command prompt console running this other process. Please help me.

Re: Hided Subprocess in Dlang

2020-05-02 Thread Baby Beaker via Digitalmars-d-learn
On Saturday, 2 May 2020 at 15:20:36 UTC, Adam D. Ruppe wrote: On Saturday, 2 May 2020 at 14:06:55 UTC, Baby Beaker wrote: open the command prompt console running this other process. when calling the functions pass Config.suppressConsole to it. like in the doc example here http://dpldocs.inf

Re: Hided Subprocess in Dlang

2020-05-02 Thread Baby Beaker via Digitalmars-d-learn
On Saturday, 2 May 2020 at 15:42:20 UTC, Adam D. Ruppe wrote: On Saturday, 2 May 2020 at 15:37:09 UTC, Baby Beaker wrote: Error: none of the overloads of `spawnProcess` are callable using argument types `(string, File, File, File, Config)`, candidates are: The example is prolly out of date t

How can I open a Binary EXE with Hexadecimal?

2020-05-02 Thread Baby Beaker via Digitalmars-d-learn
I need open a Binary EXE, it can be using "rb" mode and convert it to Hexadecimal for me make some changes and save as "rb" again. How can I make it? Thank you.

Re: How can I open a Binary EXE with Hexadecimal?

2020-05-03 Thread Baby Beaker via Digitalmars-d-learn
On Saturday, 2 May 2020 at 22:26:20 UTC, wolframw wrote: On Saturday, 2 May 2020 at 21:05:32 UTC, Baby Beaker wrote: save as "rb" again. This will not work. To be able to write to a binary file, you will have to use "wb". sure!

Variable assignment in “if” condition in Dlang

2020-05-03 Thread Baby Beaker via Digitalmars-d-learn
How can I assign a variable in “if” condition in Dlang?