473,670 Members | 2,558 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.VBRM ode(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.VBRM ode ... by substituting
0 by "intVbrMode " and then work with it ... object in the "case" are
actually enums type WMENC_PVM_AUDIO CODEC ... not int as i see it.

pleeeeeaaaaase help ;(((
thanks a lot

Tomi

Mar 15 '07 #1
8 1299
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...@gm ail.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.VBRM ode(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.VBRM ode ... by substituting
0 by "intVbrMode " and then work with it ... object in the "case" are
actually enums type WMENC_PVM_AUDIO CODEC ... 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.publi c.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...@gm ail.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.publi c.dotnet.langua ges.csharp.

Robin S.
----------------------
<to**********@g mail.comwrote in message
news:11******** **************@ l75g2000hse.goo glegroups.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
6819
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 understand the differences between ASP JavaScript and ASP VBScript?? Because JavaScript is client-side technology, and ASP is server side technology. I think VBScript is used to implement ASP pages.
29
6012
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
5962
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 javascript code and work out what it does but I can't really write it from scratch.
16
9344
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 times it returns VarType() is vbEmpty. This is driving me mad! Also, does anyone know what the properties and methods are for the object returned by GetRef()? TIA.
5
5189
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 -- is there any similar code for an ASP page using VBscript? I want my Logout button to take them back to their homepage. I've looked into Response.Redirect, but I can't seem to find a way to take the user out of my program to their home default. ...
2
2849
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 anyone suggest a btter way of passing a session var into a vbscript function? <%@ Page language="c#" debug="true" ContentType="text/html"
10
4694
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", you cannot use inline JavaScript statements that call setTimeout with functions that start with a double-underscore. This is very relavant to ASPX (ASP Dot Net) pages because it means that AutoPostBacks will fail since they generally call the...
1
3458
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
8510
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. The plan is then to pass the information from ASP to VBScript. My dilemma is how to extract the information in ASP and use it in VBScript. (Please see code below) I’ve read in some forums that is simply can’t be done. Unfortunately, I can’t run...
1
1767
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 automatically marshaled to VB type OLE_COLOR only in case of early binding. (see DealWithColor() method). 2. For class Component public variable DateTime dt can be used in both early and late binding cases, whereas public variable Color clr causes...
0
8386
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8815
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8661
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7421
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4213
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4393
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2802
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 we have to send another system
2
2044
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1795
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.