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...
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 );
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...
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...
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 );
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...
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...
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 );
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...
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...
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 );
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.