Click here to Skip to main content
15,920,217 members
Home / Discussions / C#
   

C#

 
QuestionHow to invoke windows API in C# Pin
ZHENG.YANG.POINTER24-Jun-06 12:11
professionalZHENG.YANG.POINTER24-Jun-06 12:11 
AnswerRe: How to invoke windows API in C# Pin
Christian Graus24-Jun-06 12:15
protectorChristian Graus24-Jun-06 12:15 
QuestionSpeech Compression for Voice Chat Pin
surfman1924-Jun-06 11:41
surfman1924-Jun-06 11:41 
AnswerRe: Speech Compression for Voice Chat Pin
Ed.Poore24-Jun-06 12:47
Ed.Poore24-Jun-06 12:47 
GeneralRe: Speech Compression for Voice Chat Pin
surfman1924-Jun-06 13:33
surfman1924-Jun-06 13:33 
GeneralRe: Speech Compression for Voice Chat Pin
Ed.Poore25-Jun-06 9:03
Ed.Poore25-Jun-06 9:03 
AnswerRe: Speech Compression for Voice Chat Pin
mav.northwind25-Jun-06 0:20
mav.northwind25-Jun-06 0:20 
Questionobject vs. text stream Pin
Ed 5424-Jun-06 10:40
Ed 5424-Jun-06 10:40 
Hello, sorry in advance if this question is too simple for this crowd. I'm new to much of this.

I'm building an ASP .NET 2.0 site with C# code behind. It includes calls to the Google Maps API.

One of the functions I need is a geocode function. It takes an address and returns lat/long coordinates. I can call it from the client or server with javascript (not preferred), or from the C# code-beside using an HTTP request like this:

HttpWebRequest request = (HttpWebRequest)WebRequest.Create("URIcodeString");
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Stream resStream = response.GetResponseStream();


The address and response type are coded into the URIcodeString. I can opt to recieve the response either as an object or as XML. The object looks like this.

I can get as far as reading resStream into a String. From there, I'm planning on converting it to XML and parsing it to extract the data elements I need. That will entail some learning on my part, as I don't know XML. That's ok, but it does seem like a brute-force solution.

Question: is there a way to receive the JSON object directly and extract the fields I need, to avoid having to parse strings and/or XML? If I can, should I, or is parsing a stream a safer solution when dealing with data sent over the web?
AnswerRe: object vs. text stream Pin
Ed 5424-Jun-06 11:19
Ed 5424-Jun-06 11:19 
QuestionSMS Server Pin
mostafa_h24-Jun-06 10:36
mostafa_h24-Jun-06 10:36 
QuestionHow do you implement a message queuing system? Pin
Steve Messer24-Jun-06 10:25
Steve Messer24-Jun-06 10:25 
AnswerRe: How do you implement a message queuing system? Pin
Ed.Poore24-Jun-06 12:56
Ed.Poore24-Jun-06 12:56 
GeneralRe: How do you implement a message queuing system? Pin
Steve Messer24-Jun-06 15:00
Steve Messer24-Jun-06 15:00 
GeneralRe: How do you implement a message queuing system? Pin
Leslie Sanford24-Jun-06 19:55
Leslie Sanford24-Jun-06 19:55 
GeneralRe: How do you implement a message queuing system? [modified] Pin
Steve Messer24-Jun-06 20:15
Steve Messer24-Jun-06 20:15 
GeneralRe: How do you implement a message queuing system? Pin
Leslie Sanford24-Jun-06 21:11
Leslie Sanford24-Jun-06 21:11 
GeneralRe: How do you implement a message queuing system? Pin
Steve Messer25-Jun-06 3:47
Steve Messer25-Jun-06 3:47 
GeneralRe: How do you implement a message queuing system? Pin
Leslie Sanford25-Jun-06 5:35
Leslie Sanford25-Jun-06 5:35 
GeneralRe: How do you implement a message queuing system? Pin
Steve Messer25-Jun-06 5:54
Steve Messer25-Jun-06 5:54 
GeneralRe: How do you implement a message queuing system? Pin
Leslie Sanford25-Jun-06 6:27
Leslie Sanford25-Jun-06 6:27 
GeneralRe: How do you implement a message queuing system? Pin
Steve Messer25-Jun-06 7:46
Steve Messer25-Jun-06 7:46 
GeneralRe: How do you implement a message queuing system? Pin
Leslie Sanford25-Jun-06 8:24
Leslie Sanford25-Jun-06 8:24 
GeneralRe: How do you implement a message queuing system? Pin
Steve Messer25-Jun-06 8:56
Steve Messer25-Jun-06 8:56 
GeneralRe: How do you implement a message queuing system? Pin
Leslie Sanford25-Jun-06 9:16
Leslie Sanford25-Jun-06 9:16 
GeneralRe: How do you implement a message queuing system? Pin
Steve Messer25-Jun-06 12:35
Steve Messer25-Jun-06 12:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.