Click here to Skip to main content
16,009,728 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Axtivex controls Pin
Rizwan Bashir6-Jun-05 3:29
Rizwan Bashir6-Jun-05 3:29 
Generalrandom files..... Pin
virtual_manu6-Jun-05 1:32
virtual_manu6-Jun-05 1:32 
GeneralRe: random files..... Pin
toxcct6-Jun-05 1:48
toxcct6-Jun-05 1:48 
GeneralRe: random files..... Pin
Rizwan Bashir6-Jun-05 3:33
Rizwan Bashir6-Jun-05 3:33 
GeneralRe: random files..... Pin
virtual_manu7-Jun-05 5:14
virtual_manu7-Jun-05 5:14 
GeneralRe: random files..... Pin
Rizwan Bashir7-Jun-05 22:54
Rizwan Bashir7-Jun-05 22:54 
GeneralRegisteration of DLL Pin
Gagan Deep Singla6-Jun-05 0:53
Gagan Deep Singla6-Jun-05 0:53 
GeneralRe: Registeration of DLL Pin
enesaga1236-Jun-05 1:28
enesaga1236-Jun-05 1:28 
If you created the dll on .NET platform, you will still need to have .net framework installed on the target machine. Here is a sample class that's exposed to COM. You will also need to register the dll with regasm.exe utility found in %windir%\microsoft.net\framework\v1.1.*.
You can use this library in vbscript or vb6 (or any other COM client) simply with:
Set demo = CreateObject("Demo.demo") 'notice the ProgId below
Here is a link with some more explanation: http://www.codeproject.com/dotnet/nettocom.asp?df=100&forumid=14076&exp=0&select=1028513[^]


Imports System.Runtime.InteropServices
Imports System.Text

<guid("e3928d8b-4eca-42c1-81cf-482f1c18b5f7"), interfacetype(cominterfacetype.interfaceisidispatch)=""> _
Public Interface _demo
<dispid(1)> Function GetString(ByVal strString As String) As String
End Interface

<guid("e601fd54-fa5b-4b62-a7ae-abbe701b8626"), _
classinterface(classinterfacetype.none),="" _
progid("demo.demo")=""> Public Class demo
Implements _demo

Public Function GetString(ByVal strString as String) As String Implements _demo.GetString
Return "COM Sample"
End Function

End Class

Enes M
GeneralRe: Registeration of DLL Pin
enesaga1236-Jun-05 1:32
enesaga1236-Jun-05 1:32 
GeneralRe: Registeration of DLL Pin
MohammadAmiry6-Jun-05 2:24
MohammadAmiry6-Jun-05 2:24 
GeneralDirectoryServices Pin
nitin_ion6-Jun-05 0:22
nitin_ion6-Jun-05 0:22 
GeneralCrystal Report Formula Editor Pin
LordLothar5-Jun-05 23:11
LordLothar5-Jun-05 23:11 
GeneralRe: Crystal Report Formula Editor Pin
Yulianto.5-Jun-05 23:55
Yulianto.5-Jun-05 23:55 
GeneralRe: Crystal Report Formula Editor Pin
LordLothar6-Jun-05 2:06
LordLothar6-Jun-05 2:06 
GeneralRe: Crystal Report Formula Editor Pin
Yulianto.6-Jun-05 16:10
Yulianto.6-Jun-05 16:10 
Generalcrystal report help regarding jpeg image Pin
kar arnab5-Jun-05 22:24
kar arnab5-Jun-05 22:24 
Generalrun in LAN Pin
daneshmand5-Jun-05 22:00
daneshmand5-Jun-05 22:00 
GeneralRe: run in LAN Pin
Rizwan Bashir5-Jun-05 22:07
Rizwan Bashir5-Jun-05 22:07 
GeneralRe: run in LAN Pin
Yulianto.5-Jun-05 23:11
Yulianto.5-Jun-05 23:11 
GeneralRe: run in LAN Pin
daneshmand5-Jun-05 23:46
daneshmand5-Jun-05 23:46 
GeneralRe: run in LAN Pin
Yulianto.5-Jun-05 23:51
Yulianto.5-Jun-05 23:51 
GeneralRe: run in LAN Pin
Dave Kreskowiak6-Jun-05 1:05
mveDave Kreskowiak6-Jun-05 1:05 
GeneralDatagrid Pin
LordLothar5-Jun-05 21:10
LordLothar5-Jun-05 21:10 
GeneralConvert vbnet forms to asp.net Pin
smita_roy5-Jun-05 20:31
smita_roy5-Jun-05 20:31 
GeneralRe: Convert vbnet forms to asp.net Pin
Colin Angus Mackay5-Jun-05 20:58
Colin Angus Mackay5-Jun-05 20:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.