|
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
|
|
|
|
|
|
Ive written a small program with two dialogs using ADO datacontrols and Microsoft datagrid the program works.
What I want to is chnage the connect string as the second dialog is opened so that I can make my app portable when I try to do this I get assertion error if place the code in button on the dialog it works. Any suggestions
Donald
|
|
|
|
|
Hi
How do I remove that border that surrounds the window when you create it with Win32?
|
|
|
|
|
Create it with just the WS_POPUP and WS_VISIBLE styles.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
I need to develop a program for printing deocuments. when I will setup this program in a machine, the setup will automatically create a icon (not shorcut) in desktop. when user will right click on this icon the menu will be customized, when user click on properties, the program will bring its own property window. like "MyComputer", Recycle Bin", "Outlook".
is it possible? can you guide me how I can implement it, Please.
Saifur Rahman
|
|
|
|
|
Saifur Rahman wrote:
is it possible
Yes
Saifur Rahman wrote:
can you guide me how I can implement it,
Read the articles in the shell programming section. Mike Dunn has written a series of articles which if you follow sequentially...you should be able to do what you wish.
Probably of most interest to you[^]
Cheers
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|