Re: DMDScript

2014-07-14 Thread Jason King via Digitalmars-d-learn
My idea is to use (at least test) DMDScript for server side JS. I don't mean to sound like a D-hater here, but V8 has had about 2 years more work on it than DMDScript. At one time they were. IIRC, quite close performance-wise but lots of work and support by Google have probably levered past

Re: SImple C++ code to D

2014-07-14 Thread Jason King via Digitalmars-d-learn
On Monday, 14 July 2014 at 14:50:36 UTC, Alexandre wrote: Yes yes, I did it, I used the anonymous type Look the complete code: https://gist.github.com/bencz/3576dfc8a217a34c05a9 I know, has several things that can be improved Now that you've done that, can you build us a linker that reads

Re: DMDScript

2014-07-13 Thread Jason King via Digitalmars-d-learn
On Friday, 11 July 2014 at 15:45:42 UTC, Chris wrote: Tried to compile on linux, got this error message (I guess I can fix it): dmd -c textgen.d textgen.d(36): Error: cannot implicitly convert expression ("DMDScript fatal runtime error: ") of type string to char[] .. bunch more errors. You m

Re: implib and system dlls, oh my

2014-07-07 Thread Jason King via Digitalmars-d-learn
Let me see what I can do for time. There's the above, it's also possible to link mixed coff and omf with jwlink (http://www.japheth.de/JWlink/JWlink.htm). There's a couple of paths and while win32 isn't leading edge, I think enhancing it is a worthwhile project for lesser lights like myself.

Re: implib and system dlls, oh my

2014-07-07 Thread Jason King via Digitalmars-d-learn
You may want to spearhead the effort to get Win32 support of MSVC into D, if you care enough about it. Rainer has done most of the work, you'd just have to turn his patches into pull requests, shepherd them through the review process, and maybe add some polish: http://forum.dlang.org/thread/

Re: implib and system dlls, oh my

2014-07-06 Thread Jason King via Digitalmars-d-learn
You may want to spearhead the effort to get Win32 support of MSVC into D, if you care enough about it. Rainer has done most of the work, you'd just have to turn his patches into pull requests, shepherd them through the review process, and maybe add some polish: http://forum.dlang.org/threa

Re: Why is the Win32 boilerplate the way it is?

2014-06-30 Thread Jason King via Digitalmars-d-learn
On Monday, 30 June 2014 at 15:19:39 UTC, Adam D. Ruppe wrote: On Monday, 30 June 2014 at 15:14:24 UTC, Jeremy Sorensen wrote: documentation means "import core.sys.windows.windwos" The Windows headers that come with D are pathetically minimal. You'll need to grab a more complete win32 header O

Re: Why is the Win32 boilerplate the way it is?

2014-06-30 Thread Jason King via Digitalmars-d-learn
On Monday, 30 June 2014 at 05:30:23 UTC, Jeremy Sorensen wrote: Assuming the nCmdShow thing isn't a problem I see no reason why the wiki should tell people to use WinMain at all. If MSDN is to be believed VOID WINAPI GetStartupInfo( _Out_ LPSTARTUPINFO lpStartupInfo ); will get you nCmdShow a

Re: rehabilitating Juno

2014-06-24 Thread Jason King via Digitalmars-d-learn
FYI after running coffimplib over SDK versions of oleaut32.lib and gdiplus.lib I've gotten all the examples in the makefile to run. Next up for me is to get tlbimpld compiling and I'll fork and do a pull request to add that to the makefile.

Re: implib and system dlls, oh my

2014-06-24 Thread Jason King via Digitalmars-d-learn
I don't know enough about implib to explain it. But another method that I believe should work is to use linker definition files. It'll allow optlink to work. Just add it to dmd, actually I believe it needs to be passed to Optlink (so -L it). Another fix, might be to use 64bit, but shouldn't

implib and system dlls, oh my

2014-06-24 Thread Jason King via Digitalmars-d-learn
On Tuesday, 24 June 2014 at 04:37:56 UTC, Rikki Cattermole wrote: On 24/06/2014 1:13 p.m., Jason King wrote: This is me trying to link with Juno and getting tantalizingly close to success. DMD home is d:\d so binaries are d:\d\dmd2\windows\bin (on path) Juno is in D:\dlang\Juno-Windows

Missed it by THIS much

2014-06-23 Thread Jason King via Digitalmars-d-learn
This is me trying to link with Juno and getting tantalizingly close to success. DMD home is d:\d so binaries are d:\d\dmd2\windows\bin (on path) Juno is in D:\dlang\Juno-Windows-Class-Library D:\dlang\Juno-Windows-Class-Library\juno.lib exists sc.ini is untouched D:\dlang\Juno-Windows-Class-Lib

rehabilitating Juno

2014-06-19 Thread Jason King via Digitalmars-d-learn
This is specifically for Jesse K Phillips, Jesse, It appears we're both interested in Juno. You lack time and I lack D experience. What could a D clown do for your juno repository to get it functional again. The last time I grabbed the code and ran it vs. current D compiler I got a whole bu

D and windows console kbhit, getch etc

2012-06-02 Thread Jason King
I've seen a few messages asking how to get this to work and the replies that were functional involved snagging the console input handle and trolling for keyboard events yourself. Since that code is inside the standard library (at least for DMD) I figured out the proper mix to make it work. i

Re: libraries and c++ compatibility

2012-05-13 Thread Jason King
. C:\ocilib\ocilib3.9.3\lib32>dmc myapp.cpp -c -Ic:\ocilib\ocilib3.9.3\include C:\ocilib\ocilib3.9.3\lib32>optlink myapp.obj,,,ociliba-dm.lib OPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved myapp.obj(myapp) Error 42: Symbol Undefined _OCI_Clean

libraries and c++ compatibility

2012-05-12 Thread Jason King
I'm trying to use ocilib (deimos\ocilib) bindings and having some issues. dmd 2.0.59, Windows 7 64 bit. I can change sc.ini to get everything to build. I can compile with dmd myapp.d -I -c, but I can't seem to figure out the right switches to make the app find the ociliba-dm.lib that I generate

Re: struct to/from void, object to/from void

2012-04-29 Thread Jason King
Thanks for the rapid reply. void* opCast() { return &this; } Honestly, in my opinion, drop this. Don't make it more 'pointer-like'. Unless there's a good reason, or it makes sense (Mathematical), then don't. You keep having half the tests using regular &(address) operator; wha

struct to/from void, object to/from void

2012-04-29 Thread Jason King
I'm another of what seem to be legions of people trying to interface with OS stores that keep void * in c/c++. My particular one is Windows TLSData, but for my example I don't need any Windows code, just D. // this based on code I snagged from this group // DMD 2.059 Win 7 Home Premium 64 bit.

Re: htod

2011-08-15 Thread Jason King
Thank you very much, that solved my issue. C:\dir>htod -I c:\d\dm\include ocilib.h Fatal error: unable to open input file 'stdlib.h' You have an extra space there. Use: htod -IC:\d\dm\include ocilib.h That will work.

Re: htod

2011-08-12 Thread Jason King
My expectation is not that I can htod that 17k line header and magically have a d module. A lot of the header is #define'd constants and typedefs and I _do_ expect htod to remove some of the scutwork involved there. At this point I'd just be happy if it ran w/o error. There's nothing wrong

htod

2011-08-12 Thread Jason King
I'm attempting to convert a c header to d using htod. If this is not current best practice please point me in another direction. C:\dir>htod -I c:\d\dm\include ocilib.h Fatal error: unable to open input file 'stdlib.h' C:\dir>dir c:\d\dm\include\stdlib.h Directory of c:\d\dm\include 07/28/20

IDispatch/activex objects in 2011

2011-08-08 Thread Jason King
I need to interface with an application that has an IDispatch (activex/ole/automation) interface. I can find some threads from 2006 about how painful that was. I'm suspecting that in the intervening 5 years progress has been made, but I'm having trouble finding it. The manual says D interfac