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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
J

Jens Doose

@Jens Doose
About
Posts
56
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • WebBrowser control modifies HTML entities: How to get original source code?
    J Jens Doose

    Hi everybody, i have an (ANSI) C++ application that hosts the WebBrowser control. I write an HTML file to the control via m_spMsHtml->write( sfArray ). The I use the HTML editing functionality of the webbrowser to modify the source, lateron I read the content back and save it to a file again. This works quite good until I use special characters like german or greek characters with their HTML encoding. If a document contains characters like these: ä ü Σ α then the "write"-command already translates these into their unicode-equivalent, so they become to ä ü Σ α I would like to keep the HTML-equivalent. Is there any way to do this? Any help is appreciated, thanks in advance! Jens Doose

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

  • Printing: reserved48
    J Jens Doose

    Hi Everybody, we are using a cash system printer which is connected to the PC via USB. The printer has an endless paper roll and also has a paper cut feature. The printer supports 4 paper sizes: - "80x210 mm" - "80x297 mm" - "reserved48" - "reserved49" The first two paper sizes are the maximum sizes. So the printer cuts a print after 210mm or 297mm. If you choose "reserved48" in Excel the printout is exactly as long as needed. But if I choose this paper size in my own applications nothing is printed at all. The paper is thrown out about 1 cm and then cut. I examined a little bit about Device caps but every value seems to be invalid. The paper size specified in the DEVMODE is 1 pixel by 1 pixel, so not very much :-((( Does anyone know how to handle this? I really appreciate every hint! Thanks in advance, Jens

    C / C++ / MFC tutorial question

  • titlebar text
    J Jens Doose

    I think the only way you can do that is to owner-draw your window title bar. See here: http://www.microsoft.com/msj/0197/c/c0197.aspx Jens

    C / C++ / MFC help

  • Create an own User Right in Windows XP
    J Jens Doose

    Hi all, I always thought that it is possible to create own user rights in Windows XP like the ones you see in the "Local security settings" but I couldn't find anything about it. Is this just impossible? Or how can it be done? Thanks for any help, Jens

    C / C++ / MFC security help question

  • Dymanic windows
    J Jens Doose

    You used CRect(23,30,54,14); as the location to move the window to. This statement create a rect with the following settings:

    - m_Rect {top=30 bottom=14 left=23 right=54}

    • tagRECT {top=30 bottom=14 left=23 right=54}
      left 23
      top 30
      right 54
      bottom 14

    Since "bottom" is less than "top" this is a rect with a negativ height. I am pretty sure that was not your intention, was it? ;-) Jens

    C / C++ / MFC question

  • Dymanic windows
    J Jens Doose

    If your using MFC one of the more common mistakes is that there is no command handler yet. In that case MFC grayes all the unavailable menu commands. Jens

    C / C++ / MFC question

  • Dymanic windows
    J Jens Doose

    In CMyDialouge::OnInitDialog() you wrote m_EditBox[i].Create(WS_CHILD|ES_MULTILINE| WS_VISIBLE|ES_WANTRETURN,CRect(0,0,0,0),this,1000 + i); m_EditWnd[i].MoveWindow(m You used m_EditBox AND m_EditWnd, may it be that this is your mistake? Jens

    C / C++ / MFC question

  • isValidDoubleValue(double *)
    J Jens Doose

    Never heard of that, but a look at MSDN with _FPE_INVALID lead me to SIGFPE and that lead me to signal(), a function you can use to set your own signal handler. I never tried that but maybe this is worth a try? Jens

    C / C++ / MFC performance question

  • Timers
    J Jens Doose

    And you will need a message loop. Jens

    C / C++ / MFC question c++ lounge

  • How to use put_Picture!?!
    J Jens Doose

    I am not quite sure what kind of parameters put_Picture expects, but maybe you could try to get a IPicture object with "OleLoadPicture"? Jens

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

  • How can i disable the right click menu in webbrowser control
    J Jens Doose

    In your host you can implement IDocHostUIHandler. See this howto http://support.microsoft.com/default.aspx?scid=kb;en-us;236312[^] Jens

    C / C++ / MFC csharp question

  • Retrieving Path of the Program Associated with a File Type
    J Jens Doose

    As I remember the solution is using the function AssocQueryString. Unfortunately I have no source code here for an example. Jens

    C / C++ / MFC help linux

  • Event Objects
    J Jens Doose

    You do not have to use shared memory in this case. Just create an event in the GUI and in the DLL and use the same name for both CreateEvent calls. That should do the trick. Jens

    C / C++ / MFC security performance question

  • Process ID
    J Jens Doose

    Depending on your operating system you can use - the PSAPI functions (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/perfmon/base/process_status_helper.asp) - or the ToolHelp functions (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/perfmon/base/tool_help_library.asp) Jens

    C / C++ / MFC question

  • Process ID
    J Jens Doose

    That depends on the kind of data you already have. Is it the current process? Or do you have the name of the executable? Or a window handle? Jens

    C / C++ / MFC question

  • Does anything affect Sleep ()
    J Jens Doose

    Well the context of this sentence deals with messages, and if you read a little bit more it reads Message broadcasts are sent to all windows in the system. If you have a thread that uses Sleep with infinite delay, the system will deadlock And this one makes sense. Think about a SendMessage call to all windows with no timeout and one of the threads sleeps endlessly. Then the calling process will also hang. But I don't see this as an evidence that Sleep waits actively. Jens

    C / C++ / MFC java question

  • Does anything affect Sleep ()
    J Jens Doose

    See here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/sleep.asp Jens

    C / C++ / MFC java question

  • Does anything affect Sleep ()
    J Jens Doose

    My comment didn't answer your original question. I just wanted to state that I don't think that calling "Sleep" will cause the thread to wait actively. It would be rather dumb to implement a task scheduler which lets a thread that called Sleep wait actively, wouldn't it? To clarify: By "waiting actively" I mean a continous loop until a condition is reached, like this one: while ( true ) { if ( bConditionIsReached ) { break; } } Jens

    C / C++ / MFC java question

  • Does anything affect Sleep ()
    J Jens Doose

    I am not quite sure if Sleep really waits actively... See MSDN: The Sleep function suspends the execution of the current thread for at least the specified interval. Jens

    C / C++ / MFC java question

  • (WTL) XP style password edit box
    J Jens Doose

    You have to set the right font, I think it was Tahoma, but not 100% sure. Jens

    ATL / WTL / STL c++ 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