|
Hello all. I'm new developing with Dev C++. But I'm worried. I don't see MFC library installed with Dev C++. Is there any thing I can do to use MFC with DevC? Where can I get the source and libraries? I tried looking at Microsoft's, but I found nothing.
Thanks for your help,
Kith.
|
|
|
|
|
that's normal, MFC are microsoft libraries for window oriented programmation. if you work with borland, you'll find other classes, and with DevC++ (that I didn't even heard of before) other else...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
toxcct wrote:
if you work with borland, you'll find other classes...
Which I think they refer to as OWL. It's been nearly 15 years since I've used Borland's product so I could be mistaken.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Thanx for your replies. But what I meant is that is there any way of using MFC with other compiler/environment?
|
|
|
|
|
Anonymous wrote:
But what I meant is that is there any way of using MFC with other compiler/environment?
Nope, unless you purchase something like this[^]
My programming blahblahblah blog. If you ever find anything useful here, please let me know to remove it.
|
|
|
|
|
Possibly. I seem to recall a vague discussion about a library that someone had written that allowed MFC to be ported to Linux (or Unix). I have no details.
On Microsoft's site, it mentions that MFC has been designed to be portable to a number of platforms:
Because MFC is built on top of the Win32 API, any platform that supports the Win32 API can be targeted by an MFC application. A powerful aspect of MFC portability is that Win32-based platforms are not limited to Microsoft Windows. Through the use of the Windows Portability Layer, MFC applications built on Win32 can also be built to run under the Macintosh System 7 operating system.
MFC applications can target a large number of platforms today:
Microsoft Windows 95
Microsoft Windows NT running on Intel® processors
Microsoft Windows NT running on MIPS® processors
Microsoft Windows NT running on Alpha AXP™
Microsoft Windows NT running on PowerPC™
Microsoft Windows 3.1 using the Win32s® API
Apple® Macintosh (using the 68000-series instruction set)
Apple Macintosh (using the PowerPC™ instruction set)
In addition, Microsoft continues to working with companies licensed to provide the Windows API on UNIX and VMS™ platforms to make sure that developers can easily port their MFC applications to these platforms as well. These products are available today.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
DavidCrow wrote:
Which I think they refer to as OWL
OWL was discontinued a long time ago, and BTW that's why I switched to VC++
My programming blahblahblah blog. If you ever find anything useful here, please let me know to remove it.
|
|
|
|
|
toxcct wrote:
DevC++ (that I didn't even heard of before)
It's an IDE for the MinGW compiler.
My programming blahblahblah blog. If you ever find anything useful here, please let me know to remove it.
|
|
|
|
|
Hai Frens
Can any one guide me how to populate the MSFlexGrid using the data in XML file ? I need to traverse thru the XML file fetch the data and populate in the grid. kindly give ur suggestions.
Thanx
|
|
|
|
|
does anyone know how to communicate with the Windows MIDI driver,thru vc++??
|
|
|
|
|
Hello Friends,
I am using CListView in which I am displaying few images and underneath them I have some text for each Image. I want to change the color of the text of the individual item depending upon a boolean value for example when the boolean value is true then the text color of a selected item should be red and rest of the item's text color should be blue.
If I am using SetTextColor() member function then it is updating for all the items but only one item should be updated. Please help regarding the above problem
Thanks in advance.
Neelesh K J Jain.
|
|
|
|
|
Look at the articles here on CP in the ListView/ListCtrl section...there are tons of examples of owner/custom drawn list controls which do exactly what you request.
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
Hi Hockey,
I had tried them but my problem arises whenever I refresh the window ( i.e., If I Minimize or maximize or restore the window) the last color used for the text is being used which shouldn't happen
Neelesh K J Jain.
|
|
|
|
|
|
in my regular MFC dll project, i create a dialog resource assoicated with a class CTestDlg, and it can normally show in my client application which uses the dll.
But after i added a ActiveX control(IE Control, for example), the dialog can't be displayed and if i call a method of the ActiveX control, the debug assert failed dialog will appear: ASSERT(m_pCtrlSite!=NULL) fails.
so how can i use ActiveX control correctly in DLL?
thanks.
|
|
|
|
|
Make sure you call AfxEnableControlContainer() before using any ActiveX control.
|
|
|
|
|
Thanks
i have already called AfxEnableControlContainer() in the InitIntstance in the dll project, but still get the same problem...
|
|
|
|
|
Make sure also your activeX control is registered (I know this sounds like a stupid suggestion but you will have these kind of results if your ActiveX is not registered).
|
|
|
|
|
Thanks, but i use the IE control and i think it must be registered,
i have got the solution from a forum:
HRESULT hr = OleInitialize(NULL);
if (hr == S_FALSE)
{
OleUninitialize();
}
// Call if using OLE Controls
AfxEnableControlContainer();
// Register all OLE server (factories) as running. This enables the
// OLE libraries to create objects from other applications.
COleObjectFactory::RegisterAll();
Thanks anyway~
|
|
|
|
|
Hi !!
I'm developing an app for a computer store. It can draw some barcodes (thanks to the manual on this site) and now what I want is to know how to send to the display that shows the article and price when the barcode reader reads article's barcode.
Display must be at COM1.
Thanks !!
|
|
|
|
|
Hello,
I was hoping someone could point me in the right direction with my problem. I have been developing in Access for quite some time now and I am increasingly finding the limitations on form design frustrating, so I have decided to go with good old C++ programming. However I have no desire to create a DB engine when MS Access does such a nice job. I was wondering if someone could provide suggestions on references I could obtain to allow me to develop my interface and logic in C yet still use Access/SQL server as the backend database? Any help will be greatly appreciated.
|
|
|
|
|
Yup. You can use a variety of APIs to do this; ODBC, DAO, ADO or OLE DB, for example.
For Access only, DAO used to be the choice. However, my personal favourite is OLE DB. This (like ODBC and ADO) is driver or provider based, and allows you to write code that works against any database. That's the theory, but not always the practice, since there are driver/provider specific bits that make it more difficult.
I use the ATLDBCLI.H header (supplied with VC6 and later) which allows you to manipulate recordsets based on pre-defined SQL and known columns, as well as on dynamic (user-defined) data. To make the most of this, you should start with something like the SAMS "Database Programming with Visual C++ 6 in 21 days" book, but don't expect it to take only 21 days!
What you will miss in straight C++ is data-aware controls, and the reporting, unless you use something like Crystal Reports. I keep meaning to write a CP article on C++ report generation, but never seem to have the time For grid stuff you can use the excellent Grid control from Chris right here on CP.
Steve S
Developer for hire
|
|
|
|
|
Thankyou for the advice. Is there other references that you know of besides the SAMS 21 Day book? I am usually not a big fan of those books; I usually find them lacking with respect to in depth coverage of the subject. I will look into the book though, just wondering if you knew of any others.
|
|
|
|
|
I created a MDI with Visual C++ .NET. When I execute my program it shows a default client window. I want to get rid of that window but I cannot find how to disable it. Does anybody know?
Willem
|
|
|
|
|
From the CCommandLineInfo::m_nShellCommand docs:
BOOL CMyWinApp::InitInstance()
{
...
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;
if (!ProcessShellCommand(cmdInfo))
return FALSE;
...
};
--Mike--
LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ | You Are Dumb
|
|
|
|