Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




COM/DCOM In VB.6.0


Hi all,

I want to know more about COM/DCOM programming using VB.60.Can you send some examples based on that or can you give some Url's so that i can explore it .

Please send me some information as well as examples


Thanks

Ambily




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
DCOM Clients With Multiple DCOM Servers....
I have a need to have a DCOM Client type application access a class on a server.. This works all and well with one known server..

But lets say that each client has the ability to function as a server as well.

During install of the DCOM Client application, I am prompted for the net address of the /server/ machine, as i left this blank during creation of the server class's.


Is there a way to configure the client to have the ability to access multiple servers? Not all at once, but say dcom_server1 is down..

The client will not be able to create an instance of the dcom server application on that server.. I want it to try /another/ server, i.e. dcom_server2, or such.. Untill it has exausted a list of known machines.

Thanks in advance.

Dave Rich
Software Automation Engineer
Nucor Steel

What Is DCOM?
Ok... what is DCOM and how is it related to VB?

Dcom?
Anyone know or own a good website that explains DCOM in depth? Just on a search for knowledge.

Thanks,
Aaj

Dcom
Edit:
Thanks for checking the thread out ... however I have solved my problem. Thanks anyway.


Hi everyone ... I am having a problem using DCOM on my school computer. It's running win98 and I recently installed Dcom98.

I have done some searching on the forum, and on microsofts site, however I can't seem to setup DCOM. Apparently there is a configuration screen that lets you configure some DCOM security settings, however I don't know how to bring this screen up. I have read in a few places that I should be able to use DCOMCNFG.EXE, but from where? I don't see that file on my computer, and when I try to run it from the start menu I just get an error.

Can someone steer me in the right direction please .... either by explaining something that I'm missing, or even posting a link (I did a google search already also, and found some info, but nothing that has solved my problem yet).

thank you.

Need Help COM/DCOM
Hi all

from where can i fine some usefull help and good information about COM DCOM

Thnks

Dcom
hi friends,

can anyone explain me the implementaion of dcom, with some example if possible.

thanks

Dcom && Mts
hi Guys,

I have theorotical knowledge about COM & MTS but I never come across practically. Is there any practical tutorial or project so that i will get little bit practical idea about it.

Thank you,

Com/dcom
Hi,

I am completely new to VB6, i want to know how to use COM/DCOM and COM+ components in VB6. I mean in the VB code how to instantiate COM components. If i want to call COM components from VB6 how can i call? can some one provide me with code how to do that. and at the same time DCOM also. I greatly appreciate your help.
Thank You

COM && DCOM
What is COM and DCOM?

Com And Dcom
hi,
i am intrested to learn about com and dcom. any one can send me a documentation in this area. my mail id is - quietrajesh@rediffmail.com. or else send me a good site name. ok.
bye..

Dcom
hi friends,

can anyone explain me the implementation of DCOM, if possible with some example.

thanks

Different Between COM+ And DCOM...???
What is the difference between COM+ and DCOM???

Woka

Com && Dcom
can anyone tell me about what COM & DCOM is ? and
how it is related to VB.

Dcom
Hi,

What is DCOM ?? Can anyone send or refer me a tutorial on DCOM ??

Thanx

Dcom
Hi All,

Can anyone help me in Configuring DCOM for Windows 98. I have downloaded dcom98.exe and dcm95cfg.exe from microsoft site and installed in my system. How should i proceed further??. Help me on this. Thanks

What Is DCOM 98?.............
and how do I get it intop my instalation package?

Dcom
Once I make a DLL how can I set up the client to access the dll on a remote server from another machine in an MTS environment?

thanks

Is It Using DCOM?
HI, I have two(2) activeX components that I've created.

One is a .dll, the other is an .exe.
Both work fine... even in in the distributed environment.

However, I can't see my .dll in my DCOM utility... does this mean only .exe's can be true DCOM apps?

I compiled the .dll and even used the regsvr32 utility to make sure it was registered. Then in the Project | References section of my testbed app, i browsed the network and pointed to the .dll on the other server (both by the way are Win2K adv servers). Ran the app and it worked fine...even the intellisense. But when i went to find the component in the Applications tab of the DCOM util, it wasn't there.... just the .exe.

Any ideas??? Thanks in advance!

Com / Dcom
hi

please give me a sample program for com / dcom.

Is it com and activeX, both are same? pl clarify.

bye

Dcom Or Dcom+
Can anyone give a good example where to use DCOM(+)

Dcom?
How can I enable my end users to get an update to my APP that I have distributed to them via the Internet? I have my own server so I have total control over that part of it. So do I have to make DCOM components or what?

Thanks

This is new to me as a programmer. I know it exists just don't know how to implement.

Dcom
Hi people,

I am building an app that needs to run on win2k terminal servers and nt4 workstations - the w2kts works but the nt4 machines say that they need to have dcom installed - but when I run the dcom exe on the vb6 professional disk it just says that it will only run on 95 and 98.

does anyone know what dcom to install to make this work.

Thanks

Simon

Dcom
All I am wanting to do is create a one line function, which displays a message box within a dll. The part I need help with is calling the component remotely using DCOM. Both machines are Win2K. Can someone explain how to do this.

What It DCOM?
Hi everyone.

I know what COM is , but DCOM? How does it work? Any tutorials?

Thanks

Dcom
I need to install DCOM for deployment on Win95 and 98. Where do I download DCOM and what am I supposed to do diffently from now? I am using P&D Wizard.

Com, DCOM, COM+
Hallo all

I know this is not a direct question for a problem, but does anyone know how to use them, how to create them? Any information will be appreciated!

Thanx

DCOM In Vb
hi.

new in dcom .

2 q:

1.i get an error msg when im try to raiseEvent from the
server ( other computer) ...
the error is "security package-automation error"

is there somthing special to do..so the DCOM server can
raise events and the client will notify correctly?

2.if i pass refrence to DCOM Server...
and the the DCOM server calls method to that reference object , the method can call correctly?
example:
public Sub MethodDCOMSErver( obj as CMycls)

DCOM
Hi,
Can anybody explain me how to create DCOM Application in Visual Basic 6.0(SP3)? I'm having 5 Exes for front end and 6 Dlls and Data in Sql Server. How to put Dlls in Server and access it from client? Is it necessary to install Dll files in client system?

Sujatha

MTS/DCOM
I'm using MTS in order to run some of my application code in the server runtime environment. In order to distribute this remote package to my clients, I'm using the application executable utility that comes with MTS. However, I noticed that the registry entries that this utility creates reference the server by its computer name, and not by an IP address. Is this sufficient identification for a client that may be half-way around the world? I don't see how that person's machine would be able to resolve a computer name, when the server is on a completely different network.

Anyone have some info on this issue?

Thanks in advance,

Nahid Harjee

Dcom Help
My App needs Dcom.
Does anyone knows how to find if a machine has Dcom installed? Maybe in registry?

Thank's in advance!!

SacDev

What Is COM/DCOM
Well, what is COM/DCOM ???


Steve

DCOM
hi,
I am Create one *.tlb file (ActiveX EXE). In Local
Machine I able to Use this Component Using the
CreatObject("*.Combom").

I Want to put that .tlb file into another machine.
and i want to access that file into my machine.

I try the following code:

createObject("Hai.Combo","Suresh")

the Hai.Combo is example of the .tlb file and the
Suresh is the that .tlb is Computer name.

we are connecting computers in D-Link type Network.

But it is not working. Please tell me how i access the
another computer Dcom applications.

Thank you.
S.Suresh Rajkumar
(Software Engineer).

COM && DCOM
hi all,

          i want to learn COM & DCOM clearly. i know some what COM but i dont know DCOM. how to use. so please send me some materials or site ids on COM & DCOM, which will help me a lot.



Thanks in advance

         




Edited by - Lokesh_c on 5/18/2004 11:16:34 PM

COM/DCOM Help
Hi all citizens

is this city friendly with COM/DCOM programmers or are they intruders ?
let me know
if there r some programmers, then they can guide me for some good links for com/dom programming using vb

wwaiting.......
for response


Samir
Skill is successfully walking a tightrope over Niagara Falls. Intelligence is not trying.

Dll, COM, COM+ And DCOM
Hi,

Can anyone tell me difference between ActiveX dll, COM, COM+ and DCOM?

What is the use of Component Services for our application?




Regards

Riyaz

Dcom Or Sop?
Hi there,

I m working on a project where my main program is calling thru the net a web server to log in and retrieve some info. I m using Dcom DLL for now and it s working pretty good if there is no firewall.. But if there is a firewall it doesn t wanna work.. is Dcom dealing ok with firewall? what do i ve to do or add to make it work?

If not what should i use? SOAP or something like that?

Thx a lot for help

DCOM Vs MTS/COM+
I use DCOM to compartmentalize my application so that different layers and
different components may run on different machines altogether.

Now I do all of my transactions on SQL Server, and thus I don't need the
transaction capability of MTS/COM+ (I have yet to find a situation that
forces me to adopt MTS over SQL Server). I am wondering if there is any
advantage in re-implementing my DCOM objects as MTS/COM+ objects. I must
admit that I am not very proficient with MTS/COM+, and have tried to stay
away from them. Especially now that .Net doesn't seem to embrace the COM
model anymore, I have my doubt about getting myself completely immersed with
MTS/COM+ way of doing things. I guess I am trying to find out if there are
any overriding advantage in migrating my existing components from DCOM to
MTS/COM+ models.

I would appreciate some input on this.

Thanks in advance

Dcom
I need some pointers on configuring DCOM.

I have an ActiveX EXE that I would like to designate as a DCOM Server. I checked the remote server file option under project properties, and added VBR file when creating a set-up package for it.

If I am not mistaken, I can simply run set up to install the DCOM server component at any server machine. I can also use myexe /unregserver, myexe /regserver to register or unregister on the server.

Now exactly what do I have to do to deploy the component on the client? Do I run the whole set-up again? That seems unnecessary because the client only needs the interface, and I can use DCOMCNFG to tell the client which server would have the implementation. Or I do need to install the whole package regardless whether I am deploying the component on the server or merely the interface to the component on the client?

Thanks in advance

Dcom....
Hello,

I am trying to configure a VB component using DCOMCNFG utility. The problem is when I make a dll and try to see it on the DCOMCNFG panel, I can't see. I know that the GUIDs are displayed on the panel, but I want to know how can I list a component on it's name. Say if my component is called Accounts, I want to see the component on the panel as Accounts. Is this possible? I see that a VC++ dll is visible but not a VB dll. I am using a 2000 server. I also tried on a NT server. Please help....

Varne

DCOM
I created the ActiveX EXE I registered the exe on the second machine and I am calling the EXE on the second machine from first machine using createObject(classname,second computer name),On the first computer it's giving the Permission denied and run time error 70

Any one can help me....
Advance thanx.........

DCOM
If i want to implement a component as adcom component then should i make that component activex exe or activex dll and why?

MTS DCOM
THE MSDTC HAS THE FOLLOWING VERSION AND PROPERTIES.
MMC 1.1
VERSION 4.0 SERVICE PACK 6
MTXAS.DLL VERSION 02.00.00.532


TWO COMPONENTS
1 MSTRTRANSACTION
PROPERTIES = REQUIRES A TRANSACTION
MULTIUSE
2 MSTRMANAGER
PROPERTIES = REQUIRES A NEW TRANSACTION
MULTIUSE
CODE IN MSTRTRANSACTION.CLSMSTR



Option Explicit
Public Function ReadtbbmstrName(pstrActno As String, pstrAppid As String) As String
On Error GoTo errHandler
Dim objContex As MTxAS.ObjectContext
Dim con As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim strSql As String
App.StartLogging App.Path + "mstr.log", vbLogToFile

App.LogEvent "Before Objectcontex"

Set objContex = GetObjectContext()
con.Open "dsn=Winbank Data", "sa", ""
con.CursorLocation = adUseClient
App.LogEvent "after connection "

strSql = "select sht_nm from tbbtmstr where act_no='" & pstrActno & "' and app_id='" & pstrAppid & "'"
rs.Open strSql, con, adOpenDynamic, adLockBatchOptimistic

App.LogEvent "after recordset"

If Not rs.EOF Then
ReadtbbmstrName = rs.Fields(0).Value
Else
ReadtbbmstrName = "0"
End If
App.LogEvent "complete"
Set con = Nothing
Set rs = Nothing
objContex.SetComplete

Exit Function

errHandler:
App.LogEvent Err.Description
ReadtbbmstrName = "0"
objContex.SetAbort
End Function



CODE IN MSTRMANAGER.MANAGER



Public Function ReadMstr(pstrActno As String, pstrAppid As String) As String
On Error GoTo errHandler
Dim objContex As MTxAS.ObjectContext
Dim objMstr As MSTR.clsMstr
Dim strName As String

Set objContex = GetObjectContext()
Set objMstr = objContex.CreateInstance("MSTR.clsMstr")

strName = objMstr.ReadtbbmstrName(pstrActno, pstrAppid)
ReadMstr = strName

objContex.SetComplete
Exit Function

errHandler:
App.LogEvent Err.Description
ReadtbbmstrName = "0"
objContex.SetAbort
End Function

CODE FOR CALL THE ABOVE COMPONENT


Option Explicit

Private Sub Command1_Click()
Dim x As New prjMstr.Manager
Dim st As String


MsgBox x.ReadMstr("00020010001001", "1")

End Sub


WHEN I DEPLOY THE ABOVE CLASSES ON MTS SERVER AND FROM THE CLIENT RUN THE EXE IN THE CLIENT DIRECTORY
FIRST TIME THE DEPLOYMENT RUNS FINE AND WHEN I USE THE REFRESH ALL COMPONENTS ALL THE COMPONENTS FROM
MTS EXPLORER AND AGAIN RUN THE APPLICATION I GET NO RESULTS. WHAT CAN I DO ????


VCK

Dcom
I'am trying to install Application Software.
While installing it asks to install DCOM98.
During installiation Of DCOM98 it is given an error uninstall older version of DCOM98 and then try to install new version of DCOM98.

How do I uninstall DCOM98?

I tried in ControlPanel->Add/Remove Program,
but here i cannot find DCOM98 in the installed list.

Thanks for sending reply.

Ramesh

DCOM
Hello,
I build and compiled a ActiveX EXE on NT4 SERVER machine. I would like to access this ActiveX EXE in the Client machine running Client Application under NT4 Workstation using the DCOM configuration. My question is, Do I need to install the ActiveX EXE in the Client machine?
Anyone who can teach DCOM configuration step by step?
Thanks in advance!

asktolearn

DCOM
Can someone explain how DCOM works. I have a very very simple form, that uses a .tlb file from another application called Maximizer.

The problem I have is the Dcom does not run unless I give users administrator rights. Without these rights , error messages pop up with permission denied and ActiveX object can't be created.

Also when reading and writing information to the database takes so long.

DCOM
Can someelse explain how DCOM works. I have a very very simple form, that uses a .tlb file from another application called Maximizer.

The problem I have is the Dcom does not run unless I give users administrator rights. Without these rights , error messages pop up with permission denied and ActiveX object can't be created.

Also when reading and writing information to the database takes so long.

COM, DCOM
Could someone give some insite abt COM, DCOM technology, on what it is and how I can go about learning it? I have a general idea, but dont really know how the development work is dont using these technologies.

I just got a job offer with a company that uses it and I have no clue abt it! I have two weeks to prepare myself for the new job and would appreciate any advice ! ! !

What Is COM, COM+ ,DCOM
Hello VB_Gurus,

Pleaseeee...Can anybody explain to my confused mind what is COM,COM+,DCOM,ActiveX Exe and ActiveX Dll.Do ActiveX Exe and ActiveX Dll are the same with COM,COM+ or DCOM?

Thanks in advance Great people!

asktolearn

DCOM And IIS
I'm instantiating an in-proc component from ASP which in turn calls a DCOM service. IIS has 3 levels of authentication- Anonymous, Basic, and NT Challenge/Response. The only way the component works is if Anonymous authentication is used running under a valid domain id. Top level navigation through the Intranet site has NT Challenge/Response authentication. If the ASP page is accessed directly then the component works; if the ASP page is navigated to from elsewhere on the site then the component fails. Is there anyway to force the ASP page to operate under an appropriate security context for the DCOM service no matter how it is navigated to?

Thanks.

Copyright 2005-08 www.BigResource.com, All rights reserved