Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
This may be too broad, but I have a huge ColdFusion website that I am being tasked to rebuild in .NET. I've heard that you have to build .NET websites using Visual Studio and it's all set up in that environment, but I would like to keep everything (CSS, HTML, Javascript, etc.) except the Coldfusion. Can I just copy the pages over to a .NET server and replace the Coldfusion commands with C# commands or something? Is it not that easy?
You should look at this in the same way one would translate Chinese text to English. It's not word for word, but you have to understand what is being said to rewrite it in another language.
No, it is not as easy as replacing commands. Converting without rewriting would be a bad idea. First, get immersed in the site and learn everything it does. Then, design the new site to use the old code if it is modular. Convert it piece by piece until you are done.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I would like to scan an economic calendar (and in a second step possibly a news source) like this one for use in MetaTrader/MQL5. I guess I would need another programming language than MQL5 for that, possibly (but not necessarily) C#? (How) can it be done in principle?
Thank you very much in advance!
You can check whether you can access that web page through WebRequest() function available in MT4/5. Alternative way is to write a DLL (or to find one) and access the link above through the REST api (but it doesnt make sense as WebRequest provides it) or somehow else. The easiest way is to check all calendars you may find (myfxbook, mt5.com, fxfactory) and find the easiest page to parse with MT5 methods, then try to collect data and process it. If your skills include some other languages, it might make sense to collect data with REST and then parse it with Jsoup/soup/beautiful-soup (the library that is designed for your language) - that will help with tests (to clear the data faster), and WebRequest() for live.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I've seen a few topics over the web of how to replace text in a Word Document, but my real question is the following: Is Interop the best option? Is there any other (better) option?
Here is an example of a topic I've read LINK.
I'm trying to arrange something that will work great on a Web Server, so I'm asking too if you guys could provide some code to get me started.
Thanks!
This is a very difficult question to answer since it involves that much opinions about which is best, in any definition of best.
As a starter I would definitely go for VSTO / interop since it is easier to go, and is integrated with and maintained by the developer of both products (Office and Visual Studio).
If your require it to run on a server (with ASP.NET for example) you should NEVER use VSTO / interop.
Why?
This is what Microsoft says about it.
Office interop is not built to run on a server as a process. It is too heavy, and depends on the UI capabilities for rendering, etc. You could use Open XML for Word or EPPlus for Excel for example.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I know this is a difficult issue, but I'm asked to build an application that allows users to scan pages (from an Automatic Document Feeder) , and upload them into an FTP server. And I should integrate this into a PHP web application.
Any programming language will work, I just want to know how.
I have found a C# library called WIA. Is it the best option I have ?
Can I build a browser application (with Flash or Java) that can interact with the scanner ?
Thanks !
Perhaps you can check out the following sourceforge project called phpSANE.http://sourceforge.net/projects/phpsane/
Essentially need to setup and use SANE to work with your scanner. You can then use or modify (cause it's open source) phpSANE running on your web server which will then pick up the files and save them to an FTP server.
I'm not sure how you might automatically detect documents put into the Automatic Document Feeder, perhaps there is a way SANE is notified and you can get this use this to call a PH script?
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I use notepad for writing daily notes.some times when system gets restarted by accidentally, I loose my content.
So my question is"can I write an auto-save plugin for notepad" ?
Please let me know if I can write an auto-save plugin for Notepad using C#.NET.
I know about Notepad++ but I want to use notepad only.
Thanks in Advance.
There is no direct way of doing this because NotePad is a separate application and you don't have its code. Even if you did have the code, I'm highly sure it wouldn't be in a .NET-based language.
There is an alternate though. You could recreate entire NotePad from scratch in .NET. Believe me it won't take more than a couple hours for a guy who knows his tools (someone out there might already have done that). Then you can add any new features at your choice.
Yet another way would be hooking into NotePad's low-level messages through Platform calls and trying to somehow inject your features into it, but that's something I'm not an expert at and that would probably take more effort/expertise than writing your own NotePad from scratch.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I'm planning to create a VNC that can be view in browser. The inspiration for this code is Thinvnc but i would like to implement it using C# .NET . Is it possible to create such an application? what are the components that are going to use? thank you in advance ^_^
It is possible, at least for VNC. Well, I'd say it would be better to go with the java on this one. You could take one of the open source projects and extend it's functionality so it is served from the web page.
if you really want to go with C# you'll need to use silverlight.
One thing is having a page and the other component that knows how to handle vnc. Using asp/html/... won't get you far - you need to use java/silverligh - C#/flash...
Best regards,
P.