473,511 Members | 16,258 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VBScript -> C# .. construct problem

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

Mar 15 '07 #1
8 1293
Tomi,

This is a VB.NET newsgroup not VBScript or C#

--
Newbie Coder
(It's just a name)
Mar 15 '07 #2
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,

This is a VB.NET newsgroup not VBScript or C#

--
Newbie Coder
(It's just a name)
Mar 15 '07 #3
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

--
Newbie Coder
(It's just a name)
Mar 15 '07 #4
Tomek,

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

Czy masz GG?

Na razie,

--
Newbie Coder
(It's just a name)
Mar 15 '07 #5
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
On Mar 15, 11:17 am, tomi.tres...@gmail.com wrote:
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

Mar 15 '07 #6
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


On Mar 15, 12:29 pm, tomi.tres...@gmail.com wrote:
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,
This is a VB.NET newsgroup not VBScript or C#
--
Newbie Coder
(It's just a name)- Hide quoted text -

- Show quoted text -

Mar 15 '07 #7
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:
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

--
Newbie Coder
(It's just a name)
Mar 16 '07 #8
C# is closest to C#.

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

Robin S.
----------------------
<to**********@gmail.comwrote in message
news:11**********************@l75g2000hse.googlegr oups.com...
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:
>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

--
Newbie Coder
(It's just a name)

Mar 16 '07 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
6812
by: John Davis | last post by:
When I create new documents in Dreamweaver, there are several choices for ASP creation: ASP JavaScript: run at client side?? ASP VBScript: run at server side?? ASP.NET C# ASP.NET VB I don't...
29
5989
by: Christopher Brandsdal | last post by:
If I have a .ASP page that runs JScript code - is it possible to include an ..ASP page that runs VBscript???
20
5943
by: Harag | last post by:
Hi All. I'm stating out doing some web developing. I was wondering which of the server side languages should I concentrate on and learn. I Know CSS, HTML, T-SQL I can look at the client...
16
9312
by: Mike Schinkel | last post by:
Does anyone know if there are bugs in VBScript's GetRef()? I'm using VBScript Version 5.6.8515 on Win2003Server w/ASP. Sometimes it returns an object that VarType() says is a vbObject. Other...
5
5180
by: gpence | last post by:
!!! Newbie question warning !!! I am somewhat familiar with javascript's ability to "access" the browser's favorites list -- for example, using window.home() will take you to the default URL --...
2
2840
by: Frank | last post by:
Can I do this? I add a session var in C# and ultimatly want to pass it into a vbscript client side activeX control. This is what I have so far but get " Object Required:'name2' " error. Can...
10
4683
by: Shadow Lynx | last post by:
That subject packs a whallop, so let me explain in better detail what's happening and how it relates to ASPX pages... In a nutshell, if the first <script /on a page is of type "text/vbscript",...
1
3430
by: Andrew Wan | last post by:
How can VBScript code access JScript code variables in the same ASP page? <SCRIPT LANGAUGE="VBScript"> Dim a a = 10 </SCRIPT> <SCRIPT LANGUAGE="JScript"> Response.Write(a); </SCRIPT>
2
8500
by: moodyman13 | last post by:
Hi All, I’m in a bit of pickle with ASP and VBscript variable and hope someone could get me some advice. There’s a FORM’ I’ve created in ASP and its purpose is to capture the name(s) of users....
1
1758
by: Igor Ladnik | last post by:
We are dealing with .NET server component and COM clients written with VB6 and VBScript. And there are some problems we faced (please see code below). 1. Managed type System Drawing.Color is...
0
7138
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7353
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7418
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7075
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5662
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5063
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3222
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3212
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1572
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.