On Saturday, 1 July 2017 at 00:40:11 UTC, ag0aep6g wrote:
On 07/01/2017 02:30 AM, bauss wrote:
On Saturday, 1 July 2017 at 00:23:36 UTC, ag0aep6g wrote:
On 07/01/2017 01:41 AM, bauss wrote:
[...]
if (!ReadProcessMemory(process,
cast(PCVOID)address, cast(PVOID)&data,
The second cast
On 07/01/2017 02:30 AM, bauss wrote:
On Saturday, 1 July 2017 at 00:23:36 UTC, ag0aep6g wrote:
On 07/01/2017 01:41 AM, bauss wrote:
[...]
if (!ReadProcessMemory(process,
cast(PCVOID)address, cast(PVOID)&data,
The second cast still looks suspicious. PVOID is void*, right? Then
any mu
On Saturday, 1 July 2017 at 00:23:36 UTC, ag0aep6g wrote:
On 07/01/2017 01:41 AM, bauss wrote:
string ReadWinString(HANDLE process, DWORD address, size_t
stringSize, string defaultValue = "") {
if (!process || !address) {
return defaultValue;
}
SIZE_T bytesRead;
char[1024] dat
On Sat, Jul 01, 2017 at 02:23:36AM +0200, ag0aep6g via Digitalmars-d-learn
wrote:
> On 07/01/2017 01:41 AM, bauss wrote:
[...]
> > stringSize, &bytesRead)) {
> > return defaultValue;
> >}
> >
> >auto s = cast(string)data[0 .. stringSize];
> >
> >return s ? s : defaultValue;
On 07/01/2017 01:41 AM, bauss wrote:
string ReadWinString(HANDLE process, DWORD address, size_t stringSize,
string defaultValue = "") {
if (!process || !address) {
return defaultValue;
}
SIZE_T bytesRead;
char[1024] data;
if (!ReadProcessMemory(process,
cast(PCVOID)add
On Friday, 30 June 2017 at 23:56:10 UTC, Stefan Koch wrote:
On Friday, 30 June 2017 at 23:53:19 UTC, bauss wrote:
I suspect the address is wrong, but it's the static address I
picked up from ollydbg, so I'm kinda lost as for how ollydbg
can get the correct string and I get the wrong one using
On Friday, 30 June 2017 at 23:53:19 UTC, bauss wrote:
I suspect the address is wrong, but it's the static address I
picked up from ollydbg, so I'm kinda lost as for how ollydbg
can get the correct string and I get the wrong one using same
address.
You are aware that processes life in differ
On Friday, 30 June 2017 at 23:41:19 UTC, bauss wrote:
On Friday, 30 June 2017 at 21:36:25 UTC, ag0aep6g wrote:
On Friday, 30 June 2017 at 20:14:15 UTC, bauss wrote:
[...]
I guess the first cast is necessary when `address` isn't typed
as a pointer yet. But the other casts shouldn't be nee
On Friday, 30 June 2017 at 21:36:25 UTC, ag0aep6g wrote:
On Friday, 30 June 2017 at 20:14:15 UTC, bauss wrote:
This is my definition:
BOOL ReadProcessMemory(HANDLE hProcess, LPCVOID lpBaseAddress,
LPVOID lpBuffer, SIZE_T nSize, SIZE_T *lpNumberOfBytesRead);
And I'm reading it like this:
if (!
On Friday, 30 June 2017 at 16:18:33 UTC, tetyys wrote:
On Friday, 30 June 2017 at 00:52:28 UTC, crimaniak wrote:
Hi!
Moving my project from mysql-lited to mysql-native I faced the
problem with null pointer error inside of mysql-native:
seems like it's already fixed
https://github.com/mysql
On Friday, 30 June 2017 at 20:13:37 UTC, H. S. Teoh wrote:
On Fri, Jun 30, 2017 at 07:57:22PM +, FoxyBrown via
Digitalmars-d-learn wrote: [...]
[...]
Um... the docs explicit say that dirEntries is lazy, did you
not see that?
[...]
It is possible that dmd has the same problem but I did
On Friday, 30 June 2017 at 20:14:15 UTC, bauss wrote:
This is my definition:
BOOL ReadProcessMemory(HANDLE hProcess, LPCVOID lpBaseAddress,
LPVOID lpBuffer, SIZE_T nSize, SIZE_T *lpNumberOfBytesRead);
And I'm reading it like this:
if (!ReadProcessMemory(process,
cast(PCVOID)address, cast
On Fri, Jun 30, 2017 at 07:57:22PM +, FoxyBrown via Digitalmars-d-learn
wrote:
[...]
> The only way this can happen is if the rename command is somehow
> feeding back in to the algorithm. Since the problem goes away when I
> pre-compute dirEntries, it suggests that dirEntries is being lazily
>
I'm currently getting garbage data when using ReadProcessMemory
to read from another process.
This is my definition:
BOOL ReadProcessMemory(HANDLE hProcess, LPCVOID lpBaseAddress,
LPVOID lpBuffer, SIZE_T nSize, SIZE_T *lpNumberOfBytesRead);
And I'm reading it like this:
if (!ReadProcessMemory
Spent the last hour trying to get a natural sort. Ended up having
to create my own(not sure if it's 100% correct though but works
in practice). The Rosetta one is not correct.
Here is my implementation, anyone care to perfect it?
// Compares the strings a and b numerically, e.g., "04038284" an
On Friday, 30 June 2017 at 17:32:33 UTC, H. S. Teoh wrote:
On Fri, Jun 30, 2017 at 12:50:24PM +, FoxyBrown via
Digitalmars-d-learn wrote:
I am using dirEntries to iterate over files to rename them.
I am renaming them in a loop(will change but added code for
testing).
In DMD the renaming
On 06/30/2017 01:43 AM, ct wrote:
> entry_.addOnNextMatch(partial!(&this.OnNextPreviousMatch, true));
Just to note, member function pointers are delegates in D, which
combines the 'this' pointer of the object and a context pointer. Since
the object is available at run time, such a delegate can
On Friday, 30 June 2017 at 16:39:16 UTC, Stefan Koch wrote:
On Friday, 30 June 2017 at 16:29:22 UTC, kinke wrote:
On Friday, 30 June 2017 at 16:21:18 UTC, kinke wrote:
CTFE only (incl. parsing of literals). Just make sure you
don't happen to call a std.math function only accepting
reals; I don
On Fri, Jun 30, 2017 at 12:50:24PM +, FoxyBrown via Digitalmars-d-learn
wrote:
> I am using dirEntries to iterate over files to rename them.
>
> I am renaming them in a loop(will change but added code for testing).
>
>
> In DMD the renaming works but in LDC the renaming fails. It fails in a
On Friday, 30 June 2017 at 16:43:33 UTC, Stefan Koch wrote:
On Friday, 30 June 2017 at 16:38:45 UTC, bauss wrote:
Is there a way to retrieve the body of a function as a string?
Scenario.
I want to pass a function to a mixin template and just mixin
the body of the function.
Ex.
mixin templa
On Friday, 30 June 2017 at 16:38:45 UTC, bauss wrote:
Is there a way to retrieve the body of a function as a string?
Scenario.
I want to pass a function to a mixin template and just mixin
the body of the function.
Ex.
mixin template Foo(alias fun) {
void bar() {
mixin(getBodyOfF
On Friday, 30 June 2017 at 16:29:22 UTC, kinke wrote:
On Friday, 30 June 2017 at 16:21:18 UTC, kinke wrote:
CTFE only (incl. parsing of literals). Just make sure you
don't happen to call a std.math function only accepting reals;
I don't know how many of those are still around.
Oh, apparently
Is there a way to retrieve the body of a function as a string?
Scenario.
I want to pass a function to a mixin template and just mixin the
body of the function.
Ex.
mixin template Foo(alias fun) {
void bar() {
mixin(getBodyOfFun(fun));
}
}
I'm aware that I can pass a string l
On Friday, 30 June 2017 at 16:21:18 UTC, kinke wrote:
CTFE only (incl. parsing of literals). Just make sure you don't
happen to call a std.math function only accepting reals; I
don't know how many of those are still around.
Oh, apparently most still are. There are even some mean overloads
for
On Friday, 30 June 2017 at 11:42:39 UTC, Luis wrote:
On Thursday, 29 June 2017 at 12:00:53 UTC, Simon Bürger wrote:
Thanks a lot for your comments.
On Wednesday, 28 June 2017 at 23:56:42 UTC, Stefan Koch wrote:
[...]
This is only happening on CTFE ? Enforcing to use the old 8086
FPU for an
On Friday, 30 June 2017 at 00:52:28 UTC, crimaniak wrote:
Hi!
Moving my project from mysql-lited to mysql-native I faced the
problem with null pointer error inside of mysql-native:
seems like it's already fixed
https://github.com/mysql-d/mysql-native/commit/477636ad92a15d504308d1893f987
On Friday, 30 June 2017 at 15:07:29 UTC, Murzistor wrote:
On Friday, 30 June 2017 at 12:50:24 UTC, FoxyBrown wrote:
The funny thing is, newName is printed wrong so Recompute is
effected by the rename.
Does LDC use Unicode?
Or, maybe, standard library under LDC does not support Unicode
- then
On Friday, 30 June 2017 at 12:50:24 UTC, FoxyBrown wrote:
The funny thing is, newName is printed wrong so Recompute is
effected by the rename.
Does LDC use Unicode?
Or, maybe, standard library under LDC does not support Unicode -
then it is a serious bug.
Do you use any non-ASCII symbols?
May
I am using dirEntries to iterate over files to rename them.
I am renaming them in a loop(will change but added code for
testing).
In DMD the renaming works but in LDC the renaming fails. It fails
in a way that I can't quite tell and I cannot debug because
visual D is not working properly fo
On Thursday, 29 June 2017 at 12:00:53 UTC, Simon Bürger wrote:
Thanks a lot for your comments.
On Wednesday, 28 June 2017 at 23:56:42 UTC, Stefan Koch wrote:
[...]
This is only happening on CTFE ? Enforcing to use the old 8086
FPU for any float/double operation would give a lot performance
On Thursday, 29 June 2017 at 14:30:19 UTC, Andrea Fontana wrote:
On Thursday, 29 June 2017 at 13:01:10 UTC, ct wrote:
I was only able to do it this way:
auto on_next_previous = &this.OnNextPreviousMatch;
entry_.addOnNextMatch(&partial!(on_next_previous, true));
entry_.addOnPreviousM
On Friday, 30 June 2017 at 07:44:45 UTC, Martin Tschierschke
wrote:
What do I have to do, to make this work?
iota(number).each!...command_x(a...);command_y(b...);command_z(c..))
^?
how to write the lambda?
Similar to the ruby (1..number).each{ commands...}
Don't want to wr
On 06/30/2017 12:44 AM, Martin Tschierschke wrote:
What do I have to do, to make this work?
iota(number).each!...command_x(a...);command_y(b...);command_z(c..))
^?
how to write the lambda?
Similar to the ruby (1..number).each{ commands...}
Don't want to write the following
On Friday, 30 June 2017 at 00:52:28 UTC, crimaniak wrote:
Hi!
Moving my project from mysql-lited to mysql-native I faced the
problem with null pointer error inside of mysql-native:
[...]
It seems I am doing something wrong so myself-native fails to
detect it in isValid(). So I search for exa
What do I have to do, to make this work?
iota(number).each!...command_x(a...);command_y(b...);command_z(c..))
^?
how to write the lambda?
Similar to the ruby (1..number).each{ commands...}
Don't want to write the following, because the index i is not
used inside the loop
35 matches
Mail list logo