Welcome![Sign In][Sign Up]
Location:
Search - LPSTR

Search list

[GUI DevelopWindows编程基础--窗体篇

Description: Windows编程基础--窗体篇   现在Windows已经成为世界上使用最广泛的操作系统,这使得学习Windows编程变得十分重要.和学习其他 编程语言一样,我们也从一个最简单的例子开始学习Windows编程.这个例子将建立一个Windows窗体并在窗体中间显示\"HELLO\"字符串(见图1).      1.程序的开始和结束 和C语言中的main()函数一样,Windows程序是从WinMain()函数开始和结束的.WinMain()函数是在WINBASE.H中定义的,其原形如下:    int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd ) 其中第一个参数(HINSTANCE hInstance)是程序的实例句柄,这个实例句柄是程序的唯一标识.第二个参数(HINSTANCE hPrevInstance)是用做检查是否有多个程序实例运行,但由于Windows9X和NT(包括更高版本)是32位操作系统,所以这个参数总是NULL.第三个参数(LPSTR lpCmdLine)是一个指向字符串的指针,用来保存运行程序时的命令行参数.第四个参数(int nShowCmd)用来指
Platform: | Size: 3795 | Author: 地方随 | Hits:

[OS programenumproWin32

Description: 我们在编写程序时,常常遇到的一件事情就是要准确列出系统中所有正在运行的程序或者进程。Windows 任务管理器就是这样的一个程序。它既能列出运行的桌面应用程序,又能列出系统中所有运行的进程。那么,我们在程序中如何实现这样的任务,该程序实现此功能 关于代码   本文附带的代码例子将 PSAPI 和 ToolHelp32 封装到一个名为 EnumProcs() 的函数中。该函数的工作原理类似 EnumWindows(),有一个指向回调函数的指针,并要对该函数进行重复调用,针对系统中的每个进程调用一次。另一个参数是用户定义的 lParam。下面是该函数的声明:BOOL WINAPI EnumProcs( PROCENUMPROC lpProc, LPARAM lParam ) 使用该函数时,要象下面这样声明回调函数: BOOL CALLBACK Proc( DWORD dw, WORD w16, LPCSTR lpstr, LPARAM lParam )   参数 dw 包含 ID,“w16”是16位任务的任务号,如果为32位进程则为0(在 Windows 95 中总是0),参数lpstr 指向文件名,lParam 是用户定义的,要被传入 EnumProcs()。   EnumProcs() 函数通过显示链接使用 ToolHelp32 和 PSAPI,而非通常所用的隐式链接。之所以要这样做,主要是为了让代码能够在二进制一级兼容,从可以在所有 Win32 操作系统平台上运行。 -us in the preparation of procedures, often encountered one thing is to accurately list all systems are running program or process. Windows Task Manager is one such procedure. It not only sets out the running desktop applications, the system can list all the running processes. Then we process of how to achieve this task, the program code for this function is incidental to the code examples and ToolHelp32 PSAPI Packaging entitled to a EnumProcs () function. This function is similar to the principle EnumWindows (), is a pointer to a callback function pointers and to repeat this function call against each of the system called a process. Another parameter is the user-defined lParam. Below is the function of the statement : BOOL WINAPI EnumProcs (PROCENUMPROC lpProc. LPARAM lParam) to use this f
Platform: | Size: 3544 | Author: wwwwppp | Hits:

[Special Effectsvina-filter

Description: 维纳滤波处理 //LPSTR lpDIBBits:指向源DIB图像指针 //LONG lWidth:源图像宽度(象素数) //LONG lHeight:源图像高度(象素数) //函数说明: //该函数用来对DIB图像进行维纳滤波复原操作。-Wiener filter / / LPSTR lpDIBBits : DIB images at the source pointer / / LONG lWidth : Source image width (number of pixels) / / LONG lHeight : source image height (number of pixels) / / Function : / / function to the right DIB images Wiener filter recovery operation.
Platform: | Size: 1593 | Author: wu tao | Hits:

[Special EffectsHoughtr

Description: LPSTR lpDIBBits - 指向源DIB图像指针 * LONG lWidth - 源图像宽度(象素数,必须是4的倍数) * LONG lHeight - 源图像高度(象素数) -LPSTR lpDIBBits-point source DIB images pointer * LONG lWidth - source image width (number of pixels. must be in multiples of four) * LONG lHeight-source image height (number of pixels)
Platform: | Size: 2085 | Author: xrgj | Hits:

[Other resourceWienerFilter

Description: 对DIB图像进行维纳滤波复原操作的函数源码,输入参数如下,其他注释也很清晰 //LPSTR lpDIBBits:指向源DIB图像指针 //LONG lWidth:源图像宽度(象素数) //LONG lHeight:源图像高度(象素数)-right DIB images Wiener filter recovery operation of the source function, input parameters are as follows, Other Notes is clear / / LPSTR lpDIBBits : DIB images at the source pointer / / LONG lWidth : Source image width (number of pixels) / / LONG lHeight : source image height (number of pixels)
Platform: | Size: 44442 | Author: 宿太学 | Hits:

[Special EffectsWienerDIB

Description: //参数说明: //LPSTR lpDIBBits:指向源DIB图像指针 //LONG lWidth:源图像宽度(象素数) //LONG lHeight:源图像高度(象素数) //函数说明: //该函数用来对DIB图像进行维纳滤波复原操作。
Platform: | Size: 1580 | Author: 郭媛媛 | Hits:

[Special EffectsHough

Description: Hough变换 BOOL Hough(HWND hWnd){ //定义一个自己的直线结构 typedef struct{ int topx //最高点的x坐标 int topy //最高点的y坐标 int botx //最低点的x坐标 int boty //最低点的y坐标 }MYLINE DWORD BufSize LPBITMAPINFOHEADER lpImgData LPSTR lpPtr HDC hDc LONG x,y long i,maxd int k int Dist,Alpha HGLOBAL hDistAlpha,hMyLine int *lpDistAlpha MYLINE *lpMyLine,*TempLine,MaxdLine static LOGPEN rlp={PS_SOLID,1,1,RGB(255,0,0)} HPEN rhp //我们处理的实际上是256级灰度图,不过只用到了0和255两种颜色。 if( NumColors!=256){ MessageBox(hWnd,\"Must be a mono bitmap with grayscale palette!\", \"Error Message\",MB_OK|MB_ICONEXCLAMATION) return FALSE }
Platform: | Size: 1911 | Author: sunrise | Hits:

[DirextXPlaySound

Description: 从资源文件中,载入音声,图片等,并播放声音,或者显示 HINSTANCE h=AfxGetInstanceHandle() HRSRC hr=FindResource(h,\"IDW\",\"WAVE\") HGLOBAL hg=LoadResource(h,hr) LPSTR lp=(LPSTR)LockResource(hg) sndPlaySound(lp,SND_MEMORY|SND_ASYNC) FreeResource(hg) return 0
Platform: | Size: 309750 | Author: Joey | Hits:

[Special Effects20313716658

Description: wiener滤波处理 /参数说明: //LPSTR lpDIBBits:指向源DIB图像指针 //LONG lWidth:源图像宽度(象素数) //LONG lHeight:源图像高度(象素数) //函数说明: //该函数用来对DIB图像进行维纳滤波复原操作。 BOOL WINAPI WienerDIB (LPSTR lpDIBBits, LONG lWidth, LONG lHeight)
Platform: | Size: 1232 | Author: doris | Hits:

[Special Effectsewnlb

Description: 二维图像逆滤波 //LPSTR lpDIBBits - 指向源DIB图像指针 //LONG lWidth - 源图像宽度(象素数,必须是4的倍数) //LONG lHeight - 源图像高度(象素数) / //函数说明: //该函数用来对BlurDIB()生成的DIB图像进行复原操作。 BOOL WINAPI RestoreDIB (LPSTR lpDIBBits, LONG lWidth, LONG lHeight) {
Platform: | Size: 1379 | Author: zzzzzz | Hits:

[Special EffectsHough_transfor

Description: 函数名称: * HoughDIB() * * 参数: * LPSTR lpDIBBits - 指向源DIB图像指针 * LONG lWidth - 源图像宽度(象素数,必须是4的倍数) * LONG lHeight - 源图像高度(象素数) * 返回值: * BOOL - 运算成功返回TRUE,否则返回FALSE。 * * 说明: * 该函数用于对检测图像中的平行直线。如果图像中有两条平行的直线,则将这两条平行直线 * 提取出来。 * * 要求目标图像为只有0和255两个灰度值的灰度图像。
Platform: | Size: 12205 | Author: luyc | Hits:

[GUI DevelopWindows编程基础--窗体篇

Description: Windows编程基础--窗体篇   现在Windows已经成为世界上使用最广泛的操作系统,这使得学习Windows编程变得十分重要.和学习其他 编程语言一样,我们也从一个最简单的例子开始学习Windows编程.这个例子将建立一个Windows窗体并在窗体中间显示"HELLO"字符串(见图1).      1.程序的开始和结束 和C语言中的main()函数一样,Windows程序是从WinMain()函数开始和结束的.WinMain()函数是在WINBASE.H中定义的,其原形如下:    int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd ) 其中第一个参数(HINSTANCE hInstance)是程序的实例句柄,这个实例句柄是程序的唯一标识.第二个参数(HINSTANCE hPrevInstance)是用做检查是否有多个程序实例运行,但由于Windows9X和NT(包括更高版本)是32位操作系统,所以这个参数总是NULL.第三个参数(LPSTR lpCmdLine)是一个指向字符串的指针,用来保存运行程序时的命令行参数.第四个参数(int nShowCmd)用来指
Platform: | Size: 3072 | Author: 地方随 | Hits:

[OS programenumproWin32

Description: 我们在编写程序时,常常遇到的一件事情就是要准确列出系统中所有正在运行的程序或者进程。Windows 任务管理器就是这样的一个程序。它既能列出运行的桌面应用程序,又能列出系统中所有运行的进程。那么,我们在程序中如何实现这样的任务,该程序实现此功能 关于代码   本文附带的代码例子将 PSAPI 和 ToolHelp32 封装到一个名为 EnumProcs() 的函数中。该函数的工作原理类似 EnumWindows(),有一个指向回调函数的指针,并要对该函数进行重复调用,针对系统中的每个进程调用一次。另一个参数是用户定义的 lParam。下面是该函数的声明:BOOL WINAPI EnumProcs( PROCENUMPROC lpProc, LPARAM lParam ) 使用该函数时,要象下面这样声明回调函数: BOOL CALLBACK Proc( DWORD dw, WORD w16, LPCSTR lpstr, LPARAM lParam )   参数 dw 包含 ID,“w16”是16位任务的任务号,如果为32位进程则为0(在 Windows 95 中总是0),参数lpstr 指向文件名,lParam 是用户定义的,要被传入 EnumProcs()。   EnumProcs() 函数通过显示链接使用 ToolHelp32 和 PSAPI,而非通常所用的隐式链接。之所以要这样做,主要是为了让代码能够在二进制一级兼容,从可以在所有 Win32 操作系统平台上运行。 -us in the preparation of procedures, often encountered one thing is to accurately list all systems are running program or process. Windows Task Manager is one such procedure. It not only sets out the running desktop applications, the system can list all the running processes. Then we process of how to achieve this task, the program code for this function is incidental to the code examples and ToolHelp32 PSAPI Packaging entitled to a EnumProcs () function. This function is similar to the principle EnumWindows (), is a pointer to a callback function pointers and to repeat this function call against each of the system called a process. Another parameter is the user-defined lParam. Below is the function of the statement : BOOL WINAPI EnumProcs (PROCENUMPROC lpProc. LPARAM lParam) to use this f
Platform: | Size: 3072 | Author: wwwwppp | Hits:

[Special Effectsvina-filter

Description: 维纳滤波处理 //LPSTR lpDIBBits:指向源DIB图像指针 //LONG lWidth:源图像宽度(象素数) //LONG lHeight:源图像高度(象素数) //函数说明: //该函数用来对DIB图像进行维纳滤波复原操作。-Wiener filter// LPSTR lpDIBBits : DIB images at the source pointer// LONG lWidth : Source image width (number of pixels)// LONG lHeight : source image height (number of pixels)// Function :// function to the right DIB images Wiener filter recovery operation.
Platform: | Size: 1024 | Author: wu tao | Hits:

[Special EffectsHoughtr

Description: LPSTR lpDIBBits - 指向源DIB图像指针 * LONG lWidth - 源图像宽度(象素数,必须是4的倍数) * LONG lHeight - 源图像高度(象素数) -LPSTR lpDIBBits-point source DIB images pointer* LONG lWidth- source image width (number of pixels. must be in multiples of four)* LONG lHeight-source image height (number of pixels)
Platform: | Size: 2048 | Author: xrgj | Hits:

[Special EffectsWienerDIB

Description: //参数说明: //LPSTR lpDIBBits:指向源DIB图像指针 //LONG lWidth:源图像宽度(象素数) //LONG lHeight:源图像高度(象素数) //函数说明: //该函数用来对DIB图像进行维纳滤波复原操作。 -//Parameter Description:// LPSTR lpDIBBits: point source DIB image pointer// LONG lWidth: source image width (pixel number)// LONG lHeight: source image height (pixel number)// Function Description:// this function used to DIB images for the Wiener filter restoration operation.
Platform: | Size: 1024 | Author: 郭媛媛 | Hits:

[Special EffectsHough

Description: Hough变换 BOOL Hough(HWND hWnd){ //定义一个自己的直线结构 typedef struct{ int topx //最高点的x坐标 int topy //最高点的y坐标 int botx //最低点的x坐标 int boty //最低点的y坐标 }MYLINE DWORD BufSize LPBITMAPINFOHEADER lpImgData LPSTR lpPtr HDC hDc LONG x,y long i,maxd int k int Dist,Alpha HGLOBAL hDistAlpha,hMyLine int *lpDistAlpha MYLINE *lpMyLine,*TempLine,MaxdLine static LOGPEN rlp={PS_SOLID,1,1,RGB(255,0,0)} HPEN rhp //我们处理的实际上是256级灰度图,不过只用到了0和255两种颜色。 if( NumColors!=256){ MessageBox(hWnd,"Must be a mono bitmap with grayscale palette!", "Error Message",MB_OK|MB_ICONEXCLAMATION) return FALSE }-Hough transform BOOL Hough (HWND hWnd) (//define a linear structure of its own typedef struct (int topx// the highest point of the x coordinates int topy// the highest point of the y coordinates int botx// the lowest point of the x coordinates int boty// lowest point of the y coordinates) MYLINE DWORD BufSize LPBITMAPINFOHEADER lpImgData LPSTR lpPtr HDC hDc LONG x, y long i, maxd int k int Dist, Alpha HGLOBAL hDistAlpha, hMyLine int* lpDistAlpha MYLINE* lpMyLine,* TempLine, MaxdLine static LOGPEN rlp = ( PS_SOLID, 1,1, RGB (255,0,0)) HPEN rhp// We are dealing with is actually 256 grayscale, but only uses two colors 0 and 255. if (NumColors! = 256) (MessageBox (hWnd,
Platform: | Size: 2048 | Author: sunrise | Hits:

[DirextXPlaySound

Description: 从资源文件中,载入音声,图片等,并播放声音,或者显示 HINSTANCE h=AfxGetInstanceHandle() HRSRC hr=FindResource(h,"IDW","WAVE") HGLOBAL hg=LoadResource(h,hr) LPSTR lp=(LPSTR)LockResource(hg) sndPlaySound(lp,SND_MEMORY|SND_ASYNC) FreeResource(hg) return 0 -From the resource document, loading voice, pictures, etc., and to play a sound, or show HINSTANCE h = AfxGetInstanceHandle () HRSRC hr = FindResource (h, IDW , WAVE ) HGLOBAL hg = LoadResource (h, hr) LPSTR lp = (LPSTR) LockResource (hg) sndPlaySound (lp, SND_MEMORY | SND_ASYNC) FreeResource (hg) return 0
Platform: | Size: 309248 | Author: Joey | Hits:

[Special Effects20313716658

Description: wiener滤波处理 /参数说明: //LPSTR lpDIBBits:指向源DIB图像指针 //LONG lWidth:源图像宽度(象素数) //LONG lHeight:源图像高度(象素数) //函数说明: //该函数用来对DIB图像进行维纳滤波复原操作。 BOOL WINAPI WienerDIB (LPSTR lpDIBBits, LONG lWidth, LONG lHeight)-wiener filtering treatment/parameters:// LPSTR lpDIBBits: point source DIB image pointer// LONG lWidth: source image width (pixel number)// LONG lHeight: source image height (pixel number)// Function Description:// this function DIB image used on the Wiener filter restoration operation. BOOL WINAPI WienerDIB (LPSTR lpDIBBits, LONG lWidth, LONG lHeight)
Platform: | Size: 1024 | Author: doris | Hits:

[Successful incentivelpstr

Description: 这是本人从网上和自己学习中总结的一些关于指针的使用方法和注意事项,希望有用-This is my learning from the Internet and their own lessons on the use of indicators and note the hope that useful
Platform: | Size: 26624 | Author: tianya | Hits:
« 12 3 »

CodeBus www.codebus.net