Upgrading to GdPicture.Net
Upgrading to GdPicture.Net
I work for a client who used GdPicturePro5 in Visual Foxpro. They have existimg lines of code that work fine with the version 5 but the second line fails as being an invalid class when I use the new version demo. The lines of code are (the word gdpicturepro5 has been changd to gdpicture9 represent the new version):
Thisform.AddObject("olecontrol1", "olecontrol", "GdPicture9.GdViewer")
Thisform.AddObject("olecontrol2", "olecontrol", "gdpicture9.Imaging")
the code then goes on and gives the licence numbers.
I have succefully run the vfp using com interop example on my computer. I have no experience at all with GdPicturePro and my client is wanting to update to the latest version. Can you suggest what I am going wrong? Any help would be much appreciated.
Thisform.AddObject("olecontrol1", "olecontrol", "GdPicture9.GdViewer")
Thisform.AddObject("olecontrol2", "olecontrol", "gdpicture9.Imaging")
the code then goes on and gives the licence numbers.
I have succefully run the vfp using com interop example on my computer. I have no experience at all with GdPicturePro and my client is wanting to update to the latest version. Can you suggest what I am going wrong? Any help would be much appreciated.
Re: Upgrading to GdPicture.Net
Hello,
You have to change:
by:
That said, GdPicutre.NET 9 is a totally different product than GdPicture Pro 5. Therefore, there is no backward compatibility and the above modification should not be enough to port the app from v5 to v9.
Let me know if you need further information.
With best regards,
Loïc
You have to change:
Code: Select all
Thisform.AddObject("olecontrol2", "olecontrol", "gdpicture9.Imaging")
Code: Select all
Thisform.AddObject("olecontrol2", "olecontrol", "gdpicture9.GdPictureImaging")
Let me know if you need further information.
With best regards,
Loïc
Re: Upgrading to GdPicture.Net
Many thanks for your quick reply and appreciate your comments about compatibility. When I run your suggestion it says "Class not registered".
Since the project I am wanting alter is rather smal in terms of Gdpicture commands used, is there are quick way you can suggest for me to learn how to convert the old code to new where necessary? It has to be done in Visual Foxpro as it is part of a much larger program written in that language.
Since the project I am wanting alter is rather smal in terms of Gdpicture commands used, is there are quick way you can suggest for me to learn how to convert the old code to new where necessary? It has to be done in Visual Foxpro as it is part of a much larger program written in that language.
Re: Upgrading to GdPicture.Net
Hello,
Sorry here a good syntax:
Kind regards,
Loïc
Sorry here a good syntax:
Code: Select all
oGdPictureImaging = CREATEOBJECT("GdPicture9.GdPictureImaging")
I can suggest to check our vfp9 sample provided in the package. If you need particular code snippet, just create a ticket on the code sample request section that you can find here: viewforum.php?f=29Since the project I am wanting alter is rather smal in terms of Gdpicture commands used, is there are quick way you can suggest for me to learn how to convert the old code to new where necessary?
Kind regards,
Loïc
Who is online
Users browsing this forum: No registered users and 2 guests