473,661 Members | 2,480 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

convert code

is there a tool that will convert cold fusion code to C#?
Or anything out there to help in this process?

thx
Nov 15 '05 #1
8 1620
Mike,

I don't believe that there is. Given that the frameworks are vastly
different, as well as the languages, I imagine that it is not an easy thing
to do. You will probably have to do it on your own.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Mike" <cs*********@sb cglobal.net> wrote in message
news:ud******** ******@TK2MSFTN GP10.phx.gbl...
is there a tool that will convert cold fusion code to C#?
Or anything out there to help in this process?

thx

Nov 15 '05 #2
Ok, after doing some research i found the same result.

Now, here is what i'm trying to do. I'm trying to recieve a newsfeed from a
web site that is coded in Cold Fusion, how could I code a C# web app, to
consume this newsfeed?
Or better yet, is there anything out there that exlains on how to cosnume
news feeds without using RSS and a Web Service?

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote in
message news:O4******** ******@TK2MSFTN GP10.phx.gbl...
Mike,

I don't believe that there is. Given that the frameworks are vastly
different, as well as the languages, I imagine that it is not an easy thing to do. You will probably have to do it on your own.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Mike" <cs*********@sb cglobal.net> wrote in message
news:ud******** ******@TK2MSFTN GP10.phx.gbl...
is there a tool that will convert cold fusion code to C#?
Or anything out there to help in this process?

thx


Nov 15 '05 #3
Mike,

You can do it, as long as there is some structure to it. If you know
what the protocol for communication is (HTTP I'm assuming), as well as the
format and structure of the response of the site, then its just a matter of
programming against that specification/structure.

To download the contents through HTTP, you can use the HttpWebRequest
and the HttpWebResponse classes.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Mike" <cs*********@sb cglobal.net> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
Ok, after doing some research i found the same result.

Now, here is what i'm trying to do. I'm trying to recieve a newsfeed from a web site that is coded in Cold Fusion, how could I code a C# web app, to
consume this newsfeed?
Or better yet, is there anything out there that exlains on how to cosnume
news feeds without using RSS and a Web Service?

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote in message news:O4******** ******@TK2MSFTN GP10.phx.gbl...
Mike,

I don't believe that there is. Given that the frameworks are vastly
different, as well as the languages, I imagine that it is not an easy

thing
to do. You will probably have to do it on your own.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Mike" <cs*********@sb cglobal.net> wrote in message
news:ud******** ******@TK2MSFTN GP10.phx.gbl...
is there a tool that will convert cold fusion code to C#?
Or anything out there to help in this process?

thx



Nov 15 '05 #4
I just tried that and its gettng an error.
I'm assuming I can find an example of this online?
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote in
message news:O5******** ******@TK2MSFTN GP10.phx.gbl...
Mike,

You can do it, as long as there is some structure to it. If you know
what the protocol for communication is (HTTP I'm assuming), as well as the
format and structure of the response of the site, then its just a matter of programming against that specification/structure.

To download the contents through HTTP, you can use the HttpWebRequest
and the HttpWebResponse classes.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Mike" <cs*********@sb cglobal.net> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
Ok, after doing some research i found the same result.

Now, here is what i'm trying to do. I'm trying to recieve a newsfeed from
a
web site that is coded in Cold Fusion, how could I code a C# web app, to
consume this newsfeed?
Or better yet, is there anything out there that exlains on how to

cosnume news feeds without using RSS and a Web Service?

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote

in
message news:O4******** ******@TK2MSFTN GP10.phx.gbl...
Mike,

I don't believe that there is. Given that the frameworks are vastly different, as well as the languages, I imagine that it is not an easy

thing
to do. You will probably have to do it on your own.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Mike" <cs*********@sb cglobal.net> wrote in message
news:ud******** ******@TK2MSFTN GP10.phx.gbl...
> is there a tool that will convert cold fusion code to C#?
> Or anything out there to help in this process?
>
> thx
>
>



Nov 15 '05 #5
Mike,

What exactly is the error you are getting? And how are you trying it?
If you want to create an HttpWebRequest, you have to make a call to the
static Create or the static CreateDefault method on the WebRequest class.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Mike" <cs*********@sb cglobal.net> wrote in message
news:uX******** ******@TK2MSFTN GP11.phx.gbl...
I just tried that and its gettng an error.
I'm assuming I can find an example of this online?
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote in message news:O5******** ******@TK2MSFTN GP10.phx.gbl...
Mike,

You can do it, as long as there is some structure to it. If you know
what the protocol for communication is (HTTP I'm assuming), as well as the format and structure of the response of the site, then its just a matter

of
programming against that specification/structure.

To download the contents through HTTP, you can use the HttpWebRequest and the HttpWebResponse classes.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Mike" <cs*********@sb cglobal.net> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
Ok, after doing some research i found the same result.

Now, here is what i'm trying to do. I'm trying to recieve a newsfeed from
a
web site that is coded in Cold Fusion, how could I code a C# web app, to consume this newsfeed?
Or better yet, is there anything out there that exlains on how to

cosnume news feeds without using RSS and a Web Service?

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote in
message news:O4******** ******@TK2MSFTN GP10.phx.gbl...
> Mike,
>
> I don't believe that there is. Given that the frameworks are vastly > different, as well as the languages, I imagine that it is not an

easy thing
> to do. You will probably have to do it on your own.
>
> Hope this helps.
>
>
> --
> - Nicholas Paldino [.NET/C# MVP]
> - mv*@spam.guard. caspershouse.co m
>
> "Mike" <cs*********@sb cglobal.net> wrote in message
> news:ud******** ******@TK2MSFTN GP10.phx.gbl...
> > is there a tool that will convert cold fusion code to C#?
> > Or anything out there to help in this process?
> >
> > thx
> >
> >
>
>



Nov 15 '05 #6
Heres the snippet i'm using.
protected System.Web.UI.W ebControls.Xml fetchXML;

private void Page_Load(objec t sender, System.EventArg s e)
{
WebRequest request =
WebRequest.Crea te("http://www.mediapost.c om/newsfeedproc.cf m");
WebResponse response = request.GetResp onse();
Stream responseStream = response.GetRes ponseStream();
XmlTextReader reader = new XmlTextReader(r esponseStream);
XmlDocument xml_doc = new XmlDocument();
xml_doc.Load(re ader);
fetchXML.Docume nt = xml_doc;
}
is it wrong, should i be doing it different way?
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote in
message news:OI******** *****@tk2msftng p13.phx.gbl...
Mike,

What exactly is the error you are getting? And how are you trying it?
If you want to create an HttpWebRequest, you have to make a call to the
static Create or the static CreateDefault method on the WebRequest class.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Mike" <cs*********@sb cglobal.net> wrote in message
news:uX******** ******@TK2MSFTN GP11.phx.gbl...
I just tried that and its gettng an error.
I'm assuming I can find an example of this online?
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote in
message news:O5******** ******@TK2MSFTN GP10.phx.gbl...
Mike,

You can do it, as long as there is some structure to it. If you know what the protocol for communication is (HTTP I'm assuming), as well as the format and structure of the response of the site, then its just a
matter
of
programming against that specification/structure.

To download the contents through HTTP, you can use the

HttpWebRequest and the HttpWebResponse classes.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Mike" <cs*********@sb cglobal.net> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
> Ok, after doing some research i found the same result.
>
> Now, here is what i'm trying to do. I'm trying to recieve a newsfeed

from
a
> web site that is coded in Cold Fusion, how could I code a C# web
app, to > consume this newsfeed?
> Or better yet, is there anything out there that exlains on how to

cosnume
> news feeds without using RSS and a Web Service?
>
>
>
> "Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote in
> message news:O4******** ******@TK2MSFTN GP10.phx.gbl...
> > Mike,
> >
> > I don't believe that there is. Given that the frameworks are

vastly
> > different, as well as the languages, I imagine that it is not an easy > thing
> > to do. You will probably have to do it on your own.
> >
> > Hope this helps.
> >
> >
> > --
> > - Nicholas Paldino [.NET/C# MVP]
> > - mv*@spam.guard. caspershouse.co m
> >
> > "Mike" <cs*********@sb cglobal.net> wrote in message
> > news:ud******** ******@TK2MSFTN GP10.phx.gbl...
> > > is there a tool that will convert cold fusion code to C#?
> > > Or anything out there to help in this process?
> > >
> > > thx
> > >
> > >
> >
> >
>
>



Nov 15 '05 #7
Mike,

The only thing I would be worried about is the setting the encoding when
creating the XmlTextReader. What you have seems correct.

What exactly is the error that you are getting? I am beginning to think
that you haven't set the user account that this page/web service running
under to something that has permissions to access a network. By default,
ASP.NET runs under the local ASPNET account. This account should not have
access to the network.

You will have to make sure that the page/service is running under a user
that has the appropriate permissions.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Mike" <cs*********@sb cglobal.net> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Heres the snippet i'm using.
protected System.Web.UI.W ebControls.Xml fetchXML;

private void Page_Load(objec t sender, System.EventArg s e)
{
WebRequest request =
WebRequest.Crea te("http://www.mediapost.c om/newsfeedproc.cf m");
WebResponse response = request.GetResp onse();
Stream responseStream = response.GetRes ponseStream();
XmlTextReader reader = new XmlTextReader(r esponseStream);
XmlDocument xml_doc = new XmlDocument();
xml_doc.Load(re ader);
fetchXML.Docume nt = xml_doc;
}
is it wrong, should i be doing it different way?
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote in message news:OI******** *****@tk2msftng p13.phx.gbl...
Mike,

What exactly is the error you are getting? And how are you trying it?
If you want to create an HttpWebRequest, you have to make a call to the
static Create or the static CreateDefault method on the WebRequest class.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Mike" <cs*********@sb cglobal.net> wrote in message
news:uX******** ******@TK2MSFTN GP11.phx.gbl...
I just tried that and its gettng an error.
I'm assuming I can find an example of this online?
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote
in
message news:O5******** ******@TK2MSFTN GP10.phx.gbl...
> Mike,
>
> You can do it, as long as there is some structure to it. If you

know
> what the protocol for communication is (HTTP I'm assuming), as well
as the
> format and structure of the response of the site, then its just a

matter of
> programming against that specification/structure.
>
> To download the contents through HTTP, you can use the

HttpWebRequest
> and the HttpWebResponse classes.
>
>
> --
> - Nicholas Paldino [.NET/C# MVP]
> - mv*@spam.guard. caspershouse.co m
>
> "Mike" <cs*********@sb cglobal.net> wrote in message
> news:%2******** ********@tk2msf tngp13.phx.gbl. ..
> > Ok, after doing some research i found the same result.
> >
> > Now, here is what i'm trying to do. I'm trying to recieve a

newsfeed from
> a
> > web site that is coded in Cold Fusion, how could I code a C# web

app,
to
> > consume this newsfeed?
> > Or better yet, is there anything out there that exlains on how to
cosnume
> > news feeds without using RSS and a Web Service?
> >
> >
> >
> > "Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om>

wrote
> in
> > message news:O4******** ******@TK2MSFTN GP10.phx.gbl...
> > > Mike,
> > >
> > > I don't believe that there is. Given that the frameworks are vastly
> > > different, as well as the languages, I imagine that it is not an

easy
> > thing
> > > to do. You will probably have to do it on your own.
> > >
> > > Hope this helps.
> > >
> > >
> > > --
> > > - Nicholas Paldino [.NET/C# MVP]
> > > - mv*@spam.guard. caspershouse.co m
> > >
> > > "Mike" <cs*********@sb cglobal.net> wrote in message
> > > news:ud******** ******@TK2MSFTN GP10.phx.gbl...
> > > > is there a tool that will convert cold fusion code to C#?
> > > > Or anything out there to help in this process?
> > > >
> > > > thx
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Nov 15 '05 #8
"Mike" <cs*********@sb cglobal.net> wrote in message
news:ud******** ******@TK2MSFTN GP10.phx.gbl...
is there a tool that will convert cold fusion code to C#?
Or anything out there to help in this process?


We built tools to automate migrations. Our tools require source and target
language definitions, and translation rules between them.
We have C# already defined. We'd have to define ColdFusion
and the translation rules. This makes economic sense
if you have a lot of ColdFusion code (e.g., 50K SLOC or more).

See http://www.semanticdesigns.com
--
Ira D. Baxter, Ph.D., CTO 512-250-1018
Semantic Designs, Inc. www.semdesigns.com
Nov 15 '05 #9

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

Similar topics

4
3619
by: Eric Lilja | last post by:
Hello, I've made a templated class Option (a child of the abstract base class OptionBase) that stores an option name (in the form someoption=) and the value belonging to that option. The value is of the type the object is instantiated with. In my test program I have Option<std::string> and Option<long>. Here's the code for OptionBase and Option along with a small helper function. In the code are comments describing my problem, look closely...
4
9744
by: aevans1108 | last post by:
expanding this message to microsoft.public.dotnet.xml Greetings Please direct me to the right group if this is an inappropriate place to post this question. Thanks. I want to format a numeric value according to an arbitrary regular expression.
6
10190
by: Ricardo Quintanilla | last post by:
i have a code that sends data to a socket listening over as400 platform, the socket responds to me as a "byte array". then i need to convert the "byte array" into a string. the problem is that the data converted from the byte array into a string , is not what i expect. example: - the data returned from the socket is (byte array) "Usuario Sin Atribuciones Para Esta Función"
5
18715
by: simon | last post by:
I have datetime variable: Datetime tsEndTime; Should I use (DateTime): tsEndTime=(DateTime)rdr.GetValue(15) or is better to use: tsEndTime=Convert.ToDateTime(rdr.GetValue(15))
3
2691
by: Thubaiti | last post by:
Hi, I have this code in my ASP.NET and I want to convert it to C# (code behind) <asp:Repeater id="subCategoryRepeater" runat="server"> <ItemTemplate> <ul> <li> <asp:HyperLink id="subCategoryHyperLink" runat="server" NavigateUrl='<%# "subcategory.aspx?subcategoryid=" +
25
7261
by: Charles Law | last post by:
I thought this was going to be straight forward, given the wealth of conversion functions in .NET, but it is proving more convoluted than imagined. Given the following <code> Dim ba(1) As Byte Dim b As Byte
7
29224
by: patang | last post by:
I want to convert amount to words. Is there any funciton available? Example: $230.30 Two Hundred Thirty Dollars and 30/100
6
1407
by: patang | last post by:
Could someone please tell me where am I supposed to put this code. Actually my project has two forms. I created a new module and have put the following code sent by someone. All the function declaration statments (first lines) e.g. Public Function ConvertCurrencyToEnglish(ByVal MyNumber As Double) As String Private Function ConvertHundreds(ByVal MyNumber As String) As String etc.
3
8737
by: mrajanikrishna | last post by:
Hi Friends, I am accepting a number from the user entered in a textbox. I want to assign to a variable in my code and assignt this to that variable. double num1 = (double)txtNum1.text; this produced an error
0
10753
Debadatta Mishra
by: Debadatta Mishra | last post by:
Introduction In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information inside an image, hide your complete image as text ,search for a particular image inside a directory, minimize the size of the image. However this is not a new concept, there is a concept called Steganography which enables to conceal your secret...
0
8343
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
8855
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8758
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...
1
8545
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7364
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...
1
6185
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4179
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...
2
1986
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1743
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.