Results (464 total)
All
> c# (x)
On this page of the documentation (in the section titled "Class and Struct Accessibility"), it says:
$0Classes and structs are declared as internal by default unless the keyword public is added to the class definition...$0
$0$0
$0
$0But in the section titled "Other Types," it says: $0
$0Unlike classes, interfaces default to internal access.$0
$0$0
$0
$0The first says that classes are inter
Last modified by XgenX on 9/10/2012 6:55:53 AM
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]public struct CTL_INFO { public UInt32 dwVersion; public CTL_USAGE SubjectUsage; public CRYPTOAPI_BLOB ListIdentifier; public CRYPTOAPI_BLOB SequenceNumber; public UInt64 ThisUpdate; public UInt64 NextUpdate; public CRYPT_ALGORITHM_IDENTIFIER SubjectAlgorithm; public UInt32 cCTLEntry; public IntPtr rgCTLEnt
Last modified by Vadims Podans on 3/30/2012 7:22:59 AM
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]public struct CTL_CONTEXT { public UInt32 dwMsgAndCertEncodingType; public IntPtr pbCtlEncoded; public UInt32 cbCtlEncoded; public IntPtr pCtlInfo; public IntPtr hCertStore; public IntPtr hCryptMsg; public IntPtr pbCtlContent; public UInt32 cbCtlContent;}
Last modified by Vadims Podans on 3/30/2012 7:21:04 AM
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]public struct CTL_ENTRY { public CRYPTOAPI_BLOB SubjectIdentifier; public UInt32 cAttribute; public IntPtr rgAttribute;}
Last modified by Vadims Podans on 3/30/2012 7:18:42 AM
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]public struct CTL_USAGE { public UInt32 cUsageIdentifier; public IntPtr rgpszUseageIdentifier;}
Last modified by Vadims Podans on 3/30/2012 7:17:24 AM
Cant agree with source code disappearing as part of compilation activity: As it is a compilation issue there are 2 options:1)throw compilation error so that the coder is aware of what's happening2)and if possible, have a new method_implemented keyword to enable coding like this:
if method_implemented(obj.FnFOO(type1, type2) { obj.FnFOO(arg1, arg2);}
Last modified by cethie on 11/10/2011 8:46:33 AM
C# Syntax (SetSuspendState function (Windows))
[DllImport("powrprof.dll", SetLastError = true)][return: MarshalAs(UnmanagedType.I1)]public static extern bool SetSuspendState( [In, MarshalAs(UnmanagedType.I1)] bool Hibernate, [In, MarshalAs(UnmanagedType.I1)] bool ForceCritical, [In, MarshalAs(UnmanagedType.I1)] bool DisableWakeEvent );
Last modified by Stanley Roark on 11/3/2011 6:11:11 PM
i have this error and some body telling me how i can solve this........Unable to load DLL 'CLIPSLib': This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)
Last modified by ahmadwaqar on 10/19/2011 7:59:26 AM
The following piece of code requires a reference to Microsoft.Office.Interop.Excel and Microsoft.CSharp. It will list the row number and content of the first column of the first sheet in an excel file
using Excel = Microsoft.Office.Interop.Excel;
...
var filePath = @"C:\Temp\Sample.xlsx"; var application = new Excel.Application(); var book = application.W
Last modified by Morten Wennevik on 10/15/2011 3:10:50 PM
[DllImport("user32.dll")]
public static extern IntPtr FindWindow(String sClassName, String sAppName);
Example: IntPtr hwnd=FindWindow(null,"Form1");
"Form1" is the Text property of the window.
Along with "EnableWindow(..)" , this function can be used to lock a perticular window.
Example: [DllImport("user32.dll")]
public static extern bool EnableWindow(IntPtr hwnd, bool bEnable);
public
Last modified by kaka2011-07-20 on 7/20/2011 6:06:07 AM