juststeve
asked on
How would this look in VB
I'm trying to translate some c# code to vb.net:
using System;
using System.Collections;
namespace com.ariaware.pizza.vo
{
/// <summary>
/// OrderVO class
///
/// To make the class mapping place
/// in OrderVO.as in the constructor
/// Object.registerClass("com. ariaware.p izza.vo.Or derVO", OrderVO);
/// </summary>
public class OrderVO
{
string _name;
/// <summary>
/// This will hold a list of ASObjects
/// </summary>
IList _orders;
public OrderVO()
{
}
public string name
{
get{ return _name; }
set{ _name = value; }
}
public IList orders
{
get{ return _orders; }
set{ _orders = value; }
}
}
}
the translator i normally use at http://authors.aspalliance.com/aldotnet/examples/translate.aspx translates the above to:
Imports System
Imports System.Collections
Namespace com.ariaware.pizza.vo
'/ <summary>
'/ OrderVO class
'/
'/ To make the class mapping place
'/ in OrderVO.as in the constructor
'/ Object.registerClass("com. ariaware.p izza.vo.Or derVO", OrderVO);
'/ </summary>
Public Class OrderVO
Private _name As String
'/ <summary>
'/ This will hold a list of ASObjects
'/ </summary>
Private _orders As IList
Public Sub New()
End Sub 'New
Public Property name() As String
Get
Return _name
End Get
Set(ByVal Value As String)
_name = value
End Set
End Property
Public Property orders() As IList
Get
Return _orders
End Get
Set(ByVal Value As IList)
_orders = value
End Set
End Property
End Class 'OrderVO
End Namespace 'com.ariaware.pizza.vo
But when I save the above to a class file, the other class that attempts to import this namespace tosses a compiler error insisting that
Namespace or type 'vo' for the Imports 'com.ariaware.pizza.vo' cannot be found.
and
Type 'OrderVO' is not defined.
using System;
using System.Collections;
namespace com.ariaware.pizza.vo
{
/// <summary>
/// OrderVO class
///
/// To make the class mapping place
/// in OrderVO.as in the constructor
/// Object.registerClass("com.
/// </summary>
public class OrderVO
{
string _name;
/// <summary>
/// This will hold a list of ASObjects
/// </summary>
IList _orders;
public OrderVO()
{
}
public string name
{
get{ return _name; }
set{ _name = value; }
}
public IList orders
{
get{ return _orders; }
set{ _orders = value; }
}
}
}
the translator i normally use at http://authors.aspalliance.com/aldotnet/examples/translate.aspx translates the above to:
Imports System
Imports System.Collections
Namespace com.ariaware.pizza.vo
'/ <summary>
'/ OrderVO class
'/
'/ To make the class mapping place
'/ in OrderVO.as in the constructor
'/ Object.registerClass("com.
'/ </summary>
Public Class OrderVO
Private _name As String
'/ <summary>
'/ This will hold a list of ASObjects
'/ </summary>
Private _orders As IList
Public Sub New()
End Sub 'New
Public Property name() As String
Get
Return _name
End Get
Set(ByVal Value As String)
_name = value
End Set
End Property
Public Property orders() As IList
Get
Return _orders
End Get
Set(ByVal Value As IList)
_orders = value
End Set
End Property
End Class 'OrderVO
End Namespace 'com.ariaware.pizza.vo
But when I save the above to a class file, the other class that attempts to import this namespace tosses a compiler error insisting that
Namespace or type 'vo' for the Imports 'com.ariaware.pizza.vo' cannot be found.
and
Type 'OrderVO' is not defined.
ASKER
nope
What line is the compiler error on?
Bob
Bob
ASKER
...pizzaService.vb(10): Namespace or type 'vo' for the Imports 'com.ariaware.pizza.vo' cannot be found.
points at:
Imports com.ariaware.pizza.vo
and
pizzaService.vb(37): Type 'OrderVO' is not defined.
points at:
Public Function order(ByVal orderVO As OrderVO) As Long
points at:
Imports com.ariaware.pizza.vo
and
pizzaService.vb(37): Type 'OrderVO' is not defined.
points at:
Public Function order(ByVal orderVO As OrderVO) As Long
Does the project have a root namespace specified?
Bob
Bob
ASKER
Where would I see that...the only non-standard entry in web.config is:
<httpModules>
<add name="FluorineGateway" type="com.TheSilentGroup.F luorine.Fl uorineGate way, com.TheSilentGroup.Fluorin e" />
</httpModules>
<httpModules>
<add name="FluorineGateway" type="com.TheSilentGroup.F
</httpModules>
1) .NET version? 2002, 2003, or 2005?
2) ASP.NET I assume?
3) What are you doing with this code?
Bob
2) ASP.NET I assume?
3) What are you doing with this code?
Bob
ASKER
I'm trying to setup a tutorial (distributed in C#) demonstrating Fluorine. I'm trying to replicate stuff in vb. Usually I've been able to translate C# to VB at the site referenced above without any problems.
right...asp.net 1.1 under VS.net 2003
right...asp.net 1.1 under VS.net 2003
This is a screen shot C# project properties indicating what I mean by default Namespace (root):
https://filedb.experts-exchange.com/incoming/ee-stuff/314-C--Project-Properties---Default-.png
Bob
https://filedb.experts-exchange.com/incoming/ee-stuff/314-C--Project-Properties---Default-.png
Bob
ASKER
Default namespace holds: FluorinePizzaService.
The project itself is described by the author as a straight forward, simple asp.net app. It's sole purpose is to demonstrate to component's connection to a Flash app. Fluorine is an open source Flash Remoting component. Project files here:
http://fluorine.thesilentgroup.com/fluorine/pizzaservice.zip
The project itself is described by the author as a straight forward, simple asp.net app. It's sole purpose is to demonstrate to component's connection to a Flash app. Fluorine is an open source Flash Remoting component. Project files here:
http://fluorine.thesilentgroup.com/fluorine/pizzaservice.zip
What is the reference 'com.TheSilentGroup.Fluori ne' to?
Bob
Bob
ASKER
That's the dll they distribute.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
juststeve -> Have you seen this: http://www.anandtech.com/cpuchipsets/showdoc.aspx?i=2795 (Pay particular attention to the SYSmarks on Page 8)
Thought it might be useful regarding your question at:
https://www.experts-exchange.com/questions/21924192/Which-Athlon-FX-55-or-X2.html
Sorry for the interruption to this thread => the previous question is closed for comments and juststeve doesn't have his e-mail in his profile.
Thought it might be useful regarding your question at:
https://www.experts-exchange.com/questions/21924192/Which-Athlon-FX-55-or-X2.html
Sorry for the interruption to this thread => the previous question is closed for comments and juststeve doesn't have his e-mail in his profile.
ASKER
Sry...just back from vacation....blabking out the namespace _did remove the error....thx much for your patience.
Bob