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
4

4288

@4288
About
Posts
36
Topics
15
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Mac OS X market share arising
    4 4288

    One word misspelled and everything to crap. You're quite boring with your "overmature" minds (maybe time for retirement). Got it: can't get a decent answer here. I'll go stackoverflow where people don't kill their time by pissing off with grammar. Thanks to the few who have answered properly, the others are just silly.

    ---

    The Lounge discussion question

  • Mac OS X market share arising
    4 4288

    If you read again you'll exciting discover that the post title and my text lead to the question: "Will Mac OS X gain ground over Windows in the next years or won't it?"

    ---

    The Lounge discussion question

  • Mac OS X market share arising
    4 4288

    Every OS has bugs, linux isn't excluded from this statement neither is mac Surely there's a larger win bugs database at secunia than mac's but this is linked to the market share too

    ---

    The Lounge discussion question

  • Mac OS X market share arising
    4 4288

    Windows market share has reached 88% for the first time in some years, Mac is growing to 5+% What do you think about that? In my opinion Windows is an excellent OS ruined by companies who can't really program something decent. Mac is trying to limitate damages noob programmers could make Anyway a frequent reason I hear is "My mac needn't to be formatted, Windows Pcs do" or "Mac never get viruses, Windows always do" I do not totally agree with that.. I'd like to read some of your opinions

    ---

    The Lounge discussion question

  • Problem with compression of a DirectShow video filter
    4 4288

    I'm experiencing problems in setting compression parameters for a directshow video filter for a video and audio grabbed from a usb webcam. The code I am using (adapted from various websites on the internet) is the following (removed error checking to improve readability):

    //... various code before
    hr=m\_pGraph->AddFilter(m\_pVidDeviceFilter,L"Vid Capture Filter");
    hr=m\_pGraph->AddFilter(m\_pAudDeviceFilter,L"Aud Capture Filter");
    
    hr = CoCreateInstance(CLSID\_WMAsfWriter,NULL,CLSCTX\_INPROC\_SERVER, 
                      IID\_IBaseFilter, (void \*\*) &m\_pWMASFWritter); 
    
    
    
    //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    // !!! Try to add compression from now on !!!!
    
    DWORD dwBitRate = 2670000; // I tried almost everything here
    DWORD dwQuality = 50; // in range\[0-100\]
    DWORD dwSecPerKey = 5000;
    
    // Initialize a new Profile Manager
    IWMProfileManager\* pIPM = 0;
    WMCreateProfileManager(&pIPM);
    
    // Create a new empty profile
    IWMProfile\* pIProf = 0;
    pIPM->CreateEmptyProfile(WMT\_VER\_9\_0,&pIProf);
    pIProf->SetName(L"Window Media Video 9 Profile");
    pIProf->SetDescription (L"Window Media Video 9 Custom Encoding");
    
    // Create a new video stream
    IWMStreamConfig\* pVideoStream = 0;
    pIProf->CreateNewStream(WMMEDIATYPE\_Video,&pVideoStream);
    
    pVideoStream->SetStreamName(L"videostream");;
    pVideoStream->SetConnectionName(L"video");
    pVideoStream->SetBitrate(662144); // This causes problems
    pVideoStream->SetBufferWindow(3000);
    pVideoStream->SetStreamNumber(1);
    
    IWMVideoMediaProps\* pVideoMediaProps = 0;
    
    // Get this Interface from pVideoStream...
    hr = pVideoStream->QueryInterface(IID\_IWMMediaProps, (void\*\*)&pVideoMediaProps);
    
    WM\_MEDIA\_TYPE sMediaType;
    WMVIDEOINFOHEADER sVideoInfoHeader;
    memset(&sMediaType, 0, sizeof(sMediaType));
    sMediaType.majortype = WMMEDIATYPE\_Video;
    sMediaType.subtype = WMMEDIASUBTYPE\_MPEG2\_VIDEO;
    sMediaType.bFixedSizeSamples = FALSE;
    sMediaType.bTemporalCompression = TRUE;
    sMediaType.formattype = WMFORMAT\_VideoInfo;
    sMediaType.cbFormat = sizeof(WMVIDEOINFOHEADER);
    sMediaType.pbFormat = (BYTE \*)&sVideoInfoHeader;
    
    // Setup the Video Info Header
    memset(&sVideoInfoHeader, 0, sizeof(sVideoInfoHeader));
    sVideoInfoHeader.rcSource.left = 0;
    sVideoInfoHeader.rcSource.top = 0;
    sVideoInfoHeader.rcSource.right = 352;
    sVideoInfoHeader.rcSource.bottom = 240;
    sVideoInfoHeader.rcTarget.left = 0;
    sVideoInfoHeader.rcTarget.top = 0;
    sVideoInfoHeader.rcT
    
    Graphics help code-review workspace

  • Web camera streaming in a website
    4 4288

    Prolog: I'm picking up ideas since I'm not a great expert in this field. I need to record a webcam from a house desktop pc (a simple usb webcam) and streaming it in a website, allowing people visiting the website to interact with a chat which will be visible from both website and transmission pc (the one with the webcam put on). This is the idea and sounds pretty cool. Now realizing all this it's another story.. I don't think this project would fit any of the forums I've found here, but I really didn't know where to post it so if you feel this post is totally OT or will cause a lot of flame (I don't see the reason but.. let's be sighted as we can) please move/delete it or advice me where to repost it. The pc with the webcam which will transmit the images is linked across the internet with a 384 kbps upstreaming connection (Adsl) so this should be sufficient for the transmission to a single machine (I think). My idea was to use an intermediate server (with a fixed ip and at least 4-5 Mbps flatband) which would grab the webcam images and transmit it to the various website surfers. The website should be using a flash applet connecting to the server where a C++ program would accept connections, send data, and get data back regarding the chat. I don't know a lot of implementation details.. like: better using a windows server or a linux server? And what about the C++ program, should it open multiple ports (one for every client connecting) or what? I've never worked with streaming (if you have suggestions about a great guide to start with I'd appreciate it very much, I'm just willingful to learn). For the flash applet part I have to figure out a lot of things but I suppose that whether the underground mechanics of all this system could work, I surely will think about it and find a way out. Can someone please provide me a good point to start or a suggestion about why my idea could work/couldn't work?

    ---

    Web Development c++ adobe sysadmin windows-admin linux

  • Displaying a table with dynamic data
    4 4288

    Excuse I just realized I'm a faggot, thank you all

    ---

    The Lounge csharp wpf algorithms

  • WPF/Graphic framework for a table
    4 4288

    so you are my saviour huh?

    ---

    .NET (Core and Framework) csharp wpf algorithms

  • WPF/Graphic framework for a table
    4 4288

    Hi all, I need to implement a variant of the symplex algorithm and I need a table control to display values. The table should be able to gain a new column/row, and I should be able to change its values. I thought WPF would be a great choice, but I don't know whether there are easier/more feasible solutions Any suggestion/control/sample would be greatly appreciated

    ---

    .NET (Core and Framework) csharp wpf algorithms

  • Displaying a table with dynamic data
    4 4288

    Hi all, I need to implement a variant of the symplex algorithm and I need a table control to display values. The table should be able to gain a new column/row, and I should be able to change its values. I thought WPF would be a great choice, but I don't know whether there are easier/more feasible solutions Any suggestion/control/sample would be greatly appreciated

    ---

    The Lounge csharp wpf algorithms

  • Structure/Class with optional data
    4 4288

    That structure of points may vary.

    ---

    C / C++ / MFC question wpf

  • Structure/Class with optional data
    4 4288

    The hierarchy proposal is good I have to admit it. But I need to use data stored in this class in the easiest way possible, something like

    MYclass a;
    a.GetPoints();
    CalculateOtherData( a.RetrievePoints() );

    and the hierarchy isn't that simple

    ---

    C / C++ / MFC question wpf

  • Structure/Class with optional data
    4 4288

    In my previous post I realized I pretty messed up my project with unneeded templates. I thought "what about creating a structure or class with a pointer to another structure and putting that pointer just when needed?" So here's the question: I dislike personally the idea of a pointer pointing to optional data, is there any better solution to store data which always has a common header but then may vary?

    ---

    C / C++ / MFC question wpf

  • Template: how to detect type
    4 4288

    I'm not dead, I was just looking at your suggestions and see whether they're appliable to my project. Thank you guys but I realized some things: 1) I'm an idiot 2) More than half of my project has to be rewritten. I can't specializate template class because datatype are too much. 3) Project is slow as hell, I screwed it up with template of templates and at runtime it has to calculate every damn address it uses I think I'm going to change a lot of things... thank you for your help!

    ---

    C / C++ / MFC tutorial question

  • Template: how to detect type
    4 4288

    I wrote a template class which can accept various data types (I had different kind of data to handle) All the data type I used with this template-class, are structures with common parameters. Now I need to write a common code to all classes (I was thinking of a function with his own class) to use these "common" parameters. The solutions I thought are: 1) Passing a void* pointer to the function and select the appropriate code for the datatype: void Function( void *pointer_to_custom_data, ENUM_DATA_TYPE) { if(ENUM_DATA_TYPE == DATA_TYPE1) // specific code for type1.. else if (ENUM_DATA_TYPE == DATA_TYPE2) // specific code for type2.. ... } 2) Overloading in some way this function (don't know how though) so it recognize the type used and uses the specific code Any better idea or suggestion on how to implement these?

    ---

    C / C++ / MFC tutorial question

  • Broken links
    4 4288

    Hi, the link http://www.codeproject.com/win32/cdcheck.asp[^] does not work and the page 45 Day Series: CodeProject VC++ Forum Q&A - I[^] has a broken link

    ---

    Site Bugs / Suggestions c++ com

  • RCA -> USB -> C++ : how?
    4 4288

    I have a wireless camera with RGB exit cable (PAL) and I was planning to control the video via C++ code The idea was to use something like EasyCap adapter (RCA to USB with a driver CD) to let the camera play video in my notebook but the question is: how to control the video stream via C++? I don't think the included drivers could be controlled by code Any idea on how to solve the problem?

    ---

    Hardware & Devices question c++ help tutorial

  • Intercept a WM message into a C++ class
    4 4288

    Ok the invisible window seems the right way. Thank you all guys

    ---

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

  • Intercept a WM message into a C++ class
    4 4288

    If I put the WinProc function in my class, it will need a hwnd handle I think. What handle am I supposed to give it? Should I require one to the application which is going to use my class? (this would exclude console apps, that's just a pity)

    ---

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

  • Intercept a WM message into a C++ class
    4 4288

    I was wondering how to intercept a WM_ specific message into a C++ class, I need to use the RegisterDeviceNotification function to register a specific WM_ message (I need a window here right?) and then intercept it and call the appropriate function The C++ class should be included in any project, from a console one to a win32 to a mfc one. My idea is to create the skeleton of a win32 window and then use the WndProc for that window, is this stupid? Is there any (surely) better solution?

    ---

    C / C++ / MFC c++ 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