|
Hello,
I'm trying to catch mouse buttons (5) via the XBUTTONS and would like to do this in an MFC environment. I have seen some examples in Win32, but not MFC.
I have declared the following in the CMainFrame message map
ON_MESSAGE(WM_APPCOMMAND, OnAppCommand)
then try to process it within the function...
LRESULT CMainFrame::OnAppCommand(WPARAM wParam, LPARAM lParam),
...but this function never gets called.
Any help greatly appreciated.
Cheers,
Grant.
|
|
|
|
|
Maybe you need to put it into the CView class instead.
Maybe the message does not make it to the mainframe.
|
|
|
|
|
Hi Everybody!
I am currently trying to build an application for videoconferencing between 2 computers using Wifi.
Since I have already began to program some functionnality with directshow, I was wondering if it there was any existing directshow filter for broadcasting audio and video streams.
Actually, I am looking for a directshow filter on which it's possible to connect an audio source filter and a video source filter on it.
Thanks a lot for your help!
|
|
|
|
|
djin94 wrote: I was wondering if it there was any existing directshow filter for broadcasting audio and video streams.
Maybe 3rd-party, but there's not a filter included with DirectShow.
The Windows Media Format SDK has a network writer sink for broadcasting ASF format media.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
This episode brought to you by the letter Z
|
|
|
|
|
Hi Thanks for the answer.
Do you know if windows media format SDK is compatible with Directshow connectivity. I mean : Can I connect my Directshow source filter directly to it.
Djin
|
|
|
|
|
djin94 wrote: Can I connect my Directshow source filter directly to it.
Not directly. It takes a little work but less work than writing your own streaming code.
With Windows Media Format, you basically configure a profile for the streams, pass uncompressed
samples, and it does the rest.
The trick is to get those samples from DirectShow. One easy way is with the grabber filter.
Another harder way is to write a custom filter.
Download Windows Media Format 9 Seres SDK[^]
The WMF network reader/writer does not use RTP AFAIK. It does use HTTP protocol for easy
firewall traversal.
There may be 3rd-party DirectShow filters to do it as well.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
This episode brought to you by the letter Z
|
|
|
|
|
Hi,
Do you know any flash like timeline control that i could download and play with it ?
I did not find any in codeproject.
Regards,
sdancer75
|
|
|
|
|
Hello all,
I'm trying to use Microsoft Win32 Detours library (API interception library). Because it is a production of their research lab, they offer no formal support.
At the beginning I had problems compiling the latest version (version 2.1) of the library with MS C++ Express - however, it compiles fine on VS2003.
When compiling the DLL which contains the custom functions (the detour DLL) I get the errors:
<br />
detours.lib(detoured.obj) : error LNK2005: _DllMain@12 already defined in testC.obj<br />
LINK : warning LNK4098: defaultlib 'LIBC' conflicts with use of other libs; use /NODEFAULTLIB:library<br />
Release/testC.dll : fatal error LNK1169: one or more multiply defined symbols found<br />
I did try to use /FORCE:MULTIPLE, which caused a successful compilation. However, when I load the DLL using one of the destours samples (withdll.exe) I get the error:
<br />
Error: testC.dll does not export function with ordinal #1.<br />
I know that this is a library specific question and this forum is for C++ general discussion. However, I have no other place to ask. I was also hoping that I can get an answer since this *looks* like a settings problem.
I did use an older version of Detours library a long time ago and I had no problems.
Detours website: http://research.microsoft.com/sn/detours/
Many thanks in advance,
- Naimi
SOLVED
I did not use a .def file which exports the functions (I did not need to do this with Detours version 1.5)
If someone is having this problem, see:
http://msdn2.microsoft.com/en-us/library/d91k01sh(VS.80).aspx
-- modified at 1:48 Tuesday 10th July, 2007
|
|
|
|
|
I develope applications which are mostly standalone Desktop applications. Few applications are of GDI+ and few serial ommunications applications.
If i wanna upgrade from VC6.0 to VS2005
Should i buy Professional Edition which is $799.00
or i would go for Standard edition which is $299.00
Will my applications work properly in standard edition mostly i am worried about GDI+ applications.
Thanks,
Sandip.
|
|
|
|
|
they will work fine in both, the editions are not limited by technology, except the express one. They are limited by other features. There would be a feature matrix on the MS site, I am sure.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Ya i went through the Features set i didnt understand few things from there so i was confused.
Will there be much migration issues??.
Thanks,
Sandip.
|
|
|
|
|
SandipG wrote: Ya i went through the Features set i didnt understand few things...
Such as?
SandipG wrote: Will there be much migration issues??.
If there are any, they will be the same for both Professional and Standard.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
I have a listbox containing strings items. When the user selects an item in the listbox using keyboard character, there is a vertical cursor/caret displayed at the end of first character. E.g. If the listbox has String items as "One", "Two", "Three", "Four", "Five", "Six", "Seven" etc... and the user press character "s/S" after bringing the focus on the listbox, a vertical line similar to the one shown in the following word "S|ix" is dispalyed.
Basically a veritical line is shown after the first character of the item if it exists in the listbox
How do I get rid of this cursor? I have tried using "HideCaret", SetCaretPos API in selectchange message handler, onfocus message handler but the vertical line is still vistible, though it goes away automatically in a second or two, I do not want it to be displayed at anytime.
Thanks.
|
|
|
|
|
What does the code look like that creates the control?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
This episode brought to you by the letter Z
|
|
|
|
|
Hi Mark,
It is a standard code generated with VC++ 2005. I had simply created a dialog based application. Added a listbox to the dialog and added the code in the InitDialog method to insert the strings in the listbox. When I compile and execute the application the dilaog comes up with the listbox and strings in it, nothing special other than this. Anyways you can see the InitDialog code below where the list box is initialized with strings
CListBoxDialog::OnInitDialog()
{
CDialog::OnInitDialog();
// Other code add by the wizard....
// my code
const TCHAR* Strings[10] = {_T("One"),
_T("Two"),
_T("Three"),
_T("Four"),
_T("Five"),
_T("Six"),
_T("Seven"),
_T("Eight"),
_T("Nine"),
_T("Ten") };
for(int i = 0; i < 10; i ++)
{
m_List.AddString(Strings[i]);
}
return TRUE; // return TRUE unless you set the focus to a control
I didn't made any changes in the properties of the listbox.
Thanks
}
|
|
|
|
|
Thanks! Can you post the code from the resource (rc) file for the dialog resource?
That's where the control styles are.
I'm curious because I can't get a caret to appear in a listbox.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
This episode brought to you by the letter Z
|
|
|
|
|
Hi Mark,
Here is the code for the Dialog resource
IDD_LISTBOX_DIALOG DIALOGEX 0, 0, 320, 200
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_APPWINDOW
CAPTION "ListBox"
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
DEFPUSHBUTTON "OK",IDOK,263,7,50,16
PUSHBUTTON "Cancel",IDCANCEL,263,25,50,16
LISTBOX IDC_LIST,72,31,90,113,LBS_SORT | LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
END
If you want I can send you the zipped code at your mail address
Thanks
|
|
|
|
|
Just what I needed, thanks!
I've never seen that before. I had to look real close to see the caret.
For me, the caret blinks once and goes away (I'm on XP Pro SP2).
I removed the SORT style (set the Sort property to false in the resource editor) from the listbox
control and I don't see the caret now.
I'll look at it more in a bit...
Mark
Mark Salsbery
Microsoft MVP - Visual C++
This episode brought to you by the letter Z
|
|
|
|
|
Thanks Mark.
Strange I also do not see the caret if I set the SORT style to false !!
I am also on WinXP Pro SP2 and it goes for me also with in a second. But I had hard time explaining to my usability team about the caret stuff, they are bit rigid on it not appearing at all. And since I also do not know the reason for the caret to appear I thought of creating a seprate project and try to solve the issue and it seems a bit overkill to go for ownerdraw listbox for this issue
But after trying for sometime without luck I had posted it here. Anyways I now have partial solution and till I do not find a proper solution/reason I can set the listbox SORT style to false, sort the items externally and add it to the list.
Regards
|
|
|
|
|
The docs for the control mention the caret but I think it's silly on a control that you can't
enter text
WM_SETFOCUS Turns the caret on and sends an LBN_SETFOCUS notification message to the owner of the
list box.
WM_KILLFOCUS Turns the caret off and destroys it. Sends an LBN_KILLFOCUS notification message to
the owner of the list box.
WM_KEYDOWN Processes virtual keys for scrolling. The virtual key is the index of the item to move
the caret to. The selection is not changed.
Cheers,
Mark
Mark Salsbery
Microsoft MVP - Visual C++
This episode brought to you by the letter Z
|
|
|
|
|
Hi Mark,
Thanks for the insights into Listbox working
Regards
|
|
|
|
|
How I can convert CString to GUID ?
Ex :
CString str = "{EB533751-63E2-46c4-B0C7-F83157180BB6}";<br />
GUID guiFromStr = ?
Thanks,
Ohad
|
|
|
|
|
See there http://msdn2.microsoft.com/en-us/library/aa379336.aspx[^].
Please note the Requirements section.
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.
|
|
|
|
|
|
USBInterface.obj : error LNK2001: unresolved external symbol __imp__UuidFromStringA@8
DLL/Debug/USBDetectorD.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
|
|
|
|