|
| {SPAM?} CallInterface Example |
| Iniciado por michele, 04,ene. 2010 21:29 - 1 respuesta |
| |
| | | |
|
| |
| Publicado el 04,enero 2010 - 21:29 |
Hi everybody,
I don't have experience on COM objects, but I need to run methods of an interface that resides in a dll file "novapi7.dll". I suppose that CallInterface instruction can help me but this intruction is totally different from VB or C# code. Where can I find an working example or a real explanation of this instruction?
In visual basic a slice of code for Interface access sound like this:
' the novapiLib package must be added as a COM reference Const PRINTER_NAME As String = "novaPDF for SDK v7" Const PROFILE_IS_Public As Long = 0
' The main entry point for the application. Public Sub Main() On Error GoTo ErrorHandler:
' create the NovaPdfOptions object Dim pNova As New NovaPdfOptions ' initialize the NovaPdfOptions object ' if you have an application license for novaPDF SDK, ' pass both the registration name and the license key to the Initialize() function ' pNova.Initialize2 PRINTER_NAME, '<registration name>', '<license key>', '<application name>'
pNova.Initialize2 PRINTER_NAME, "", "", "" ' get the active profile ... Dim activeProfile As String Dim bPublicProfile As Long pNova.GetActiveProfile2 activeProfile, bPublicProfile .. .. .. .. .. I can understand this in VB (it isn't too hard) but how can I do this in WLang?
Thanks everybody in advantage. Michele |
| |
| |
| | | |
|
| | |
| |
Miembro registrado 71 mensajes |
|
| Publicado el 25,marzo 2018 - 13:08 |
Hello Michele, I a facing similar problem. I am trying to control Bullzip PDF via COM but I am not able to create COM object in WinDev as it asks me for Class GUID, which I have but it also asks me for Interface GUID but I do not have this and I can not find a way how to get this number.
Did you ever solve your problem?
Petr |
| |
| |
| | | |
|
| | | | |
| | |
|