|
Take a look at Microsoft's Media Player ActiveX control.
Plays MP3, WMA and a bunch of other stuff.
Sergei
|
|
|
|
|
APIs can play only .wav files, according to my knowledge.
==================
The original message was:
Is there any API to play MP3 files ? Alex
|
|
|
|
|
I am developing an activex Control which constists of Treectrl and IE. I would like to Splitter Ctrl between these two so that i can resize them. Please help me
|
|
|
|
|
How do I capture the carriage return in a simple single line edit box in a dialog so that the default button is not pressed?
|
|
|
|
|
Check out,
http://www.codeguru.com/editctrl/edit_cr.shtml
Make sure you read the comments at the bottom.
==================
The original message was:
How do I capture the carriage return in a simple single line edit box in a dialog so that the default button is not pressed?
|
|
|
|
|
The following code will convert CR to a TAB for
jumping to the next control and only when the
OK button has focus CR will close the dialog.
void CMyDlg:: OnOK()
{
CWnd *pWnd = GetFocus();
ASSERT (pWnd);
if (IDOK == pWnd ->GetDlgCtrlID())
{
CDialog::OnOK();
}
else
{
NextDlgCtrl();
}
}
==================
The original message was:
How do I capture the carriage return in a simple single line edit box in a dialog so that the default button is not pressed?
|
|
|
|
|
In my application I am sending plain text to the dot matrix printer. I am having problems to force the printer to print the text in condenced mode.
Can someone please help me with this.
Thank you
Peter Zajac
|
|
|
|
|
Just send ASCII character #15
cheers,
Chris
==================
The original message was:
In my application I am sending plain text to the dot matrix printer. I am having problems to force the printer to print the text in condenced mode.
Can someone please help me with this.
Thank you Peter Zajac
|
|
|
|
|
I think there may be difficulty in sending control characters to a dot matrix printer using the standard windows printing system, so I'm not sure you can just send character 15 to the printer....
Troy in our office mentioned that Windows supports a "plain text" printer driver that has limited capabilities (ie, might not support networkable connections etc.) but does allow you to send control codes.
I'm sure I read an article in MSDN about this topic, when reviewing material on how to write a printer driver (we flirted with writing a fax printer driver years and years ago), and remember reading a passage about this.
Sorry I don't have a more specific solution.
David
==================
The original message was:
Just send ASCII character #15
cheers, Chris
================== The original message was: In my application I am sending plain text to the dot matrix printer. I am having problems to force the printer to print the text in condenced mode.
Can someone please help me with this.
Thank you Peter Zajac
|
|
|
|
|
Your opinion please.
I want to create a menu system. In addition to starting and stopping apps, I want the menu to display what view each app is on.
In this example http://www.codeproject.com/threads/sendmsg.asp, Martin-Pierre Frenette shows how to pass data from one app to another. He uses the WM_COPYDATA.
In this example http://www.codeproject.com/dll/data_seg_share.asp, Phil Mcgahan shows how to do a similar thing using PostMessage and a shared data segment.
I have a lot of C experience, but only a few months of Visual C++. If you have experience in these types of matters, would you please express the pros and cons of each to me.
The basic question is WM_COPYDATA verses Shared Data Segment.
Thank you.
|
|
|
|
|
Hi, I'm working on making my own simple proxy server to learn a bit about socket programming. I'm also implementing the main loop as a seperate thread but since my CSocket.Accept(CSocket) call is in its own loop waiting for a connection, I can't send it a CEvent to shut down.
Any help would be appreciated.
|
|
|
|
|
CSocket::CancelBlockingCall() will abort the Accept.
--Mike--
==================
The original message was:
Hi, I'm working on making my own simple proxy server to learn a bit about socket programming. I'm also implementing the main loop as a seperate thread but since my CSocket.Accept(CSocket) call is in its own loop waiting for a connection, I can't send it a CEvent to shut down.
Any help would be appreciated.
|
|
|
|
|
Accept in a loop? Thats not a correct way. Create a user interface thread of which the socket is a member and call Accept just once in the Initinstance of the thread
==================
The original message was:
Hi, I'm working on making my own simple proxy server to learn a bit about socket programming. I'm also implementing the main loop as a seperate thread but since my CSocket.Accept(CSocket) call is in its own loop waiting for a connection, I can't send it a CEvent to shut down.
Any help would be appreciated.
|
|
|
|
|
I have a dialog based app whose main screen consists of at least 4 tabs. What I would like to know is,
is it better o use property sheets or a tab control?
Thanks
Matt
|
|
|
|
|
I would like to create a program that can read the GUID from an ActiveX control. I will be reading each dll/ocx in a directory and storing the GUID and version information in a database. I have the version part but need to read the GUID.
|
|
|
|
|
__uuidof ( expression )
thought this might help.
==================
The original message was:
I would like to create a program that can read the GUID from an ActiveX control. I will be reading each dll/ocx in a directory and storing the GUID and version information in a database. I have the version part but need to read the GUID.
|
|
|
|
|
Hi, All!
How Do I use VirtualListView (LVN_GETDISPINFO) with CRecordset? Unlike CDaoRecordset here no a absolute position.
Thanks.
|
|
|
|
|
Sorry, All!
Help does not need, I simply unattentive look MSDN.
Sorry.
==================
The original message was:
Hi, All! How Do I use VirtualListView (LVN_GETDISPINFO) with CRecordset? Unlike CDaoRecordset here no a absolute position. Thanks.
|
|
|
|
|
how do i lock the position of two toolbars after docking them side by side?
|
|
|
|
|
You have 2 options:
1. Implement state persistence - in CMainFrame::OnCreate() call LoadBarState(), and in OnClose() or DestroyWindow() call SaveBarState(). You have to make sure the toolbars have different IDs. (see the toolbars & docking windows section for related info).
2. Derive your own classes from CToolbar or whatever, and block WM_LBUTTONDOWN and WM_LBUTTONDBLCLK (handle the messages and do nothing in the handlers' implementations).
The drawback is thath the user will no longer able to drag the toolbars around, nor to float them, but you can control them programmatically (using CFrameWnd's ShowControlBar(), DockControlBar(), FloatControlBar(), etc.).
Another problem of this approach is that the bars will be arranged on different rows if the user resizes the main window in a way the second toolbar is completely invisible.
Personally, I preffer (1).
Cristi
==================
The original message was:
how do i lock the position of two toolbars after docking them side by side?
|
|
|
|
|
The whole point of Dockable toolbars is so that they can be moved. The best thing to do is not to lock them. I can't see any reason why it would ultimately benefit the user in the end. Users like to be able to arrange things any way they want.
|
|
|
|
|
I am trying to programmatically change the mouse
horizontal/vertical sensitivity within MSVC++ 5.0. I am
using inline assembly to invoke mouse interrupts (INT 33) to
Get and then Set the sensitivities. (Microsoft took the
Int86() function out of this version.) My problem is I lose
my mouse buttons when forcing this interrupt and I have to
reboot to get them back.
I have disassembled some current mouse drivers and am
confident(not really) that I am using the correct assembly
code. I suspect that because I am invoking the INT 33 as a
result of a button push on a dialog box that the message
queue or interrupt handler is going recursive. But I am not
sure.
I can set the mouse acceleration factors just fine by using
the SystemParametersInfo() function.
Can anyone give me a hint or a different technique on
setting the mouse sensitivities.
Below is the inline asm listing. It is in the OnHScroll
event for a slider bar.
__asm{
push ebx
push ecx
push edx
mov ax,0x001b
INT 0x33 //MOUSE_INT
mov [h], bx
mov [v], cx
mov [s], dx
pop edx
pop ecx
pop ebx
xor ax, ax
}
Thanks in advance. . .
--
C. Ehmke
ehmkec@uswest.net
|
|
|
|
|
Hi !,
I have one question about memory file mappings, I create one in one program and in the other I open it. If I close the handle where it was created, can I continue reading in the one that was only opened ?
Can somebody explain me how this works ?
Thanks, Bye !
Braulio
|
|
|
|
|
I have got a project where I link a couple of tables from an external database to use within a local Jet (access.mdb) database, for which purpose I use the DAO classes.
THE DATABASE
The external database Open() call looks like this :- m_dbExtern.Open(_T(""), TRUE, FALSE, _T("ODBC;"));
The empty name string combined with the "ODBC;" cause the Windows ODBC selection dialog to appear, and CDaoDatabase opens a link to that. SIDE ISSUE: Anyone know how to get this dialog to default to the SYSTEM tab rather than the USER?
THE RECORDSET
Originally I used the straight CRecordset classes but found DAO more flexible, but its flexible. I have a class derived from CDaoRecordset which contains static attributes mirrored to what is in the table I want to access.
The ODBC links to a database table written in dataflex which has a data definition file : here is the indexes it defines :-
INDEX# FIELDS DES U/C LENGTH LEVELS SEGMENTS MODE
------ --------------- --- --- ------ ------ -------- -------
1 CODE NO NO 6 3 1 ON-LINE
2 ALPHA NO NO 9 3 2 ON-LINE
RECNUM NO NO
3 CODE NO NO 8 3 2 ON-LINE
EMPL NO NO
4 CODE NO NO 11 3 3 ON-LINE
ALPHA NO NO
RECNUM NO NO
The thing is, I don't know much about these recordset classes, I just want CDaoRecordset::Open() to use INDEX #2, #3 or #4 - it is defaulting to INDEX #1. Dataflex is a pretty rare database, but it does have an ODBC driver written for it - perhaps this driver defines everything I need?
Hope someone can help me....P-l-ease!!!
Cheers,
H. Venn
|
|
|
|
|
How to insert picture in CRichEditView ? !!!!!!!
|
|
|
|