|
Find MSdev.exe in
Program Files\Microsoft Visual Studio\Common\MSdev98\bin
and drag/drop it to the part of the start menu you wish.
Happy programming!!
|
|
|
|
|
1. Where can I find a process-quering-class that can do the following:
I. Get a process's memory usage at a specific given time (Must).
II. Get a process's CPU usage at a specific given time (Must).
III. Can enumerate all running processes (Optional...).
2. I want to download CPop3Connection class that I found at this site
using the search engine. Unfotunately I can't find it.
I'll be very glad if someone will leave a link to it...
--BlackSmith--
"With the help of all mighty", 2001, Me.
|
|
|
|
|
Hi,
I´m using Automation to have in one splitter window a Word window and in the right pane some buttons to add graphics tables...
The problem comes on XP, when I close that window, I get some strange error when it´s close ( OnSize is called after the window is destroyed), here is the code i call
void CReportFrame::OnClose()
{
TRY {
CWnd* wnd = m_wndSplitter.GetPane(0, 0);
wnd->DestroyWindow();
delete wnd;
CReportDoc* pDoc = GetReportDoc();
COleClientItem* pItem = pDoc->GetPrimarySelectedItem(GetReportWordView());
if (pItem != NULL) {
pItem->Delete();
}
CFrameWnd::OnClose();
delete pItem;
} CATCH(CException, e) {
AfxMessageBox("CReportFrame::OnClose : exception caught.");
ASSERT(false);
e;
} END_CATCH;
}
Thanks in advance, Bye !
Braulio
|
|
|
|
|
Maybe you should use: m_wndSplitter.DeleteView(0, 0);
instead of:
CWnd* wnd = m_wndSplitter.GetPane(0, 0);
wnd->DestroyWindow();
delete wnd;
- God bless the World
|
|
|
|
|
I'm trying to call a Property Sheet from an explicitly linked
Extenstion DLL.
The DoModal function is called but no Window appears, I get the trace message "CPropertySheet Returned Error code 0"?? But that means Success!
It Works for Dialogs etc..
Has anybody else had the same problem?
cheers
Asim
.........
I'd rather be rich than stupid.
|
|
|
|
|
As a possible aolution, have you called AFX_MANAGE_STATE in the DLL code so that the correct dialog resources can be found?
Roger Allen
Sonork 100.10016
|
|
|
|
|
Hey,
I have a control derived directly from CWnd.
The WM_MOUSEWHEEL message is never sent to my window/control, I have also tried with spy++, but no WM_MOUSEWHEEL
I have tried to define _WIN32_WINNT 0x0400 in stdafx.h, but it made no difference...
Anyone got an idea?
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
E-mail me the source code + your E-mail.
--BlackSmith--
"With the help of all mighty", 2001, Me.
|
|
|
|
|
What OS has this problem?
Michael
|
|
|
|
|
I'm currently running WinXP Professional...
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
I want to change the common dialog box for all applications, new, old, all of them. Should I use a CBT Hook or intercept the API itself. Are there other options? Any opions?
Thanks
Ralph Krausse
|
|
|
|
|
Microsoft Detours Library
- God bless the World
|
|
|
|
|
How does one go about to implement handlers for buttons that are created dynamically at runtime? E.g. I want to create a button which should run a program when pressed. The program to run is configured by the user. I was thinking of storing the program name within the button object. Then I could use one handler for all of the buttons, but how do I know which button it was that called the handler (in order to retrieve the program name)?
Cheers,
/Fredrik
Do you Sonork? I do! 100.11430:PhatBoy
|
|
|
|
|
You can use ON_COMMAND_RANGE to handle a range of commands:
class CMyDialog : public CDialog
{
afx_msg void OnHandleCommands(UINT nID);
DECLARE_MESSAGE_MAP()
};
BEGIN_MESSAGE_MAP(CMyDialog, CDialog)
ON_COMMAND_RANGE(ID_COMMAND_FIRST, ID_COMMAND_LAST, OnHandleCommands)
END_MESSAGE_MAP()
void CMyDialog::OnHandleCommands(UINT nID)
{
// nID contains the ID of the command to handle
}
|
|
|
|
|
i have made a dialog.. resize it by hand (it's an easy one)
now i've tried to make this whole shista flickerfree.. but i don't get it flickerfree..
i've tried "clip children" and "clip siblings".. but it still flickers..
any ideas?
thanks in advance
bernhard
Sometimes I think the surest sign for intelligent life elsewhere in
the universe is that none of them ever tried to contact us.
|
|
|
|
|
Override the dialog WM_ERASEBKGND message and do this :
BOOL CAnalysis::OnEraseBkgnd(CDC* pDC)
{
CRect clip ;
static int dont_erase_indexes[] =
{
IDC_WAVELENGTHS_LABEL,
IDC_COMPONENTS,
IDC_COMPONENTS_SPIN,
IDC_HSCROLL
} ;
pDC->SaveDC() ;
for (int i = 0 ; i < sizeof(dont_erase_indexes) / sizeof(int) ; i++)
{
GetDlgItem(dont_erase_indexes[i])->GetWindowRect(&clip);
ScreenToClient(&clip);
pDC->ExcludeClipRect(&clip);
}
pDC->GetClipBox(&clip);
pDC->FillSolidRect(clip, GetSysColor(COLOR_BTNFACE));
pDC->RestoreDC(-1) ;
return FALSE;
}
Just add the ID's of the control on the dialog to the static array.
Roger Allen
Sonork 100.10016
|
|
|
|
|
thank you for your reply..
now i know that i the control itself has got some problems with memory-drawing too..
but i really like that you can learn alot from code from other people
(i didn't knew that you could give -1 as a parameter to RestoreDC)
great thanks
Bernhard
Sometimes I think the surest sign for intelligent life elsewhere in
the universe is that none of them ever tried to contact us.
|
|
|
|
|
|
Do you mean Common Gateway Interface or Computer Generated Images?
|
|
|
|
|
I mean Common Gateway Interface,such as all files of cgi-bin .
|
|
|
|
|
Normally (unless the admin has screwed up directory permissions) you can't download cgi files. The only thing you can get is what the cgi outputs.
Todd Smith
|
|
|
|
|
Hi, all!
Does anyone know the FASTEST way to reach RGB data contained in a CBitmap object?
In a prototype I use CDC::GetPixel, but I think it is highly sub-optimal.
May you help me?
Thanks
|
|
|
|
|
Copy it into a DIBSection, and you've got it in a BYTE**. For an example, check out my code online at www.wdj.com, in the Sept 2001 issue. I'll also point out it is stored BGR.
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
I have a program that uses Intel Performance Library Suite. Theprogram cannot be compiled. Error message is "fatal error LNK1104: cannot open file "ipl.lib". What should I do?
|
|
|
|
|
find that file on your disk, and make sure your project settings specify that directory as one of the lib directories.
Sorry to dissapoint you all with my lack of a witty or poignant signature.
|
|
|
|