Re: COM Expertise needed: COM Callbacks

2017-04-28 Thread Nierjerson via Digitalmars-d-learn
On Friday, 28 April 2017 at 09:25:31 UTC, John Chapman wrote: On Thursday, 27 April 2017 at 20:20:23 UTC, Nierjerson wrote: QueryInterface is COM's version of opCast. It asks if you support the interface represented by an IID (riid). If you don't, then you return E_NOINTERFACE. If you do,

Re: COM Expertise needed: COM Callbacks

2017-04-28 Thread Nierjerson via Digitalmars-d-learn
On Friday, 28 April 2017 at 09:25:31 UTC, John Chapman wrote: On Thursday, 27 April 2017 at 20:20:23 UTC, Nierjerson wrote: I think the main issue though, is that I really don't know what is going on when I invoke the PS function. It seems to call the server method that takes the interface

Re: COM Expertise needed: COM Callbacks

2017-04-27 Thread Nierjerson via Digitalmars-d-learn
On Thursday, 27 April 2017 at 07:51:26 UTC, John Chapman wrote: On Wednesday, 26 April 2017 at 23:04:53 UTC, Nierjerson wrote: On Wednesday, 26 April 2017 at 15:30:37 UTC, John Chapman wrote: On Tuesday, 25 April 2017 at 18:39:56 UTC, Nierjerson wrote: [...] When you use

Re: COM Expertise needed: COM Callbacks

2017-04-26 Thread Nierjerson via Digitalmars-d-learn
On Wednesday, 26 April 2017 at 15:30:37 UTC, John Chapman wrote: On Tuesday, 25 April 2017 at 18:39:56 UTC, Nierjerson wrote: [...] When you use DISPATCH_PROPERTYPUT you need to set cNamedArgs and rgdispidNamedArgs like so: int dispidNamed = DISPID_PROPERTYPUT; params.cNamedArgs = 1;

Re: COM Expertise needed: COM Callbacks

2017-04-25 Thread Nierjerson via Digitalmars-d-learn
On Tuesday, 25 April 2017 at 10:03:30 UTC, Atila Neves wrote: On Monday, 24 April 2017 at 00:55:45 UTC, Nierjerson wrote: Still trying to get the com automation code working. This is a general issue with COM programming as I do not have the experience to solve the problem. [...] I tried

Re: COM Expertise needed: COM Callbacks

2017-04-24 Thread Nierjerson via Digitalmars-d-learn
On Monday, 24 April 2017 at 17:31:09 UTC, MGW wrote: On Monday, 24 April 2017 at 00:55:45 UTC, Nierjerson wrote: Still trying to get the com automation code working. This is a Please, use ZIP for archive. http://s000.tinyupload.com/index.php?file_id=67286353487198133918

COM Expertise needed: COM Callbacks

2017-04-23 Thread Nierjerson via Digitalmars-d-learn
Still trying to get the com automation code working. This is a general issue with COM programming as I do not have the experience to solve the problem. There are two files at: http://s000.tinyupload.com/index.php?file_id=33201858563271816000 Gen.d is the automatically generated COM wrapper

Re: Optilink bugs(or DMD)

2017-04-19 Thread Nierjerson via Digitalmars-d
On Wednesday, 19 April 2017 at 04:25:40 UTC, Stefan Koch wrote: On Wednesday, 19 April 2017 at 03:52:54 UTC, Nierjerson wrote: Major optilink bugs, blocker. Code is long but demonstrates the issue. Compiles with ldc. [...] There are two instances of void ForegroundColor(cSolidColor rhs)

Optilink bugs(or DMD)

2017-04-18 Thread Nierjerson via Digitalmars-d
Major optilink bugs, blocker. Code is long but demonstrates the issue. Compiles with ldc. The source is large so I uploaded it https://ufile.io/odaee or https://files.fm/u/frmks29t OPTLINK (R) for Win32 Release 8.00.17 Copyright (C) Digital Mars 1989-2013 All rights reserved.

Re: DMD crash, LDC crash, out of memory, no error display, etc

2017-04-11 Thread Nierjerson via Digitalmars-d
On Sunday, 9 April 2017 at 08:22:02 UTC, Rainer Schuetze wrote: On 08.04.2017 22:33, Nierjerson wrote: The project I am working on, which is near completion: https://github.com/IllusionSoftware/COM2D Automates COM wrapping almost completely. That is, it takes a converted COM idl file and

Re: DMD crash, LDC crash, out of memory, no error display, etc

2017-04-09 Thread Nierjerson via Digitalmars-d
I just tried compiling. dmd32 crashes optilink. dmd64 works(11m build) for the second reduced interfaces, but crashes for the ALL interfaces or the first reduced. I think D has some major problems. The code is relatively straight forward and works fine for a few interfaces. Nothing complex

Re: DMD crash, LDC crash, out of memory, no error display, etc

2017-04-09 Thread Nierjerson via Digitalmars-d
On Sunday, 9 April 2017 at 08:22:02 UTC, Rainer Schuetze wrote: On 08.04.2017 22:33, Nierjerson wrote: The project I am working on, which is near completion: https://github.com/IllusionSoftware/COM2D Automates COM wrapping almost completely. That is, it takes a converted COM idl file and

DMD crash, LDC crash, out of memory, no error display, etc

2017-04-08 Thread Nierjerson via Digitalmars-d
The project I am working on, which is near completion: https://github.com/IllusionSoftware/COM2D Automates COM wrapping almost completely. That is, it takes a converted COM idl file and generates a D wrapper which handles all the marshaling, invoking, creation, etc. The problem is that DMD

Re: Running out of memory ctfe 16GB

2017-04-07 Thread Nierjerson via Digitalmars-d
On Thursday, 6 April 2017 at 22:42:28 UTC, ketmar wrote: H. S. Teoh wrote: On Fri, Apr 07, 2017 at 01:16:20AM +0300, ketmar via Digitalmars-d wrote: Dmitry Olshansky wrote: [...] or use `char[]` buffer instead, manually increasing it's size by some step. assigning to such array won't do

Running out of memory ctfe 16GB

2017-04-06 Thread Nierjerson via Digitalmars-d
I am running out of memory trying to generate CTFE code. It is quite large generation but just repetitive loop acting on an array item. Surely 16GB should be enough to compile such a thing? I am using 64-bit dmd. It climes to about 12GB then eventually drops down to around 1GB and then back

Re: COM2D Wrapper

2017-03-28 Thread Nierjerson via Digitalmars-d-learn
On Tuesday, 28 March 2017 at 12:09:23 UTC, Kagamin wrote: On Monday, 27 March 2017 at 21:02:05 UTC, Nierjerson wrote: Anyone can help get this working? I think the issue maybe that the interface pointer returned by the COM interface is "C-like" and doesn't match what D expects an interface to

Re: COM2D Wrapper

2017-03-27 Thread Nierjerson via Digitalmars-d-learn
On Friday, 24 March 2017 at 18:17:31 UTC, Nierjerson wrote: I'd like to present the following D library I am working on: https://github.com/IllusionSoftware/COM2D It attempts to automate COM in D. It has some problems but does partially work. Those with a recent version of Adobe Photoshop

COM2D Wrapper

2017-03-24 Thread Nierjerson via Digitalmars-d-learn
I'd like to present the following D library I am working on: https://github.com/IllusionSoftware/COM2D It attempts to automate COM in D. It has some problems but does partially work. Those with a recent version of Adobe Photoshop and an interest in COM can try it out and make contributions