Importing Your Components DLLs to a VB6 DLL - WeOnlyDo Discussion board

Importing Your Components DLLs to a VB6 DLL (General questions)

by Traveller, Wednesday, November 06, 2013, 17:27 (3796 days ago)

Hi

I want Create a vb6 DLL which inherits all methods and events , ... etc from 2 or 3 of WOD-ActiveX DLL Components, Then I want to Write VB6 Application Samples in terms of this New VB6 DLL, What Should We Do Or How to Import your DLL's into My VB6 DLL So that it Functions Correctly?.

Any idea or Sample to clear How it should be done?.

Regards,
Traveller

Importing Your Components DLLs to a VB6 DLL

by wodDrazen, Thursday, November 07, 2013, 14:18 (3795 days ago) @ Traveller

Hi Traveller,


Is there any chance you want to explain what you want to achieve?

If you create new dll you still need to distribute our dll files with your application.


Regards,
Drazen

--
_________________________________________________
WeOnlyDo! Software - Internet Security Components
----------=== http://www.weonlydo.com ===----------

Importing Your Components DLLs to a VB6 DLL

by Traveller, Friday, November 08, 2013, 11:38 (3794 days ago) @ wodDrazen

Hi Drazen,

- off course The VB DLL Should Use Your DLL's other wise how it can import their
methods,properties, and Events.
- we may add new methods and properties, Events ..
- we may Hide the License key Check in anew function to be called.
- If possible, off course by encapsulating your DLL's inside that new DLL is Great.
- and any possible other things may come in mind later.

Thanks and Regards,
Traveller

Importing Your Components DLLs to a VB6 DLL

by wodDrazen, Friday, November 08, 2013, 13:52 (3794 days ago) @ Traveller

Hi Traveller,


OK I think you can create something like that.

Here is simple example that will show you how to call component About Method in another dll:
-------------------------------------
Option Explicit
Dim WithEvents sftp1 As wodSFTPCom

Public Sub dll_About()
Set sftp1 = New wodSFTPCom

sftp1.About
End Sub
-------------------------------------

inside this example I'm using wodSFTP ActiveX component.

Let us know how it goes.


Regards,
Drazen

--
_________________________________________________
WeOnlyDo! Software - Internet Security Components
----------=== http://www.weonlydo.com ===----------

Importing Your Components DLLs to a VB6 DLL

by Traveller, Friday, November 08, 2013, 15:10 (3794 days ago) @ wodDrazen

Hi Drzen,

- Is your Code is a Class module ? or Else.

- If it is a dLL class where are the steps to create a DLL ?
- And where is our new methods and new Events Examples Which
become a Proxy to the Original Methods an Events to be Called
instead.

- I hope you understand, and give steps as well as New methods and
Events which Implement yours as Proxy.

Regards,

Traveller

Importing Your Components DLLs to a VB6 DLL

by wodDrazen, Friday, November 08, 2013, 17:45 (3794 days ago) @ Traveller

Traveller,


I add this this code inside Class Module. This is full code I use.

I already send you example how to receive value from component Method. Using About Method inside my last reply. For using Events I think you can declare them using:
-------------------------
Public Event Event_Name()
-------------------------

you can call this event inside your code using:
-------------------------
RaiseEvent Event_Name
-------------------------

can you maybe try that and let us know how it goes?


Drazen

--
_________________________________________________
WeOnlyDo! Software - Internet Security Components
----------=== http://www.weonlydo.com ===----------

Importing Your Components DLLs to a VB6 DLL

by Traveller, Friday, November 08, 2013, 20:01 (3794 days ago) @ wodDrazen

Hi Drazen,

For the previous Sample Whe I run I got the following Error:

user defined type not defined , for the Code below:

Dim WithEvents sftp1 As wodSFTPCom

I don't know Why ... This Happens ?, I have Windows 7, tells me
that the Component is not registered .. Why .. How to Solve this issue?

If we solve this issue first, I may be go forward to Add Events.

Regards,

Traveller

Importing Your Components DLLs to a VB6 DLL

by wodSupport, Friday, November 08, 2013, 21:01 (3794 days ago) @ Traveller

Hi.

Seems to me you didn't add reference to wodSFTP to your project. Possible? I suggest you check out basic

http://www.weonlydo.com/SFTP/Help/wodSFTP-Getting-Started-Getting-Started-in-VB.html

to help you out.

Regards,
Kreso

Importing Your Components DLLs to a VB6 DLL

by Traveller, Saturday, November 09, 2013, 08:25 (3793 days ago) @ wodSupport

Hi

- I already have done what you Said, But that happened.

- I think the Error is in the Implementation method of the class may be
In form Code Side.

- And I Noticed Also while I installed the Visual Studio 6, that messages
popping up telling me that this window version has incompatibilities issues
with the current software .. and I installed however.

I don't know if this is really an issue for our applications .. and if there
is a certain solution for it... any one who knows ... let me know what to do.

Regards,
Traveller

Importing Your Components DLLs to a VB6 DLL

by wodSupport, Saturday, November 09, 2013, 08:35 (3793 days ago) @ Traveller

Hi.

VB6 works just nice in Win7/Win8. It does report compatibility issues, but works ok - we test components daily with it. So, no worris, you can continue with your work.

Kreso