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
H

hkulten

@hkulten
About
Posts
17
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Fading black the screen
    H hkulten

    In fact, I had this solution in mind, but I wanted to know if another way could exist. Thanks for your reply. :)

    C / C++ / MFC graphics game-dev algorithms question

  • Fading black the screen
    H hkulten

    Hi All, I am searching for a way to fading black the entire screen to do some effects. Is this possible to programmatically control contrast and luminosity with the graphic card (maybe DirectX?) or to fade to black the desktop window? :confused: Thanks. :)

    C / C++ / MFC graphics game-dev algorithms question

  • SmtpMail timeout
    H hkulten

    Hi all! Here is my problem: I am developing a Windows service written in C#. The work of this service is to send an alert by mail when the total memory of the OS is too high for example. I'm using the System.Web.Mail namespace to send a mail and everything is ok. I put this piece of code in a thread to make my application more reliable, like that: ' the code for sending mail is in the ThreadLoop method of the Job class Thread jobThread = new Thread(new ThreadStart(current_job.ThreadLoop)); jobThread.Start(); ' wait until the job is done or the timeout is reached bool noTimeout = current_job.Mre.WaitOne(30*1000, false); ' stop the thread... jobThread.Abort(); Ok. My problem occured when there is a big file attached to the mail, and the timeout is reached. The method Abort() does not quit the thread until the entire mail is sent... And I cannot add a timeout to the System.Web.Mail.SmtpMail.Send method, then I am stuck. :confused: Is there a way to force the termination of a thread? Thanks. ;)

    C# help csharp performance tutorial question

  • Looking for a program: HookManager
    H hkulten

    http://www.codeproject.com/tools/hookmanager.asp ?

    IT & Infrastructure csharp c++ help

  • Host blank screen with remote software
    H hkulten

    This is the general discussion forum, and I only demand if there is a free software (not GPL) which could have this feature. If I want this feature in VNC, I think I need to code a video driver which I am not sure to be able to (I am not a driver coding expert, sorry!). Then, before continuing my quest of the truth, I wanted to verify if a free utility with that feature could exist. Why are you so aggressive? This was just a question. :confused: Please, do not pollute this post with an useless reply if you are unable to respond.

    IT & Infrastructure algorithms tutorial question

  • Host blank screen with remote software
    H hkulten

    It will not work. The host must see a blank screen, but, from my PC, I want to see what I am doing remotely. If I put a black "always on top" dialog in the host, I'll see the same black screen. It is not my goal at all. I don't want the host to see what I am doing remotely (it is for kiosk PC). Thanks. :)

    IT & Infrastructure algorithms tutorial question

  • Host blank screen with remote software
    H hkulten

    Hello, I am searching for a FREE remote software, like RealVNC, with the "host blank screen" feature. This feature is present in PCAnywhere or GoToMyPC, but I would like to use a free software. If this host blank screen could be customizable (with my logo for example), it would be better. Any suggestions? Thanks. :)

    IT & Infrastructure algorithms tutorial question

  • Turn Off Monitor
    H hkulten

    Yes, you're right for this point, but my application is targeting PC which displays multimedia messages on screens (LCD or Plasma) and, normally, there are no interactive users on these machines. My application must turn off/on screens when no messages are displayed in order to save LCD/Plasma life time. My solution works well because, for that kind of PC, there are no users, but I want to develop my application properly, and I cannot accept that the screen could turn on without my application. :) Maybe this is not possible on Windows platform to turn off properly the screen. :( The last thing I would say is that I could do that on Atari ST platform, and fifteen years later, I could not do the same thing on Windows platform fifteen years old :confused: ?!! I think this is the progress... Thanks for your response.

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

  • Turn Off Monitor
    H hkulten

    Yes you are right, but my purpose is to use this power-saving feature from my application. I want to be able to turn on/off monitor when I need, and no turn back on of the display when the mouse is moving. Maybe are there softwares which can do that ? :~ Thanks.

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

  • Turn Off Monitor
    H hkulten

    That's right. I badly expressed myself. X| :zzz: As the same way I can turn off the display programmatically, I will turn it back on programmatically. I don't want the user can turn on the screen. That's why I tried to lock mouse moves, but it does not work. Any solution(s) ? :cool:

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

  • Turn Off Monitor
    H hkulten

    Hi all, I would like to be able to turn off/on the monitor programmatically. In fact, I can do that with this piece of code: HWND hWnd = GetSafeHwnd(); ::SendMessage(hWnd, WM_SYSCOMMAND, SC_MONITORPOWER, MONITOR_OFF); The problem is when the mouse is moving, the display is turning on back. I tried to use a global mouse hook (implemented in a DLL) which is called and enabled by my main MFC application. The hook works great ! Then, in my application, I have this : InstallHookMouse(); // Install mouse hook which lock all mouse messages DisplayOff(); // Turn off the monitor When I move the mouse while the display is turned off, it turns on back. :wtf: Have I to program a mouse filter driver to lock definitively this mouse and then, the monitor will not turn on back (until my application will decide to turn it on), or is there another solution ? :zzz: Thanks. :)

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

  • Transparent background
    H hkulten

    Hello, I have an activex which renders a bitmap (jpeg or bmp) inside my web page. I need to use this activex because it makes some animations with this bitmap that I cannot do with HTML. Unfortunately, this activex does not manage GIF or PNF format, and I would like to be able to make the background of the bitmap transparent. :~ Is there a way to make a color of this image transparent with HTML (CSS, etc...)? Thanks :)

    Web Development html css com graphics question

  • Remote control software
    H hkulten

    Hello, For the moment, I am using RealVNC to take the control of a workstation for maintenance. The problem is that users which are in front of this workstation (this is a kiosk) can see what I am doing on it. Then, I am searching for a software which could enable me to hide (or show a black screen, or a customized screen) the desktop of the glance of the users while I make my maintenance. Is this software exist ? Thanks.

    System Admin algorithms help question

  • Changing http_user_agent in webbrowser control
    H hkulten

    All is in the subject ! I would like to change the header which is sent to server by the webbrowser control from Microsoft, but how to do that ? Any clues ? Thanks. :zzz:

    C / C++ / MFC sysadmin tutorial question

  • User documentation software
    H hkulten

    Hi all ! I'm looking for an utility which could generate user documentation for my software, and NOT source documentation like doc-o-matic or doxygen. Thanks. :cool:

    IT & Infrastructure tools

  • hopefully simple IE control question
    H hkulten

    You must use IHTMLDocument2 interface. You can find some help on msdn.microsoft.com : http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/mshtml/reference/reference.asp example of function to retrieve the value of a tag in a html page : CString YourApp::GetTagValue(LPDISPATCH lpDispatch, CString strTagId) { CString strVal = ""; IHTMLDocument2* pHTMLDocument2 = NULL; if (lpDispatch == NULL) return ""; HRESULT hr = lpDispatch->QueryInterface(IID_IHTMLDocument2, (LPVOID*)&pHTMLDocument2); lpDispatch->Release(); if (hr != S_OK) return ""; IHTMLElementCollection *pElementCollection = NULL; hr = pHTMLDocument2->get_all(&pElementCollection); if (hr != S_OK || pElementCollection == NULL) return ""; long nElt = 0; if (pElementCollection->get_length(&nElt) != S_OK) return ""; for (int i=0; iitem(varIndex, var2, &pDisp); if (hr == S_OK && pDisp != NULL) { IHTMLElement* pElem = NULL; hr = pDisp->QueryInterface(IID_IHTMLElement, (void**)&pElem); if (hr == S_OK && pElem != NULL) { BSTR bstrId = 0, bstrVal = 0; hr = pElem->get_id(&bstrId); CString strId(bstrId); strId.MakeLower(); // Oups, we find our tag !!! if (strId.Find(strTagId) != -1 && strId != "") { // Retrieve all html code pElem->get_innerHTML(&bstrVal); strVal = CString(bstrVal); } pElem->Release(); } pDisp->Release(); } } pElementCollection->Release(); return strVal; } you can use this function like this: CString strValue = GetTagValue(m_web.GetDocument(), "myid"); With a object embedded in a html page, I think you must use the IHTMLObjectElement interface instead of the IHTMLElement interface. This is not easy to play with the syntax of theses interfaces, but it works.... Good luck !!! ;)

    Web Development question html hardware help tutorial

  • Free Java IDE
    H hkulten

    Eclipse 2.0 is a good one ! http://www.eclipse.org :cool:

    IT & Infrastructure java visual-studio
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups