Call a method in own Dll from e.g.VB6 doesn't work

Discussions about GdPicture.NET usage in non managed applications built in vb6, Delphi, vfp, MFC c++ etc...
Post Reply
iirusger
Posts: 12
Joined: Mon Jan 05, 2009 1:37 pm

Call a method in own Dll from e.g.VB6 doesn't work

Post by iirusger » Wed Mar 11, 2009 3:02 pm

I have created a own DLL which use the GdPicture.NET.DLL to call only the method "CreateGdPictureImageFromFile".

If I call this own DLL from an other .Net application I get the handle as returncode. :D
But if I call this DLL from a VB6 application the returncode of the method "CreateGdPictureImageFromFile" is ZERO! :(

The GdPicture object is created at this time and other methods are running right.

If you will see what I have done, I can send you the VisualStudio2008.NET- DLL- project, the .NET-Test-project and the VB6-Test-project (total 6MB) in a zip.
I've try to upload this ZIP as attachment, but it doesn't work. (I think it's to big)
Is it possible to send you the ZIP-file?

Call my DLL from other VBA-projects doesn't work too.

Call this GdPicture method is essential for me and my application.

Using GdPicture.Net directly in VB/VBA isn't possible, I think.

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Call a method in own Dll from e.g.VB6 doesn't work

Post by Loïc » Wed Mar 11, 2009 3:35 pm

HI,

First,
I deleted your attachments - > They included your project source with a commercial GdPicture.NET license key ! Please try to not diffuse/share your unlocking key.

I will have a look on your project later...

Best regards,

Loïc

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Call a method in own Dll from e.g.VB6 doesn't work

Post by Loïc » Thu Mar 12, 2009 8:21 am

Ok I found a problem related to COM interop.

I will publish a new package within few hours with this bug fixed and a vb6 sample using GdPicture.NET.

Cheers,

Loïc

iirusger
Posts: 12
Joined: Mon Jan 05, 2009 1:37 pm

Re: Call a method in own Dll from e.g.VB6 doesn't work

Post by iirusger » Tue Mar 17, 2009 11:36 am

Loïc wrote:Ok I found a problem related to COM interop.
I will publish a new package within few hours with this bug fixed ...
Where I can see and get the published new package?
We need it to go on. :!:

regards
iirusger

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Call a method in own Dll from e.g.VB6 doesn't work

Post by Loïc » Tue Mar 17, 2009 2:27 pm

Hi,

The update are available from here: https://www.gdpicture.com/download/downl ... urenet.php

Best regards,

Loïc

iirusger
Posts: 12
Joined: Mon Jan 05, 2009 1:37 pm

Re: Call a method in own Dll from e.g.VB6 doesn't work

Post by iirusger » Wed Mar 18, 2009 8:55 am

Loïc wrote:Hi, The update are available from here: https://www.gdpicture.com/download/downl ... urenet.php
Really, it works.
I can call now my .NET-DLL from VB/VBA and get the right result.
Thank you. :D

regards
iirusger

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest