Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by BeanDog

  1. BeanDog

    Simple MAPI - open email

    Is there a way to open a standard email dialog using the ReadMail Simple MAPI function? I have a lpMapiMessage that is valid, but I can't figure out how to display it in its default viewer. Any suggestions? Also, is there a SIMPLE Mapi way to get the HTML source to an HTML email? With...
  2. BeanDog

    WM_ENDSESSION - logoff?

    I do not receive WM_ENDSESSION when the user is logging off (I am running WinXP pro), but I do receive it when they shut down. Is there some way to catch when they log off? ~BenDilts( void );
  3. BeanDog

    VB CriticalSection-like function

    I need to send information over a Winsock TCP/IP connection and wait for a response before sending any further information. Here is my generalized function: Private Sub LockingSend(s As String) Do While m_bLocked DoEvents Loop m_bLocked = True Winsock.SendData s Do While m_bLocked...
  4. BeanDog

    Regsvr32 fails on VC6 ATL COM EXE

    I could not get a .exe server to register on a Win98SE machine so I did this to verify it: I created a new ATL AppWizard project in VC++6. I chose .EXE and clicked OK. I added a single ATL object and compiled it. It registered fine on my 2k machine. I moved it to the 98SE machine and...
  5. BeanDog

    Create dialog in DLL from resource?

    As I said in my original post, the problem is not that the window is not visible. I WANT it to be invisible (I just need it to hold an ActiveX control to do invisible work). It gives me an assert error on the Create. ~BenDilts( void );
  6. BeanDog

    Create dialog in DLL from resource?

    I created an MFC-enabled DLL project in MSVC++6.0, added a blank dialog resource with the resource editor, and run the following when the DLL is loaded: CDialog dlg; dlg.Create(IDD_DLG); This fails. It also fails if I use MAKEINTRESOURCE before passing IDD_DLG in. It gives me a failed...
  7. BeanDog

    (MSVC/COM) Allocating BSTR strings?

    Who is responsible for allocating strings in COM calls? For instance, if I have a method with an [out] BSTR* parameter, do I have to call AllocSysString and/or SysFreeString to pass it out? Same question for [out,retval]'s. i.e.: STDMETHODIMP CESValhalla::GetFolderById(long lFolderId, BSTR...
  8. BeanDog

    Halt until ShellExecuted app is done?

    I am not using VB. I need a WinAPI way to do this.
  9. BeanDog

    Halt until ShellExecuted app is done?

    I have an application that needs to run two different executables, one after the other. When I do 2 ShellExecutes, I get both running at once. I need to make sure the first finishes before the second begins. Is there a blocking version of ShellExecuteEx? ~BenDilts( void );
  10. BeanDog

    DoEvents in COM event?

    I have written an out-of-process (.exe) apartment-threaded COM object in VC++6, and I make a call to it from my VB app that can take a minute to complete. So, I have the COM object call an event. VB *does* get the event and handles it fine. I have it set up to send back to the COM server...
  11. BeanDog

    DoEvents in COM event

    I have written an out-of-process (.exe) apartment-threaded COM object in VC++6, and I make a call to it from my VB app that can take a minute to complete. So, I have the COM object call an event. VB *does* get the event and handles it fine. I have it set up to send back to the COM server...
  12. BeanDog

    specialized debug tool?

    Thanks for the advice, but please only post if you can answer the question. The debugger may not break in the thread that has hung, in fact it is unlikely to if the other threads are still running. ~BenDilts( void );
  13. BeanDog

    specialized debug tool?

    Does anyone know of a debug tool that does this? I would really like to have a listing of each line of my code that has been hit by each of my running threads. Imagine the usefulness. I hit a deadlock once in a while, and I can't even figure out where it stopped, so it's difficult to solve...
  14. BeanDog

    System idle time

    How do you set such a timer?
  15. BeanDog

    System idle time

    Is there a way I can find out how long the system has been idle? I need a process to run in the background while the system is idle. An example would be FindFast. How do they index your hard drive only when the system is able, or how does windows start screen savers when the system has been...

Part and Inventory Search

Back
Top