how create a dll which will connect or disconnect a modem ADLS, while using : 'user identifier' and 'password' and another thing (IP..). Connection access distant network is alredy installed. use C++ is the best way to reach connection.
but I do not manage to find the functions or objects COM which I must use.
In fact, I do not know by where to start
If somebody has an idea and can help me, thank you very much
You can uncheck the System Menu option to remove the Maximize, Minimize, and close buttons. But if you want to have Max/Min buttons, then what you can probably do is to grey out the close button. For that you, just add this to the end of your InitDialog( )
A very simple problem yet I didn't find the solution. How can I make some buttons of the toolbar to remain pressed after the first click and came back up at the second click? Like the B (bold), I (italic) and U (underline) in Outlook, Word, etc.
We are what we repeatedly do. Excellence, then, is not an act, but a habit.
TerminateProcess is called when one try to kill process using task manager. By default, it is not possible to kill a process that is running under a security context different than the one of the process who issued the call to TerminateProcess.
So mark ur application as service or system process. Then u may get notification if sombody tries to kill ur appln through Task Manager.
I have a slight problem with a tree control. I cannot manage to insert items again after having deleting the whole thing.
I tried this :
// That works nicely the first time<br />//--<br />
HTREEITEM hMyItem = m_TreeCtrl.InsertItem( "my item" );<br />
HTREEITEM hMyChildItem = m_TreeCtrl.InsertItem( "my child item", hMyItem );<br />
// 1. I delete the items I just inserted<br />//--<br />
// OR 2. (according to the MSDN that should do the same)<br />//--<br />
m_TreeCtrl.DeleteItem( TVI_ROOT );<br />
// And this does not work anymore<br />//--<br />
hMyItem = m_TreeCtrl.InsertItem( "my item" );<br />
hMyChildItem = m_TreeCtrl.InsertItem( "my child item", hMyItem );<br />
Instead of having "my item" as the new root in my tree, I have a blank space and no child displayed. Also, the insert functions succeed as they return a value for the items. Any ideas ?
not tested but do not believe it is system problem
(1 and 2 are the same)
don't you have any own TVN_DELETEITEM handler or WM_PAINT?
is it called in one fn like displayed?
(what when you will not insert children? when you will not delete?)
Here is the code, cannot be simpler ... Maybe you could try it quickly, insert a tree, associate with a variable, insert a button, copy paste my code in the event handler and see what the tree looks like.
works with Visual Studio 6 on another machine. Does not work on my machine with Visual Studio 2003 ! Same procedure, new MFC app with the wizards, insert a new tab control in the dialog, add a simple button, implement the event handler of the button to do: InsertItem; DeleteAllItems; InsertItem;
Glups. Does anybody have the same problem or does this just come from the piece of s**t behind my keyboard ?
The only way is hooking the ReadProcessMemory system-widely and checking if a process wants to read from your process.
You could also patch the ReadProcessMemory function (patch on assembler level to immediately return), but I wouldn't do it. Patching can lead to serious problems. This would require that you need to overwrite the Windows kernels of the users, and I don't think that most users like it if their kernel is patched...
and __asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
I've not tried this so it's simply a guess. ReadProcessMemory() requires that the memory being read be accessible for read access. Otherwise, the function fails. That implies that your process could somehow "lock" its heap memory.
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
I am using context menu (with TrackPopupMenu()).
When I use it with an usual window, all is OK.
If I use it in a "real" fullscreen window, it appears only now and then.
I used SetForeGround(motherWindow) before,
and postmessage (WM_NULL, ...) after
and I still get a variable behavior.
here is the code:
int result = TrackPopupMenuEx(myMenu,TPM_RETURNCMD|TPM_TOPALIGN|TPM_LEFTALIGN|TPM_RIGHTBUTTON , pt.x, pt.y, myHwnd, NULL);
PostMessage(myHwnd, WM_NULL, 0, 0);
I also use fileDialog the same way (with setforeground and postmessage), which does not appear when called . I managed to get focused on it, but it takes my window out of fullscreen mode.
fullscreen window is a DX or openGL render space.
Hope someone will be able to help me ?
Thanks in advance