Click here to Skip to main content
15,881,139 members
Home / Discussions / C#
   

C#

 
GeneralRe: Is the a max row count for SQLDataReader? Pin
Ben Cocker5-Mar-09 6:54
Ben Cocker5-Mar-09 6:54 
GeneralRe: Is the a max row count for SQLDataReader? Pin
Dave Kreskowiak5-Mar-09 7:40
mveDave Kreskowiak5-Mar-09 7:40 
GeneralRe: Is the a max row count for SQLDataReader? Pin
Dragonfly_Lee5-Mar-09 18:12
Dragonfly_Lee5-Mar-09 18:12 
AnswerRe: Is the a max row count for SQLDataReader? Pin
Pete O'Hanlon5-Mar-09 10:57
mvePete O'Hanlon5-Mar-09 10:57 
QuestionHow to use a COM Interface Dll within C# code??? Pin
lane0p25-Mar-09 6:18
lane0p25-Mar-09 6:18 
AnswerRe: How to use a COM Interface Dll within C# code??? Pin
Yusuf5-Mar-09 7:56
Yusuf5-Mar-09 7:56 
AnswerRe: How to use a COM Interface Dll within C# code??? Pin
Dragonfly_Lee5-Mar-09 18:20
Dragonfly_Lee5-Mar-09 18:20 
GeneralRe: How to use a COM Interface Dll within C# code??? Pin
lane0p25-Mar-09 23:29
lane0p25-Mar-09 23:29 
the lines in the VB script are:
Set objDsIpSec = CreateObject("ExIpSec.ExIpSecurity")
objDsIpSec.BindToSmtpVsi "someSMTPserver", 1, "someDC"
objDsIpSec.GetRelayIpList
listToDisplayIp = objDsIpSec.IpGrant
listToDisplayIp appears to be a string array.

the lines in using in C# are:
ExIpSecurity ipsec = new ExIpSecurity();
string[] s;
ipsec.BindToSmtpVsi("someSMTPserver", 1, "someDC");
ipsec.GetRelayIpList();
s = ipsec.IPGrant.ToString().Split(' ');

foreach (string i in s)
{
MessageBox.Show(i.ToString());
}

if i run the VB script i get a list of IP address but if i run the C# code i get one popup box saying System.Object[]

what am i doing wrong?
GeneralRe: How to use a COM Interface Dll within C# code??? Pin
Dragonfly_Lee6-Mar-09 2:41
Dragonfly_Lee6-Mar-09 2:41 
GeneralRe: How to use a COM Interface Dll within C# code??? Pin
lane0p26-Mar-09 4:45
lane0p26-Mar-09 4:45 
QuestionHow to get the value from a variable and use it eg Form.VariableValue Pin
MarkB1235-Mar-09 5:53
MarkB1235-Mar-09 5:53 
AnswerRe: How to get the value from a variable and use it eg Form.VariableValue Pin
Xmen Real 5-Mar-09 5:57
professional Xmen Real 5-Mar-09 5:57 
GeneralRe: How to get the value from a variable and use it eg Form.VariableValue Pin
MarkB1235-Mar-09 8:06
MarkB1235-Mar-09 8:06 
QuestionHow to link the current website to your textbox ? Pin
YiXiang_895-Mar-09 5:52
YiXiang_895-Mar-09 5:52 
QuestionOledbException when trying to Insert values in two combobox Pin
haroon19805-Mar-09 5:44
haroon19805-Mar-09 5:44 
AnswerRe: OledbException when trying to Insert values in two combobox Pin
Yusuf5-Mar-09 8:07
Yusuf5-Mar-09 8:07 
GeneralRe: OledbException when trying to Insert values in two combobox Pin
haroon19805-Mar-09 12:24
haroon19805-Mar-09 12:24 
GeneralRe: OledbException when trying to Insert values in two combobox Pin
haroon19805-Mar-09 23:52
haroon19805-Mar-09 23:52 
QuestionLotus Notes (ConvertMIME) Pin
tomas cook5-Mar-09 4:46
tomas cook5-Mar-09 4:46 
AnswerRe: Lotus Notes (ConvertMIME) Pin
tomas cook11-Mar-09 0:47
tomas cook11-Mar-09 0:47 
QuestionHow to insert into Master/Details at the same time ? Pin
hdv2125-Mar-09 4:26
hdv2125-Mar-09 4:26 
AnswerRe: How to insert into Master/Details at the same time ? Pin
Eddy Vluggen5-Mar-09 4:45
professionalEddy Vluggen5-Mar-09 4:45 
GeneralRe: How to insert into Master/Details at the same time ? Pin
hdv2125-Mar-09 4:50
hdv2125-Mar-09 4:50 
GeneralRe: How to insert into Master/Details at the same time ? Pin
Eddy Vluggen5-Mar-09 5:11
professionalEddy Vluggen5-Mar-09 5:11 
GeneralRe: How to insert into Master/Details at the same time ? Pin
hdv2125-Mar-09 5:59
hdv2125-Mar-09 5:59 

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.