|
Have a look at the MFC samples chatter/chatsrvr - they'll get you going on MFC sockets. not the best but not bad for a local LAN setup.
also I think there is some awarenet SDK stuff on this site that might help.
If you want to go the Instant messenger route you could use
MSs Instant Messenger or ICQ - or you could roll your own and use Jabber as the server and make you're own client.
Holy Handgrenade of Antioch instructions
|
|
|
|
|
How can I create a CView child window in a CForm window, including scrolling.
|
|
|
|
|
I have been trying to implement drag and drop in a view. However I would like it to occur when a user clicks on a toolbar button. So far drag and drop only works when implemented/started in a WM_MouseMove or WM_LButtondown message. Any ideas or code examples.
Basically I want to have the drag operation to occur after a user has clicked on the toolbar button and then moves the mouse across the view screen without having to hold down the left mouse button.
|
|
|
|
|
My problem is:
I've got a dialog-based application with a property sheet.
The property sheet contains 2 property pages.
I'd like to invoke a modal dialog box when I press
a button placed on property page 1.
When I declare a member variable named m_MyDialog in CMyDialog and I do a call like m_MyDialog.DoModal();, my system goes to Nirvana.
Can you tell me how I can solve my problem ??
Thank you !
|
|
|
|
|
I got a lot of tips from MSDN and other books on how to debug a ISAPI Extension DLL. Most of them assume IIS is under 3.0 version so that they can use inetinfo.exe -e W3svc to start the IIS service as an stand-alone application. However, when using IIS5.0 and on Windows 2000, what they say is not really the case. MSDN metioned the debug method under the IIS over 4.0 version. It's a very long series steps. Unhopefully, not all the steps are effective. So the result is undoutedly depressing. Is there anyone who once debugged the ISAPI Extension DLL under Windows2000? I'd be grateful if someone can help me out?
|
|
|
|
|
Are there anyone has the Microsoft's XSL ISAPI Extension 1.1? I searched the MSDN, but found XSL ISAPI Filter 2.0 only.
Here is my email: rezaie@21cn.com.
If you have, please send it to me.
Thanks in advance.
|
|
|
|
|
My problem is the same: I have a number of 256 colors bitmaps to be used to populate a toolbar. If I load a bitmap from a resource, I can use the function CreateMappedBitmap to map a certain colour to the background color. But with a Bmp from a file, how could I replicate this feature ???
Thanks all.
Carlo Comino.
|
|
|
|
|
I hate the MFC group box. It's such a pain to use most of the time. Sometimes, depending on the order of creation in the resource file and making sure your tab stops and group stuff is checked correctly, you can't get your radio buttons to show up. That gets me every time. Grrrr.
Also, why can't you actually GROUP your controls with your group control?!?! Let's say my application is divided up into sections of group labels. (I'm not claiming it's pretty.) If I wanted to temporarily disable all the controls in a group it sure would be easy to just have to disable to group control. This is a feature I'd LOVE. Come to think of it, maybe that might be pretty easy to do...
Well, also Microsoft's dialog editor... Why can't I group some controls together, select them all, and actually cause them to behave like a group, even when dragging them around on the screen.
|
|
|
|
|
Some great ideas! Now if only Bill Gates would agree to implement them (which I doubt). Maybe you or someone
could write a new group control to do some of these things.
|
|
|
|
|
Well, you have to realize that MFC is only using the standard windows Group box. This is just a button control, that draws itself differently. Thus, it is dependant upon all the characteristics of other button controls and cannot itself have child controls (well not easily).
Other languages, like VB provide what you're asking for, but they have created their own controls for this versus using the standard windows ones. Microsoft doesn't usually provide anything more than wrappers around existing controls (with a few exceptions, like CCheckListBox).
In any event, MS couldn't deprecate the existing group box, but they could just as easily create a new one. Though you could just as easily create one as well.
As for the dialog editor, you can most certianly select groups of controls and manipulate them as a group. Just use shift or ctrl while clicking.
|
|
|
|
|
Just use api,no mfc.
thx for any suggestion.
|
|
|
|
|
Is it possible to intercept all input from users before Windows sees it? I want to disable Ctrl-Alt-Delete, Alt-F4, and other user inputs in certain situations. I'm writing a security app for Windows 9X systems to help some teachers control their computers. I think you can do something with .vxd files, but I'm not really sure what they are or where to start looking. Can someone help me out?
--Tale
|
|
|
|
|
You may want to look at using CBT hooks.
cheers,
Chris Maunder
|
|
|
|
|
Would you happen to know of any example code for CBT hooks? I've looked at MSDN and I was unable to find some examples.
--Trey
|
|
|
|
|
This is a long shot, but I am looking for a way to view HTML pages as if in a browser, but not using MFC, and definately NOT using Internet Explorer.
Just to really push the possibility of an answer, I would prefer to be able to use it from/in 'C' code (nnot C++).
Am I dreaming, or is this possible?
Thanks for any help,
James Millson
|
|
|
|
|
The man you need to contact is Russ Freeman. He has several web sites but the one that I can think of right off hand is http://www.gipsysoft.com
He has a product that is called QHTM. He is currently not pushing it because he has bigger and better things but if you email him about he will give you some info on it. There is a freeware version on www.codeguru.com and he has a version that is updated with many new features.
Tell him that Rodney at MediaVergence Group referred you to him.
Another option would be wxWindows 2.
|
|
|
|
|
I want to create a dialog but have it hidden right from the beginning and open it at a later time with ShowWindow()
|
|
|
|
|
It's really pretty simple, though. Just create your dialog with the editor. Let Class Wizard make your classes for it like normal. I imagine you'll be showing/hiding from your main app, so if, say you were a dialog based app, simply include your header for your hidden dialog(s) in the header for your main dialog and make a member or two:
CHiddenDlg* m_pHidden;
Now assuming your resource ID for the hidden dialog is IDD_HIDDEN_DIALOG, in the CPP of you main in OnInitDialog just do this:
m_pHidden1 = new CHiddenDlg(this);
m_pHidden1->Create(IDD_HIDDEN_DIALOG, this);
Then, whenever you want to show/hide just use
m_pHidden1->ShowWindow(SW_SHOW);
m_pHidden1->ShowWindow(SW_HIDE);
Make sure you clean up at the end and you'll want to be a little better than I was about checking that your dialogs got created and all that.
|
|
|
|
|
In MFC, do you know how to launch the Internet Explorer .exe and then open the URL and then download the html from this URL?
Thanks a lot for your help!!
|
|
|
|
|
Use thhe MFC-internet functions/classes directly.
Uwe Keim
http://www.zeta-software.de
|
|
|
|
|
Is that I need to use CHtmlView?
What's the procedure to use the MFC internet class and it's function? I'm sorry that I'm a new programmer in MFC, I'm know a little about it.
Thx for your help!!
|
|
|
|
|
Look for CHttpFile in your documentation:
"... The class CHttpFile provides the functionality to request and read files on an HTTP server ..."
Uwe Keim
http://www.zeta-software.de
|
|
|
|
|
|
|
Thx a lot!!
I've downloaded the source code of the URLdownload and WebGrab! It seems quite useful for my project! I will take a look within these days! Thx again!
|
|
|
|