So meaning all dynamic class array ex. CArray, CObArray, etc. are probably created using new, malloc, calloc, & realloc and probably the one who created it is expert using it?
Thanks for the...
Type: Posts; User: Alextrons
So meaning all dynamic class array ex. CArray, CObArray, etc. are probably created using new, malloc, calloc, & realloc and probably the one who created it is expert using it?
Thanks for the...
No! I found already what I really want and this is the link:
http://www.codeproject.com/cpp/extcol.asp#xx29237xx
however, I don't think it will run in Windows9x.
malloc and new are good...
Is anybody know how to create a 3 dimentional dynamic array without using new and malloc? This array should grow automatically when we add an item.
Thanks,
Alextrons
Yeah! Maybe you're right and I found this site:
www.codeguru.earthweb.com/buttonctrl/ccaptionbutton.html
Thanks
Alextrons
Hi, I'm just curious. Is there a way to get the Window handle (hWnd or CWnd) of Minimize, Maximize and Close button of a window and can we put a bitmap on it? How?
Thanks,
Use the ff. code:
GetDlgItem(BUTTONID)->EnableWindow(TRUE);
>>I want the user to be able to open only 2 documents at a time.
Just do it this way:
1. In your class CChildFrame, add a private static integer variable just called m_FrameCtr like; static...
Tesita,
For your problem of highlighting text, change the base class of your view to CEditView. Its all there.
Try it...
Assuming your program is dialog base and you're using MFC, try this:
declare first 3 variable like these:
COLORREF m_crText;
COLORREF m_crBackground;
CBrush m_brush;
in your OnInitDialog...
Sorry forge I have no Idea of using public inside .lib file. I'm using Borland C++ 4.5 and I have no idea also with ICC. Maybe somebody could help us.
Inside .lib file all functions and variables are treated normally same as ordinary or as if it is included in your program. Just make sure that you add your .lib file into your project and you also...
I have a simple SDI program using MFC that open some file. There is no problem with its operation but I observed that even I already open a lot of file the Recent File in the menu is always disable....
Ah...Ok thanks...
So can you please teach me how to do it in Windows.
So can teach how to do it in Windows?
Since you are using MFC, use CString for your buffer to erase the doubt and start first with the simple MessageBox function and then edit afterwards, like the code below.
//char buff[1024];...
Thanks Adrian for the idea, but how about _inp() and _outp() functions? Can we use this to get the address of LPT1? And you mean that there is no "ptraddr=(unsigned int far*)0x00000408; " kind of...
I found the code below as a DOS program and I need it to include in my MFC Windows program but I got an error of "Memory could not be read", Is there another way to handle this in Windows?
This is...
I already programmed an interrupts in DOS environment but I don't know how to do it in Windows. Could someone help me how to do it? example: How to handle the timer tick (0x1C) interrupt and hardware...
As an addition info; Mutex is derive from two words "Mutually" and Exclusive". It is very usefull to synchronize threads running in different processes.
Hi, I'm using Visual C++ 6.0 and I have a program that have a color that I would like to fade and I beleive that changing the luminance of RGB color is solution. Is there anybody know how to alter...
Thank you very much for the idea. Now I know the limitation.
Hello,
Right now I'm very new to a multi-threading programming and from the example I already applied it to my simple program and I found out that when I set my new thread to a HIGHPRIORITY,...