mercedes das xentry full verison rapidshare q=Ij>n.

2010-08-23 Thread ecm2001 winols cpwin rapidshare torrent
We can crack or emulate any protection type: Dongle, Hardlock, Hasp, Serial, Password, Hasp4, Flexlm, Sentinel, Wibu, Eutron Smartkey, Hasphl, Proteq, All the Protections!! email = yshows...@gmail.com email = yshowsoft at gmail.com NEW UPDATES 2010 Artpro 9.5r4 with license (minimal of 2 license

BitArray contracts

2010-08-23 Thread bearophile
This a part of std.bitmanip.BitArray: void init(void[] v, size_t numbits) in { assert(numbits <= v.length * 8); assert((v.length & 3) == 0); } body { ptr = cast(uint*)v.ptr; len = numbits; } But it seems this program works with no erro

Re: How do you call GetVersionEx (Windows)?

2010-08-23 Thread Yao G.
For my projects, I rolled my own headers. They are based (like the ones on dsource) on the MinGW32 project. But mine target Windows 2000 as minimal O.S. and use exclusively UTF-32 (the ASCI versions are not defined). Also, Replace UTF-32 with UTF-16 :D -- Using Opera's revolutionary e-mai

Re: How do you call GetVersionEx (Windows)?

2010-08-23 Thread Andrej Mitrovic
Very cool! Thanks, Yao. Yao G. Wrote: > snip

Re: How do you call GetVersionEx (Windows)?

2010-08-23 Thread Yao G.
Relevant links: http://dsource.org/projects/bindings/wiki/WindowsApi http://dsource.org/projects/bindings/browser/trunk/win32 -- Yao G.

Re: How do you call GetVersionEx (Windows)?

2010-08-23 Thread Yao G.
On Mon, 23 Aug 2010 18:47:02 -0500, Andrej Mitrovic wrote: I think it might be this one: http://hp.vector.co.jp/authors/VA028375/d/windows.h.html But those are old as well. Not a big deal, c linkage seems really easy from D. I don't think I'll have any problems using MSDN samples with a f

Re: How do you call GetVersionEx (Windows)?

2010-08-23 Thread Andrej Mitrovic
I think it might be this one: http://hp.vector.co.jp/authors/VA028375/d/windows.h.html But those are old as well. Not a big deal, c linkage seems really easy from D. I don't think I'll have any problems using MSDN samples with a few aliases sprinkled here and there. :) Yao G. Wrote: > I grabb

Re: Can't get D calling C to build.

2010-08-23 Thread bearophile
> I like this, and I love the way you install it, this is the way a compiler > has to be installed: > http://nuwen.net/mingw.html Uhm... The last version (6.6 that is gcc 4.5.1) seems to produce very large binaries, and the precedent version seems not available. Not good for you. Bye and sorry,

Re: Can't get D calling C to build.

2010-08-23 Thread Andrej Mitrovic
I haven't read the specifics of your problem yet, but have you tried using the newer TDM port of MinGW? The MinGW binaries are still using an older port of GCC, but the TDM version is much newer, so it might be worth trying it out. Get it from here: http://tdm-gcc.tdragon.net/ Hope that helps

Re: Can't get D calling C to build.

2010-08-23 Thread Bob Cowdery
On 23/08/2010 20:24, Bob Cowdery wrote: > On 22/08/2010 22:16, Bob Cowdery wrote: >> On 22/08/2010 20:57, bearophile wrote: >>> Bob Cowdery: Well, the link still works but the download is 0 bytes so I guess its not available. Thanks for the thought. >>> That links works for me :-) >>>

Re: Can't get D calling C to build.

2010-08-23 Thread Bob Cowdery
On 22/08/2010 22:16, Bob Cowdery wrote: > On 22/08/2010 20:57, bearophile wrote: >> Bob Cowdery: >>> Well, the link still works but the download is 0 bytes so I guess its >>> not available. Thanks for the thought. >> That links works for me :-) >> Be happy, bye, >> bearophile > Works if I paste i

Re: unittest questions

2010-08-23 Thread Steven Schveighoffer
On Thu, 19 Aug 2010 14:08:33 -0400, Johannes Pfau wrote: Hi, I wrote some unittests using the built-in d unittest and a came across 2 problems: 1) I have some code that accepts both delegates and functions. How can a unittest explicitly check the function part? Whenever I add a function in an

Re: typeid() after const/immutable qualifiers

2010-08-23 Thread Steven Schveighoffer
On Thu, 19 Aug 2010 12:47:45 -0400, Andrej Mitrovic wrote: Btw, should I skip trying to use inout at all for now? I've read some posts saying that it's awfully broken, and the example of inout in TDPL doesn't work.. Yes. I have expressed the cases that inout should deal with in bug ht

Re: Ways to initialize static arrays

2010-08-23 Thread Stanislav Blinov
23.08.2010 16:31, bearophile wrote: Stanislav Blinov: I was wondering if anyone has suggestions on performing arbitrary initialization of static arrays, size of which is arbitrary at compile time. Please explain your purposes a bit better. I have a struct template (let's call it S) that wrap

Re: Ways to initialize static arrays

2010-08-23 Thread bearophile
Stanislav Blinov: > I was wondering if anyone has suggestions on performing arbitrary > initialization of static arrays, size of which is arbitrary at compile time. Please explain your purposes a bit better. Bye, bearophile

Ways to initialize static arrays

2010-08-23 Thread Stanislav Blinov
Hello, I was wondering if anyone has suggestions on performing arbitrary initialization of static arrays, size of which is arbitrary at compile time. Consider this: template StaticArray(T,int N,T v) if (N > 0) { static if (N == 1) { enum T[N] StaticArray = cast(T[N])[v];

Re: template deduction

2010-08-23 Thread Mafi
Am 22.08.2010 21:45, schrieb bearophile: (...) import std.stdio: writeln; import std.typecons: Tuple, tuple; import std.traits: ReturnType, ParameterTypeTuple; struct Memoize(alias F) { ReturnType!F opCall(ParameterTypeTuple!F args) { alias ReturnType!F ResultType; static

Re: How do you call GetVersionEx (Windows)?

2010-08-23 Thread Stanislav Blinov
Oops, sorry, Thunderbird inserted second lpVersionInfo as a hyperlink :)

Re: How do you call GetVersionEx (Windows)?

2010-08-23 Thread Stanislav Blinov
22.08.2010 23:36, Andrej Mitrovic wrote: There's an example of a module constructor in TDPL. I don't think it's supossed to compile as it is, but I wanted to try it out anyway. I need a way to call the windows c function GetVersionEx. A grep through the source files doesn't find it (except in

Re: Can't get D calling C to build.

2010-08-23 Thread Kagamin
Bob Cowdery Wrote: > Thanks, that's an honest opinion. The first project I have in mind is a > personal one but it's quite large. My hope would be to move a lot of the > C code into D eventually. I don't think I would risk it on a commercial > project until the toolchain is sorted and its a bit mo