Click here to Skip to main content
15,904,416 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to bind gridview columns dynamically Pin
Abhinav S17-Feb-13 22:47
Abhinav S17-Feb-13 22:47 
QuestionSMS from C# windows application Pin
karthisomu17-Feb-13 21:21
karthisomu17-Feb-13 21:21 
AnswerRe: SMS from C# windows application Pin
Richard MacCutchan17-Feb-13 21:58
mveRichard MacCutchan17-Feb-13 21:58 
AnswerRe: SMS from C# windows application Pin
Blikkies17-Feb-13 22:37
professionalBlikkies17-Feb-13 22:37 
AnswerRe: SMS from C# windows application Pin
Azza ALbelushi18-Feb-13 4:08
Azza ALbelushi18-Feb-13 4:08 
AnswerRe: SMS from C# windows application Pin
Amir Mohammad Nasrollahi29-Jul-13 22:06
professionalAmir Mohammad Nasrollahi29-Jul-13 22:06 
QuestionDetecting Drawn Objects Pin
ASPnoob17-Feb-13 20:54
ASPnoob17-Feb-13 20:54 
AnswerRe: Detecting Drawn Objects Pin
Richard MacCutchan17-Feb-13 21:56
mveRichard MacCutchan17-Feb-13 21:56 
QuestionHow to use Param with Enum Pin
demoninside917-Feb-13 19:25
demoninside917-Feb-13 19:25 
Question4 Images change on linkbutton click Pin
sahavasiwebwonders17-Feb-13 18:25
sahavasiwebwonders17-Feb-13 18:25 
AnswerRe: 4 Images change on linkbutton click Pin
Pete O'Hanlon17-Feb-13 20:48
mvePete O'Hanlon17-Feb-13 20:48 
GeneralRe: 4 Images change on linkbutton click Pin
sahavasiwebwonders17-Feb-13 21:03
sahavasiwebwonders17-Feb-13 21:03 
GeneralRe: 4 Images change on linkbutton click Pin
Pete O'Hanlon17-Feb-13 22:36
mvePete O'Hanlon17-Feb-13 22:36 
QuestionImages change on linkbutton click Pin
sahavasiwebwonders17-Feb-13 18:24
sahavasiwebwonders17-Feb-13 18:24 
AnswerRe: Images change on linkbutton click Pin
Richard MacCutchan17-Feb-13 21:52
mveRichard MacCutchan17-Feb-13 21:52 
QuestionWebMatrix-Following Pin
Bram van Kampen16-Feb-13 15:12
Bram van Kampen16-Feb-13 15:12 
AnswerRe: WebMatrix-Following Pin
David C# Hobbyist.16-Feb-13 16:19
professionalDavid C# Hobbyist.16-Feb-13 16:19 
GeneralRe: WebMatrix-Following Pin
Bram van Kampen16-Feb-13 17:19
Bram van Kampen16-Feb-13 17:19 
AnswerRe: WebMatrix-Following Pin
N a v a n e e t h16-Feb-13 18:00
N a v a n e e t h16-Feb-13 18:00 
GeneralRe: WebMatrix-Following Pin
Bram van Kampen17-Feb-13 14:45
Bram van Kampen17-Feb-13 14:45 
GeneralRe: WebMatrix-Following Pin
N a v a n e e t h17-Feb-13 17:10
N a v a n e e t h17-Feb-13 17:10 
Bram van Kampen wrote:
The C# system I'm faced with, generates dozens of files, and lengthy tutorials. Unlike MFC, it does not appear to have a meaningful Help System. If I double Click a 'System' class name and press F1, I get a list of Tutorials(if anything at all) instead of a Help file which explains the class, and what methods are available.
System is not a class but a namespace.

I never used to look for local help instead always check in online MSDN. They are pretty good and well documented. Try this[^]
Bram van Kampen wrote:
There is no short explanation anywhere I can find,about which file does what, or how it glues together. It is to me totally unclear whether to start a Website or a Project. Does a Project contain many Websites, or does a Website contain many projects. What is the format of the End Product. An .exe or .dll file,as in MFC, a .cgi File, or what else.
A project can contain several C# files which will be compiled together. Output of the compilation depends on the type of project created. If the type is a class library, you get a DLL and an executable file when the project type is Console or Windows or WPF application.

Usually, you will start with creating an empty solution. Then add projects into the solution. So all the componenets in your project can be separate Visual studio projects contained in a single solution file (.sln). Now you can specify the project dependencies and how they reference each other. Let us assume that you are building a website. You will create an empty solution, add a class library to it which contains your websites core logic which don't have any dependencies with web related components. This project could contain wrapper classes to your C++ library. Then you can add a ASP.NET project to the solutuion wich references the assembly from the class library project.
Bram van Kampen wrote:

I fully understand Machine code and assembler code. I am fully aware how the CPP Compiler and Linker work, and how the lot comes together at run time. MFC has Header Filesand Libraries, and pragma's to include a DLL. It istotally unclear to me what happensin C#,
In C# it is simple. No header files. Just a bunch of files which has classes defined in it. Compiler will compile all the files and generate the output depending on the project type. To use a class, you don't have to include any file like you do for header files. .NET managed assemblies will have class metatdata which is used to resolve classes.
Bram van Kampen wrote:

The Bottom line is, I need to know how it works, rather than yet another tutorial on how to do something trivial.
It is better if you get couple of .NET and C# books and learn from it. There is a lot and probably can't answer in such detail here.

Once you get a hang of how things are working, you could check my Blog post[^] which will explain how you can reuse your C++ code in C#.
Best wishes,
Navaneeth

AnswerRe: WebMatrix-Following Pin
Dave Kreskowiak16-Feb-13 18:50
mveDave Kreskowiak16-Feb-13 18:50 
GeneralRe: WebMatrix-Following Pin
Bram van Kampen17-Feb-13 14:50
Bram van Kampen17-Feb-13 14:50 
QuestionWebMatrix Pin
Bram van Kampen16-Feb-13 14:26
Bram van Kampen16-Feb-13 14:26 
AnswerRe: WebMatrix Pin
N a v a n e e t h16-Feb-13 18:01
N a v a n e e t h16-Feb-13 18:01 

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.