|
Infinite1UP wrote: There is nothing wrong with the path as the files that it says aren't there are indeed present and intact at that location.
Logically thinking, this is not possible, so we need to consider why the program is throwing this error. The only thing that I can think of is that the path being used to access the file is somehow incorrect, but the path put into the message is the correct path of the actual file. I can only suggest that you step through the program with the debugger until you get to the point of failure (or set a breakpoint at that line) and check the values of all the relevant variables to see what is going on.
|
|
|
|
|
I'm new to MFC and I'm trying to get the grid control to work in a very basic fashion. I really headed down this path because I wanted a better multi-column listbox than it seemed that MFC supported. I probably don't need a Y-axis set of buttons (vertical column 0) but I do need column header buttons that can be used for sorting the rows etc. The demo program does more than I need. I tried to create a custom control on a new form and display a simple grid control and it is failing.
Q. Can the grid control be configured to not display the y-axis buttons?
Q. Does anybody have source-code for a more simple multi-column listbox example using this grid-control like I am describing?
Thanks!
|
|
|
|
|
|
Use rather native Win32 Grid controls, mainly undocumented ones which can do everything... with a few lines of code
|
|
|
|
|
hello friends
i made an application, it works fine in all OS`s except vista 32 bit.
i believe i am missing some macro and i don`t know what macro i should define in order to run my application on vista
Any suggestion is greatly appreciated
Thanks
|
|
|
|
|
Aabid wrote: Any suggestion is greatly appreciated
I suggest you consult a mind reader.
|
|
|
|
|
have u consulted Michael Schubert
|
|
|
|
|
Michael is saying that we have no idea what your problem is. All you have told us is that your program does not work; and yet you seem to think we might know how to fix it.
|
|
|
|
|
Hm, yeah. I did not think of the possibility that he might not get the hint.
|
|
|
|
|
|
|
You should post it in the Collaboration / Testing [^] forum.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi,Here is the question:
How to develop a Peer-to-Peer networking conference through Windows Peer-to-Peer SDK?
I know that through Microsoft's Windows Peer-to-Peer SDK we can develop the Peer-to-Peer applications convenient.But in the Windows Peer-to-Peer SDK's help book,it just said that the Peer-to-Peer Infrastructure does not support audio or video streaming.So developing Peer-to-Peer networking conference with PNRP is a little difficult.
I also know the WCF in the Microsoft's vista OS provide a strong support about developing P2P applications,So how can I do with it in VC++?
I just want to develop a pure Peer-to-Peer networking conference in VC++.Can anyone else help me?
Thank you very much~~~
lktse
dbs-soft,Inc.
|
|
|
|
|
Hi here are some answers to this text:
lktse wrote: I know that through Microsoft's Windows Peer-to-Peer SDK we can develop the Peer-to-Peer applications convenient.But in the Windows Peer-to-Peer SDK's help book,it just said that the Peer-to-Peer Infrastructure does not support audio or video streaming.So developing Peer-to-Peer networking conference with PNRP is a little difficult.
I also know the WCF in the Microsoft's vista OS provide a strong support about developing P2P applications,So how can I do with it in VC++?
* when alternative "a" does not provide the wanted solution we should look for more alternatives, also see here
* when developing a complex networking product it's advised to brake problems into smaller ones, it helps us answering
* when we are in a C++ forum we are asked to make specific C++ questions, did you read this?
It looks like you are looking for a system architect.
/M
|
|
|
|
|
Hi
I just changed my software (MDI application) View's parent class from CScrollView to CView. I am expecting the Scrollbar disappear.
But I can still see them. What is the reason for this?
Thanks,
modified on Saturday, October 3, 2009 3:11 PM
|
|
|
|
|
I'm not sure without digging.
But I'd suggest making two new projects. One with a view inheriting from CScrollView, and one with a view inheriting directly from CScrollView.
Compare, see any differences, enjoy!
Iain.
I have now moved to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need contract work done, give me a job! http://cv.imcsoft.co.uk/[ ^]
|
|
|
|
|
In addition, look through your view class (particularly OnInitialUpdate) for a EnableScrollBar command.
Iain.
I have now moved to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need contract work done, give me a job! http://cv.imcsoft.co.uk/[ ^]
|
|
|
|
|
You have to remove the WS_HSCROLL and WS_VSCROLL styles from the window.
You may be right
I may be crazy
-- Billy Joel --
Within you lies the power for good - Use it!
|
|
|
|
|
Please tell me how to do that.
I tried following but without luck
BOOL CMyView::PreCreateWindow(CREATESTRUCT& cs)
{
ASSERT(cs.style & WS_CHILD);
cs.dwExStyle &= ~WS_VSCROLL;
cs.dwExStyle &= ~WS_HSCROLL;
if (cs.lpszClass == NULL)
cs.lpszClass = AfxRegisterWndClass(CS_DBLCLKS);
return CView::PreCreateWindow(cs);
}
|
|
|
|
|
Try changing the style instead of the extended style.
You may be right
I may be crazy
-- Billy Joel --
Within you lies the power for good - Use it!
|
|
|
|
|
Thank you very much for the reply. I did chang following in the CMyView class:
cs.style &= ~WS_VSCROLL;
cs.style &= ~WS_HSCROLL;
I did not see cs.style value changing. I think some thing else also needed to be set.
Thank you very much,
|
|
|
|
|
Thank you so much for replying my questions. I just post an message in this forum. I found the real reason.
I think "m_wndSplitter.Create" will cause the scorllbar to show.
BOOL CSplitFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
return CMDIChildWnd::OnCreateClient(lpcs, pContext); ---->Scrollbar disappear
}
After I did this. I got another assertion error.
|
|
|
|
|
by default, MFC dialog app has a set of code to draw icon: which has a small (16x16) and a large (32x32) icons.
the "small icon" displayed at top-left conner (sys-menu) and min-state (on Windows-start-bar) is not the small-icon of resource, it is resized by 32x32 icon, so it looks very ugly - resizing causes visual problem.
How to display "small icon" with true resource small icon?
|
|
|
|
|
includeh10 wrote: How to display "small icon" with true resource small icon?
Check your icon in the resource editor. There should be a 32x32 and a 16x16 version in the resource. If it only has a 32x32 version then you will need to create the alternate yourself.
|
|
|
|
|
In addition to what Richard said you have to use the LoadImage() API to specifically load and set the smaller icon. The AfxGetApp()->LoadIcon() code supplied by the MFC wizard will only load the 32x32 icon resource.
You may be right
I may be crazy
-- Billy Joel --
Within you lies the power for good - Use it!
|
|
|
|