Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
F

Francis Chau

@Francis Chau
About
Posts
17
Topics
11
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Need explanation ...
    F Francis Chau

    Thanks!

    C#

  • Need explanation ...
    F Francis Chau

    Does some of you could tell me what's the function of the codes below: Thanks! void DisplayShape(bool Light) { HPEN hNPen,hOPen; HBRUSH hOldBrush,hNewBrush; COLORREF cfill; if (Light) { if (cluminance == 3) return; cluminance = 3; cfill=RGB(0,255,0); } else switch(cluminance) { case 3: {cluminance--; cfill=RGB(64,255,64); break;} case 2: {cluminance--; cfill=RGB(128,255,128); break;} case 1: {cluminance--; cfill=RGB(192,255,192); break;} default: cfill=RGB(255,255,255); } hdc = GetDC(hWndG); hNPen=CreatePen(PS_SOLID,1,RGB(0,0,0)); hOPen=(HPEN)SelectObject(hdc,hNPen); hNewBrush=CreateSolidBrush(cfill); hOldBrush=(HBRUSH)SelectObject(hdc,hNewBrush); Ellipse(hdc,393,235,443,285); DeleteObject(SelectObject(hdc,hOPen)); DeleteObject(SelectObject(hdc,hOldBrush)); ReleaseDC(hWndG,hdc); }

    C#

  • Real time display
    F Francis Chau

    Hi, The codes below used to create a window to display something. Could some of you tell me that how can I display the real time clock (H:M:S) inside this window... Thanks! hwnd = CreateWindow( szWinName, /* name of window class */ "Capture Testing", /* title */ WS_OVERLAPPEDWINDOW, /* window style - normal */ CW_USEDEFAULT, /* X coordinate - let Windows decide */ CW_USEDEFAULT, /* Y coordinate - let Windows decide */ 480, /* width - let Windows decide */ 320, /* height - let Windows decide */ HWND_DESKTOP, /* no parent window */ NULL, /* no menu */ hThisInst, /* handle of this instance of the program */ NULL /* no additional arguments */ ); g_inst=hThisInst; /* Display the window. */ ShowWindow(hwnd, nWinMode); UpdateWindow(hwnd); hWndG=hwnd; SetTimer(hWndG,1,100,NULL);

    C / C++ / MFC testing beta-testing question

  • Need help.....
    F Francis Chau

    Thanks!

    C / C++ / MFC help question

  • Need help.....
    F Francis Chau

    RtlCopyMemory (ddcamVideoData, lpVHdr->lpData , lpVHdr->dwBufferLength ); ^ ^ ^ ^ could some of you tell me that what's the function of the arrow?? Thanks alot!

    C / C++ / MFC help question

  • Need help for LRESULT CALLBACK
    F Francis Chau

    Hi, Could some of you tell me what's the function of the syntax below: Thanks alot! LRESULT CALLBACK WindowFunc(HWND, UINT, WPARAM, LPARAM); LRESULT CALLBACK onCAPErrorCallback(HWND WhatWindow, int ErrorID, LPSTR ErrorMessage); LRESULT CALLBACK OnVideoStreamCallback(HWND hWnd, LPVIDEOHDR lpVHdr); LRESULT CALLBACK detectionFunc(HWND , UINT , WPARAM , LPARAM );

    C / C++ / MFC help

  • Button Create
    F Francis Chau

    Thanks!

    C / C++ / MFC wpf help tutorial

  • Button Create
    F Francis Chau

    Hi, The codes below are used to create button and activate some function, when I compile it, it shows some error message as below. could some of you tell me how to solve it! Thanks! RunButton ( HWND hwnd ) { CreateWindow( "BUTTON", "Run", WS_VISIBLE | WS_CHILD | BS_DEFPUSHBUTTON, // styles 380, 40, 60, 25, hwnd, NULL, (HINSTANCE) GetWindowLong(hwnd, GWL_HINSTANCE), NULL); return 1; } . . . case WM_COMMAND: switch HIWORD(wParam) { case BN_CLICKED: switch (lParam) { case RunButton: <--- error C2051: case expression not constant CetCapConnect( hwnd ); break; } <--- warning C4060: switch statement contains no 'case' or 'default' labels break;

    C / C++ / MFC wpf help tutorial

  • Create button
    F Francis Chau

    Hi, Below is the part code, which used to display the frame from camera, my problem is that, can I create some button instead of by press "1"? Thanks! void CetCapConnect(HWND hwnd) { //CAPDRIVERCAPS CapDrvCaps; // structure of the capabilities of the capture driver if (!hWndC) hWndC = capCreateCaptureWindow ( // Create a child capture window LPSTR) "My Capture Window", // window name if pop-up WS_CHILD | WS_VISIBLE, // window style 0, 0, 160, 120, // window position and size (HWND) hwnd, // handle of parent window (int) 0 /* child ID */ ); LRESULT CALLBACK WindowFunc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { HDC hdc; // handle of device context switch(message) { case WM_CHAR: /* process keystroke */ hdc = GetDC(hwnd); /* get device context */ switch (wParam) { case 49: // pressed "1" to get connect CetCapConnect( hwnd ); break;

    C / C++ / MFC help question

  • need help
    F Francis Chau

    Thanks!

    C / C++ / MFC c++ help question

  • need help
    F Francis Chau

    Hi, I'm new to Visual C++! Could some of you tell me what is the function of int WINAPI WinMain(HINSTANCE hThisInst, HINSTANCE hPrevInst, LPSTR lpszArgs, int nWinMode) Thanks!

    C / C++ / MFC c++ help question

  • capGrabFrameNoStop
    F Francis Chau

    This macro fills the frame buffer with a single uncompressed frame from the capture device. The above discription found in MSDN library, do you know what is the format of the uncompressed frame? is it bitmap??? Thanks alot!

    C / C++ / MFC question graphics

  • Send email VC++
    F Francis Chau

    Hi, could you tell me does vc++ can send email, if yes, how?? Thanks!

    C / C++ / MFC c++ question

  • Frame comparison
    F Francis Chau

    could some of you tell me how to put the frames into memory buffer for comparison.....

    C / C++ / MFC performance tutorial

  • How to get a pixel's RGB value.
    F Francis Chau

    Thanks for your reply! another question, how can I store the frame to buffer from the USB camera, and how to compare two frames if they are different? Thanks alot!

    C / C++ / MFC tutorial

  • How to get a pixel's RGB value.
    F Francis Chau

    Thank you for your reply, could you give me some idea on it? I have no idea.. :(

    C / C++ / MFC tutorial

  • How to get a pixel's RGB value.
    F Francis Chau

    Could some of you tell me how to get the RGB value of a pixel from a frame which captured from USB camera.

    C / C++ / MFC tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups