Click here to Skip to main content
16,008,010 members
Home / Discussions / C#
   

C#

 
GeneralRe: Regex(@"[_A-Za-z]+[A-Za-z]\w*") Can it be improved ? Pin
ektoras1-Mar-05 1:18
ektoras1-Mar-05 1:18 
GeneralRe: Regex(@"[_A-Za-z]+[A-Za-z]\w*") Can it be improved ? Pin
Dave Kreskowiak1-Mar-05 3:34
mveDave Kreskowiak1-Mar-05 3:34 
GeneralRe: Regex(@"[_A-Za-z]+[A-Za-z]\w*") Can it be improved ? Pin
ektoras1-Mar-05 3:56
ektoras1-Mar-05 3:56 
GeneralRe: Regex(@"[_A-Za-z]+[A-Za-z]\w*") Can it be improved ? Pin
Dave Kreskowiak1-Mar-05 7:03
mveDave Kreskowiak1-Mar-05 7:03 
AnswerRe: Regex(@"[_A-Za-z]+[A-Za-z]\w*") Can it be improved ? Pin
leppie1-Mar-05 2:04
leppie1-Mar-05 2:04 
GeneralRe: Regex(@"[_A-Za-z]+[A-Za-z]\w*") Can it be improved ? Pin
ektoras1-Mar-05 3:51
ektoras1-Mar-05 3:51 
GeneralManaged or Unmanaged in C# Pin
Subrahmanyam K1-Mar-05 0:37
Subrahmanyam K1-Mar-05 0:37 
GeneralRe: Managed or Unmanaged in C# Pin
Dave Kreskowiak1-Mar-05 3:29
mveDave Kreskowiak1-Mar-05 3:29 
Subrahmanyam Kallakuri wrote:
As doing so, will my code be under the control of the CLR i.e Managed Code or will become an Unmanaged Code (Not under the control of the CLR).

I shall be thankful for the following clarification:

When the code written in C#.NET will be Unmanaged?

1. when Win API's are used in C#.NET
2. when System.IntPtr is used.
3. when C# pointers are used.
4. combination of any above.


None of the above. C# runs in the CLR environment no matter what happens. It can makes calls into unmanaged code (i.e. Win32 API functions) that the CLR can only partially control, like passing parameters back and forth, but your C# code NEVER becomes unmanaged. The CLR, of course, can't control what happens outside of the managed environment, like what the unmanaged function does or doesn't do correctly.

If you call unmanaged code, your code is still repsonsible for calling that code correctly and abiding by the requirements that unmanaged code has. If the caller is supposed to call another function to free resources, then your managed code still has to call whatever function to free those resources. Calling into unmanaged code does NOT magically make your C# code unmanaged.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

Questionno support for Oledb provider for ODBC? Pin
Adnan Siddiqi28-Feb-05 23:53
Adnan Siddiqi28-Feb-05 23:53 
Generalhttp stream Pin
ppp00128-Feb-05 22:14
ppp00128-Feb-05 22:14 
GeneralRe: http stream Pin
leppie28-Feb-05 23:40
leppie28-Feb-05 23:40 
Generalset the font of a label to a cutom .ttf file Pin
Navdeep Sidhu28-Feb-05 20:58
Navdeep Sidhu28-Feb-05 20:58 
GeneralRe: set the font of a label to a cutom .ttf file Pin
leppie28-Feb-05 23:33
leppie28-Feb-05 23:33 
Generalappend values in a datagrid by using datatable. Pin
Manzoor Ahmad28-Feb-05 20:36
Manzoor Ahmad28-Feb-05 20:36 
GeneralRe: append values in a datagrid by using datatable. Pin
exhaulted28-Feb-05 21:08
exhaulted28-Feb-05 21:08 
Generalwhat's the difference between these two clause? Help!!!! Pin
welsrping28-Feb-05 20:35
welsrping28-Feb-05 20:35 
GeneralRe: what's the difference between these two clause? Help!!!! Pin
Robert Rohde28-Feb-05 21:35
Robert Rohde28-Feb-05 21:35 
GeneralRe: what's the difference between these two clause? Help!!!! Pin
Stefan Troschuetz28-Feb-05 21:38
Stefan Troschuetz28-Feb-05 21:38 
GeneralSharing a Udp Port Pin
Zishan Haider28-Feb-05 20:29
Zishan Haider28-Feb-05 20:29 
GeneralPassing datagrid value to other Form Pin
Adnan Siddiqi28-Feb-05 20:17
Adnan Siddiqi28-Feb-05 20:17 
GeneralRe: Passing datagrid value to other Form[Solved] Pin
Adnan Siddiqi28-Feb-05 23:46
Adnan Siddiqi28-Feb-05 23:46 
GeneralDisabling the Windows Close action in C# Pin
Md Saleem Navalur28-Feb-05 19:35
Md Saleem Navalur28-Feb-05 19:35 
GeneralRe: Disabling the Windows Close action in C# Pin
mav.northwind28-Feb-05 20:00
mav.northwind28-Feb-05 20:00 
GeneralRe: Disabling the Windows Close action in C# Pin
Md Saleem Navalur28-Feb-05 21:00
Md Saleem Navalur28-Feb-05 21:00 
GeneralRe: Disabling the Windows Close action in C# Pin
exhaulted28-Feb-05 21:10
exhaulted28-Feb-05 21:10 

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.