Click here to Skip to main content
15,922,419 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: ATL / STL : Dumb question maybe... Pin
Anna-Jayne Metcalfe19-Oct-04 5:14
Anna-Jayne Metcalfe19-Oct-04 5:14 
GeneralCopying Lists and Vectors Pin
mcsherry30-Sep-04 0:26
mcsherry30-Sep-04 0:26 
GeneralRe: Copying Lists and Vectors Pin
Andrew Walker30-Sep-04 19:39
Andrew Walker30-Sep-04 19:39 
GeneralRe: Copying Lists and Vectors Pin
valikac4-Oct-04 6:34
valikac4-Oct-04 6:34 
GeneralRe: Copying Lists and Vectors Pin
toxcct5-Oct-04 23:28
toxcct5-Oct-04 23:28 
GeneralWTL Menu in MFC container Pin
peterchen29-Sep-04 8:29
peterchen29-Sep-04 8:29 
GeneralToo much connections and ATL Server Pin
Federico Milano29-Sep-04 8:20
Federico Milano29-Sep-04 8:20 
QuestionFriend Properties-Methods VB .Can I do it in ATL?? Pin
Tholkiem28-Sep-04 9:26
Tholkiem28-Sep-04 9:26 
I have two COM class in ATL/DLL:

class Connection
{
interface IConnection
Open(BSTR PAthName)
Close()
//Other methods beginTrans commit roollback.. properties..timeout type etc..
public:
Connection(){//initialize};
StructDB getHandleDB();//return private var m_handleDB
//+++ other methods & properties
private:
StructDB m_handleDB;
//+++ other vars...
}


class Recordset
{
interface IRecordset
Open(BSTR StrSQL, IConnection *Connection)
Close()
//Other properties and methods fields value RecordsCount ..etc
public: //etc
private: //etc

}

I compile the ATL/DLL , I from VB 6 IDE , Refernce my DLL and I write this code:

'VB COde..

dim mConnectionDB as MyLib.Connection
dim rs as MyLib.Recordset

set mConnectionDB=new Connection
mConnectionDB.Open "Database.mydb"
set rs=new Recordset
rs.Open "Select * from Customers",mConnectionDB
rs.close
mConnectionDB.Close

The question is... How in the method Open the recordset class, can I access the method StructDB getHandleDB();//return private var m_handleDB ???????
I don't want put property interface return the handle... this property not necesary from VB.

If I used to CCOmObject I have got new instance the Connection and handle is NULL.

Help ME!! please
AnswerRe: Friend Properties-Methods VB .Can I do it in ATL?? Pin
Tholkiem29-Sep-04 13:11
Tholkiem29-Sep-04 13:11 
GeneralPLS HELP : CreateInstance (__uuidof(SHDocVw::ShellWindows) failed Pin
SenPy28-Sep-04 7:19
SenPy28-Sep-04 7:19 
GeneralRe: PLS HELP : CreateInstance (__uuidof(SHDocVw::ShellWindows) failed Pin
User 21559730-Sep-04 0:52
User 21559730-Sep-04 0:52 
Generalcatching events Pin
dudic28-Sep-04 5:49
dudic28-Sep-04 5:49 
GeneralRe: catching events Pin
Lim Bio Liong16-Oct-04 23:15
Lim Bio Liong16-Oct-04 23:15 
GeneralRe: catching events Pin
ThatsAlok29-Oct-04 21:06
ThatsAlok29-Oct-04 21:06 
QuestionActiveX Controls MFC or ATL? Pin
Andy H28-Sep-04 3:51
Andy H28-Sep-04 3:51 
AnswerRe: ActiveX Controls MFC or ATL? Pin
Kevin McFarlane29-Sep-04 2:13
Kevin McFarlane29-Sep-04 2:13 
GeneralPLS HELP : CoCreateInstance on IE object failed on XP/SP2 Pin
SenPy27-Sep-04 13:43
SenPy27-Sep-04 13:43 
GeneralRe: PLS HELP : CoCreateInstance on IE object failed on XP/SP2 Pin
Michael Dunn27-Sep-04 19:28
sitebuilderMichael Dunn27-Sep-04 19:28 
GeneralRe: PLS HELP : CoCreateInstance on IE object failed on XP/SP2 Pin
SenPy28-Sep-04 7:21
SenPy28-Sep-04 7:21 
GeneralGet Object corresponding interface Pin
Tholkiem27-Sep-04 12:10
Tholkiem27-Sep-04 12:10 
Generalvalid CLSID Pin
Monty226-Sep-04 1:45
Monty226-Sep-04 1:45 
GeneralRe: valid CLSID Pin
Michael Dunn26-Sep-04 7:22
sitebuilderMichael Dunn26-Sep-04 7:22 
GeneralOportunidade de trabalho Pin
SolangeGomes25-Sep-04 9:39
sussSolangeGomes25-Sep-04 9:39 
GeneralRe: Oportunidade de trabalho Pin
Jörgen Sigvardsson25-Sep-04 11:50
Jörgen Sigvardsson25-Sep-04 11:50 
Generalusing MFC from c++/cli Pin
aaa_avraham25-Sep-04 9:16
aaa_avraham25-Sep-04 9:16 

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.