易截截图软件、单文件、免安装、纯绿色、仅160KB

flash电子书的书签功能

原理;用flash把书签相关信息写入剪贴板,用VC的程序读剪切板内容,写入硬盘。当flash读书签时,直接读取txt文件。写入或删除操作,用vc的程序。
=======================flash端:
按键设计: add | bookmark | del
限制:每本txt电子书只有一个书签。
src:
button add:
on(release){
//add
System.setClipboard("book1.txt" + '|' + content_txt.scroll);
fscommand("exec", "BookMark.exe");
}
button BookMark:
从txt读文件
button del:
让VC删掉记录book1书签的txt文件。
==========================VC端:
// BookMark.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "windows.h"
#include<string.h>
#define FILE_PATH TEXT(".\\bookMark.txt")
BOOL getdate();
BOOL fbProcessBuf(CHAR *pSrc);
BOOL fbFileWrite(CHAR* pFile, CHAR* pBuff);
TCHAR aszBasePath[MAX_PATH];
int _tmain(int argc, _TCHAR* argv[])
{
ZeroMemory(aszBasePath, MAX_PATH*2);
GetCurrentDirectory(MAX_PATH, aszBasePath);
 getdate();
 //while(1);
return 0;
}
BOOL getdate()
{
HGLOBAL   hglb; 
      LPTSTR    lptstr;
CHAR aacTemp[MAX_PATH];
char *aaa =NULL;;
ZeroMemory(aacTemp,MAX_PATH);
   if (!OpenClipboard(NULL)) 
        //hwndMain换成你的主窗口句柄;
{
MessageBox(NULL, TEXT("Open Clipboard error!"), TEXT("Error"), MB_OK);
            return FALSE; 
}
        hglb = GetClipboardData(CF_TEXT); 
        if (hglb != NULL) 
        {
aaa = (CHAR*)GlobalLock(hglb); 
             //lptstr = GlobalLock(hglb); 
//printf("%s\n",(CHAR*)GlobalLock(hglb));
//WideCharToMultiByte(CP_ACP,0,lptstr,-1,aacTemp,MAX_PATH,NULL,NULL);
            if (aaa != NULL) 
            { 
//MessageBox(N


相关文档:

64位linux安装adobe flash play插件

1.打开
http://labs.adobe.com/downloads/flashplayer10_64bit.html 
下载 Flash Player 10 for 64-bit Linux
2.解压后复制到/usr/lib64/mozilla/plugins
mv libflashplayer.so  /usr/lib64/mozilla/plugins/libflashplayer.so
3.重启firefox,可以修改flash默认字体
vi /etc/fonts/conf.d/49-sansserif ......

nor flash 与 nand flash 的区别

Beside the different silicon cell design, the most important difference between NAND and NOR Flash is the bus interface. NOR Flash is connected to a address / data bus direct like other memory devices as SRAM etc. NAND Flash uses a multiplexed I/O Interface with some additional control pins. NAND fl ......

关于Nand Flash和Nor Flash的XIP

"NOR的特点是芯片内执行(XIP, eXecute In Place),这样应用程序可以直接在flash闪存内运行,不必再把代码读到系统RAM中。NOR的传输效率很高,在1~4MB的小容量时具有很高的成本效益,但是很低的写入和擦除速度大大影响了它的性能。
XIP - eXecute In Place,中文常译为,就地执行。指代码可以在当前(存储器中)执行
关于 ......

用flash调用VC打开文件对话框,取得路径。

    本来想用flash的as2调用html+javascript的方法取得本地路径,但项目催得紧,没有时间研究基本不会的html了。只好使用熟悉的vc,捣鼓了一整天,凑合出一个解决方法来。不罗嗦了,见正文。
======================flash端的as2脚本如下:
//call Open file dialog
//fscommand("exec", "deleteFile.exe ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号