Dear All, I am trying to log the methods using Aspect oriented progamming ( AOP) and custom attributes. Use a class derived from ContextBoundObject with a custom attribute. IMessageSink and IContextProperty are aslo implemented to catch the sink messages. This sample worked fine. But the problem is the this custom attributes work on class level only( i have already tried AttributeTargets.Method). So all methods will be logged. but i want only selected method by giving the attribute on methods. Thanks
ATM CodeProject
Posts
-
AOP logging -
Javascript Image Flickering issueI have an asp image control. And I have done the image zooming dynamically using javascript. It worked perfecltly. But for very high resolution images image will flicker while zooming(in IE only in all other broswers there is no image flicker). Locally there is a slight flickering only but after publishing my aapln there is high image flickering(IE). How to avoid these image flicking in IE? Pls help Thanks in advance
-
ESBHi all, Any one know about free/open source Enterprise Service Bus(ESB) that supports C#.
-
Accessing shared folder through webHi all, I am using my shared folder as as a server path in Asp to give a download option in my web application.That is user can download files from my folder. But after hosting in the localhost dowloading shows error(i think some security problem) help me. regards arun
-
Splitter window problemWow!! it works well.Thank u very much :-\
-
Splitter window problemHi All, --------------------- | | | | | | --------------------- | | | | | | --------------------- I need a splitter window (4 way) as shown above. I use the code m_wndSplitter.CreateStatic(this, 1, 2)); m_wndSplitter1.CreateStatic(&m_wndSplitter,2,1,WS_CHILD |WS_VISIBLE, m_wndSplitter.IdFromRowCol (0, 0)); m_wndSplitter1.CreateView(0, 0, RUNTIME_CLASS(CLabel), CSize(250, 15), pContext) ; m_wndSplitter1.CreateView(1, 0, RUNTIME_CLASS(CLView), CSize(250, 500), pContext) ; m_wndSplitter2.CreateStatic(&m_wndSplitter,2,1,WS_CHILD |WS_VISIBLE, m_wndSplitter.IdFromRowCol (0, 1)); m_wndSplitter2.CreateView(0, 0, RUNTIME_CLASS(CLabel), CSize(250, 15), pContext) ; m_wndSplitter2.CreateView(1, 0, RUNTIME_CLASS(CLView), CSize(250, 500), pContext) ; But i got this --------------------- || | || | --------------------- || | || | --------------------- I know that m_wndSplitter.CreateStatic(this, 2, 2)); is possible for this 4 way splittering. But here wndSplitter1 & wndSplitter2 are the object of different splitter classes Help me..
-
ReportView StyleThanks for the reply can i set the color of text ?..
-
ReportView StyleHi all, How to change the font,size of the column header in the report style of the list view.Any one help me.
-
Windows Task ManagerHope It help u. www.codeproject.com/KB/threads/killprocess.aspx[^] .
-
Windows Task Managerpls explain did't got it.
-
Windows Task Manager[Message Deleted]
-
SuggestionHi, Please add some information about important persons(like MVPS) by the code projct team. It can be some words about their contribution(or display their certificate).
-
Folder CopyTry this code
bool CMainFrame::CopyFun(LPCTSTR lpctszSrc_i,LPCTSTR lpctszDetn_i)
{int nSrcLen = _tcslen(lpctszSrc_i);
int nDetnLen = _tcslen(lpctszDetn_i);TCHAR *pszFrom = new TCHAR[nSrcLen];
TCHAR *pszTo = new TCHAR[nDetnLen];_tcscpy(pszFrom, lpctszSrc_i);
_tcscpy(pszTo, lpctszDetn_i);pszFrom[nSrcLen] = 0;
pszFrom[nSrcLen+1] = 0;pszTo[nDetnLen] = 0;
pszTo[nDetnLen+1] = 0;SHFILEOPSTRUCT stFileop;
//stFileop.hwnd = NULL; // no status display
if("Copy" == m_csType )
{
stFileop.wFunc = FO_COPY; // copy operation
}
else
{
stFileop.wFunc = FO_MOVE; // cut operation
}stFileop.pFrom = pszFrom; // source file name as double null terminated string
stFileop.pTo = pszTo; //Destination//stFileop.fFlags = FOF_NOCONFIRMATION|FOF_SILENT; // do not prompt the user
stFileop.fAnyOperationsAborted = FALSE;
stFileop.lpszProgressTitle = NULL;
stFileop.hNameMappings = NULL;int ret = SHFileOperation(&stFileop);
//delete [] pszFrom;
//delete [] pszTo;return(ret == 0);
}
Here lpctszSrc_i & lpctszDetn_i are the src & detn full path.
-
How to implement Tab order to the controls in a MFC Dialog boxHi, LayoutMenu->TabOrder
-
Relacing the image in CImageList contlHi, I could't get ur real problem. Any way, i already tell that set hot and cold image list for tool bar.Hot image list is for the image when we focus on the toolbar button.
-
Problem running on other pcHi, Change the Microsoft foundation classes in the projet settings(projectmenu->settings->general tab)to Use MFC in a static library. Then execute the appln again .Then copy the exe file and try to run in another pc.
-
Changing Background color and Static Control background color.Hi, Create a class for the control, then return the brush in OnCtlColor()(in the new class).Just try it iam not sure about the result.
-
Hooking into mouse messages in a Command/MSDOS windowPlease mention the problem clearly.
-
Changing the Image on the Toolbar button.Hi, You can set cold and hot images for the toolbar. This is the sample code. CImageList img; img.Create(IDB_HOTTOOLBARS, 22, 0, RGB(128, 128, 128)); m_wndToolBars.GetToolBarCtrl().SetHotImageList(&img); img.Detach(); img.Create(IDB_COLDTOOLBAR, 22, 0, RGB(255, 255, 255)); m_wndToolBars.GetToolBarCtrl().SetImageList(&img); img.Detach(); Here m_wndToolBars is the CToolBar object.And IDB_HOTTOOLBARS and IDB_COLDTOOLBAR are the Bitmap imges in the resourse editor. Regards Arun
-
Passing structure through variantThanks for the reply. I already got this article.But recordinfo failure occurs at that time. Do u have any example?. Now i can pass the structure to the COM server without using VARIANT.