Click here to Skip to main content
15,900,378 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Clear multiple controls Pin
Dave Kreskowiak22-Jul-04 5:20
mveDave Kreskowiak22-Jul-04 5:20 
GeneralColumnHeader Icons Pin
beowulfagate21-Jul-04 21:43
beowulfagate21-Jul-04 21:43 
GeneralRe: ColumnHeader Icons Pin
Pablo.ar22-Jul-04 19:01
Pablo.ar22-Jul-04 19:01 
GeneralPrint Dialog Print to file Pin
gthompson200521-Jul-04 15:43
gthompson200521-Jul-04 15:43 
GeneralRe: Print Dialog Print to file Pin
Dave Kreskowiak22-Jul-04 3:51
mveDave Kreskowiak22-Jul-04 3:51 
GeneralDisplay computer IP Pin
GaryKoh21-Jul-04 14:51
GaryKoh21-Jul-04 14:51 
GeneralRe: Display computer IP Pin
Dave Kreskowiak22-Jul-04 4:03
mveDave Kreskowiak22-Jul-04 4:03 
GeneralVba6 and com server Pin
Anonymous21-Jul-04 7:14
Anonymous21-Jul-04 7:14 
Hello,

I have win2k SP4 and I need to use some com server from VC++ and VBA6. In C++ I can use sequence like this to get pointer on interface Intrfc1 from ISrvr object:

ISrvr* pSrvr = NULL;
IIntrfc1* pIntrfc1 = NULL;
::CoCreateInstance(CLSID_Srvr, NULL, CLSCTX_ALL, IID_ISrvr, (void **)&pSrvr);
pSrvr->QueryInterface(IID_ IIntrfc1, (void**)& pIntrfc1);

In VBA 6.3 (Excel) I can go to the menu tools->References, include library in to the VBA project and create the instance:

Dim Srvr As ISrvr
Set Awg = CreateObject("LIBNAME.ISrvr")

How to get Intrfc1 object from Srvr? It should be some analog of QueryInterface in VBA. Unfortunately VB6 sequence

Dim Intrfc As IIntrfc1
Set Intrfc = Srv.Object

doesn’t work in VBA6.3. What do I need to do in VBA6.3?

Thanks for help
Leon


GeneralLosing 1/2 my data in System.Collections.Queues .. Pin
inyoursadachine21-Jul-04 6:09
inyoursadachine21-Jul-04 6:09 
GeneralProblem Accessing Dynamically Created Control In Vb.net Pin
mdrash21-Jul-04 3:36
mdrash21-Jul-04 3:36 
GeneralRe: Problem Accessing Dynamically Created Control In Vb.net Pin
Dave Kreskowiak23-Jul-04 10:31
mveDave Kreskowiak23-Jul-04 10:31 
GeneralDatagrids Pin
Vicetta20-Jul-04 23:35
Vicetta20-Jul-04 23:35 
GeneralRe: Datagrids Pin
Vicetta20-Jul-04 23:39
Vicetta20-Jul-04 23:39 
GeneralRe: Datagrids Pin
Dave Kreskowiak21-Jul-04 7:47
mveDave Kreskowiak21-Jul-04 7:47 
GeneralVBA6 and com server Pin
Anonymous20-Jul-04 12:52
Anonymous20-Jul-04 12:52 
GeneralRe: VBA6 and com server Pin
RichardGrimmer21-Jul-04 1:24
RichardGrimmer21-Jul-04 1:24 
Questionmouse over graphical objects event? Pin
Boniolopez20-Jul-04 11:23
Boniolopez20-Jul-04 11:23 
AnswerRe: mouse over graphical objects event? Pin
Nick Parker20-Jul-04 11:54
protectorNick Parker20-Jul-04 11:54 
GeneralRe: mouse over graphical objects event? Pin
Boniolopez20-Jul-04 14:14
Boniolopez20-Jul-04 14:14 
GeneralInstall my application Pin
Brad Fackrell20-Jul-04 10:02
Brad Fackrell20-Jul-04 10:02 
GeneralRe: Install my application Pin
VenkatFor.NET20-Jul-04 11:28
VenkatFor.NET20-Jul-04 11:28 
GeneralRe: Install my application Pin
Mekong River20-Jul-04 12:08
Mekong River20-Jul-04 12:08 
GeneralRe: Install my application Pin
Brad Fackrell21-Jul-04 4:05
Brad Fackrell21-Jul-04 4:05 
GeneralRe: Install my application Pin
Brad Fackrell25-Jul-04 2:00
Brad Fackrell25-Jul-04 2:00 
QuestionWhat is Pin
KORCARI20-Jul-04 9:08
KORCARI20-Jul-04 9:08 

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.