Click here to Skip to main content
15,892,674 members
Home / Discussions / C#
   

C#

 
AnswerRe: Communication between 2 processes by DLL Pin
Wes Aday7-Dec-09 9:49
professionalWes Aday7-Dec-09 9:49 
GeneralRe: Communication between 2 processes by DLL Pin
PIEBALDconsult7-Dec-09 17:13
mvePIEBALDconsult7-Dec-09 17:13 
AnswerRe: Communication between 2 processes by DLL Pin
Luc Pattyn7-Dec-09 10:03
sitebuilderLuc Pattyn7-Dec-09 10:03 
GeneralRe: Communication between 2 processes by DLL Pin
bonzaiholding7-Dec-09 10:38
bonzaiholding7-Dec-09 10:38 
GeneralRe: Communication between 2 processes by DLL Pin
Luc Pattyn7-Dec-09 10:49
sitebuilderLuc Pattyn7-Dec-09 10:49 
AnswerRe: Communication between 2 processes by DLL [modified] Pin
Abhinav S7-Dec-09 17:12
Abhinav S7-Dec-09 17:12 
QuestionUsing dlls that are not referenced. Pin
Tim Groven7-Dec-09 7:11
Tim Groven7-Dec-09 7:11 
AnswerRe: Using dlls that are not referenced. Pin
Md. Marufuzzaman7-Dec-09 7:34
professionalMd. Marufuzzaman7-Dec-09 7:34 
Try like the following,

<pre>      private const string Kernel32Dll = "kernel32.dll";

      private sealed class SafeLibraryHandle : SafeHandleZeroOrMinusOneIsInvalid
      {
         public SafeLibraryHandle() : base(true) { }

         [SuppressUnmanagedCodeSecurity]
         [DllImport(Kernel32Dll)]
         [return: MarshalAs(UnmanagedType.Bool)]
         private static extern bool FreeLibrary(IntPtr hModule);

         /// &lt;summary&gt;Release library handle&lt;/summary&gt;
         /// &lt;returns&gt;true if the handle was released&lt;/returns&gt;
         [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
         protected override bool ReleaseHandle()
         {
            return FreeLibrary(handle);
         }
      }
</pre>

Thanks
Md. Marufuzzaman


Don't forget to click [Vote] / [Good Answer] on the post(s) that helped you.

I will not say I have failed 1000 times; I will say that I have discovered 1000 ways that can cause failure – Thomas Edison.

AnswerRe: Using dlls that are not referenced. [modified] Pin
PIEBALDconsult7-Dec-09 7:37
mvePIEBALDconsult7-Dec-09 7:37 
GeneralRe: Using dlls that are not referenced. Pin
Md. Marufuzzaman7-Dec-09 8:00
professionalMd. Marufuzzaman7-Dec-09 8:00 
GeneralRe: Using dlls that are not referenced. Pin
Tim Groven7-Dec-09 8:45
Tim Groven7-Dec-09 8:45 
QuestionMessage Removed Pin
7-Dec-09 6:22
professionalN_tro_P7-Dec-09 6:22 
AnswerRe: Is Save Blocking nor non-blocking Pin
Luc Pattyn7-Dec-09 7:12
sitebuilderLuc Pattyn7-Dec-09 7:12 
AnswerRe: Is Save Blocking nor non-blocking Pin
Shameel7-Dec-09 7:15
professionalShameel7-Dec-09 7:15 
QuestionXML Pin
Morgs Morgan7-Dec-09 5:00
Morgs Morgan7-Dec-09 5:00 
AnswerRe: XML Pin
J4amieC7-Dec-09 5:17
J4amieC7-Dec-09 5:17 
AnswerRe: XML Pin
PIEBALDconsult7-Dec-09 6:23
mvePIEBALDconsult7-Dec-09 6:23 
AnswerRe: XML Pin
wenjinxu7-Dec-09 23:05
wenjinxu7-Dec-09 23:05 
Question2D array to Image Pin
umesh adiga7-Dec-09 4:55
umesh adiga7-Dec-09 4:55 
AnswerRe: 2D array to Image Pin
Md. Marufuzzaman7-Dec-09 9:09
professionalMd. Marufuzzaman7-Dec-09 9:09 
QuestionVisual Studio Addin Pin
LimitedAtonement7-Dec-09 3:53
LimitedAtonement7-Dec-09 3:53 
QuestionNeed help in opening cash drawer Pin
yousaf287-Dec-09 3:45
yousaf287-Dec-09 3:45 
Questiondebit & credit question Pin
Jassim Rahma7-Dec-09 2:12
Jassim Rahma7-Dec-09 2:12 
AnswerRe: debit & credit question [modified] Pin
Eddy Vluggen7-Dec-09 2:52
professionalEddy Vluggen7-Dec-09 2:52 
AnswerRe: debit & credit question Pin
Sunil G7-Dec-09 2:56
Sunil G7-Dec-09 2:56 

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.