|
Hello,
I have been using VC++ for 3 yrs now.
Now I want to learn .NET Framework.
What is the actual purpose of .NET Framework and where should I start?
Regards,
Prithaa
|
|
|
|
|
The main purpose of .NET is to annoy the people at Sun.
C# is the best place for a C++ guy to start, there are books on starting C# from a C++ perspective.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
prithaa wrote: What is the actual purpose of .NET Framework
The primary purpose of the .net framework is to trivialize all the effort you put into learning C++. The secondary purpose is to trivialize your efforts to learn .Net by "managing" your code for you.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
|
You question doesn't make any sense since there is no such thing as a ".net connect". I take it you're really asking about how to grab images from a webcam in your .NET app.
Google for "WIA" or "Windoes Image Aquisition" for examples. You could even add the language you're using to the keywords, such as "C# WIA", or "VB.NET WIA" to narrow down the search a bit.
|
|
|
|
|
i use code on http://www.codeproject.com/dotnet/wiascriptingdotnet.asp
when i test with obicam on notebook. it can grab image
thank a lot
|
|
|
|
|
We have created a utility dll and associted the same with the strong name and deployed it in Global Assembly Cache (C:\Windows\Assembly) folder using gacutil.exe
Since I need this utility to be used by many applications running on this machine i pushed it to GAC.
But Im not able to reference this utility in any of the applications(By Using Add Reference).
Can anyone please help ?
Thanks in advance.
Prashanth Nandi
|
|
|
|
|
|
Thanks a lot Martin. Its working fine now.
|
|
|
|
|
Hi folks,
How the windows API differenciate Normal EXE'x from the .Net EXE's, for example when you click the .Net exe file then it should be load the CLR into memory and execute the exe otherwise it never load CLR to execute. If any one knows please share with me.
Advance Thanks,
friendly,
ranandbe
|
|
|
|
|
ranandbe wrote: How the windows API differenciate Normal EXE'x from the .Net EXE's, for example when you click the .Net exe file then it should be load the CLR into memory and execute the exe otherwise it never load CLR to execute. If any one knows please share with me.
A .NET executable contains a special CLR Header, which is only available in .NET executables. The PE (portable executable) header will redirect the OS to this section. It's worthwhile getting to know how the PE format is used and what it does.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Thank You. After you say that i go and open the EXE with ILDASM utility.
It Shows the following at the program entry point.
.method private hidebysig static void Main() cil managed
{
.entrypoint
.custom instance void [mscorlib]System.STAThreadAttribute::.ctor() = ( 01 00 00 00 )
// Code size 26 (0x1a)
.maxstack 8
IL_0000: nop
IL_0001: call void [System.Windows.Forms]System.Windows.Forms.Application::EnableVisualStyles()
IL_0006: nop
IL_0007: ldc.i4.0
IL_0008: call void [System.Windows.Forms]
******************************
} // end of method Program::Main
What it tells?
friendly,
ranandbe
|
|
|
|
|
That is is a windows forms application. However, this is not the PE header that was discussed before. This is the .NET entry point. The OS must be aware this is a .NET executable assembly already by this point.
|
|
|
|
|
Hello,
I'm looking for a winform component that behave like the visual studio Watch.
Did anyone saw such a component ?
Thanks.
|
|
|
|
|
Have you resolved this?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi,
I need to write an application that will fetch some data using WebService & insert it in to a database. This application will be put into a Windows Task Scheduler & will be run on a weekly basis. So should I go for Console Application or Windows Service application?
Kindly let me know the advantage & dis advantage of both the above apps.
Regards,
Vipul Mehta
|
|
|
|
|
If you plan on running it through Task Scheduler it must be a user mode application (either Console app or WinForms). A windows service is something that starts (generally) automatically when the operating sytems starts and runs even when no users are logged in. They generally don't have any UI components as well.
The issue you will have with a Task Scheduled service is that the users will be able to change the schedule and even remove it. A windows service is somewhat protected from that, but the user could still stop or disable the service.
|
|
|
|
|
Hi,
Not every body will have right to install or probably update the schedules for that service.
Yes I want some message to be shown when service starts OR there is some issue OR completes successfully.
Regards,
Vipul Mehta
|
|
|
|
|
I would choose a console application, since you must perform some operations and done, right? Most windows services are listening at a particular tcp port, in where requests are attended. Most of times they're ment to run forever perfoming operations under the system account. So, if you choose this way, you will have to take care of schedlule by your own -Windows Task Scheduler applies to regular executable programms or batch files onlyI would choose a console application, since you must perform some operations and done, right? Most windows services are listening at a particular tcp port, in where requests are attended. Most of time they're meant to run forever performing operations under the system account. So, if you choose this way, you will have to take care of Schedule by your own -Windows Task Scheduler applies to regular executable programs or batch files only, although you can write a batch to start a service and another to stop it...
Hope this helps
|
|
|
|
|
Yes... my Windows Console Application/Windows Service will run once a week (through Windows Task scheduler)
Will the Windows Service keep on executing or we can run it as per the Task Scheduler?
Regards,
Vipul Mehta
|
|
|
|
|
Services never run out of the Task Scheduler. Services run from the time Windows starts until it's shutdown.
Task Scheduler runs user mode process, like Console or Windows Apps.
|
|
|
|
|
Thanx Very Much
Regards,
Vipul Mehta
Sr. Software Engineer
Accenture Services Pvt Ltd
|
|
|
|
|
I have a console application, which is a WSE2 Web service with several soap methods. The application starts and the memory usage increases constantly until it reaches to approximately 700MB, then it won't respond anymore. This memory leak happens on Windows 2K3 with SP2 Framework 1.1, but i can't reproduce it in Windows 2K SP4, weird isn't it
I've reviewed the code in each method to release resources and call Dispose if needed. I have also checked some counters with perfmon and clr_profiler, but no clue of what is causing this behavior. Please help me
|
|
|
|
|
hi guys i am creating an application in which i am creating a dll at runtime.
i have defined one parameterized construcor,every thing goes ok.,
when i am going to save this dll on the disk , it says, "classname" my type is not completed
why
?
thanks in advance
hello
|
|
|
|