Compile code for PowerNex OS

2020-09-05 Thread Quantium via Digitalmars-d-learn
I have a code that I need to compile for PowerNex OS, which compiler should I use and how to compile code for PowerNex?

Re: Working with pointers/adresses

2020-07-09 Thread Quantium via Digitalmars-d-learn
I have one more question. I tested the programm, as you said, it worked rarely because of OS restrictions. If I compile that code to dll, and run it through dll launcher, should it work?

Working with pointers/adresses

2020-07-08 Thread Quantium via Digitalmars-d-learn
I'm learning now memory usage in D, and I have the problem that I can't solve. The problem is (The third step): 1) Programm gets number (In int format) as input data. 2) Integer is converted to HEX 3) Programm gets the data in 0x memory slot and writes it in the console.

How to compile to .bin/.iso format

2020-06-17 Thread Quantium via Digitalmars-d-learn
Hi all! I have a programm in D (The simplest OS), which should be compiled into .bin or .iso format to be possible to run it on VirtualBox. How can I compile it to .bin / .iso format and which compiler should I use?

A custom name for variables

2020-05-28 Thread Quantium via Digitalmars-d-learn
I need to create a variable with custom name, like this import std; void main() { string name; readf(" %s", ); // some code that generates a variable of type integer and value 0 } Could you help me with that?

Working with cmd

2020-04-17 Thread Quantium via Digitalmars-d-learn
Are there any libs which can be used to access cmd commands?

Re: To get memory from another process.

2020-04-10 Thread Quantium via Digitalmars-d-learn
I've tried this on 64 bit, it works. But when I start VirtualBox with Windows 10 32-bit on it, it doesnt works.

Re: To get memory from another process.

2020-04-09 Thread Quantium via Digitalmars-d-learn
I see this code imports drivers and does it depend on processor architecture? Would it work only on 64-bit or 32-bit or some special architechtures?

Re: To get memory from another process.

2020-04-09 Thread Quantium via Digitalmars-d-learn
On Thursday, 9 April 2020 at 17:23:19 UTC, Quantium wrote: Anyway, messing with another, isolated processes is stuff that is highly specific to each operating system. Anyway, there are no generic answers to your question. This is hardcore systems programming. You should rather look at your OS

Re: To get memory from another process.

2020-04-09 Thread Quantium via Digitalmars-d-learn
Anyway, messing with another, isolated processes is stuff that is highly specific to each operating system. Anyway, there are no generic answers to your question. This is hardcore systems programming. You should rather look at your OS documentation to see what is provided there. Ok. For

Re: To get memory from another process.

2020-04-08 Thread Quantium via Digitalmars-d-learn
On Wednesday, 8 April 2020 at 20:46:48 UTC, H. S. Teoh wrote: On Wed, Apr 08, 2020 at 08:16:27PM +, Quantium via Digitalmars-d-learn wrote: On Wednesday, 8 April 2020 at 16:25:01 UTC, Net wrote: [...] > As far I know, you can't access other's program memory in > any modern ope

Re: To get memory from another process.

2020-04-08 Thread Quantium via Digitalmars-d-learn
On Wednesday, 8 April 2020 at 16:25:01 UTC, Net wrote: On Tuesday, 7 April 2020 at 21:20:28 UTC, Quantium wrote: Could you advise me how to do these steps on D? Which libs should I import? 1. My programm gets a path to exe file 2. My programm starts that exe file and writes into it 2 commands

To get memory from another process.

2020-04-07 Thread Quantium via Digitalmars-d-learn
Could you advise me how to do these steps on D? Which libs should I import? 1. My programm gets a path to exe file 2. My programm starts that exe file and writes into it 2 commands 3. Programm gets access to exe file memory 4. Programm gets data from process memory and writes it into data.bin

Re: Discord bot written in D

2020-04-07 Thread Quantium via Digitalmars-d-learn
On Tuesday, 7 April 2020 at 11:43:46 UTC, JN wrote: On Monday, 6 April 2020 at 21:23:22 UTC, Quantium wrote: Are there any libraries to creade a simple discord bot using D? And if you know these libraries, could you day me their pros and cons? There are four Discord API related libraries on

Discord bot written in D

2020-04-06 Thread Quantium via Digitalmars-d-learn
Are there any libraries to creade a simple discord bot using D? And if you know these libraries, could you day me their pros and cons?

Dynamic twodimensial array

2020-03-31 Thread Quantium via Digitalmars-d-learn
I know that to create a dynamic array: int[] m = new int[a]; where a is a variable. And if I need a twodimensial array, code int[][] m = new int[a][b]; where a and b are variables doesn't work. I used dmd compiler, it says: "Cannot read b at compile time" but there is new int, so array should

How to create an array with custom length?

2020-03-27 Thread Quantium via Digitalmars-d-learn
Code int n=0; readf(" %d", ); int[n] m; generated an error (DMD compiler): Cannot read n at compile time. How to create an array with custom length?

How to code Z-Function of string?

2020-03-26 Thread Quantium via Digitalmars-d-learn
I cannot make a code that is calculating Z-Function of string. Main trouble is that string is immutable char[]. 1. How can I make string ONLY char[] (Not immutable) 2. How can I work with some of chars in the stirng, is, for example: string s="abc"; writeln(s[1]); // Should write 'b'

How to import C/C++ module from D?

2020-03-16 Thread Quantium via Digitalmars-d-learn
If it is possible to import C/C++ , module or C/C++ Header from D, how to do it?