Click here to Skip to main content
16,006,001 members
Home / Discussions / C#
   

C#

 
GeneralRe: using ref in C# for reference types Pin
Heath Stewart28-Jul-04 13:00
protectorHeath Stewart28-Jul-04 13:00 
GeneralRe: using ref in C# for reference types Pin
vista2728-Jul-04 13:58
vista2728-Jul-04 13:58 
GeneralRe: using ref in C# for reference types Pin
Heath Stewart29-Jul-04 4:17
protectorHeath Stewart29-Jul-04 4:17 
GeneralRe: using ref in C# for reference types Pin
MKlucher28-Jul-04 18:12
MKlucher28-Jul-04 18:12 
GeneralRe: using ref in C# for reference types Pin
Heath Stewart29-Jul-04 4:28
protectorHeath Stewart29-Jul-04 4:28 
GeneralIDispDataVwDataConn => casting Server Explorer node to this interface Pin
mikker_12328-Jul-04 12:18
mikker_12328-Jul-04 12:18 
GeneralRe: IDispDataVwDataConn => casting Server Explorer node to this interface Pin
Heath Stewart28-Jul-04 12:41
protectorHeath Stewart28-Jul-04 12:41 
GeneralRe: IDispDataVwDataConn => casting Server Explorer node to this interface Pin
mikker_12329-Jul-04 5:14
mikker_12329-Jul-04 5:14 
First of all tnx...

Second - am still at newbee level I guess as I can't get this thing working... So if you can I would be grateful if you could provide more pointers or answers to my questions. I included code I tried to made.

Question:
---------
Is IDispDataVwDataConn really the one needed to be set with all those attributes and defined in mine project? As it is already defined in VS7DataProject and it's managed code.
UIHierarchyItem.Object is COM object...

Code:
-----
<br />
//////////////////////<br />
public class TempClass<br />
{ <br />
// Already implemented logic for getting instance of EnvDTE... so it is inrelevant<br />
EnvDTE containerApplication; <br />
// ComboBox I'm filling... already defined <br />
ComboBox cmbConnection; <br />
<br />
void LetsPresumeThisFunctionGetsCalledWhenItsNeeded()<br />
{<br />
EnvDTE.Window win = containerApplication.Windows.Item(Constants.vsWindowKindServerExplorer);<br />
UIHierarchyItem uih = ((UIHierarchy)win.Object).GetItem("Data Connections");<br />
<br />
if (uih.Collection.Count > 0)<br />
{<br />
cmbConnections.Enabled = true;<br />
<br />
foreach(UIHierarchyItem item in uih.UIHierarchyItems)<br />
{<br />
// So what I would try to do here would be:<br />
// IDispDataVwDataConn dc = (IDispDataVwDataConn)item.Object;<br />
// cmbConnections.Items.Add(dc.ConnectionString); <br />
} <br />
} <br />
} <br />
}<br />
//////////////////////<br />


tnx again mate...
GeneralRe: IDispDataVwDataConn =&gt; casting Server Explorer node to this interface Pin
Heath Stewart29-Jul-04 6:03
protectorHeath Stewart29-Jul-04 6:03 
GeneralRe: IDispDataVwDataConn =&gt; casting Server Explorer node to this interface Pin
mikker_12329-Jul-04 6:34
mikker_12329-Jul-04 6:34 
GeneralRe: IDispDataVwDataConn =&gt; casting Server Explorer node to this interface Pin
Heath Stewart29-Jul-04 8:58
protectorHeath Stewart29-Jul-04 8:58 
GeneralRe: IDispDataVwDataConn =&gt; casting Server Explorer node to this interface Pin
mikker_12329-Jul-04 9:20
mikker_12329-Jul-04 9:20 
Generalread-only Pin
Anonymous28-Jul-04 12:17
Anonymous28-Jul-04 12:17 
GeneralRe: read-only Pin
mikker_12328-Jul-04 12:22
mikker_12328-Jul-04 12:22 
GeneralRe: read-only Pin
Anonymous28-Jul-04 12:40
Anonymous28-Jul-04 12:40 
GeneralRe: read-only Pin
Heath Stewart28-Jul-04 12:43
protectorHeath Stewart28-Jul-04 12:43 
GeneralRe: read-only Pin
Anonymous28-Jul-04 12:52
Anonymous28-Jul-04 12:52 
GeneralRe: read-only Pin
Heath Stewart28-Jul-04 12:56
protectorHeath Stewart28-Jul-04 12:56 
GeneralRe: read-only Pin
Anonymous28-Jul-04 13:00
Anonymous28-Jul-04 13:00 
GeneralDynamically adding textbox's Pin
Adam °Wimsatt28-Jul-04 11:35
Adam °Wimsatt28-Jul-04 11:35 
GeneralRe: Dynamically adding textbox's Pin
Nick Parker28-Jul-04 11:39
protectorNick Parker28-Jul-04 11:39 
GeneralHelp with writing to buffers Pin
Winter28-Jul-04 11:11
Winter28-Jul-04 11:11 
GeneralRe: Help with writing to buffers Pin
Daniel Turini28-Jul-04 11:29
Daniel Turini28-Jul-04 11:29 
GeneralHelp Required. Pin
Nasir Wasim28-Jul-04 9:45
Nasir Wasim28-Jul-04 9:45 
GeneralRe: Help Required. Pin
Nick Parker28-Jul-04 10:00
protectorNick Parker28-Jul-04 10:00 

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.