|
I assume you are using MSVC6 and haven't applied the bugfixes.
|
|
|
|
|
Which open source diff source code is the best to use?
I tried a few and i'm having trouble, some just won't compile under VC++6
(sorry i didn't ask this in last nights question - it slipped my mind).
Thanks very much.
Colin
|
|
|
|
|
There are several diff articles here on CP you can look at. LCS is probably the best approach.
Neville Franks, Author of ED for Windows. www.getsoft.com
Make money with our new Affilate program
|
|
|
|
|
|
I think that's a bit advanced for what i need.
I just need source that will output a diff summary when passed two filenames.
any simpler ideas?
thanks!
ps. thanks everyone that has helped me here - I'm getting quite a lot better thanks to your kick starts - cheers
|
|
|
|
|
Hi all!
I need to split my main screen into several panes using the CSplitterWnd. The problem is that I want the different splitter have a fixed size (the user should not resize them).
How can I do it? Is there a specific style for disabling resizing ??
Thanks
|
|
|
|
|
Off the top of my head.
At the very least a frame or pane needs to recieve a WM_SIZE message, use the Visual C++ debugger to find out for sure. If you override these methods/functions/messages you can stop the size of the any window from changing. Do not forget to take into account windows smaller than you expect and or weather the user wishes to minimize the application, also screen resolution may play a part (if it is to big to run in safe mode it is to big).
Trust in the code Luke. Yea right!
|
|
|
|
|
Yes it could be a solution but it's not really what I wanted. I just want the separation between the panes not to be mobile (so, when the mouse arrive on it, the cursor don't change also to a sizeable cursor).
Is it possible to do such a thing?
Thanks
|
|
|
|
|
Use the class wizard to create a CSplitterWnd derive class. Add message handlers for WM_LBUTTONDOWN, WM_MOVEMOUSE, and WM_SETCURSOR. Then do the following:
Replace the defaults:
CSplitterWnd::OnLButtonDown(nFlags,point);
CSplitterWnd::OnMouseMove(nFlags,point);
CSplitterWnd::OnSetCursor(nFlags,point);
With:
CWnd::OnLButtonDown(nFlags,point);
CWnd::OnMouseMove(nFlags,point);
CWnd::OnSetCursor(nFlags,point);
Then use your dirived class in place of CSplitterWnd.
FYI: The above imformation is in the book "The MFC Answer Book" By Eugene Kain. Search for "MFC FAQ".
Trust in the code Luke. Yea right!
|
|
|
|
|
Great !!
That's much more elegant
Thanks a lot
|
|
|
|
|
is there any way to get pixel size from HBITMAP?
(i want to center it into rectangle)
(most often it is loaded by LoadImage - maybe resource pixel size is available?)
t!
|
|
|
|
|
Use GetBitmapDimensionEx to get the dimensions of the bitmap.
|
|
|
|
|
but help speaks you must call set before (and it is not in pixels)
t!
|
|
|
|
|
First of all yes I know the answer, but if your are using Visual C++ and MFC, a simple search of the help sytem will give you the answer.
Example: (You could write this)
CSize GetSizeOfBitmap( CBitmap& MyBitmap )
{
BITMAP bmp;
MyBitmap.GetBitmap(&bmp);
return CSize(bmp.bmWidth,bmp.bmHeight);
}
------------------------------------
Trust in the code Luke. Yea right!
|
|
|
|
|
thanks
sometimes look and see is not the same
t!
|
|
|
|
|
Hello,
How about this way?
--------------------------------------
BITMAP bitmap = {0,};
GetObject(hBitmap, sizeof(BITMAP), &bitmap);
--------------------------------------
I wish this way is helpful to you.
Thanks.
|
|
|
|
|
I need to put data into array form. My data is :
0x12 0x24 0xAB
0x11 0xAA 0xBB
0xCC 0xDD 0xFF
Array[x][x] is to be created after counting the number of character on first row of the data . Then every 0x__ is store to one element example: Array[0][0] = 0x12, Array[0][1] = 0x24.
And also I need to be able to check if every 5th character is a spacing and every 1st character and 2nd character of each element is in 0x form. IF it is not 0x then a msg telling which Array[x][y] is incorrect or something like that.
I heard of using vector but I don't how I can give the specific location of the incorrect array[x][y]. But if I use array, my array size cannot be flexible as array size got to be declared with a size, where the 'size' cannot be given a value only after counting the number of characters
in the first row of data. Anyone can help?
|
|
|
|
|
i have bitmapbutton derived item
till the moment it has no BS_OWNERDRAW style is all normal (see next)
but having it (necessary for its functionality) it has no BS_PUSHBUTTON and BS_TEXT flags (spy look) (and it seems no way to set them) and: it never gets "default" button rectangle around i could understand its draw is wrong so it is not drawn but it seems problem is somewhere else - it jumps to another (ok) control
(does not matter if is BS_OWNERDRAW set into .rc or by function...)
is there something i'm doing wrong?
t!
|
|
|
|
|
|
:(I am making a C++ project on dialog base using MySql database. When I build it an error message appears:"C:\User\C++\SqlDialog\mysql.h(5) : fatal error C1083: Cannot open include file: 'afxdtctl.h': No such file or directory". I checked. There is no such header file in my computer. I use MS Dev.studio, rev. 5.
Pls. help me to solve my problem!!
|
|
|
|
|
I have been unable to pass a value from one class to the other in an SDI application in MFC. I tried it by declaring a static variable in a header file and then including this header file in both the classes.Then by incrementing value in one class and I tried to get in in the other class. That is not working properly. It is not updating the value.
Plz suggest me how to do it(i.e pass val. from one dialog to the other );
Suggest me the easiest ways of doing so. Because I am a beginner in VC++ so kindly guide me step by step.
Reply me soon
|
|
|
|
|
Same problem i am facing.
|
|
|
|
|
I want to incorporate a property sheet and pages in side a Form view.
Any solution??
With Thanks and Regards
--Kamesh
|
|
|
|
|
You need to do the following:
1) Add a frame control with ID_PLACEHOLDER into your dialog and use it to define size and position of the property sheet in your form/dialog.
2) In OnInitialUpdate() method of your form class use the following to create the property sheet (m_sheet is a member of the form class, a pointer to a property sheet class ):
CWnd* pwndPropSheetHolder = GetDlgItem(IDC_PLACEHOLDER);
m_sheet = new CMyPropertySheet(pwndPropSheetHolder);
if (!m_sheet->Create(pwndPropSheetHolder,WS_CHILD | WS_VISIBLE,0))
{
delete m_sheet;
m_sheet = NULL;
return;
}
Pavel
Sonork 100.15206
|
|
|
|
|
Thanks for the sugesstion , i have done as u suggesst, but system is failing in allocating memory for the property sheet pointer, and returning.
What should i do??
With Thanks and Regards
--Kamesh
|
|
|
|