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
C

Code o mat

@Code o mat
About
Posts
1.6k
Topics
57
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • LZMA SDK and .zip files
    C Code o mat

    Shouldn't you rather be looking for an answer here[^]?

    > The problem with computers is that they do what you tell them to do and not what you want them to do. < > If it doesn't matter, it's antimatter.<

    C / C++ / MFC csharp c++ algorithms help tutorial

  • What its like to own a Tesla S
    C Code o mat

    Also, this[^] looks interesting.

    > The problem with computers is that they do what you tell them to do and not what you want them to do. < > If it doesn't matter, it's antimatter.<

    The Lounge com

  • Which countries drink the most
    C Code o mat

    Yeah, noone can say your name isn't original. :D

    > The problem with computers is that they do what you tell them to do and not what you want them to do. < > If it doesn't matter, it's antimatter.<

    The Lounge com

  • What its like to own a Tesla S
    C Code o mat

    Electric-smelectric, here: Steam Driven CAR[^]. :)

    > The problem with computers is that they do what you tell them to do and not what you want them to do. < > If it doesn't matter, it's antimatter.<

    The Lounge com

  • Which countries drink the most
    C Code o mat

    Well, his name does sound Hungarian...so he's either telling the truth or he's really very enthusiastic about that tax evasion. :)

    > The problem with computers is that they do what you tell them to do and not what you want them to do. < > If it doesn't matter, it's antimatter.<

    The Lounge com

  • Clear As Mud
    C Code o mat

    Probably water not cold enough.

    > The problem with computers is that they do what you tell them to do and not what you want them to do. < > If it doesn't matter, it's antimatter.<

    The Lounge html com

  • Which countries drink the most
    C Code o mat

    Hungary? Did i hear someone mentioning Hungary?

    > The problem with computers is that they do what you tell them to do and not what you want them to do. < > If it doesn't matter, it's antimatter.<

    The Lounge com

  • DirectShow Video Playback from memory
    C Code o mat

    That's understandable, i tried googling around some too but didn't really find anything readymade either. I can think of two alternatives to writing your own source filter: 1. Extract your videos into some temporary files and play those from the file system, this can be a bit costy in both time and resource wise (you need time to extract the videos to temp files and you will need extra disk space for the videos) but i supose this is quite a straightforward solution. Alternatively you might try using a named pipe and specifying that as the source for the file reader filter, no idea if that would work or not, never tried, but i kinda suspect it wouldn't work. 2. Implement a "small" HTTP server in your application that can stream the video from your big file and try to render the stream with DirectShow like "http:\\localhost:12345\a.avi" or somesuch. This might be more work than just writing the filter though. Good luck.

    > The problem with computers is that they do what you tell them to do and not what you want them to do. < > If it doesn't matter, it's antimatter.<

    C / C++ / MFC performance question announcement

  • DirectShow Video Playback from memory
    C Code o mat

    1. Google for DirectShow input filters that can read from memory OR 2. try writing your own filter to stream data from memory

    > The problem with computers is that they do what you tell them to do and not what you want them to do. < > If it doesn't matter, it's antimatter.<

    C / C++ / MFC performance question announcement

  • Filter the EN_KILLFOCUS message from CIPAddressCtrl
    C Code o mat

    A bit less "specific" than the approach i might have chosen, but if it works for you, then great! :thumbsup:

    > The problem with computers is that they do what you tell them to do and not what you want them to do. < > If it doesn't matter, it's antimatter.<

    C / C++ / MFC question

  • Filter the EN_KILLFOCUS message from CIPAddressCtrl
    C Code o mat

    Not sure if this will work or not, but in the message handler for EN_KILLFOCUS, check where the focus "went" with GetFocus[^] or CWnd::GetFocus[^] (whichever suits you best) and determine if the newly focused control is still "inside" the IP address control. I suspect it has four separate edit fields for each segment and all four have the IP address control thing set as its parent, so i supose a GetParent[^] or CWnd::GetParent[^] call can tell you if the user is still editing the IP address or is trying to leave the control altogether. If you try this, do share with us if it worked or not, thanks in advance.

    > The problem with computers is that they do what you tell them to do and not what you want them to do. < > If it doesn't matter, it's antimatter.<

    C / C++ / MFC question

  • How does GDI+ decide which to use, alphablending or dithering?
    C Code o mat

    It's the other way around actually (read my original post again), when using the printer, i get alpha, when using a screen based DC, i get dithering, this is why i don't understand it, since i KNOW that i can use e.g. AlphaBlend[^] on the screen without any problems, or if i use GetDeviceCaps[^] on the screen DC i see that it supports blending. I kinda know that the capabilities of the device is -at least usually- determined by the driver "under" it, what i would like to know is what GDI+ does to come to the conclusion that the screen-based device is incapable of blending and thus resorts to "low quality" dithering.

    > The problem with computers is that they do what you tell them to do and not what you want them to do. < > If it doesn't matter, it's antimatter.<

    C / C++ / MFC css winforms graphics help question

  • How does GDI+ decide which to use, alphablending or dithering?
    C Code o mat

    Hey guys! Does any of you have an idea how GDI+ -when filling a rectangle or a region with a color that has an alpha component set- decides to use dithering instead of "real" blending? We are using a third-party library to generate PDF files. When using a printer DC as a "reference" to generate the PDF document, GDI+ seems to use "normal" color blending when filling an area with a translucent color, but when using a screen DC to do the same it "magically" decides to use dithering which produces a "less satisfying" result.

    > The problem with computers is that they do what you tell them to do and not what you want them to do. < > If it doesn't matter, it's antimatter.<

    C / C++ / MFC css winforms graphics help question

  • Problem loading non-default wab
    C Code o mat

    Frankly, i don't know, sorry... :(

    > The problem with computers is that they do what you tell them to do and not what you want them to do. < > If it doesn't matter, it's antimatter.<

    C / C++ / MFC help

  • Problem loading non-default wab
    C Code o mat

    If i check the documentation (http://msdn.microsoft.com/en-us/library/ms629458%28v=vs.85%29.aspx[^]) for WAB_PARAM, the szFileName member is declared to be LPTSTR. This suggests that depending on your target options, it might be a unicode or an ansii/mbcs string which then suggests that there might be a unicode and an ansii/mbcs version of the function (as with a lot of API methods throughout windows). When you query the function's pointer...are you sure you are getting the correct version?

    > The problem with computers is that they do what you tell them to do and not what you want them to do. < > If it doesn't matter, it's antimatter.<

    C / C++ / MFC help

  • Problem loading non-default wab
    C Code o mat

    As far as i remember the documentation says it will load the default if you pass NULL for the path, but you are not passing NULL but a seemingly correct path. Hmm...

    > The problem with computers is that they do what you tell them to do and not what you want them to do. < > If it doesn't matter, it's antimatter.<

    C / C++ / MFC help

  • Problem loading non-default wab
    C Code o mat

    Are you completely sure that is a correct WAB file and it is readable by the process (it has the required access rights and somesuch)?

    > The problem with computers is that they do what you tell them to do and not what you want them to do. < > If it doesn't matter, it's antimatter.<

    C / C++ / MFC help

  • Problem loading non-default wab
    C Code o mat

    Why is this conversion needed:

    Member 868926 wrote:

    wp.szFileName = (LPTSTR) (LPCTSTR) pszFileName;

    ?

    > The problem with computers is that they do what you tell them to do and not what you want them to do. < > If it doesn't matter, it's antimatter.<

    C / C++ / MFC help

  • Build boost lib without VS
    C Code o mat

    Additionally to jschell's 3a point: you can try with Visual Studio Express[^], it is free but has limitations (like no MFC).

    > The problem with computers is that they do what you tell them to do and not what you want them to do. < > If it doesn't matter, it's antimatter.<

    C / C++ / MFC visual-studio csharp css tools help

  • Process
    C Code o mat

    Noone said you should use WaitForSingleObject with the window handle, of coure that doesn't work. And your aproach is wrong because while you are running this while loop -i assume you do this in the main GUI thread- your application is not processing any incoming messages, thus it will not respond.

    > The problem with computers is that they do what you tell them to do and not what you want them to do. < > If it doesn't matter, it's antimatter.<

    C / C++ / MFC
  • Login

  • Don't have an account? Register

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