Re: UFCS from within classes

2013-09-09 Thread Gyron
On Monday, 9 September 2013 at 17:17:07 UTC, H. S. Teoh wrote: On Mon, Sep 09, 2013 at 07:07:58PM +0200, Gyron wrote: Hey there, I've experimented a little with UFCS today and ran into a problem. My first question, which is kinda off-topic: Why does D use the int type if you give it a n

UFCS from within classes

2013-09-09 Thread Gyron
Hey there, I've experimented a little with UFCS today and ran into a problem. My first question, which is kinda off-topic: Why does D use the int type if you give it a number started with 0x(hex), shouldn't it use uint for that ? Here comes the real question: I've extended the int by one func

Re: D Dll injection problem

2012-05-15 Thread Gyron
On Monday, 14 May 2012 at 09:53:55 UTC, Kagamin wrote: Try to make C dll, which loads D dll, and inject the C dll :) I made a bootstrapper (a c DLL which loads the D Dll) and it works fine (the D entrypoint get called (a made a msgbox test) but then the Process freezes after it displayed the

Re: D Dll injection problem

2012-05-12 Thread Gyron
On Thursday, 12 April 2012 at 14:43:01 UTC, maarten van damme wrote: works and GetLastError() returns 0 in both cases. Op 12 april 2012 16:13 schreef Kagamin het volgende: #include void main() { LPTHREAD_START_ROUTINE LoadLibAddy = (LPTHREAD_START_ROUTINE)** GetProcAddress(**GetModuleHan

Re: D Dll injection problem

2012-03-27 Thread Gyron
On Tuesday, 27 March 2012 at 21:46:23 UTC, Trass3r wrote: I inject it but it returns nothing and the App(where the dll is injected) is hanging( not responding). Could you try it maybe? I would like to know whether it's a Problem with D or with me. Are dlls without injection working? I don't

Re: D Dll injection problem

2012-03-27 Thread Gyron
On Tuesday, 27 March 2012 at 21:12:59 UTC, Trass3r wrote: Maybe it's because I have no def file. Very possible. Just pass it to dmd like the other files. Or try the new -shared flag. I have tried both now (shared and def file linking), but know it's crashing my App, lol. I inject it but it

Re: D Dll injection problem

2012-03-27 Thread Gyron
On Tuesday, 27 March 2012 at 20:45:52 UTC, maarten van damme wrote: when I tried the previous dmd compiler (have yet to try the curent one on this problem) I got the same problems while trying to compile a dll and use it. I have no clue as to why this is happening. worked in 2.54 I thought I

D Dll injection problem

2012-03-27 Thread Gyron
Hey there, I want to inject a dll which was created in D into a c Program. Informations: DMD vs. 2.058 IDE: MonoDevelop with Mono-D System: Windows 7 64bit Program Informations: 32-bit written in c The Injector is working for sure, so thats not the Problem. the Source of the DLL: import std.c