VBScript -> C# .. construct problem

  • Thread starter Thread starter tomi.trescak
  • Start date Start date
T

tomi.trescak

Hi

I'm rewriting some old vbscript to .NET (C#) and i dont understand
what does following mean:

for intVBRMode = 1 to 4
objProfile.VBRMode(WMENC_AUDIO, 0) = intVBRMode

select case intVBRMode
case WMENC_PVM_NONE
OutputInfo "CBR Mode :"

case else
OutputInfo "Unknown Mode"
end select
next

i can guest what the syntax is .. but i don't get the meaning of it.
it should extract profile from objProfile.VBRMode ... by substituting
0 by "intVbrMode" and then work with it ... object in the "case" are
actually enums type WMENC_PVM_AUDIOCODEC ... not int as i see it.

pleeeeeaaaaase help ;(((


thanks a lot

Tomi
 
Well ...

vbscript is closest to VB.NET.
I seriusly doubt that vbscript coders would help me on this issue.
This is why i chose this group.

Comprende ?

Tx.

Tomi
Newbie Coder napsal:
 
Tomi,

C# is the same as VB.NET, which you say is close to VBScript LOL

There is an MVP C# called Herfried. who does a little VB.NET too. He won't
help you, but will perform a useless Google search instead & post the
results

I will take a look later, but I am helping a few others at the moment &
doing some remote work too
 
Tomek,

Ja widzilam ty mowiesz po polsku. Ja tez ale tylko troche

Czy masz GG?

Na razie,
 
yeah, in my opion.. .NET isn't fully baked.. and I'd hold off on
rewriting code jsut for the fun of it

I heard that vb6 is coming back in the next release of visual studio!

-Aaron
 
or you could look in a newsgroup; for example

Microsoft.public.Access

Vb6 is alive and well in the office world-- because .NET doesn't
support office yet

-Aaron
 
Well .. .if not vb.net .. then what other language is closest to
c# ...
If there is, please let me know.

I was successfull on rewriting most of the code .. but i miss the
meaning of what i posted. I can't think of similar construct in c# and
i miss the point. I'm moving the windows media encoder batch
processsing file to .NET and i'm writing api for it and this is part
of some usefull statistics function so i quite need it. If you can ..
please help.

Tomi


Newbie Coder napsal:
 
C# is closest to C#.

Try posting your question to microsoft.public.dotnet.languages.csharp.

Robin S.
----------------------
Well .. .if not vb.net .. then what other language is closest to
c# ...
If there is, please let me know.

I was successfull on rewriting most of the code .. but i miss the
meaning of what i posted. I can't think of similar construct in c# and
i miss the point. I'm moving the windows media encoder batch
processsing file to .NET and i'm writing api for it and this is part
of some usefull statistics function so i quite need it. If you can ..
please help.

Tomi


Newbie Coder napsal:
 
Back
Top