Hi, I'm searching for C++ classes (MFC) gathering media infos in JPG,GIF,BMP,PDF,MP3,MP4, etc... To make it clear, I don't want to display or modify the files, I'm simply interested in lightweight and fast routines to get the basic infos like width/height/colors in images or number of pages in PDFs (somewhat like the properties tab in Windows' Explorer). I don't need big and high sophisticated projects with hundreds of whistles and bells... I remember there are books about file "standards" and formats but I don't really want to reinvent the wheel and start from scratch. I'm now searching for days, but all things I found are to complex. Don't let me be misunderstood, they're all great and kudos to the authors but for the purpose I'd like to use somewhat 'over-dozed'. If I succeed I'll make a article with the results, so the routines should be free of royalties. Could someone please give me a hint or lead me to some links? greetings, ralf.
Ralf Lohmueller
Posts
-
Searching for C++ classes (MFC) gathering media infos -
Screenshot of systemmenu in english from Windows VistaThanks a lot !!!! greetings from (frosty) germany, ralf.
-
Screenshot of systemmenu in english from Windows VistaWell I tried, but I'm probably too stupid... I only arranged to change the keyboard layout, pah! Programming in MFC, I saw that a lot of system strings moved to references in language DLL's, but I didn't manage to create a user with a different language. Maybe someone can help me? btw: I only want to have a simple screenshot of this simple system menu for my simple tool I'd like to share the sourcecode. greetings, ralf.
-
Screenshot of systemmenu in english from Windows VistaHello together, I'm currently doing the documentation of a tool I'd like to publish on codeproject and I need a screenshot of the systemmenu (the one appearing after click on the top left icon or rightclick on the titlebar in almost any window) from an _english Windows Vista_ system. Because I'm working on a german system I can't do it myself to get it in english, so would someone please be so kind to press Alt-PrtScr while this menu is shown? Thanks a lot in advance... ralf.
-
Opening a new command line instanceHi Armond,
Armond Sarkisian wrote:
I tried to research the cmd.exe command but it doesn't start a whole new window. Anyone can help on this?
does 'start cmd' the trick for you? (type 'help start' to see the options of the start command) greetings, ralf.
-
Need some constants from winspool.hHi dan,
dan neely wrote:
Also the question itself probably should've been posted in the c++ forum with a note that these are newly added constants for vista and not contained in the older SDK.
I already did but got the advice to post it here, see: [^] greetings, ralf.
-
Need some constants/defines from winspool.ho.k. I'll answer the question by myself (it took me almost a day to download the SDK because of a very slow internet connection). It seems the constants are only available in the Vista SDK (W2003ServerR2 and earlier don't have them) PRINTER_ATTRIBUTE_ALLOW_EMF // doesn't exist in winspool.h PRINTER_ATTRIBUTE_FRIENDLY_NAME 0x00100000 PRINTER_ATTRIBUTE_MACHINE 0x00080000 PRINTER_ATTRIBUTE_PUSHED_USER 0x00020000 PRINTER_ATTRIBUTE_PUSHED_MACHINE 0x00040000 hope, this will help someone... Does someone know where PRINTER_ATTRIBUTE_ALLOW_EMF is defined?
-
Need some constants from winspool.ho.k. I'll answer the question by myself (it took me almost a day to download the SDK because of a very slow internet connection). Anyhow: PRINTER_ATTRIBUTE_ALLOW_EMF // doesn't exist in winspool.h PRINTER_ATTRIBUTE_FRIENDLY_NAME 0x00100000 PRINTER_ATTRIBUTE_MACHINE 0x00080000 PRINTER_ATTRIBUTE_PUSHED_USER 0x00020000 PRINTER_ATTRIBUTE_PUSHED_MACHINE 0x00040000 btw: to the fellow who rated this question as '1': I hope you face the situation where you are on service abroad and only have a GSM connection... have fun waiting for help/support.
-
Need some constants from winspool.hHi together, I need some constants from winspool.h (the SDK installed on this machine is too old since they were introduced with Vista). Could someone with a current SDK please have a look in winspool.h and give me the values/defines for PRINTER_ATTRIBUTE_ALLOW_EMF PRINTER_ATTRIBUTE_FRIENDLY_NAME PRINTER_ATTRIBUTE_MACHINE PRINTER_ATTRIBUTE_PUSHED_USER PRINTER_ATTRIBUTE_PUSHED_MACHINE (I need the values, MSDN mentions them, but not the values and googling for them didn't give a result) thanks a lot in advance, ralf.
-
Need some constants/defines from winspool.hHi Russell,
_Russell_ wrote:
winspool.h[^] ...but there isn't that macro ... are you sure that these values are defined there?
I'm sure, but the problem is: they are new with Windows Vista and the SDK I have is too old. So the wine sources also have to be updated (as soon someone finds the values). In MSDN they are mentioned, but not the corresponding values: http://msdn2.microsoft.com/en-us/library/ms535768.aspx[^] btw: The wine sources also don't have the following ones: PRINTER_ATTRIBUTE_FAX 0x00004000 Windows XP: If set, printer is a fax printer. This can only be set by AddPrinter, but it can be retrieved by EnumPrinters and GetPrinter. PRINTER_ATTRIBUTE_TS 0x00008000 Windows Server 2003: Indicates the printer is currently connected through a terminal server. Thanks for your efforts, ralf.
-
Need some constants/defines from winspool.hHi together, I urgently need some constants from winspool.h (the SDK installed on this machine is too old). Could someone have a look in winspool.h and give me the defines for PRINTER_ATTRIBUTE_ALLOW_EMF PRINTER_ATTRIBUTE_FRIENDLY_NAME PRINTER_ATTRIBUTE_MACHINE PRINTER_ATTRIBUTE_PUSHED_USER PRINTER_ATTRIBUTE_PUSHED_MACHINE (I need the values) thanks in advance, ralf.
-
API for UNICODENemanja Trifunovic wrote:
UTF-8 is not required to start with a byte-order mark, and files with UTF-16LE and UTF-16BE encodings are actually forbiden to start with it.
Sorry, why UTF-16(little/big endian) are actually forbidden?
-
Transparent checkbox text?Did you try it with ON_WM_CTLCOLOR_REFLECT ? for my purposes, it worked...
class CTransparentCheckbox : public CButton { public: CTransparentCheckbox(); //{{AFX_VIRTUAL(CTransparentCheckbox) //}}AFX_VIRTUAL virtual ~CTransparentCheckbox(); protected: //{{AFX_MSG(CButtonEx) afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; ////////////////////////////////////////////////////// // CTransparentCheckbox CTransparentCheckbox::CTransparentCheckbox() { } CTransparentCheckbox::~CTransparentCheckbox() { } BEGIN_MESSAGE_MAP(CTransparentCheckbox, CButton) //{{AFX_MSG_MAP(CTransparentCheckbox) ON_WM_CTLCOLOR_REFLECT() //}}AFX_MSG_MAP END_MESSAGE_MAP() // Handler for WM_CTLCOLOR reflected message (see message map) HBRUSH CTransparentCheckbox::CtlColor(CDC* pDC, UINT nCtlColor) { ASSERT(nCtlColor == CTLCOLOR_STATIC); // Set transparent drawing mode pDC->SetBkMode(TRANSPARENT); return (HBRUSH)GetStockObject(NULL_BRUSH); }
greetings, ralf. -
Driver installation checkingHow about starting with:
EnumDeviceDrivers(aDrivers, sizeof(aDrivers), &cbNeeded)
(SDK) and test if the driver is in the list? You could get additional infos withGetDeviceDriverBaseName(aDrivers[i], szBaseName,sizeof(szBaseName))
andGetDeviceDriverFileName(aDrivers[i], szDriverFileName,sizeof(szDriverFileName))
greetings, ralf.