Hello, can I play a piece of sound using DSound, while a stream file (.mp3 or .avi) plays with DShow? with regards, mwolf122
mwolf122
Posts
-
can DirectSound and DirectShow work at the same time? -
directsound can not be initizedHello, i am writing a 3d program using DirectX. Now i want to play a piece of sound with DirectSound, but the initilization was not accomplished. the code i have written below, .... CoInitialize(NULL); if (FAILED( hResult = CoCreateInstance( CLSID_DirectMusicLoader , NULL, CLSCTX_INPROC, IID_IDirectMusicLoader8, (void**) &pLoader))) { return SOUNDERROR_MUSICLOADER; } if (FAILED( hResult = CoCreateInstance( CLSID_DirectMusicPerformance, NULL, CLSCTX_INPROC, IID_IDirectMusicLoader8, (void**) &pPerformance))) { return SOUNDERROR_MUSICPERFORMANCE; } .... the initial of DirectMusicLoader succeed, but wenn DirectMusicPerformance is initilized, it returned failure. Does anyone knows how can i solve the problem? thx anyway. mwolf122
-
can i create a dll, what includes other dlls?I convert an application code to dll file. I use functions from other dlls. In my application code, I have include a header files for the dlls and it works. In the dll file, I included the same header files, but the dll can not be loaded successfully, with a link error LNK2001. how can i set the path for the dll? thx. Lei
-
link error with DirectShowthx. it works. :)
-
link error with DirectShowi am using dshow to play a video. (i am using dx9) top of my project, i set, #include #include #include ... in Debug, the program runs successfully, when i changed to release, it has link error, error LNK2001: unresolved external symbol _CLSID_NullRenderer error LNK2001: unresolved external symbol _IID_ISampleGrabber error LNK2001: unresolved external symbol _CLSID_SampleGrabber error LNK2001: unresolved external symbol _IID_ICaptureGraphBuilder2 when i change Debug again, it can not be complied with the link error also. do you have any idea? thanks. Lei
-
How can I get the ID code forI put some CEdit to the dialog, use the same function OnChangeEdit1, when the context of edit box is changed, such as, ON_EN_CHANGE(IDC_EDIT1, OnChangeEdit1) ON_EN_CHANGE(IDC_EDIT2, OnChangeEdit1) ON_EN_CHANGE(IDC_EDIT3, OnChangeEdit1) the problem is, I can not decide which edit box has called the function, How can I get the ID for it?
-
how can i set message map for dynamic created CEdit [modified]to Hamid, unfortunately, i havent got sendmessage in the link you gave. I can assign a ID and a function before the CEdit is created, and use UDN_DELTAPOS (ID, OnEditChange(). then by creating the CEdit, I can set the same ID for the CEdit. the problem is, before the programm running, i cant decide how many CEdit should be created, so I have no idea how many IDs should be assigned in my program.
-
how can i set message map for dynamic created CEdit [modified]hallo, in order to display and change a date list written in a txt file, seveal CEdit and CSpinCtrl should be dynamic created. The amount for the set of Editbox and SpinCtrl should be dynamic decided, according to the count of date set. CSpinCtrl and CEdit has the same behavior. I cant set the Message using ClassWizard, How can I dynamic set the Message for the CEdit and CspinCtrl? I have tried, in the Class, a Message Map UDN_DELTAPOS (ID, OnEditChange()). I set all the CSpinCtrl with the same ID. In this way, when any CspinCtrl changes, the function OnEditChange() will be called, but i can not recognize which one has been clicked. does anyone who has a solution? thanks ;) mwolf
-
how can I call a .exe in c++thx, it already works.
-
how can I call a .exe in c++How can I call a .exe file in a c/c++(not MFC) project? thx, L Zhang
-
question about calling the function OleCreatePictureIndirect in VB.NetI want to get a Bitmap-picture in a pictruebox. The original picture is written in DICOM form, firstly i have already convert the DICOM into Bitmap, now i have to get the Bitmap using this function.
-
question about calling the function OleCreatePictureIndirect in VB.NetThanks Dave. I have tried with the code in the first link (mztools), but it still doesnt work, with the same returned message. Anyone knows why? Anyhelp will be great.
-
question about calling the function OleCreatePictureIndirect in VB.Nethello, i have called the function OleCreatePictureIndirect correctly in Vb6, but after upgrading to VB.Net, the calling of the function doesnt works. with the returned message, no argument is given for parameter "lpPictDesc" from "Private Function OleCreatePictureIndirect(lpPictDesc As ADV.modWindowing.PictDesc, riid As ADV.modWindowing.Guid, fPictureOwnsHandle As Integer, ipic As Object) As Integer" (translated from german-version, maybe not exactly) by the way, i didn't change any parameters for it by calling the function. does anyone can help me to solve the problem? thx