摘要:SDK中Sample编译错误及其解决方案SDK中Sample的编译环境如果使用Microsoft Visual Studio 2005,在工具->选项->项目和解决方案->vc++目录中进行如下设置。可执行文件:D:\Program Files\Microsoft Visual Studio 8\VCD:\Program Files\Microsoft Visual Studio 8\VC\redist\Debug_NonRedist\x86\Microsoft.VC80.DebugMFCD:\Program Files\Microsoft Visual Studio 8\V
阅读全文
05 2013 档案
摘要:library Properties; { Important note about DLL memory management: ShareMem must be the first unit in your library's USES clause AND your project's (select Project-View Source) USES clause if your DLL exports any procedures or functions that pass strings as parameters or function results. Thi
阅读全文
摘要:[DllImport("shell32.dll", CharSet = CharSet.Auto)]
private static extern IntPtr SHMultiFileProperties(IDataObject pdtobj, int dwFlags);
[DllImport("shell32.dll", CharSet = CharSet.Auto)]
public static extern IntPtr ILCreateFromPath(string path);
[DllImport("shell32.dll"
阅读全文
摘要:Namespace:Microsoft.VisualBasic.FileIOAssembly:Microsoft.VisualBasic(in Microsoft.VisualBasic.dll)SyntaxC#C++F#VBpublicstaticvoidDeleteFile( stringfile, UIOptionshowUI, RecycleOptionrecycle, UICancelOptiononUserCancel
)
ParametersfileType:System.StringName and path of the file to be deleted.show...
阅读全文
摘要:using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using System.Diagnostics;
using System.Reflection; namespace BBrowser
{ static class Program { private const int WS_SHOWNORMAL = 1; public const Int32 AW_BLEND =...
阅读全文
摘要:public static Bitmap RotateImage(Image image, int iw, int ih, float angle, out Point[] points) { if (image == null) throw new ArgumentNullException("image"); const double pi2 = Math.PI / 2.0; // Why can't C# allow these to be cons...
阅读全文
摘要:/// <summary>
/// Creates a new Image containing the same image only rotated
/// </summary>
/// <param name="image">The <see cref="System.Drawing.Image"/> to rotate</param>
/// <param name="angle">The amount to rotate the image, clock
阅读全文
摘要:/// <summary>
/// 处理图片透明操作
/// </summary>
/// <param name="srcImage">原始图片</param>
/// <param name="opacity">透明度(0.0---1.0)</param>
/// <returns></returns>
private Image TransparentImage(Image srcImage, float opacity)
{ float[][] nAr
阅读全文