What lib paths do I need ? I don't know. can you tell me ?
Guoguor
Posts
-
IMPLEMENT_DYNAMIC Error -
IMPLEMENT_DYNAMIC ErrorWhen Link Errors occur again ! Do you know why ? alb2CaptureProxyPluginPage.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE StdAfx.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE OptionTree.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE alb2CaptureOptionTree.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE alb2CaptureProxyPlugin.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE alb2CaptureProxyPluginDll.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE alb2CaptureProxyPluginIFace.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE alb2CaptureOptionTree.obj : error LNK2001: unresolved external symbol "protected: virtual int __thiscall CWnd::SetOccDialogInfo(struct _AFX_OCC_DIALOG_INFO *)" (?SetOccDialogInfo@CWnd@@MAEHPAU_AFX_OCC_DIALOG_INFO@@@Z) OptionTree.obj : error LNK2001: unresolved external symbol "protected: virtual int __thiscall CWnd::SetOccDialogInfo(struct _AFX_OCC_DIALOG_INFO *)" (?SetOccDialogInfo@CWnd@@MAEHPAU_AFX_OCC_DIALOG_INFO@@@Z) alb2CaptureOptionTree.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CWnd::IsFrameWnd(void)const " (?IsFrameWnd@CWnd@@UBEHXZ) OptionTree.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CWnd::IsFrameWnd(void)const " (?IsFrameWnd@CWnd@@UBEHXZ) alb2CaptureOptionTree.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CWnd::CheckAutoCenter(void)" (?CheckAutoCenter@CWnd@@UAEHXZ) OptionTree.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CWnd::CheckAutoCenter(void)" (?CheckAutoCenter@CWnd@@UAEHXZ) alb2CaptureOptionTree.obj : error LNK2001: unresolved external symbol "protected: virtual int __thiscall CWnd::OnChildNotify(unsigned int,unsigned int,long,long *)" (?OnChildNotify@CWnd@@MAEHIIJPAJ@Z) OptionTree.obj : error LNK2001: unresolved external symbol "protected: virtual int __thiscall
-
IMPLEMENT_DYNAMIC ErrorThanks ! It's right ! But Why?
-
IMPLEMENT_DYNAMIC ErrorCode : at .cpp file : IMPLEMENT_DYNAMIC(alb2CaptureOptionTree , COptionTree) //two .h file class COptionTree : public CWnd { .................... } class alb2CaptureOptionTree : public COptionTree { DECLARE_DYNAMIC(alb2CaptureOptionTree) .......... } Error : when compiling the code , Errors occur . error C2039: 'classCOptionTree' : is not a member of 'COptionTree' error C2065: 'classCOptionTree' : undeclared identifier In fact , I never define a class named classCOptionTree. Why ? What's the reason? Thank you ! Fly as a bird
-
Save as a bmp fileHow to save the bmp file? the data is YUYV format. Give me a sample ,thanks ! could I first convert the data from YUV format to RGB format? .
-
Some Introduction About Encode and DecodeI want to understand the knowledge of Encode amd Decode, could you give me some? Thanks !
-
Could I get the bitmaps stored at display memorySorry,What I want to say is that: A bitmap named "picture1" is stored at display memory and is displayed at the display.When I capture the screen ,and the bitmap received didn't contain picture1 ,why? if I want to capture the picture1,how? Thanks
-
Could I get the bitmaps stored at display memoryCould I get the bitmaps stored at display memory by capturing the screen ? if not ,why?
-
Why I get a black screen while capturing screen?I want to use the follow codes to capture screen ,but I get a black screen. Please help me to find the errors! thanks! HWND hDesktopWnd=::GetDesktopWindow(); HDC hDesktopDC=::GetDC(hDesktopWnd); HDC hDesktopCompatibleDC=CreateCompatibleDC(hDesktopDC); HBITMAP hDesktopCompatibleBitmap=CreateCompatibleBitmap(hDesktopDC,GetSystemMetrics(SM_CXSCREEN),GetSystemMetrics(SM_CYSCREEN)); SelectObject(hDesktopCompatibleDC,hDesktopCompatibleBitmap); BitBlt(hDesktopCompatibleDC,0,0,GetSystemMetrics(SM_CXSCREEN) ,GetSystemMetrics(SM_CYSCREEN) ,hDesktopDC,0,0,SRCCOPY); // InvalidateRect(NULL,false); HDC hBmpFileDC=CreateCompatibleDC(hDesktopCompatibleDC); HBITMAP hBmpFileBitmap=CreateDIBSection(hDesktopCompatibleDC,&bi,DIB_RGB_COLORS,&pBits,NULL,0); SelectObject(hBmpFileDC,hBmpFileBitmap); BitBlt(hBmpFileDC,0,0,width,height,hDesktopCompatibleDC,0,0,SRCCOPY); // the fellow codes is save the bitmap HANDLE hFile=CreateFile((unsigned short *)szFileName,GENERIC_WRITE,FILE_SHARE_WRITE,NULL,CREATE_ALWAYS,FILE_ATTRIBUTE_NORMAL,NULL); bi.bmiHeader.biBitCount=16; // bi.bmiHeader.biClrUsed=0; bi.bmiHeader.biHeight=GetSystemMetrics(SM_CYSCREEN); //GetHeight(); bi.bmiHeader.biWidth=GetSystemMetrics(SM_CXSCREEN); //GetWidth(); bi.bmiHeader.biSize=sizeof(BITMAPINFOHEADER); bi.bmiHeader.biPlanes=1; bi.bmiHeader.biCompression=BI_RGB; // bi.bmiHeader.biXPelsPerMeter=0; // bi.bmiHeader.biYPelsPerMeter=0; // bi.bmiHeader.biClrImportant=0; DWORD bitSize=((bi.bmiHeader.biWidth*16)/8)*bi.bmiHeader.biHeight; bi.bmiHeader.biSizeImage=bitSize; bitHeader.bfType=((WORD)('M'<<8)|'B'); bitHeader.bfReserved1=0; bitHeader.bfReserved2=0; bitHeader.bfOffBits=(DWORD)(sizeof(BITMAPFILEHEADER)+bi.bmiHeader.biSize); bitHeader.bfSize=bi.bmiHeader.biSizeImage+bitHeader.bfOffBits; if(hFile!=INVALID_HANDLE_VALUE) { DWORD dwRet=0; WriteFile(hFile,&bitHeader,sizeof(bitHeader),&dwRet,NULL); WriteFile(hFile,&bi.bmiHeader,sizeof(bi.bmiHeader),&dwRet,NULL); WriteFile(hFile,pBits,bi.bmiHeader.biSizeImage,&dwRet,NULL); CloseHandle(hFile); } DeleteDC(hBmpFileDC); DeleteDC(hDesktopCompatibleDC); ::ReleaseDC(hDesktopWnd,hDesktopDC); DeleteObject(hBmpFileBitmap); DeleteObject(hDesktopCompatibleBitmap);
-
give me samples for Screen capture with GDI,ThanksHello,I want to capture the screen with GDI functions , could you give me some samples? my computer does not support GetDIBit()function, Thanks
-
Find the errors!Must I set the g_pVPE->SetTargetSurface() before I called g_pVPE->StartVideo(&ddvpi)
-
Find the errors!I want to receive the data from a videoport! I create a videoport g_pVPE by DirectDraw! but after I call g_pVPE->startVideo(&ddvpi), hRet==DDERR_INVALIDPARAMS. That is I set some parameters wrong! The setting of parameters are as follows,please help me find the error! thanks! int g_CropTop=0x3; int g_CropLeft=0x1d; #define CAPWIDTH 800//620 #define CAPHEIGHT 600//440 int g_SurfWidth = CAPWIDTH/2;//310; // NOTE: g_SurfHeight has to start from CAPHEIGHT/2, // because of interlace data int g_SurfHeight = CAPHEIGHT/2;//220; DDVIDEOPORTINFO ddvpi; memset(&ddvpi, 0, sizeof(ddvpi)); ddvpi.dwSize = sizeof(ddvpi); ddvpi.lpddpfInputFormat = &InputFormats[0]; ddvpi.dwVPFlags = DDVP_CROP | g_VPFlags| DDVP_PRESCALE; ddvpi.rCrop.left = g_CropLeft; ddvpi.rCrop.right = ddvpi.rCrop.left + CAPWIDTH; ddvpi.rCrop.top = g_CropTop; ddvpi.rCrop.bottom = ddvpi.rCrop.top + CAPHEIGHT/2; ddvpi.dwVBIHeight = ddvpi.rCrop.top; ddvpi.dwPrescaleWidth = g_SurfWidth; ddvpi.dwPrescaleHeight = g_SurfHeight; ddvpi.dwOriginX=0; ddvpi.dwOriginY=0; hRet = g_pVPE->StartVideo(&ddvpi); if(hRet!=DD_OK) {if(hRet==DDERR_INVALIDOBJECT) .................. if(hRet==DDERR_INVALIDOBJECT ) ........................ if(hRet==DDERR_SURFACELOST) .............. }
-
About DirectDrawAbout DirectDraw................ I want to create a surface to receive the data from a videoport,but the overlay surface is unsupported. Well,What kinds of surface should I create? Please give me some suggestion free like a bird
-
help me to find errors! ThanksSorry!I forget! After calling CreateSurface() hRet=DDERR_NOOVERLAYHW; Is that means display doesn't support overlay surface? Thanks! free like a bird!
-
help me to find errors! ThanksHello everyone, An error occur when I debug the follow codes,please help me tofind the errors,Thanks! DDSURFACEDESC2 ddsd; LPDIRECTDRAWSURFACE4 g_pDDSBack = NULL; //DirectDraw back surface HRESULT hRet; memset(&ddsd, 0, sizeof(ddsd)); ddsd.dwSize = sizeof(ddsd); ddsd.dwFlags= DDSD_CAPS | DDSD_HEIGHT | DDSD_WIDTH | DDSD_PIXELFORMAT | DDSD_BACKBUFFERCOUNT; ddsd.ddsCaps.dwCaps = DDSCAPS_OVERLAY | DDSCAPS_VIDEOPORT | DDSCAPS_SYSTEMMEMORY| //DDSCAPS_VIDEOMEMORY | DDSCAPS_FLIP | DDSCAPS_BACKBUFFER | DDSCAPS_COMPLEX| FALSE; ddsd.dwBackBufferCount = 1; ddsd.dwWidth =g_SurfWidth; ddsd.dwHeight =g_SurfHeight*g_Factor; ddsd.ddpfPixelFormat.dwFlags = DDPF_FOURCC; ddsd.ddpfPixelFormat.dwFourCC=mmioFOURCC ('Y','U','Y','V'); Line1: hRet = g_pDD->CreateSurface(&ddsd, &g_pDDSBack, NULL); Note : g_pDD is a created LPDIRECTDRAW4 vairable Add I have checked the value of g_pDD. It's not zero! g_SurfWidth,g_SurfHeight,g_Factor are all initialzed! but When I excute the program g_pDDSback is zero! why? Is there some errors at the setting of ddsd? free like a bird
-
How to write the BITMAPINFOHEADERgo on the former question.......... Should I write the parameter bmiColors of BITMAPINFO? if need,how? And what's type it is? what's regulation should I must obey? Thanks! free like a bird
-
difference between RGB type and YUV typeWhat's the difference between type RGB and YUV type? free like a bird
-
How to write the BITMAPINFOHEADERHello everyone! I want capture a picture from a playing file(the file is now playing at my display) it support 16-bit YUYV type. BITMAPINFOHEADER bih; the question is: How to write the parameters of bih? such as bih.biCompression, bih.biXPelsPerMeter, bih.biYPelsPerMeter, bih.biBitCount. Cause I'm a freshman,please explain in detail! Thanks! free like a bird
-
give me a sampleI want to know the use of parameter nEscape? could you give me a sample, or some information about the mening and use of this parameter? thanks! int ExtEscape( HDC hdc, int nEscape, int cbInput, LPCSTR lpszInData, in cbOutput, LPSTR lpszOutData ); free like a bird!
-
Help me,please! the parameter nEscapeHello Recetnly, I use function ExtEscape at my program, but I don't know what should be referred to the parameter nEscape. What value should be referred to the parameter nEscape? Could you discribe this in detail for me? Thanks! int ExtEscape( HDC hdc, int nEscape, int cbInput, LPCSTR lpszInData, in cbOutput, LPSTR lpszOutData ); free like a bird