![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
文章平均质量分 70
qq_37609476
精通C#\C++\CAD\ QQ:495452986 1342582891
展开
-
C#将图像存成视频
文章摘至上面这个网页,进行了一点点的翻译IntroductionThis is an article for everyone who does not want to spend hours messing around with the AVIFile functions, if he only wants to read or change a simple AVI vide转载 2017-03-13 17:36:27 · 5037 阅读 · 1 评论 -
C++/C#通信之COPY_DATA
WM_COPYDATA消息主要目的是允许在进程间传递只读数据C++/C#之间用WM_COPYDATA通信需要注意点: 1、只能使用SendMessage发送,需注意程序阻塞 2、接收端最好接收数据指针,再转换为对应数据。直接接收字符串会出现转换失败的情况 3、发送的内容无法支持Unicode,只能转换为多字节,否则会接收数据不全转载 2017-03-29 14:33:45 · 554 阅读 · 0 评论 -
c#调用c++写成的dll文件,返回char*,返回数组,用ref接收,byte[] (zz)
/ Inclusion guard#ifndef _DLLTUT_DLL_H_#define _DLLTUT_DLL_H_// Make our life easier, if DLL_EXPORT is defined in a file then DECLDIR will do an export// If it is not defined DECLDIR will do转载 2017-03-04 15:08:43 · 645 阅读 · 0 评论 -
c#改变winform窗体 标题的字体大小 背景 和颜色
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Runtime.Interop转载 2017-02-24 18:05:17 · 21739 阅读 · 1 评论 -
C# byte数组与Image的相互转换
功能需求:1、把一张图片(png bmp jpeg bmp gif)转换为byte数组存放到数据库。2、把从数据库读取的byte数组转换为Image对象,赋值给相应的控件显示。3、从图片byte数组得到对应图片的格式,生成一张图片保存到磁盘上。这里的Image是System.Drawing.Image。 //Get an image from转载 2017-02-24 08:50:32 · 738 阅读 · 0 评论 -
在WPF中插入flash
在WPF中插入flash方法1. 建立 WPF Application。首先,建立一个名为 FlashinWPF 的 WPF Application2. 设置 Window 属性。在 XAML 中修改 Window 的属性,加入 Loaded 事件,设置默认 Grid 的 x:Name 标示为 "FlashGrid" 更改后代码如下: xmlns="htt转载 2017-02-23 14:19:13 · 619 阅读 · 0 评论 -
C# winform与 flash as 的交互通讯
一、基本原理及过程Flash通过ExternalInterface类与容器应用程序进行通信。为此,ExternalInterface类提供两个静态属性和两个静态方法。ExternalInterface.call(“函数名”,[参数…])方法执行容器应用程序的代码,该方法至少需要一个字符串参数来指定要调用的函数名,其它任何参数将作为参数被传递给被调用函数。在除浏览器外的其它容器中,此转载 2017-02-23 13:14:55 · 339 阅读 · 0 评论 -
C# WINFORM中嵌入FLASH的方法
1.选择“工具箱”,单击鼠标右键,在弹出的快捷菜单中选择“选择项”。2.弹出“选择工具箱项”对话框,选择“COM组件”选项卡。3.在COM组件列表,单击[浏览]按钮,在对话框中选择"C:\Windows\System32\Macromed\Flash\Flash10h.ocx"。(版本可能有细微差别) 在工具箱的容器面板里有个MacroMedia Flash Factory Obj转载 2017-02-23 11:35:28 · 2378 阅读 · 0 评论 -
C#视频播放器
对于视频播放器来说,最重要的功能,莫过于播放视频文件了这就要用到VS自带的控件——Windows Media Playerwindows media player将Windows Media Player(以下简称wmp)控件添加到工具箱中 1.选择工具箱项 2.选择com组件项 3.找到wmp,将其前面打钩即可在工具箱中找到wmp添加wmp至已创建好的窗体中转载 2017-03-01 16:32:16 · 2386 阅读 · 0 评论 -
C#自定义控件背景色透明的方法
I struggled for ages with the problem of having controls show through a control that was painted on top of them. It seems that ControlStyles.SupportsTransparentBackColor just allowed the转载 2017-05-17 09:08:05 · 1818 阅读 · 0 评论