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
E

erkanina

@erkanina
About
Posts
40
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • prevent/permit DeviceIoControl(...) for a Symolic Link
    E erkanina

    I designed a filter driver which is located in device stack between "bus driver" and "function driver". The filter driver has a "symbolic link". Assuming there is two win32 applicaiton named "App-1" and "App-2". "App-1" is communicating filter driver through symbolic link. On the other side the aim of the "App-2" is going to prevent/permit communicaiton between "App-1" and "symbolic link". Is there a method to prevent/permit DeviceoIoControl(...) for "symbolic link"? OR prevent an applicaiton to communicate with symbolic links. Thanks for your help. (Platform is WinXP)

    Hardware & Devices data-structures help question

  • dynamic array
    E erkanina

    Following code should be helpfull; //... First - allocate class pointer array MyClass **pArr = new MyClass* [dwClassCount]; //... Second - allocate class objects for(i=0;i<dwClassCount;i++) pArr[i] = new MyClass; //... Do the job //... Release class objects for(i=0;i<dwClassCount;i++) delete pArr[i]; //... Release class pointer array delete pArr;

    C / C++ / MFC data-structures performance help question

  • Ask about drawing the client
    E erkanina

    For this kind of application DirectDraw is the best solution, With DirectDraw; Less PCI bandwith consumption. You can manipulate video memory directly in various video format. You can solve flickering/twinkling by Double Buffering, Waiting Vertical SYNC.

    C / C++ / MFC question graphics performance announcement

  • video capture to memory.
    E erkanina

    You need to install DirectX SDK, SDK includes a lot of Multimedia sample codes There you can find video capture source codes with DirectShow

    C / C++ / MFC performance

  • code to estimate center of sphere?
    E erkanina

    Or you can apply clasiccal method; You should have at least three surface point to obtain a sphere. (Xo,Yo,Zo) is center coordiane of sphere and r is half of diameter Sphere equation is (X - Xo)^2 + (Y - Yo)^2 + (Z - Zo)^2 = r^2 We have 3-samples Sample1 : (X1,Y1,Z1) Sample2 : (X2,Y2,Z2) Sample3 : (X3,Y3,Z3) Place these three sample to the above equation, and then you will obtain 3 equation with unknown Xo,Yo,Zo parameters. You can easily calculate these with three equation.

    C / C++ / MFC question

  • code to estimate center of sphere?
    E erkanina

    At first I tried to remember 3D math, surface equations and surface normals But solution is easy if I do not misunderstand You have limited sample points (x,y,z) of a sphere. Search all samples and obtain Minimim and Maximum value of X,Y,Z; The center of the sphere is (Xcenter,Ycenter,Zcenter) The equation should be so; Xcenter = (Xmin + Xmax) / 2 Ycenter = (Ymin + Ymax) / 2 Zcenter = (Zmin + Zmax) / 2 I hope it helps you

    C / C++ / MFC question

  • Editing flexgrid
    E erkanina

    Subclassing should be usefull

    C / C++ / MFC database question

  • Com ports
    E erkanina

    use EnumPorts(...) API

    C / C++ / MFC com json

  • programmatically prevent dialog from resize and move
    E erkanina

    Thanks for your response. It will be very helpfull.

    C / C++ / MFC question

  • programmatically prevent dialog from resize and move
    E erkanina

    How can I prevent a dialog from resize and move; and then enable. Thanks for your responses.

    C / C++ / MFC question

  • Rename VC++ project name
    E erkanina

    Thanks for your response. It will be very helpfull.

    C / C++ / MFC question c++

  • Rename VC++ project name
    E erkanina

    Hi programmers, How can I rename an existing VC++ project?

    C / C++ / MFC question c++

  • DirectSound capturing 8/16 bit wave PCM
    E erkanina

    Dear programmers, I am capturing audio PCM with 8-bit and 16-bit from DirectSound. As you see below zero values are 128 for 8-bit and 0 for 16-bit. BITS VALUE RANGE ZERO VALUE ---- ----------- ---------- 8-bit 0 to 255 128 16-bit -32768 to +32767 0 Recently, I examined captured audio data sream for both 8 and 16 bits and I notify a strange result. When I capturing 8-bit audio the audio signal is oscilation near the 0x80 (128). It is OK. But, when I capture 16-bit audio PCM; the data is oscilating periodically from 0 to 0xffff. I copy/paste below 22050 KHZ 16-bit MONO audio PCM which is captured from microphone[ there is no high volume noise or sound source while recording]. The PCM data is consist of only air & EM noise. But there are peaks near the 0xFFFF, it is not normal. What may cause to this high amplitude audio peaks. I tried this with two different SoundBlaster but nothing has changed. What may offer you. Thanks and best regard. ff f0 (peak) 00 14 00 1e ff eb (peak) 00 16 00 2c ff f8 (peak) 00 1a ff fe (peak) 00 11 00 07 ff e4 (peak) 00 13 00 04 ff ea (peak) 00 0c 00 40 00 2d 00 15 00 15 00 08 00 1b 00 0c 00 0e 00 1d ff ff (peak)

    C / C++ / MFC adobe

  • using externally defined function pointers
    E erkanina

    I have not applied yet but I am sure it will work. Thanks for your clear explanation.

    C / C++ / MFC c++ question

  • using externally defined function pointers
    E erkanina

    Dear Programmers, I am working on an MFC/Dialog based project. I defined a function pointer in a class's header file as a static like below; ... typedef BOOL (WINAPI *blTagHCWDOGEnable)(DWORD IN_dwSecTime); static blTagHCWDOGEnable blHCWDOGEnable; ... Then I initialised this function pointer from a dll with ordinary function (LoadLibrary(...) , GetProcAddress(...)) Everything is working OK in this class. I am able to use this function but when I try to use this function from another class I am encountering errors. As if something modifying content of function pointer and it is equaling to NULL. What may cause this? Thanks and best regards

    C / C++ / MFC c++ question

  • how to load image and detect greylevel for each pixel?
    E erkanina

    If you want to make advanced image processing application; - First use DirectDraw to proceed display images. - Learn .jpeg, .bmp file format - Learn .bmp, .jpeg file compression decompression. ICImageCompress(...) and ICIamgeDecompress(...) defined vfw.h will be helpful

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

  • SetSystemCursor in VC++
    E erkanina

    Use following codes //... Set Your Cursor SetCapture(); SetCursor(AfxGetApp()->LoadCursor(IDC_APPSTARTING)); //... Restore to old ReleaseCapture(); SetCursor(AfxGetApp()->LoadCursor(IDC_ARROW));

    C / C++ / MFC c++

  • Dialog BMP background w/o MFC
    E erkanina

    Move your background blitting codes to OnEraseBkgnd(...)

    C / C++ / MFC c++

  • Saving JPEG File
    E erkanina

    There are lots of good examples on www.morgan-multimedia.com

    C / C++ / MFC question graphics

  • Saving to .jpg File
    E erkanina

    The image data on clipboard must be uncompressed DIB format. First try to save image in *.bmp format. Then use ICImageCompress API to compress .bmp to .jpeg

    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