|
I already looked all over for very simple editor that only to be run in ms-dos box.
it should use FILe* studio for opening and saving text files.
I just need sample or example.
|
|
|
|
|
I don't understand what you are looking for . You want a text editor ok, but what has MFC to do with that ? Take for example notepad, it is a very (very) basic text editor, so what is the problem with this one ?
Mouse_103 wrote: it should use FILe* studio for opening and saving text files.
Uuuuhhh ??? What do you mean.
Or maybe you want to have the sources code of a text editor ?
|
|
|
|
|
Hi,
In my application I need to draw a predefined bitmap into a rounded
area , but the CDC::BitBlt(...) allows me to draw the bitmap into
a rectangular area only.
Is there an API to draw a rounded bitmap?
If not - should i use the CDC::SetPixel() and CBitmap::GetPixel() instead?(I need to refreash the screen every 70msec...)
With best regards,
Eli
|
|
|
|
|
In theory, that's simpler to do it with CRgn class member methods. Good luck and keep the good coding!
|
|
|
|
|
First , thanks for the (very) quick reply .
I thought about the CRgn option,but i couldn't find a function to draw to the created region....
Regards,
Eli
|
|
|
|
|
You would use the region as a "cookie cutter" to trim the bitmap (which is square).
Steve
|
|
|
|
|
Hi Steve,
I know how to create that region , but how can I draw the bitmap into that region?
Regards,
Eli
|
|
|
|
|
|
Thanks , it's working
|
|
|
|
|
MaskBlt() was created for exactly this purpose. Specify DSTCOPY as the background ROP and you'll be right.
Alternatively, you could create a region and select it into the destination device context as the clipping region (SelectClipRegion ) and just use a normal BitBlt() of the full area.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
How should CAD primitives draw such as lines, circles, polygoan,splines,arc etc. using Visual C++/ MFC, For two dimensional drawing and how it convreted into Three dimensional view. Shall code is avilable for doing so.
|
|
|
|
|
Dude,
Probably you dont know VC++. Get a good book and learn.
Contact Device will enable you to draw.
Try OPENGL too.
bye
row
|
|
|
|
|
Reposting you question won't help. What is the problem with the things we suggested previously ?
|
|
|
|
|
Hi.
I've been using the crtdbg functions for a while to find memory leaks, and it works great when I use the following preprocessor statements.
#ifdef _DEBUG
#define _CRTDBG_MAP_ALLOC
#include <crtdbg.h>
#define DEBUG_NEW new(_NORMAL_BLOCK, __FILE__, __LINE__ )
#define new DEBUG_NEW
#endif
As you'll know, this way the crtdbg functions show the correct file and line where the memory of the leak was reserved, using the "new" operator.
The problem is that, if I want to use the "new(std::nothrow)" in my programs, I need to include the "new" library, and that creates a conflict with the "new" redefinition, causing the "nothrow" to be an undeclared identifier. Of course, if I comment the #define new DEBUG_NEW macro, the program compiles and runs great, but all the leaks are referenced to crtdbg.h file.
Anyone has a solution for this?
Thanks in advance.
-- modified at 9:38 Tuesday 11th April, 2006
|
|
|
|
|
|
Create MFC project in the appwizard select SDI option.
Better get a good book on MFC and learn first before straightaway posting here.
Bye
Row
|
|
|
|
|
Well, MFC will generate for you the source code for a SDI application.
Could you be more specific in your post, please? I'm tring to help you.
|
|
|
|
|
Hello,
I am a CAD/CAM engg. i want to know that how the 2D and 3D geomtry made using MFC.
|
|
|
|
|
|
What do you want to know exactly ? Do you want to know how to render 2D and 3D objects with MFC ? This is not feasible directly (at least for the 3D rendering). You'll have to use some external library (like OpenGL or DirectX for example, or even existing ActiveX controls that can do the job for you).
|
|
|
|
|
Hi Cedric Moonen
very good
|
|
|
|
|
Hi you may find a complete FREE cad package here : http:\\www.opencascade.org
Regards
Jerome
|
|
|
|
|
hai to all
i would like to know how can we select a particular directory by using the CFileDialog . And display the selected directory in a static text or edit box.
|
|
|
|
|
BOOL CCreateDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
m_Enter_Location = "C:\\DS\\Index\\";
UpdateData(FALSE);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
|
|
|
|
|
Hi parichaybp,
Can you be more specific
|
|
|
|