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
S

Shaheed Legion

@Shaheed Legion
About
Posts
31
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Preferred Desk Toys
    S Shaheed Legion

    Besides the actual hardware I use to do my job - 2 external monitors hooked up to a laptop - giving me 3 screens of virtual desktop, I usually only have my coffee, lunch and a Rubik's cube to keep me company. Other developers in the office have various doodads, including trolls and desk plants, but I prefer my trusty cube.

    For awesome websites or just to chat check out my blog for more info. . .

    The Lounge question workspace

  • (ask) need help how to divide a file into some file
    S Shaheed Legion

    I agree with dusty_dex, the poster should have attempted a solution first, instead of being provided a cut and dry answer to his homework. This is not a forum for quick homework answers, and should be kept clear of students who are too lazy to attempt solutions to their homework. If the poster had provided sample code and asked for bug hunting help, then it would have been a different matter entirely. :doh:

    For awesome websites or just to chat check out my blog for more info. . .

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

  • Reading Compressed AVI Video file
    S Shaheed Legion

    You can get an image from the avi stream using ffmpeg, into an av_picture structure, then use the libswscale functions to scale and convert the image into different resolutions or formats, and finally draw the buffer to a control on your mfc gui. You should really Google for code samples.

    For awesome websites or just to chat check out my blog for more info. . .

    C / C++ / MFC json

  • Reading Compressed AVI Video file
    S Shaheed Legion

    Hi Ashwath, the FFMPEG library will work for both files. As a side note, the library comes with pre built executables which you could use to immediately extract the frames you need, there are tons of articles online about how to do this - just download the library an programs from here and check their online documentation for the parameters you need to extract the frames.

    For awesome websites or just to chat check out my blog for more info. . .

    C / C++ / MFC json

  • Lowest Level of Graphics on Windows
    S Shaheed Legion

    The lowest level API that you can work with, while still using GDI, is DIBSections. DIBSections allow you to update the pixels of a bitmap manually and draw that bitmap using an HDC. They have always been fast enough, and are many times faster than using the SetPixel method. Hope this helps.

    For awesome websites or just to chat check out my blog for more info. . .

    C / C++ / MFC graphics question winforms json learning

  • Reading Compressed AVI Video file
    S Shaheed Legion

    Hi, it is possible to do this using both methods:, but it is easier using ffmpeg. I would recommend you Google ffmpeg and check their examples, you could accomplish your task in about 60 lines of code. Happy coding

    For awesome websites or just to chat check out my blog for more info. . .

    C / C++ / MFC json

  • REMOVED
    S Shaheed Legion

    I think it works be cause the constructor and initialization sections both return a reference to the newly constructed object. But trying to call another function at the end will not work since the show function does not return a reference to the object.

    For awesome websites or just to chat check out my blog for more info. . .

    The Weird and The Wonderful

  • Inability to edit .rc files
    S Shaheed Legion

    You could keep your ide and simply Google for resedit which is a compatible program that let's you edit resource files for visual studio projects. It is a bit tedious, but is a viable workaround which saves on a reinstall of visual studio, and you don't have to go messing with the project conversion wizard which pops up when using newer versions of v.s with older project files.

    For awesome websites or just to chat check out my blog for more info. . .

    C / C++ / MFC c++ question announcement learning

  • How to create an uncompressed avi file from a matrix of data?
    S Shaheed Legion

    Try to Google "ffmpeg" this library helps you to write avi files with very little hassle. You can even choose coded or write uncompressed files using their example code included in the library download.

    For awesome websites or just to chat check out my blog for more info. . .

    C / C++ / MFC data-structures tutorial question

  • InitInstance() Problem
    S Shaheed Legion

    Hi Anu, we will not be able to help you much if you do not post some relevant code, perhaps your constructor and the context from which it is called.

    For awesome websites or just to chat check out my blog for more info. . .

    C / C++ / MFC help question

  • Implementing of Interruption
    S Shaheed Legion

    Hi, you need too Google the "Observer Pattern" to see a very well explained answer to your question. Hope this helps.

    For awesome websites or just to chat check out my blog for more info. . .

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

  • Problem Reading/Writing Registry in Windows 7?
    S Shaheed Legion

    When changing permissions on registry keys using regedit, make sure you select your user name to see which permissions you have. Programmatic changes to the registry are done using either your user account or the system user account, or some similar named account on the system. My bet is that the read or write permission is not set for all the accounts on your system. This is easy to check, open your regedit, navigate to the key in question, right click the key, select permissions. This should show a registry permissions dialog. Select each user account on the top section of the dialog and watch how the related permissions change for the different accounts. When you find the account with the missing permission, you will have your culprit. Hope this helps.

    For awesome websites or just to chat check out my blog for more info. . .

    C / C++ / MFC question windows-admin sales help

  • Load an image dynamically in win32 using VC++
    S Shaheed Legion

    Hi Toms, you could use the CxImage library - which allows you to specify the image bits when constructing an image, or you could use CreateDIBSection to create a bitmap using the image data you already have, then display it using an HDC.

    For awesome websites or just to chat check out my blog for more info. . .

    C / C++ / MFC c++ question json learning

  • Reading Compressed AVI Video file
    S Shaheed Legion

    Hi, Ashwath. If you are allowed to use ffmpeg in your project then the solution code becomes trivial. Else you will need to check the documentation for the ICDecompress function. You are using the win32 apis to load your avi file, they are very slow and require you to use COM interfaces to decompress your files - these rely on installed codecs on your machine. Using ffmpeg gives you a solution which comes with its codecs built right into the library. Hope this helps.

    For awesome websites or just to chat check out my blog for more info. . .

    C / C++ / MFC json

  • Problem with extra extensions in File Dialog
    S Shaheed Legion

    One of the constructors to the file dialog class permits you to specify a list of file extensions the dialog is permitted to show, check the documentation for more clarity, hope this helps.

    The tears shed in vain and the hatred and pain will be nothing but dust at the end of the day

    C / C++ / MFC help tutorial

  • wxWidgets not playing nicely with MFC
    S Shaheed Legion

    Thanks JudyL_FL, I have found that it is necessary to reparent the wxWidgets window to the top-level MFC dialog, this causes wxWidgets to share taskbar resources with the MFC app.

    The tears shed in vain and the hatred and pain will be nothing but dust at the end of the day Hit me on my blog!

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

  • wxWidgets not playing nicely with MFC
    S Shaheed Legion

    Is NOBODY going to even try to help me out on this one??? Well , anyways , I have found a workaround for the strange behaviour which causes more than one icon to show up in the taskbar, I'll be writing an article soon once I've gotten standard behaviour from my code. Come on guys , where's your Christmas spirit?

    The tears shed in vain and the hatred and pain will be nothing but dust at the end of the day

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

  • Drag Drop,overwritefile
    S Shaheed Legion

    Hmmm , I haven't tested this , but , have you enabled Drag and Drop on the HWND of the two controls? That way you will get a drop message when the user drags an item , then you should subclass the controls WndProc and handle only that message (call DefWindowProc when done handling) so that you can emulate Drag & Drop behaviour for the controls. You can do File Manipulation within the message handler itself.

    The tears shed in vain and the hatred and pain will be nothing but dust at the end of the day

    C / C++ / MFC question

  • wxWidgets not playing nicely with MFC
    S Shaheed Legion

    Hi , I have an MFC application whixh is huge already , and I have recently switched to writing new Dialogs using wxWidgets, but this causes unexpected behaviour, if I simlpy create wxWidgets dialogs from the MFC classes, then the program runs fine, but I get multiple icons for the application on the TaskBar, and , if I create the wxDialog as a child of the MFC app - using ::SetParent(...) , then the wxDialog is "locked" onto the main apps client area as if it were a child control, I have tried many things to get this working, even using AssociateHandle(HWND...) to Associate my main app's handle with a wxWindow and trying to ReParent(...) using that as the parent for this wxDialog, all to no avail. If anybody has any clue whatsoever as to how to get around this strange wxWidgets behaviour, then your help would be appreciated beyond measure. Thank you Max PS: Seasons Greetings :-O

    The tears shed in vain and the hatred and pain will be nothing but dust at the end of the day

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

  • What's the hardest form of programming... [modified]
    S Shaheed Legion

    Well , you've missed out on two very important aspects here - 1) I've never seen an Exciting operating system. Operating systems - although they perform a large amount of work in the background , never have to try really hard to stimulate the user into doing something - sure , a MessageBox can have a really exciting message , but , when was the last time you clicked on one of those because you actually WANTED to? The operating system is just sitting there WAITING to be used , while a game has to actively DEMAND participation while simultaneously making it fun and exciting for the user. 2) Operating systems are built by much larger teams and take several times longer to get a version shipping - speaking of which - games only have ONE SHOT. If a game is released and its first version is no good , you can bet that nobody is going to buy "Buggy Game - Beta Release(stable)" , whereas operating systems have the luxury of knowing that they have a few years to get everything working - did you think Windows was just thought up three months ago , Kernel and all - and plug and play from the word "go" ? No , operating system designers have years and years to perfect their product , whereas Game Programmers typically have a little over eighteen months to build a virtual world that entices and excites the user into wanting to use the product. Furthermore, typical Game Design teams have , on average, less than twenty people on board who have to do all the work , how many employees does Microsoft have? How many thousands of programmers have contributed to the Linux Operating System to make it as robust and reliable as it is today? When you think about the sheer workload and the intensive requirements that Game Programming demands of its programmers , I think you can begin to see why its the hardest form of programming around ... PS - when was the last time you saw somebody trying to plug in a PC Tablet as an input device to DOOM3 ? Games basically only ever need to support a KeyBoard, Mouse and some form of JoyStick or GamePad , so at least we got a break on that one ... The long and short of it is that Game Programmers are forced to do the work of many people in a very short amount of time and still have the end product looking good and being as exciting as possible. So , My vote is still for Game Programming.

    The tears shed in vain and the hatred and pain will be nothing but dust at the end of the day

    IT & Infrastructure game-dev csharp c++ graphics 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