|
Hamid. wrote: Whats the different between these links except their titles?
Copy/Paste error. Thanks!
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
Yeah.
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Do you need to Win32_USBControllerDevice also this article is helpful form you Detecting Hardware Insertion and/or Removal[^].
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
hi experts please let me know how to find all depenent .DLLs,.EXES that depends on a particular .exe in vc++ 1.52(dependency walker is not working in vc++1.52)
kir_MFC
|
|
|
|
|
You need to use Dependency Walker[^] why it doesnt work?
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Because Visual C++ 1.52[^] produces 16-bit applications and dependency walker won't work on 16-bit modules. Here[^] is a dos utility to find dependencies of 16-bit apps. Hope it helps.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
You'll only be able to discover those DLLs that are loaded implicitly.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
we have developed an application say "A"(form view) where in it hides the entire desktop area(restricting windows access). Title bar has been hidden.
Now we are invoking another dialog based application say "B"using shellexecute through the above mentioned application. As I can see a little gap on left and bottom of the application "A" which can't be covered, and if I perform mouse click over there the invoked application "B" goes back(as per our requirement which shouldn't go back).
Please suggest me how can I handle such situation
modified on Monday, January 12, 2009 1:25 AM
|
|
|
|
|
You can use of this code SetWindowPos(&hwndTopmost, NULL, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOZORDER); but for more info see
Makes any windows "Always On Top"[^]
Keep your Window Always On Top[^].
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Hamid has a good idea.
Another alternative is to make B.exe create a full screen, but transparent window - then have CBDlg be a child of that.
Lastly - assuming you're creating both of these applications, you could called B.exe with a parent that can be decoded into a window handle which you then use as the parent window for B.exe.
This is how screen savers work - no parameter means full screen saving. Control panel calls them with various parameters for preview, draw in little window or configuration dialog box - all with a window handle passed as a parameter.
Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
|
|
|
|
|
|
BOOL
PASCAL FAR
AcceptEx (
IN SOCKET sListenSocket,
IN SOCKET sAcceptSocket,
IN PVOID lpOutputBuffer,
IN DWORD dwReceiveDataLength,
IN DWORD dwLocalAddressLength,
IN DWORD dwRemoteAddressLength,
OUT LPDWORD lpdwBytesReceived,
IN LPOVERLAPPED lpOverlapped
);
For the 2nd parameter,
why not use IN SOCKET &sAcceptSocket instead.
|
|
|
|
|
followait wrote: For the 2nd parameter,
why not use IN SOCKET &sAcceptSocket instead.
Because if you look at what a SOCKET is, you'll see that it is just an UINT_PTR. In fact a SOCKET is just a handle to a win32 internal object. So, yjust passing this handle is enough, you don't need to pass the handle by reference.
|
|
|
|
|
because the second parameter is not a return value. In AcceptEx,You need to have accept socket opened already unlike the accept API in which the socket is returned.
from msdn,
Another key difference between the AcceptEx function and the accept function is that AcceptEx requires the caller to already have two sockets:
One that specifies the socket on which to listen.
One that specifies the socket on which to accept the connection.
The sAcceptSocket parameter must be an open socket that is neither bound nor connected.
|
|
|
|
|
Is there any MFC Ribbon message box that I can use for confirmations?
|
|
|
|
|
Using 'ribbon' and 'message box' together seems to be an oxymoron to me, given that the ribbon is a menu bar replacement and message boxes don't (in 99.999999999999% of cases) have a menu bar.
So, when you say 'Ribbon', what do you really mean - can you point at a screenshot of something that illustrates what you want?
|
|
|
|
|
I think the message box is a custom dialog box.
I saw it in MS paint in Vista. When you modify a bmp and click on exit this message box pops up. Going by its look, I thought it was a ribbon message box just like there is a ribbon status bar.
|
|
|
|
|
|
|
Hi. I want to implement xml writer function using MSXML class.I can move to any particular element in the file without iterating every node. But suppose following is the xml file code.
<tr>
<td Id="A1"> Month <td>
<td Id="B1"> Net Revenue <td>
<tr>
I can only append the child of tr element and it will add it in the last, what about adding a child between A1 and B1, there is no such function to insert in between.
thanks
amit
modified on Monday, January 12, 2009 1:22 AM
|
|
|
|
|
<html>You could have checked "Ignore HTML ... " checkbox for your message.</html>
|
|
|
|
|
Thanks for that.. Meanwhile i got an article [^] by which i can accomplish my task.
Thanks
amit
|
|
|
|
|
IXMLDOMElement::insertBefore[^] should be right. You want the IXMLDOMElement interface for the <tr> element and specify the second <td> as the element in fornt of which the new element should be inserted.
|
|
|
|
|
Hi,
I am creating an application that has to send the mails automatically even in the absence of Microsoft outlook. My application is capable of sending the mails without any hitch only when outlook is running. If I close outlook and try sending the mail through my application, it will not send the mail until I run the outlook again. Is there a way to fix this problem? Is there any special API to be used?
My code snippet is as below:
HINSTANCE hlibMAPI = 0;
CString MapiDll = "MAPI32.dll";
hlibMAPI = LoadLibrary(MapiDll);
MapiRecipDesc *mapiCurrentSender;
MapiRecipDesc *lppNewRecips;
lppNewRecips->lpszAddress = "SMTP:harishkj@gmail.com";
lppNewRecips->lpszName = "Harish";
lppNewRecips->ulRecipClass = MAPI_TO;
lppNewRecips->ulEIDSize = NULL;
lppNewRecips->ulReserved = 0;
mapiCurrentSender->lpEntryID = NULL;
mapiCurrentSender->lpszAddress = "SMTP:harishkj@gmail.com";
mapiCurrentSender->lpszName = "KJ";
mapiCurrentSender->ulRecipClass = MAPI_ORIG;
mapiCurrentSender->ulEIDSize = NULL;
mapiCurrentSender->ulReserved = 0;
LPMAPISENDMAIL lpfnMAPISendMail;
LPMAPILOGON MAPILogon;
LHANDLE session = 0;
lpfnMAPISendMail = (LPMAPISENDMAIL) GetProcAddress (hlibMAPI, "MAPISendMail");
MAPILogon = (LPMAPILOGON) GetProcAddress (hlibMAPI, "MAPILogon");
MAPILogon(0,0,0,MAPI_NEW_SESSION,0,&session);
ULONG FAR PASCAL err = (*lpfnMAPISendMail)(session,(ULONG)AfxGetMainWnd()->m_hWnd, MAPI_LOGON_UI, 0L);
I tried with and without having a new session.
In either way it helped
Any help would be greatly appreciated.
Thanks,
KJ<pre></pre><pre></pre>
|
|
|
|
|
I've just looked at (and run) some MAPI wrapper code that I wrote several years ago. I found the following differences:
- I call
OleInitialize and MapiInitialize before opening a session - I opened my session with
MapiLogonEx , using these flags: MAPI_NO_MAIL|MAPI_EXTENDED|MAPI_USE_DEFAULT|MAPI_ALLOW_OTHERS . I don't use MAPISendMail either - I construct the message in my Exchange Server outbox and send it from there using IMessage::SubmitMessage . It works with or without Outlook running. - I added your
MAPILogon and MAPISendMail code and added message creation - that worked fine with or without Outlook running.
So, to summarise - I presume you're calling the relevant initialisation functions?
|
|
|
|