473,508 Members | 2,236 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

get MSDASC.DataLinks COM Object used CreateObject function in VB or PB

------------------------------------in
VB------------------------------------------------------------------
Dim oDataLink As Object 'MSDASC.DataLinks
Dim oCon As Object 'ADODB.Connection

On Error Resume Next
Set oDataLink = CreateObject("DataLinks")
If oDataLink Is Nothing = False Then
Set oCon = CreateObject("ADODB.Connection")
'Create new Link
Call oDataLink.PromptEdit(oCon)
'Modify Link
' oCon=oDataLink.PromptNew()
OLEDBConnectionStringCreate = oCon.ConnectionString
Else
Debug.Print Err.Description
Debug.Assert False
End If
Set oCon = Nothing
Set oDataLink = Nothing
----------------------------------------------in
PowerBuilder-----------------------------------
OLEObject DataLink
OLEObject ADOConnection
DataLink=create OLEObject
ADOConnection=create OLEObject
try
DataLink.ConnectToNewObject("DataLinks")
ADOConnection.ConnectToNewObject("ADODB.Connection ")
ADOConnection=DataLink.PromptNew()
// edit connection string
//DataLink.PromptEdit(ADOConnection)
finally
DataLink.DisconnectObject()
ADOConnection.DisconnectObject()
Destroy DataLink
Destroy ADOConnection
end try

Feb 28 '06 #1
0 3009

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
6997
by: Doug | last post by:
Hi, I was wondering if someone can help me - I need to provide the user with the DataLinks dialog box and then use the connection string that is generated from it. I've tried, but can't figure...
0
2598
by: Burton Wilkins | last post by:
Gentleman: I'm trying to get the DataLink to work under C++, and I need help. I'm able to make it work under VB and C#, but not C++. Under C# (with references to "adodb", and "MSDASC") , I would...
15
6719
by: Carlos Lozano | last post by:
Hi, What is the right way to create an OCX COM component. The component is already registerred, but can't create an instance. I am using the reference to the interop module created. If I use...
4
411
by: hansiman | last post by:
Coming from classic asp, I'm a bit in the dark here. I want to dispaly the content of a file in a literal server control. I've created a class utils.vb Imports System.IO Public Class...
2
1919
by: danielle.m.manning | last post by:
I have a question about a problem I am having with attempting to port some old ASP code to ASP.NET. We have a dll out there which we downloaded which creates GUIDs for session management. In...
7
6194
by: thisis | last post by:
Hi All, i have this.asp page: <script type="text/vbscript"> Function Body_Onload() ' create the object Set obj = Server.CreateObject("UploadImage.cTest") ' use method of the object...
46
4310
by: Phil Reynolds | last post by:
I have Access 2000 and 2003 on my development machine. My client only has Access 2000. When I develop for this client, I run Access 2000. However, my code requires that I have the Microsoft Word...
0
2033
by: Tina | last post by:
I've gotten this before where it says there is a problem with Interop.MSDASC but I can't remember what causes this. This is a 1.1 app I'm trying to debug in vs2005. It was running yesterday just...
0
2894
by: mbenedict | last post by:
I am rather new at this code and am attempting to modify existing code to use clob datatypes, which I have never used before. The database tables have been set up for clob data. When trying to use...
0
7331
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7391
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7054
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7501
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4713
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3204
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3188
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
768
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
424
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.