|
I am currently creating a similar application. My method of displaying the data is within a list view. This is suitable for my needs since I only need to display to the user a few hundred list items with some 15 columns.
If you are coding in MFC you have a few more options available to you, for example datagrids and tables, though I have never used them.
|
|
|
|
|
i am using MFC & dialogs alright
|
|
|
|
|
There are a lots of examples for using the CListCtrl - exactily what you need!
|
|
|
|
|
Which IDE should one use between - Visual Studio and Borland CBuilder? Which of them is more popular?
|
|
|
|
|
Definitely Visual Studio is more popular and is still growing
Vision is Always important and so is your ATTITUDE.
Wishes.
Anshuman Dandekar
|
|
|
|
|
you are on a Visual Studio dedicated forum...
guess what most people here will answer...?!
|
|
|
|
|
could anyone suggest a really good book or something to get me started with VC++? I've know a decent amount of C++ but never did anything in VC++.
|
|
|
|
|
Try and get Charles Petzold for reading and go through the SDK samples that are on the accompanying CD. You will then feel a lot more comfortable in dealing with VC++
Vision is Always important and so is your ATTITUDE.
Wishes.
Anshuman Dandekar
|
|
|
|
|
|
Hi,
I am getting the handle to active window and now i want to find out whether it is an internet explorer or not.
is there any way to do that?
if it is an internet explorer i want to log the URL to a text file.
Thanks&Regards,
kk_MFC
|
|
|
|
|
There are different ways to do this
you can either use EnumWindows to enumerate all windows and match the class name.
To see if Internet Explorer is running use
HWND hExplorer = ::FindWindow("IEFrame", NULL);
if (!hExplorer)
{
hExplorer = ::FindWindow("CabinetWClass", NULL);
}
If you want to get the URL then you can see
http://www.codeproject.com/cpp/DDE_with_IE_and_Netscape.asp[^]
C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg
|
|
|
|
|
hi,
We have provided mailing facility in our application using MAPI32.dll.
The Problem we are facing is we could send mails successfully to external mail ids from our LAN but on the clientside they could not send mails .
what can be the problem ???
can that be the problem with configuring of mail clients ???(eg:outllok express)
we are usig Eudora whereas they are using outlook as their default mail client.
Any Suggestions or Links please.
Thanx in Advance.
|
|
|
|
|
How can i add lex and yacc files to mfc project.
|
|
|
|
|
by importing files within your project ?
|
|
|
|
|
|
Hi,
Could someone please suggest/point me in the direction of an article, to show how I can display an animation made up of generated images sotred in a single HBITMAP in a Windows Form PictureBox?
Many thanks in advance,
Ljubica
|
|
|
|
|
hi,
I need to get the actual amount of free space available on the hard disc. I am using GetDiskFreeSpaceEX API to get the amount of free space. The problem is that the amount of free space returned is different at different times.
Can any one tell me the reason why the value is different?
Also, Is there any other API which is much more reliable than GetdiskFreeSpaceEx?
Thank u in advance ,
regards,
nisha
|
|
|
|
|
I think, it is due to OverFlow. Check once.
Using FindFirstFile and FindNextFile methods.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/findfirstfile.asp
The above link may help u.
Chetan.
Helping others satisfies you...
|
|
|
|
|
Must be something wrong with your code, i never had any problem with it
can you paste the exact code
C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg
|
|
|
|
|
I have to store a DateTime in the registry in binary key. I think i can use the DateTime.m_dt variable which a double to store the value of the datetime. But I don't know how to convert it to binary like in Managed where we have the BitConverter.GetBytes(double). I need this urgently.
|
|
|
|
|
|
Thanks a ton Mihai!!!u posted just in time
|
|
|
|
|
I want to create a CScrollView in a dialogbased project.So i follow thsese steps :
1.createa a dialogbased project named MyDlg.
2.drag a CStatic control to this dialog,its ID is IDC_STATIC_VIEW
3.Create a new class named CMyView and its base class is CScrollView
4.Add a member function CreateView,include "MyView.h",Add a member variant
CMyView *pView;
we realize it like this:
VOID CViewInDlgDlg::CreateView()
{
CRect rect;
CWnd* pWnd=GetDlgItem(IDC_STATIC_VIEW);
pWnd->GetWindowRect(&rect);
ScreenToClient(&rect);
CCreateContext cx;
cx.m_pNewViewClass=RUNTIME_CLASS(CMyView);
cx.m_pCurrentDoc=new CDocument();
CFrameWnd* pfWnd=(CFrameWnd*)this;
CWnd* pView=pfWnd->CreateView(&cx);
pView->MoveWindow(&rect);
}
When I run this program, i found there was a ASSERT error at line 134 in viewsctrl.cpp.I correct it by overriding the function OnPrepareDC,I modified like this:
CView::OnPrepareDc(..)
Then no error ocurred.
I try to test if it can work,so i add a button in this dialog.Then I wrote this in its OnButton1 function,I wrote this:
void CMyDialog::OnButten1()
{
CDC *pDC=pView->GetDC();
pDC->TextOut(10,100,"hello");
}
Click this button it crashed.
The error happened in this line:
{ ASSERT(::IsWindow(m_hWnd)); return CDC::FromHandle(::GetDC(m_hWnd)); }
I have no idea now,someone can help me correct this error?
PS:If MyView Class is based on CView,then this error cannot be found.
As English is not my native language,i hope you can understand my meaning.
|
|
|
|
|
Hi, you can use the Doc/View Framework only in a SDI/MDI application. Sorry!
|
|
|
|
|