|
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!
|
|
|
|
|
I want to develop an application with some kind of grid like the one in Excel. I'm using wxWidgets and there's support for the Doc/View-architecture. How many of you out there are using this for c++-applications? Are there better alternatives? It's a MDI-application with very few dialogs. If that matters.
|
|
|
|
|
Doc/View is not a good design - mu opnion.
But if you use MFC, you should use Doc/View, or may have trouble.
|
|
|
|
|
How come you think it's a bad design?
|
|
|
|
|
The answer really depends on whether it is reasonably easy for you to develop your application using it, and whether it will satisfy your needs, in terms of finished product. And if you really want MDI then Doc/View is probably your best option. I have used it in the past and found it produces very usable programs.
|
|
|
|