Translate C# to vb.

  • Thread starter Thread starter musa.biralo
  • Start date Start date
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
 
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++.
 
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.
 
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.
 
Back
Top