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#.
The comment frazzle made about the weekend being a bad time is, frankly, bullsh*t. I don't know where he got that idea from, but someone is usually volunteering their time here pretty regularly, even on the weekends.
In a C# 2008 desktop application, I am finding that there are processes that are not released once when the application finishes executing.
Every time this application runs, there are more processes that are not released. I want to mention this application was originally written as a console application, but was changed to a windows application since I did not want all the dos popup windows.
I do want to mention that in this application the following is not occuring:
1. When some of the objects are created, there is no dispose on the objects.
2. Some of the linq statements do not have a using clause on them.
What kind of code could be causing this problem?
Thus can you tell me, point me to a reference, and/or show me code on how to reolve this problem?
When looking on the internet, it looks like profiler is only in the premium and standard edition of .net. My company is using the professional version.
Is there another tool that you are aware of that I could use?
Instead of down voting (I assume) and making snippy comments, I suggest you take a look at Eddie's Vulgen's response.
99% of the people who answer questions here are going to read you post and think "He just wants me to write his code for him" and won't help. Why?
1. You Describe you problem in broad brush "I wanna do something terms"
2. You ask for code
3. You don't say what you have tried and what happened.
From this standpoint it looks like you have done no work (you might have spent hours on it, we don't know) and the basics of this are easily googled.
This is a messageboard, and these questions are being answered by volunteers. Like you. It'd be inappropriate to ask them to do a complete project. If it's your task, then you'll be the one writing code - and we'll gladly help when you get stuck.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
I'm developing Finger Print project in windows application using C#.net. I need to know that how to save finger print image from Finger Print device to my project and store into database. plz let me know.
i dawnload the code (How to Send SMS Messages from C# using an SQL Database) from code project
i follow the step in it i have installed the required gateway which is ozeki gate way , but i face two problem...one is when i run the C# application and it display the follwing message (The SMSC provider is not registered in your local machine)...
the second when i use ozeki gate way i couldn't send message from it. it show the error number 1360,1366,1361 according.
please guide me tosolve this problem as soon as possible
the code in the is
public partial class Form1 : Form
private void button1_Click(object sender, EventArgs e)
//Connect to the database
OleDbConnection conn = new OleDbConnection();