|
Hello,
You might want to check this out. http://codeguru.earthweb.com/propertysheet/inside_dialog.shtml
Rob
|
|
|
|
|
dear all,
i want my mfc dialog app not to appear in tasks list in close program dialog if someone hits ctrl+alt+del.
how to do this.
this should happen for all windows platform 98, nt, 2k, xp
can anyone post some code or show me links for the same
thanx
wishing all of u a very happy new year!
|
|
|
|
|
If you want to write a Virus or Worm, you have come to quite a wrong place.
Now please piss off.
I was told by a CP participant that including "plase" was good.
|
|
|
|
|
hide the dialog, then it will not be in tasks list.
try!!
|
|
|
|
|
my app is a dlg based one & its already hidden. Only an icon is visible at notification area, which on dblclick opens the dlg.
|
|
|
|
|
I want to find out that how much memory my program is consuming at certain point of execution. How can i find it ???? Actualy the application i developed, is multithreaded and at many occasions, memory is selected from the heap and returned back. I want to find out that how much memory (complete i.e stack+ heap+ etc ) is under consumption by my program. Plesae tell me ???
Note: I want to build this feature inside my application..for example SQL server can tell us that how much resources it is currently consuming. I asked this question last night and someone answered me to look at windows task manager I repeat again that I want to build this feature inside my application
|
|
|
|
|
Iterate the heaps of your app (HeapWalk) and check their usage. As for stack, you'd have to record starting stack for every thread your app creates and... Better just stick to heapwalk I believe.
For a total check, what about GetWorkingSetSize?
|
|
|
|
|
I have with no succes so i'm hoping you can maybe help me out!!!
How do you clear the selection on a CTreeCtrl in-place edit control? I tried inside OnBeginlabeledit() but had no success, perhaps the framework selects test after this call or i'm maybe...totally wrong
Perhaps i called the function wrong
SetSel(0,0);
Any help???
Thanks!
"Two wrongs don't make a right, but three lefts do!" - Alex Barylski
|
|
|
|
|
the correct form is
SetSel(-1,0);
call this function, current selection will be removed
have a try!
good luck
|
|
|
|
|
Actually...it didn't work...
Any ideas???
"Two wrongs don't make a right, but three lefts do!" - Alex Barylski
|
|
|
|
|
dear all,
i have an mfc app which starts a thread and executes exe files in the thread at specified times using CreateProcess(...) function.
i use TerminateProcess() to terminate those processes.
Everything is working fine.
i know that ExitProcess() is a better way to terminate a proceess, but when i use
ExitProcess(GetLastError()); the processes do not terminate.
how do i terminate my sub processes using ExitProcess()?
is it safe to use TerminateProcess() b'coz its seems to be working fine.
thanx
Happy New Year.
|
|
|
|
|
rishabhs wrote:
how do i terminate my sub processes using ExitProcess()?
Are you for real? That call unconditionally kills the process, not letting any cleanup code run. Why don't you be a good boy and either "return retval;" from main(), or "return whatever;" from your WinMain.
Killing processes in the way you do suggestes you want to find the most malicious way to terminate a Win32 process...
|
|
|
|
|
Hi, Can anyone here, help me regarding my problem?
I'm under way developing an intelligent monitoring system, for networks, but currently in this one phrase my system requires to notify the administrator through an e-mail, can anyone enlighten me how should i implement this feature?
dbcl,
|
|
|
|
|
There are atleast a zillion ways to do that...
Two comes to mind though:
a. Implement a subset of SMTP yourself using sockets
b. Use Outlook through Automation (COM)
"You can stand all night at a redlight anywhere in town, hailing Marys left and right but none of them slow down. I've seen the best of men go past. I don't wanna be the last..."
|
|
|
|
|
Thankx for the tips on COM/
|
|
|
|
|
Personally I'd system("sendmail ...");
Please do replace "..." with what's appropriate. If you're not using a real server, who knows what you need. Do you even have an SMTP agent, or do you need to implement that one too (i.e. reinvent the wheel again)?
|
|
|
|
|
I really appreaciate, ur helpfulness. But I didn't really clearly get your message, about the implemention.. but then Currently i'm trying to use MAPI, as suggested by PJ, its gotta work, hopefully.
|
|
|
|
|
Take a look at Simple MAPI[^]
CPUA 0x5041
Sonork 100.11743 Chicken Little
"So it can now be written in stone as a testament to humanities achievments "PJ did Pi at CP"." Colin Davies
Within you lies the power for good - Use it!
|
|
|
|
|
Thank You Very Much, I have decided to use Simple MAPI and currently amon the way trying to implemement it. Once it works i will let you know.
|
|
|
|
|
|
Hi,
I will switch to GSM programming, it's accept messages from PC through GSM tech. I was wonding which API or MFC should be used.
Thanks in advance.
Extreme programming. Do the No.1
|
|
|
|
|
stevenson wrote:
I will switch to GSM programming
Cool, I think, until I read
it's accept messages from PC through GSM tech. I was wonding which API or MFC should be used.
Huh? You really expect CP people to 1) know what API your target phone platform supports, and 2) any phone supplier being dumb enough to implement MFC in their phone OS?!
Maybe you should first get a grip on what you're supposed to do, and then, maybe, there might be some MSVC/Win32 issues we can help with?
|
|
|
|
|
depending on my knowledge
people always use pc send messages through some GSM sender, which connects to pc. the other job is operate the sender through com2 or com1
is it?
|
|
|
|
|
Hello,
I respond to a LVN_KEYDOWN event (List View in column mode) and if the user presses enter, I call another function with the following code. When this occurs, there is the audible beep. I don't want the beep. When I call this same code from the OnRButtonDown() (user presses right mouse button) there is no audible beep. I didn't find any documentation in CMenu that would help me determine why there is a beep. My assumption is that the "enter" key is still in some buffer, and the TrackPopupMenu thought it was an invalid selection?? Any thoughts on how to get rid of the beep?
menu.CreatePopupMenu();
int levels = GetDocument()->m_nPriorityLevels-1;
for (i=levels;i>=0; i--) {
menu.AppendMenu(0, IDC_PRI_0+i, GetDocument()->m_sPriority[i]);
}
menu.TrackPopupMenu(TPM_RIGHTBUTTON, pt.x, pt.y, this);
thanks!
JennyP
|
|
|
|
|
In the function that handles LVN_KEYDOWN have you tried changing the return value when Enter is handled by your code. Notification functions use *lParam for this if my memory serves me correctly.
Neville Franks, Author of ED for Windows. www.getsoft.com
Make money with our new Affilate program
|
|
|
|