Hi, Below link has a very useful tutorial related to DLL implementation in VC++ 6. http://www.codeproject.org/dll/XDllPt1.asp Hope it will be useful to you. Best Regards, Irshad
irshad_bukhari
Posts
-
Using dll... -
Creating variable window...Help!Hi I am developing a variable window which looks like VC++ editor's variable window. I am able to generate a tree . I am getting the contents every time from memory & displaying it. So for every "OnStepExecute F11(my debugger command)" , i am deleting the contents of tree & regenerating the tree for variable tree. So any one knows how to store the previous status of tree, so that every-time the user need not expand the tree to look variable(array/struct) contents. or do any one have such appilcation which creates variable window. thanks in advance Irshad
-
Help!- Background color of Highlighted line in RichEditViewthanks for reply...but i want to change the background color of hightlighted line...presently it is black... so i tried to use CHARFORMAT2...but i am not able set the size attribute & i am not able send a massage for CHARFORMAT2 regards, Irshad
-
Change Background color of selected text?How to change the background color selected text from black to diffrent color in richeditctrl.
-
Variable number of parametersfor variable no. of arguments use va_arg, look into MSDN for more details
-
Help!- Background color of Highlighted line in RichEditViewHi I am new to MFC, i have written function to highlight a perticular line in richeditview class. find the routines below. But i am not able to change the background of a line (presently in black color). i am able to change the text color. I tried with CHARFORMAT2, but its not working. So plz help me out to solve this problem void CDbgView::HighlightLine(int GLineNum) { int FirstVisibleLineNum = pSCodeView->GetRichEditCtrl( ).GetFirstVisibleLine() + 1; int LastLine = FirstVisibleLineNum + pSCodeView->GetRichEditCtrl( ).GetLineCount(); int nBegin,nEnd; nBegin = pSCodeView->GetRichEditCtrl().LineIndex(GLineNum-1); End = pSCodeView->GetRichEditCtrl().LineLength(nBegin); // Select the range of charecters. CHARRANGE cr; pSCodeView->GetRichEditCtrl().GetSel(cr); cr.cpMin = nBegin; cr.cpMax = nBegin + nEnd; pSCodeView->GetRichEditCtrl().SetSel(cr); //Change the Bk Color of the line selected /*CHARFORMAT2 cf; pSCodeView->GetRichEditCtrl().GetSelectionCharFormat(cf); cf.cbSize = 84; CHARFORMAT2* pcf = &cf; pSCodeView->SendMessage(EM_SETCHARFORMAT,(WPARAM) SCF_ALL,(LPARAM) pcf); cf.dwMask = CFM_SIZE | CFM_BACKCOLOR ; cf.dwEffects = CFE_PROTECTED | CFM_COLOR | CFM_BACKCOLOR; cf.crBackColor = RGB(0,0,255); pSCodeView->GetRichEditCtrl().SetSelectionCharFormat(cf); */ pSCodeView->UpdateWindow( ); } Thanks Irshad
-
Help!thanks
-
Help!I am writing a C debugger ...I am using MFC for GUI development.. My req. is as follows & if somebody knows how to do or can give me some ideas, i will be thankful for them..Thanks David for ur first reply.. 1. open C source file which retains standard coloring of keywords of C langauge ..& 2. a new view window which display line number & have capabilty to set break-points i mean some sort of bitmap..(like M VC++ editor have) 3. a shared vertical scroll-bar between these windows. I am using RichEditView class for other operations like get line number on double-clk,etc.. Regards Irshad
-
Query: Display Line Number infront of each Line of source (MFC)Thanks for ur reply.. Sorry i am asking silly questions..as I am new to MFC...Actually i want to 1. open C source file with standard coloring of keywords of C langauge ..& 2. a new view window which display line number & have capabilty to set break-points ..(like M VC++ editor have) 3. a shared vertical scroll-bar between these windows. I am using RichEditView class for other operations like get line number on double-clk,etc.. Regards Irshad
-
Query: Display Line Number infront of each Line of source (MFC)Hi, I want to open & display a file(ex: .C) with Line Number to be displayed infront of each line. (Ex: Like C Debugger have) Plz. send me code if anybody written... irshad_b@indiatimes.com Thanks in Advance, Regards, Irshad