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

Scott H Settlemier

@Scott H Settlemier
About
Posts
197
Topics
11
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to start a file's application in C++
    S Scott H Settlemier

    use the windows shell: ShellFileExecute

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

  • Can't prevent new window opening!
    S Scott H Settlemier

    handle OnBeforeNavigate2, cancel the navigation if it's to another window, and navigate to the url just cancelled... something like that.

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

  • SetForegroundWindow fails
    S Scott H Settlemier

    The old way was to use AttachThreadInput-- (there's a hefty list of under just what conditions SetForegroundWindow will work) search for that in the Message Boards. The new way to use MS's settlement API: SwitchToThisWindow http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/switchtothiswindow.asp[^]

    C / C++ / MFC com help

  • Some views or ideas required....
    S Scott H Settlemier

    the shadow is the intersection of the plane of the paper and the cone whose apex is at the light and whose sides are tangent to the sphere. The distance from apex (light) to center of sphere is the hypotenuse of a triangle whose side opposite the apex angle is the radius of the sphere. This is enough to determine the cone.

    C / C++ / MFC help discussion workspace

  • Fast work: OVERLAPPED vs MEMORY MAPPED
    S Scott H Settlemier

    It's a generic class for all instances of work that's i/o bound. Specific uses are filters and hashes which take a score or so of cycles per byte of data. (much less than time to read the data) I'm allocating the buffers on the stack and using overlapped i/o but wasn't sure if the operating system was actually able to asynchronously read the data or if just spawned another thread to do it. If it's just another thread, for a single processor, it'd seem better to just use a memory mapped file right? No overhead for the wait operations and processor is fully tied up reading (on each page fault) or processing. If overlapped i/o really is asynchronous on a single processor, then what I've got now should be optimal. Also I wonder, if the OS has the capability for real asynchronous reads on a single processor, would it be using that to help page in from a memory mapped file? Maybe the memory mapped file can match the overlapped i/o technique because the os is smart? (opened with sequential access for clue? I doubt but wonder.) (yeah buffer sizes are calculated for optimal size-- you have to pass working block size, processing cost and wait cost (about 10K cycles I found from experiments on XP) for the overlapped i/o-- it can be shown that optimal # of rounds is independent of read cost assuming that it's greater than processing cost.) Thanks!

    C / C++ / MFC visual-studio performance question career

  • Skipping Bytes When Reading Files
    S Scott H Settlemier

    fseek

    C / C++ / MFC question

  • Fast work: OVERLAPPED vs MEMORY MAPPED
    S Scott H Settlemier

    For an i/o bound processing job, which would be faster: 1) Memory map the file and process it in place 2) Use overlapped I/O, reading into one of 2 buffers, while processing the other (pipelined) On a single cpu, would I get any benefit from #2? On a dual cpu, does #1 get no improvement over that on a single cpu? Thanks.

    C / C++ / MFC visual-studio performance question career

  • WaitForMultipleObjects( ) and thread object
    S Scott H Settlemier

    when a thread in the handle array becomes signalled and the wait satisfied, handle the case and then remove that handle from the array (dec. the count, shift over remaining handles as required..) That handle will remain valid and signalled until you call CloseHandle on it, so you must remove it from the wait.

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

  • C++ related issue
    S Scott H Settlemier

    The magic words you are looking for are "virtual inheritance[^]."

    C / C++ / MFC c++ oop help question

  • Problem with thread
    S Scott H Settlemier

    Sleep(0) is perfect here. You can be nice to the system by simply using your time slice to make *one* check of the flag and then turning over control to another thread. Although typically I would argue against using a flag and using an appropriate synchronization object instead.

    C / C++ / MFC help

  • access JS vars on page in web browser control?
    S Scott H Settlemier

    I've got a web browser control. It loads a page. The page has some javascript. In particular, one variable, an array is defined there. I want it. any ideas on how to get it?

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

  • Kids and coffee
    S Scott H Settlemier

    Tea: ever since I recall. (grandparents would push it, parents'd just provide it.) (caffeinated) Coffee: hated it until addicted to espresso in univ. My son'll have nothing to do with either of them.

    The Lounge com question

  • How to supply a generated image to a HTML page in a CHtmlView
    S Scott H Settlemier

    I think that might be supported as an mhtml document. I'm not sure how far the support for such has yet gotten.

    C / C++ / MFC xml html wpf com help

  • Everclear
    S Scott H Settlemier

    Ah, I miss the old days at the Mt. Tabor Theatre pub.

    The Lounge com linux question

  • MS Cert.-or bust
    S Scott H Settlemier

    Wheeee! I am unemployed. A colleague and I have gotten the MCAD self-paced training kit book from MS Press and will take the 70-316 course to create that uber drool C# resume fodder. Any hints this way? Myself, I would like to venture more into the Unix woods with Qt, or maybe some OpenGL work on OpenSource using vtk and etc. Weather graphics would make me really happy. But I will take what is offered. Anyone got some best practices for getting technical programming jobs?

    Work Issues graphics question learning csharp game-dev

  • Looking for a VC++ Sample for Wake up on LAN (WOL)?
    S Scott H Settlemier

    Here's a short program [^]for doing this on linux. (discussed here[^]) It should be easy to port.

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

  • paint a DC
    S Scott H Settlemier

    remember, a dc is not a surface, but the means of accessing one. If you create a memory dc, it is created with a default 1x1 monochrome surface. (If I recall) What you need to do is create a bitmap (the surface) and select it into the memory dc. Then you can paint on that surface using the memory dc and finally blit from the bitmap (using the memory dc) to the display surface (using the window dc)

    C / C++ / MFC question c++ json performance help

  • will GPS still work?
    S Scott H Settlemier

    I think that Selective Availability has been turned off.. http://www.ngs.noaa.gov/FGCS/info/sans_SA/docs/statement.html[^]

    The Lounge question help

  • Windows 2000 DDK
    S Scott H Settlemier

    I couldn't find anything either and ordered the DDK a couple weeks ago. Had to pay shipping only and it arrived a few days ago. Once they finally shipped the order it took only a day to arrive. (but it took them awhile to ship the order. I kept getting notices with estimated shipping dates long off.)

    C / C++ / MFC csharp c++ visual-studio com question

  • OnInitDialog and 'return TRUE'
    S Scott H Settlemier

    yep

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