|
Mir_As wrote: i want to write driver for my microcontroller
You where just explained that a task like that is geared for C, not .Net.
|
|
|
|
|
What part of "you can NOT run a C# app on a microcontroller" is so difficult to understand?
|
|
|
|
|
okay thats right, but what if we merge the .Net Framework with the application ?
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
First, you'll have to find a compiler that will generate native code with the app and framework all rolled into one. There are some out there, but they cost a small fortune to buy.
Next, that compiler will have to generate native code for the CPU in the microcontroller. That probably doesn't exist.
Those compilers will generate code libraries that are significantly larger than the app itself. You'll have to make sure the MC has the storage capacity to hold such a large executable.
Lastly, the .NET CLR depends on Windows, which the MC will not run.
|
|
|
|
|
Xmen W.K. wrote: okay thats right, but what if we merge the .Net Framework with the application ?
Good luck!
|
|
|
|
|
Like I'm gonna test ? It was just an idea. Thats it...
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
The short answer is: NO
1. PC side
if your microcontroller is to show up as a special peripheral to your PC, with an entry in the Hardware list, with multi-user capabilities, etc, then you need a device driver; such drivers can not be written in any of the .NET languages, the CLR isn't capable of doing system work.
if your microcontroller:
1) would be connected through a serial port (possibly using a USB-to-RS232C cable plugged into one of your PC's USB ports),
2) would not be a multi-user device
3) would not need permanent software support
then you could develop an app in any language you choose, including C#. It then couldt use the SerialPort class and go without a special driver.
2. Target side
microcontrollers in general don't support .NET, and most people still believe you need .NET to run a C#-based app, so no there will not be any C# code running on the microcontroller.
(One could create a cross-compiler for C# and compile it to either native or intermediate language, and come up with a small virtual machine to execute it; there is a sufficient number of small Java examples around to proof it is possible; I have not seen anyone do it for C# though).
Luc Pattyn
Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
Luc Pattyn wrote: and most people still believe you need .NET to run a C#-based app
You just blew my mind.
|
|
|
|
|
Luc Pattyn wrote: I have not seen anyone do it for C# though
A new article perhaps? If you do, let me know - it would be VERY interesting!
|
|
|
|
|
No, I have no such intentions; I am happy with C# (or Java) on a PC, and C and Java everywhere else.
Luc Pattyn
Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
You probably won't need to write your own driver (if you do you will need to delve into the dark world of C/C++). Find the most suitable USB class[^] for your device, implement that in you µC's code and you can use the Windows USB driver for that class.
Many µC manufacturer's already have code available for most common scenarios (so you may not even need to code the USB implementation at the µC side) and some even have their own drivers already written for you for when the generic Windows drivers won't do.
I experimented briefly with this with a PIC and the USB MIDI spec with sucess after a lot of trial and error - google will be your friend when you know exactly what to search for.
|
|
|
|
|
two machine can communicate using remoting but in this case two machine has to be in same lan and this a limitation. so please anyone help me that how one machine can communicate with other one over the internet with remoting if there no lan connection between two machine.if possible then please help me with sample code.
tbhattacharjee
|
|
|
|
|
You'll need to use Web Services, or better yet, use WCF so it can easily be configured to use any (supported) protocol
only two letters away from being an asset
|
|
|
|
|
It's no different, though the networks on both ends would have to be reconfigured to forward requests to the proper machines. directly exposing your machines to the Internet would be suicidal. There's a variety of ways to do it, all of which as beyond the scope of a forum post. You just have to know how TCP/IP networking works.
|
|
|
|
|
Well, I'm workin' on the same thing for 1 month and till the date I found the best way is use of web service as a bridge between your PC and other PCs. The following article may help about it.
How to Get Notifications from a .NET Web Service
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
If you need to use .NET Remoting rather than one of the other ideas that others have already mentioned to you, there is a commercial product that might allow you to accomplish your goal.
It is called Genuine Channels, see their website for more information: www.genuinechannels.com[^]
It is not free, but you can get a trial version to see if it will meet your needs. Please note that I know of the product and have used it. I am not recommending it nor recommending against using it, it's just another possible solution for you to evaluate.
BDF
People don't mind being mean; but they never want to be ridiculous.
-- Moliere
|
|
|
|
|
Hi i am developing a c#.net windows application
where i need to passi key words to the google search engine api and i need to retrieve the search results form the api
Please tell me which google api i have use in my application to make google search from my application
Thanks
Anil Veeraghattapu.
|
|
|
|
|
Anil709 wrote: Please tell me which google api i have use in my application
I would suggest using the Google toolkit[^] as a starting point.
|
|
|
|
|
Hej google has an ajax api att http://code.google.com/apis/ajax/playground/
There lots of example for searsh att this site.
If you dont like javascript there's probelby a way to get this with the .net WebClient Class
# Edit : ops from a windows application then
add a reference to System.Net
And write this function
<br />
static string search(string what) {<br />
var x = new WebClient();<br />
var q = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=" + what.Replace(" " , "%20");<br />
var uri = new Uri(q);<br />
var downloaded = x.DownloadString(q);<br />
return downloaded;<br />
}<br />
and you whill get json formated like this
<br />
{"responseData": {"results":[{"GsearchResultClass":"GwebSearch","unescapedUrl":"http://sv.wikipedia.org/wiki/Patrik","url":"http://sv.wikipedia.org/wiki/Patrik","visibleUrl":"sv.wikipedia.org","cacheUrl":"http://www.google.com/search?q\u003dcache:55ZSvMNvIkIJ:sv.wikipedia.org","title":"\u003cb\u003ePatrik\u003c/b\u003e - Wikipedia","titleNoFormatting":"Patrik - Wikipedia","content":"Mansnamnet \u003cb\u003ePatrik\u003c/b\u003e, Patric eller Patrick är av skotskt ursprung och kom till Sverige på 1600-talet med invandrande skotska släkter. \u003cb\u003e...\u003c/b\u003e"},{"GsearchResultClass":"GwebSearch","unescapedUrl":"http://griskindspatrik.wordpress.com/","url":"http://griskindspatrik.wordpress.com/","visibleUrl":"griskindspatrik.wordpress.com","cacheUrl":"http://www.google.com/search?q\u003dcache:pM9u03q_o30J:griskindspatrik.wordpress.com","title":"\u003cb\u003ePatrik\u003c/b\u003e","titleNoFormatting":"Patrik","content":"Absolut inte hemgjort, för det var den för "vispad" (Veronica) och för finfördelad (\u003cb\u003ePatrik\u003c/b\u003e). Nu har jag ju inte tillverkat ankrillettes själv (ÄN, \u003cb\u003e...\u003c/b\u003e"},{"GsearchResultClass":"GwebSearch","unescapedUrl":"http://www.imdb.com/title/tt1067733/","url":"http://www.imdb.com/title/tt1067733/","visibleUrl":"www.imdb.com","cacheUrl":"http://www.google.com/search?q\u003dcache:OQsxMHBWufkJ:www.imdb.com","title":"\u003cb\u003ePatrik\u003c/b\u003e 1,5 (2008)","titleNoFormatting":"Patrik 1,5 (2008)","content":"Directed by Ella Lemhagen. With Gustaf Skarsgård, Torkel Petersson, Thomas Ljungman. A Swedish gay couple adopt what they think is a 15-month-old orphan, \u003cb\u003e...\u003c/b\u003e"},{"GsearchResultClass":"GwebSearch","unescapedUrl":"http://www.patrikschumacher.com/","url":"http://www.patrikschumacher.com/","visibleUrl":"www.patrikschumacher.com","cacheUrl":"http://www.google.com/search?q\u003dcache:8_lL08LaBKIJ:www.patrikschumacher.com","title":"\u003cb\u003ePatrik\u003c/b\u003e Schumacher","titleNoFormatting":"Patrik Schumacher","content":"Published as "Smart Work – \u003cb\u003ePatrik\u003c/b\u003e Schumacher on the growing importance of \u003cb\u003e...\u003c/b\u003e Ralf F. Broekman und Olaf Winkler im Gespräch mit \u003cb\u003ePatrik\u003c/b\u003e Schumacher \u003cb\u003e...\u003c/b\u003e"}],"cursor":{"pages":[{"start":"0","label":1},{"start":"4","label":2},{"start":"8","label":3},{"start":"12","label":4},{"start":"16","label":5},{"start":"20","label":6},{"start":"24","label":7},{"start":"28","label":8}],"estimatedResultCount":"1910000","currentPageIndex":0,"moreResultsUrl":"http:
modified on Tuesday, September 22, 2009 9:06 AM
|
|
|
|
|
|
Dear ALL,
I have one table with 32 Element in this I want to insert the data for that I am using 150 Txt Box. Can u pls help me to Bind this data with database.
Thanks in Advance
modified on Tuesday, September 22, 2009 8:35 AM
|
|
|
|
|
Why are you using 150 TextBox es for 32 Elements?
Regardless of that there are thousands of examples of how to do data binding on t'interwebs. Use Google or Bing and search for c# databinding.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Dear Thanks for ur reply.
I have one Table Name Element.in this I Have to insert 32element.Everye element have diffrent Values for that I am using 150 TxtBox.
Thanks
|
|
|
|
|
|
Dear Can u pls suggest me how i can do with other
|
|
|
|
|