Equivalent C Sharp code.

B

Bhavin Parekh

Hello there

I have been trying to code conversion from vb.net 2005 to c Sharp 2005.

Can anyone help to find equivalent c sharp syntax for following..
Dim buf As New VB6.FixedLengthString(16384)

Then its calling unmanaged dll

GetRace(buf.Value)

How do i same thing in C Sharp..

Any help would be appreciated???

Thanx

Bhavin
 
B

Bhavin Parekh

Hi Peter

Thanx for information but unfortunately i still have no luck.
I agree with you i might have provided insufficient information.
Below is VB.net code i need to translate into C Sharp.

Dim buf As New VB6.FixedLengthString(16384)

Dim buf1 As String

Dim stat As Integer

Dim blen As Integer

blen = Len(buf.Value)

stat = GetRace(buf.Value, blen, CDBDE_REFCODE_TABLIMITED, Combo3.Text,
Combo4.Text, getstate(), getpool(), Val(Text1.Text), Check1.CheckState)

Text2.Text = VB.Left(buf.Value, blen)

GetRace function is included in DLL and and its third party dll.

I am facing difficulties only buf variable and buf.Value.

Is there any more help i can get to sort this out.

Thanx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top