Translate C# to vb.

M

musa.biralo

I think this group would be the best place to ask for translating
thing... I am vb.net learner and i got a complex csharp code (at least
for me). the translating website failed to translate it so i am
seeking some help.

(*dynamic_cast<__box Int32*>(m_eInput->GetCalcOV(
StandCalcOFName::ENEe, StandCOFName::CalcType)) == CalcType::Flow);

confused with all these pointing method.... Thanks for you help.

musa.biralo
 
M

Martin Honnen

musa.biralo said:
I think this group would be the best place to ask for translating
thing... I am vb.net learner and i got a complex csharp code (at least
for me). the translating website failed to translate it so i am
seeking some help.

(*dynamic_cast<__box Int32*>(m_eInput->GetCalcOV(
StandCalcOFName::ENEe, StandCOFName::CalcType)) == CalcType::Flow);

Are you sure that is C#? Looks more like C++.
 
M

musa.biralo

I am not 100% sure but most likely C#. Either way if we could simplify
and connect the dots for VB that will be helpful.

Thanks for the interest.
 
P

Pavel Minaev

I think this group would be the best place to ask for translating
thing... I am vb.net learner and i got a complex csharp code (at least
for me). the translating website failed to translate it so i am
seeking some help.

(*dynamic_cast<__box Int32*>(m_eInput->GetCalcOV(
StandCalcOFName::ENEe, StandCOFName::CalcType)) == CalcType::Flow);

confused with all these pointing method.... Thanks for you help.

This isn't C#, and this isn't even C++/CLI - this is the now-
deprecated Managed C++. I'm no expert in that, but so far as I can
read, this is just an unboxing conversion. I believe this would be it
in VB:

DirectCast(m_eInput.GetCalcOV(StandCalcOFName.ENEe,
StandCOFName.CalcType), Integer) = CalcType.Flow

On a side note, I'm not aware of existence of any automated MC++-to-
anything translators. I'm afraid you're on your own there.
 

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

Similar Threads

C# to VB 3

Top