Click here to Skip to main content
16,005,121 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# Tutorial or samples for beginners Pin
Tarakeshwar Reddy12-Jun-07 7:49
professionalTarakeshwar Reddy12-Jun-07 7:49 
AnswerRe: C# Tutorial or samples for beginners Pin
dino209412-Jun-07 11:37
dino209412-Jun-07 11:37 
AnswerRe: C# Tutorial or samples for beginners Pin
Sathesh Sakthivel12-Jun-07 15:24
Sathesh Sakthivel12-Jun-07 15:24 
AnswerRe: C# Tutorial or samples for beginners Pin
Software_Guy_12313-Jun-07 16:57
Software_Guy_12313-Jun-07 16:57 
QuestionC++ Equivalents Pin
LimeyRedneck12-Jun-07 7:34
professionalLimeyRedneck12-Jun-07 7:34 
AnswerRe: C++ Equivalents Pin
Dave Doknjas12-Jun-07 13:48
Dave Doknjas12-Jun-07 13:48 
GeneralRe: C++ Equivalents Pin
LimeyRedneck12-Jun-07 15:39
professionalLimeyRedneck12-Jun-07 15:39 
QuestionPassing Structure Array to VB.NET from C# Class Pin
jadaar12-Jun-07 7:01
jadaar12-Jun-07 7:01 
I have a class that handles encryption of passwords, and there is one part where I want to fill a structure with the following:


struct RoleValue
{
public string szRoleName;
public string szDialog;
public string szAdd;
public string szView;
public string szEdit;
public string szDel;
public string szDialogDescr;
}

public ArrayList RoleDialogAccess = new ArrayList();

//Fill the structure with data from the SQL query...

while (sqlRdr.Read())
{
rm.szRoleName = sqlRdr.GetString(0);
rm.szDialog = sqlRdr.GetString(1);
rm.szView = sqlRdr.GetString(2);
rm.szAdd = sqlRdr.GetString(3);
rm.szEdit = sqlRdr.GetString(4);
rm.szDel = sqlRdr.GetString(5);
rm.szDialogDescr = sqlRdr.GetString(6);
this.RoleDialogAccess.Add(rm);
}

This is all good.

When I get to VB is where the problem occurs.

For VB.NET to be able to access the data, I have to do the following:

Dim AEG as New AESClass
rw(0) = CStr(Me.AEG.RoleDialogAccess.Item(iCnt).szDialog)
rw(1) = CStr(Me.AEG.RoleDialogAccess.Item(iCnt).szDialogDescr)
rw(2) = CStr(Me.AEG.RoleDialogAccess.Item(iCnt).szAdd)
rw(3) = CStr(Me.AEG.RoleDialogAccess.Item(iCnt).szView)
rw(4) = CStr(Me.AEG.RoleDialogAccess.Item(iCnt).szEdit)
rw(5) = CStr(Me.AEG.RoleDialogAccess.Item(iCnt).szDel)


Now, in when done in Visual Studio 2005 there is no problem, but when I place the C# DLL into a VB Project in migrated (from VS 2003)
on XP the compiler crashes and on NT 2000 I get errors. Nothing specific about the errors, ones that must be sent to Microsoft.

What am I doing wrong?

"I know not with what weapons World War III will be fought, but World War IV will be fought with sticks and stones."

Einstein

AnswerRe: Passing Structure Array to VB.NET from C# Class Pin
MidwestLimey12-Jun-07 9:50
professionalMidwestLimey12-Jun-07 9:50 
QuestionWindow doesn't stay hidden Pin
theFrenchHornet12-Jun-07 6:28
theFrenchHornet12-Jun-07 6:28 
AnswerRe: Window doesn't stay hidden Pin
Luc Pattyn12-Jun-07 6:48
sitebuilderLuc Pattyn12-Jun-07 6:48 
GeneralRe: Window doesn't stay hidden Pin
theFrenchHornet12-Jun-07 8:05
theFrenchHornet12-Jun-07 8:05 
GeneralRe: Window doesn't stay hidden Pin
Luc Pattyn12-Jun-07 8:33
sitebuilderLuc Pattyn12-Jun-07 8:33 
GeneralRe: Window doesn't stay hidden Pin
theFrenchHornet14-Jun-07 3:43
theFrenchHornet14-Jun-07 3:43 
AnswerRe: Window doesn't stay hidden Pin
Shy Agam12-Jun-07 9:11
Shy Agam12-Jun-07 9:11 
AnswerRe: Window doesn't stay hidden Pin
Guffa12-Jun-07 9:13
Guffa12-Jun-07 9:13 
GeneralRe: Window doesn't stay hidden Pin
theFrenchHornet14-Jun-07 3:25
theFrenchHornet14-Jun-07 3:25 
GeneralRe: Window doesn't stay hidden Pin
theFrenchHornet1-Jul-07 7:29
theFrenchHornet1-Jul-07 7:29 
QuestionCaching data Pin
AndrusM12-Jun-07 5:51
AndrusM12-Jun-07 5:51 
AnswerRe: Caching data Pin
Colin Angus Mackay12-Jun-07 5:59
Colin Angus Mackay12-Jun-07 5:59 
GeneralRe: Caching data Pin
AndrusM12-Jun-07 6:41
AndrusM12-Jun-07 6:41 
QuestionHow to change the (DevExpress .NET v7.1) checkedit's ForeColor? Pin
sichensoft12-Jun-07 5:13
sichensoft12-Jun-07 5:13 
AnswerRe: How to change the (DevExpress .NET v7.1) checkedit's ForeColor? Pin
Colin Angus Mackay12-Jun-07 5:17
Colin Angus Mackay12-Jun-07 5:17 
Questionhow to cast string with characters to int Pin
Bahaa Hany12-Jun-07 4:22
Bahaa Hany12-Jun-07 4:22 
AnswerRe: how to cast string with characters to int Pin
Luc Pattyn12-Jun-07 4:25
sitebuilderLuc Pattyn12-Jun-07 4:25 

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.