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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
M

manio

@manio
About
Posts
8
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to format hard drive to FAT or FAT32 format ?
    M manio

    Hello, folks, I am looking for a Win32 API to do disk formatting, i.e, formatting hard disk to FAT or FAT32 or NTFS format. What Win32 API should I use ? Anybody know ? Thanks ! Any response would be appreciated !

    C / C++ / MFC json tutorial question

  • How to use a DirectShow sample filter ?
    M manio

    >>DirectX include/source/lib directories to the top. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Hello, thanks for you reply first. On my system I have installed Platform SDK and DirectX 8.0 SDK. It seems the DirectX 8.0 SDK has been integrated with Platform SDK. So, I can NOT find the DirectX include/source/lib directory as you menthioned. Could you explain a little more detail ? Or what should I install on my system ? Thanks for your help again.

    C / C++ / MFC help tutorial question announcement

  • How to use a DirectShow sample filter ?
    M manio

    Hello, folks, I got trouble using one of the DirectShow sample filters, i.e, Ball filter. I got a link error. If I compiled and linked the code sample, the filter would generate something like ball.ax. Could anyone tell me how to use this ball.ax ? I have included required *.h and ball.lib but I still got a linking error ? The linking error is as follows: BallAppDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall CBouncingBall::CBouncingBall(struct IUnknown *,long *)" (??0CBouncingBall@@QAE@PAUIUnknown@@PAJ@Z) ../Release/BallApp.exe : fatal error LNK1120: 1 unresolved externals Anybody help me ? Any response would be greatly appreciated ! Thanks !

    C / C++ / MFC help tutorial question announcement

  • Something about TAPI -- call picked up ?
    M manio

    Thanks ! Your response really helps !!:)

    C / C++ / MFC question

  • How can I print a bitmap file ?
    M manio

    If I use StretchBlt, can I print "color" image ? (I mean, if my printer is color...) Another API I found is: DrawDibDraw, can I also use this API to print "color" image ?

    C / C++ / MFC question graphics workspace

  • How can I print a bitmap file ?
    M manio

    Christian, One more question about StretchBlt.. suppose my bitmap data to be printed is in some buffer like this: pCurrentImage, (i.e, as the following class CRGBImage { public: BYTE* data; int m_nWidth; // in pixel int m_nHeight; }; Now I already get something like this: CRGBImage* pCurrentImage... Then I want to print this image data, so I wrote the following codes. CPrintDialog dlg( FALSE ); CDC dc; dc.Attach( dlg.GetPrinterDC() ); //calculate printing area(width and height) int pwidth = dc.GetDeviceCaps(HORZRES);//get width of printing area int pheight = dc.GetDeviceCaps(VERTRES);//get height of printing area Now, how can I copy my bitmap data to dc ? And, for the following StretchBlt API: BOOL CDC::StretchBlt( int x, int y, int nWidth, int nHeight, CDC* pSrcDC, int xSrc, int ySrc, int nSrcWidth, int nSrcHeight, DWORD dwRop ); (Take the width for example) The above parameter nSrcWidth = pCurrentImage->m_nWidth, right ? And, how about the nWidth ? How to calculate it if I want to print to the original dimension of my bitmap ? How to calculate pSrcDC ? (Do I just use: dc.StretchBlt(...) as dc mentioned above ? Because there are 2 DCs, I got kind of confused !! ) And, when to put "COLORONCOLOR StretchBlt mode" as you mentioned last time ? I know I probably asked too many questions. Your any reply would be greatly appreciated.. :)

    C / C++ / MFC question graphics workspace

  • How can I print a bitmap file ?
    M manio

    CPrintDialog dlg(false); dlg.GetDefaults(); HDC hdc = dlg.GetPrinterDC(); ASSERT(hdc); CDC DC; DC.Attach(hdc); m_PrintAreaHorz = GetDeviceCaps(hdc, HORZRES); m_PrintAreaVert = GetDeviceCaps(hdc, VERTRES); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ DC.DeleteDC(); Christian, Thanks for your reply. But I got another question as quoted as "^^^^^" above. Does this print to the "original size" of this bitmap file ? (i.e, original width and height of this bitmap):)

    C / C++ / MFC question graphics workspace

  • How to know a process is being debugged ?
    M manio

    Hello, I have a program written in Visual C++ and I want to add some codes that can help me know this program is being debigged (ex: in debug mode in Visual C++ ) in run-time. Does anybody know how to do that ?

    C / C++ / MFC c++ debugging help tutorial question
  • Login

  • Don't have an account? Register

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