Skip to content
Code Project
CODE PROJECT For Those Who Code

C / C++ / MFC

C, Visual C++ and MFC discussions

This category can be followed from the open social web via the handle c-c-mfc@forum.codeproject.com

111.5k Topics 465.7k Posts
  • About pthread scheduling (C programming)

    linux algorithms debugging question
    10
    0 Votes
    10 Posts
    0 Views
    E
    Member 10375265 wrote: any sample code Copy and paste is no substitute for really understanding a subject. Especially at college. Don't use sample code, read up on the problem you are trying to solve, read up on the api you are gong to use, and design the thing yourself! If not you will be a crap engineer. -edit-- Actually be a crap engineer, It means more and better paid contracts for us proper engineers.
  • Getting Frames from Webcam

    c++ graphics tutorial question announcement
    2
    0 Votes
    2 Posts
    0 Views
    S
    It looks like you have gone down the Video For Windows route. You might want to consider stepping up to DirectShow instead. They are both old technologies, but VFW is just too old and annoying to deal with (we were using it on Windows 98). Whether you will be able to achieve 6 FPS really depends on several factors, primarily if your camera supports that frame rate at your desired resolution. You should be able to acquire the images as JPEGs or another bitmap format (RGB or YUV), but which formats are available depends completely on your camera. Take a look at this totally awesome CP article: Realtime Webcam Sudoku Solver[^] As I recall, it uses Video For Windows, so it should be easy for you to jump into the code and see how to access the image data. For a DirectShow sample, check out this CP article: Video Preview and Frames Capture to Memory with SampleGrabber in Buffered Mode.[^] And also browse through his other articles[^], it will not be a waste of your time. Here are a couple more DirectShow related CP articles: Simultaneous Previewing & Video Capture using DirectShow[^] DirectX Video Stream and frame capture[^] Soren Madsen "When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty
  • 0 Votes
    4 Posts
    0 Views
    J
    Your code can retrieve the status. You may try to access the printer in some way so that the status is updated. But I have not done that and don't know how to do it.
  • Sturct - Error

    help
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • VC2008 Feature Pack Problem

    help announcement code-review
    4
    0 Votes
    4 Posts
    0 Views
    B
    try statically linking to the C-Runtime, ATL, and MFC... -Change C++/Code Generation/Runtime Library from /MD to /MT. -Change General/Use of ATL/ to "Static Link to ATL" -Change General/Use of MFC/ to "Use MFC in a static Library"
  • What mac is the best for visual C++

    c++ question game-dev
    3
    0 Votes
    3 Posts
    0 Views
    A
    Best mac for visual C++? ...none really. Visual C++ is pretty much the name of the C++ compiler for Windows, so your question is a bit of a contradiction.
  • 0 Votes
    55 Posts
    0 Views
    A
    I explained you point by point where the problem is and how it occurred. Despite of it, you repeat your ideas about pointers. It is rather ridiculous, because I have the source code, generated asm file and result of disassembling of exe file (which can be compared with the asm file, generated by compiler). Finally, I can (and I did) run my exe file under debugger. You have no such options at all. Under such circumstances it is very strange idea to try to explain me not what actually happened, but what might happen!
  • TrackMouseEvent

    question help learning
    2
    0 Votes
    2 Posts
    0 Views
    D
    BarryPearlman wrote: If not and the button has to be subclassed, how do I do this. Subclassing Controls. Also check here. "One man's wage rise is another man's price increase." - Harold Wilson "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
  • Action With Royal Rumble

    visual-studio com regex
    3
    0 Votes
    3 Posts
    0 Views
    M
    Nothing, apparently. Veni, vidi, caecus | Everything summarizes to Assembly code
  • C vs. C++ (VS2010)

    question c++ visual-studio help
    3
    0 Votes
    3 Posts
    0 Views
    M
    Put declarations inside extern "C" { } C & C++ uses different name mangling.
  • Create Custom Events in Windows OS

    question workspace
    4
    0 Votes
    4 Posts
    0 Views
    L
    AmbiguousName wrote: I thought someone from this forum could help me out. With what? This is the C++ forum and I don't see anything in your question related to C++. Veni, vidi, abiit domum
  • CDHtmlDialog : Not supporting "Canvas" tag in HTML

    c++ javascript html css question
    4
    0 Votes
    4 Posts
    0 Views
    D
    Thanks guys!
  • WideCharToMultiByte

    css performance question
    5
    0 Votes
    5 Posts
    2 Views
    M
    char* fname; int n_n = MultiByteToWideChar(CP_ACP,MB_PRECOMPOSED,fname,-1,NULL,0); LPWSTR yty; yty = (LPWSTR)malloc(n_n * sizeof(WCHAR)); MultiByteToWideChar(CP_ACP,MB_PRECOMPOSED,fname,sizeof(fname),yty,n_n);
  • VC++ Snippets

    c++ visual-studio question learning
    6
    0 Votes
    6 Posts
    2 Views
    B
    Thanks everyone!
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • Need help to show chm-Files?

    help tutorial database question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • please help me to convert string in Unicode bytes?

    help tutorial question
    4
    0 Votes
    4 Posts
    0 Views
    L
    Well it works fine for me. Maybe you should explain why you think the result is not correct. Veni, vidi, abiit domum
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • Gradient detection for pic micros

    tutorial
    8
    0 Votes
    8 Posts
    0 Views
    CPalliniC
    Quote: Do you have any idea how to assign more than 1 LDR per buffer? That is not a problem, actually. Just perform the process sequentially on the LDRs e.g. Sample and convert LDR1, take the result from ADC1BUF0, store it in variable, say ldr1. Sample and convert LDR2, take the result from the same buffer ADC1BUF0, store it in the variable ldr2. ... Veni, vidi, vici.
  • how to initialize array of variable length?

    question data-structures help tutorial
    7
    0 Votes
    7 Posts
    0 Views
    L
    here if the buffer_length=190 its generate out of memory exception. PBYTE buf = new BYTE[buffer_length]; it means it not working after certain limit. thanks.