|
|
 |
moe_syslak$2007045 moe_syslak 02/15/2007 :: 13:21
Registered
| | Hello gdTeam,
I got the vb.net-sample and added my own Form to it (Form2) and maked Form 2as Startform , but cant use there the oGDViewer and his methods. The gdPicture is available there.
I did in form2 same like sample form1: Public Class Form1:
Dim oGdPicture As New GdpicturePro.cGdPicture Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'oGdPicture.SetLicenceNumber("myLicenseKey") 'oGdViewer.SetLicenceNumber("myLicenseKey") End Sub
Have i to instanciate an oGDViewer- object, like the object oGDPicture above or what is going wrong here?
Thank you for answering and best regards, MOE | |
 |
moe_syslak$2007045 moe_syslak 02/15/2007 :: 13:27
Registered
| | alltimes when typing "oGDViewer." , my developement environment says that oGDViewer is not declared, so i think i have to instanciate oGDViewer like the oGDPicture-object, but this is running fail to.
| |
 |
Loïc$2006306 Loïc 02/15/2007 :: 18:06
Registered
| | Hi Moe,
The GdViewer class is a visual class. You have to draw a gdviewer object into your form before to call its methods. To draw a gdviewer into your form you have to first to add a reference to the gdviewer component to your project within your development tool.
Best regards,
Loïc Carrère | |
 |
moe_syslak$2007045 moe_syslak 02/16/2007 :: 18:00
Registered
| | To draw a gdviewer into your form you have to first to add a reference to the gdviewer component to your project within your development tool.
I did so.
But i have now two different references inside, one of my buyd version named "AxInterop.GdpicturePro" and then one of "Interop.GdpicturePro".
What mean the AX and why must have this 2 references.
Now its running fine!
Thank you
Moe | |
 |
Loïc$2006306 Loïc 02/17/2007 :: 17:47
Registered
| | Hi,
The iterop.GdPicturePro is a wrapper generated by the tlbimp application to access to the activeX with a .NET assembly .
http://msdn2.microsoft.com/en-us/library/tt0cf3sx(vs.80).aspx
Each time you want to use an activeX or a COM application into a .NET project you have to create a wrapper with tlbimp. This step is now automaticaly done with many .NET developement tool.
Best regards,
Loïc Carrère | |
 |
moe_syslak$2007045 moe_syslak 02/17/2007 :: 23:01
Registered
| | thx, now its clear for me. 
I need a samplecode (vb.net) for set an effect to an selected area and drawing selected area as a new picture on my viewer. I got problems to realize it.
| |
 |
Loïc$2006306 Loïc 02/20/2007 :: 15:26
Registered
| | Hi,
Into the next 3.0 version i will add a sample to do that.
Best regards,
Loïc Carrère | |