|
Actually, you qualify for the 'Most clever post in VC++ forum' award
Now, let's be serious. I've read that in VC++ 7.0 we have new keywords ( _event, I think) that enables "unified event handling". Of course, it is a non-standard extension. How do you like that?
I vote pro drink
|
|
|
|
|
Is this keyword usable outside of .NET world? I mean, they have something called Managed C++ which introduces new keywords like __gc and others.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
As far as I know, it has nothing to do with MC++. It is for the "native" code.
I vote pro drink
|
|
|
|
|
I know MC++ supports __event keyword (not _event as you said) to declare events through delegates, but I'm not aware that any such keyword exists in native C++.
// Fazlul
Get RadVC today! Play RAD in VC++
http://www.capitolsoft.com
|
|
|
|
|
If you have VS .NET Beta 2, take a look into documentation (I found this info there). I'm pretty sure, they added this "unified" event approach to native C++.
I vote pro drink
|
|
|
|
|
I knew I should've stuck with Visual Basic it rules!!! None of the complexities that are associated with C++ and chicks love it :-P
Yeah right!
Sam C
----
Systems Manager
Hospitality Marketing Associates
|
|
|
|
|
As for complexities, I don't think VB is much simpler than C++, when you have "big" projects (I've tried both).
As for chicks, I'm happily married, so this argument is also not valid for me.
I vote pro drink
|
|
|
|
|
Actually the comment was directed towards Tomasz, but since you replied...
We'll I have developed a ColorFORTH version of Internet Explorer and I'm happily divorced! Take that!
(gg)
Sam C
----
Systems Manager
Hospitality Marketing Associates
|
|
|
|
|
I give up. VB is definitely better.
I vote pro drink
|
|
|
|
|
Hello everyone,
Does anyone know if there is any simple way to change the font for menus from MS Sans Serif to Tahoma, as is done in Office 97?
If it is necessary to use owner-drawn menus, is there any way I can just change the font and then let default drawing take place?
Thanks very much,
Stephen Wilson
|
|
|
|
|
|
I posted a question a few days back about WM_COPYDATA.. I have a console app that needs to send CString data to several other apps with the same .exe name.. When I do the WM_COPYDATA I need all the other dialogs to look at the CString data and determin if the msg was intended for it (is this possible?).. I tried changing the window text name of the dialogs using ::SetWindowText("blahblah").. but when I send the msg to "blahblah" unless it is the first opened dialog box he will not see the msg.. is there a way to WM_COPYDATA from one app to several apps with the same .exe name?
Thanks,
Mike
|
|
|
|
|
If you're enumerating open windows and getting the HWND from the Window title, then you should have no trouble sending data to whichever window you want. The problem you have is that you specify a HWND in WM_COPYDATA, therefore you send the message to one Window only. You can do one of two things:
1/ Enumerate Windows and send the message to all the Windows that may want it, or
2/ If you always have the same number of windows up you can set up a chain where the message gets passed on if it's not needed.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
Thanks for the reply.. I think I may have it figured out.. Once you use WM_COPYDATA do you have to wait a certian amount of time before you can use it again? It seems to work fine if I wait for a minute or so between copying the data.. For example I have a console app with a list control and as I open dialog boxes I set a different name for each dialog and then I have the dailog box send its name to the console app then I can pick the name of the dialog from the list control and push a kill button and it sends a msg to the dialog with the name I picked and it closes the dialog box.. If i move right away to the next dialog box in the list and click close it comes back and says cant find dialog XXXXX.. if I wait for a minute or so and try again it works.. weird huh? If you want I can post some code of my WM_COPYDATA.
Thanks,
Mike
|
|
|
|
|
Maybe if you post some code - I've only used copydata to send info between two programs, so I've never had that problem.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
I have been doing some troubleshooting and found that when it sends the kill CString to the receiving app the string contains garbage along with the string.. Here is the code I use to send the string to the other app. Any ideas on how to remove the garbage?
Btw, the m_strKill is the name of the other window and the string being sent for the kill command..
UpdateData(TRUE);
LRESULT copyDataResult;
CWnd *pOtherWnd = CWnd::FindWindow(NULL, m_strKill);
if (pOtherWnd)
{
COPYDATASTRUCT cpy;
cpy.dwData = 0;
cpy.cbData = m_strKill.GetLength();
cpy.lpData = (void*)m_strKill.GetBuffer(cpy.cbData);
copyDataResult = pOtherWnd->SendMessage(WM_COPYDATA,
(WPARAM)AfxGetApp()->m_pMainWnd->GetSafeHwnd(),
(LPARAM)&cpy);
m_strKill.ReleaseBuffer();
}
else
{
MessageBox("Can't find "+m_strKill);
}
UpdateData(FALSE);
Thanks,
Mike
|
|
|
|
|
I always go GetLength + 1 in order to allow for a NULL terminator. Sounds like that is what you need - your string keeps going until a NULL occurs in memory after your string's data.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
That was the ticket! Thanks alot Christian!
Mike
|
|
|
|
|
Hi
Does anyone know how can I acces the printer port from win2000?
Thanks;
xxx
|
|
|
|
|
I try to send information of a primary snapIn (Per example, number of nodes or name of each node of primary snapIn ) towards a extension SnapIn but I don't understand really how it works.
I believed to understand that it was necessary to use the interface IDataObject to communicate between Primary and Extension SnapIn but documentation on this matter are vagueness or non-existent
Thanks for you help
|
|
|
|
|
Hi everyone!
Does anyone know how to write a CTransInPlaceFilter derived filter which
works better then the NullNull filter sample in DirectX8 SDK .
My main problem is that when I resize the frame window the video window is not
allways resized . This fenomena occurs when I'm trying to increase the size
of the original frame . The frame is resized but the the video size is
constant.
Thanks
xxx
|
|
|
|
|
Is there a way to disable the 'click' sound the browser object makes when it begins loading a page?
CD
|
|
|
|
|
Hi all,
Bit of a newbie question I think, I've got an MDI app. and I've created several different views using CSplitterWnd (to make an Explorer style interface), when an item is double clicked in the CListView I want to Expand the TreeView item that is highlighted. But I can't seem to get a pointer to the TreeView object. How do I do this?
My best "work-around" so far is to save the TreeView CWnd as a variable in my document class and access it from there. Does that sound naff?
TIA
Jon.
|
|
|
|
|
Hi everybody,
how can i close an application through my application.
I launch outlook -with shellexecute- somewhere within my code and want to close it after finishing with it...Is it possible? if(possible) How?
thanks in advance
with greetings from germany
Özgür
|
|
|
|
|
You need to execute the application with CreatProcess() Function, then close the application with TerminateProcess() function.
Cheers!!!
Carlos Antollini.
|
|
|
|