Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
Z

zhaopzhi

@zhaopzhi
About
Posts
28
Topics
22
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • how to programme to encode CDA (CD audio track) to WMA?
    Z zhaopzhi

    In VC6.0, :confused:how to programme to encode CDA (CD audio track) to WMA? Hint is ok! Thanks!!! Rap off for you,for me,for our human.

    C / C++ / MFC tutorial question

  • CD audio data in memory to WMA?
    Z zhaopzhi

    I can encode WAV in disk to WMA.But how to encode the CD audio format data in memory to WMA? Rap off for you,for me,for our human.

    C / C++ / MFC performance tutorial question

  • About the WAV to WMA of audio ?
    Z zhaopzhi

    I wrote a code of WAV(C:\\InputFile.wav) to WMA(C:\\OutputFile.wma) of the audio,but it was distempered.Please give a help,thank you in advance. The following is my code: // Include libraries. #include #include #include #include "D:\WMSDK\WMEncSDK9\include\wmencode.h" #include // for kbhit() void main() { // Declare variables. HRESULT hr; IWMEncoder* pEncoder; IWMEncSourceGroupCollection* pSrcGrpColl; IWMEncSourceGroup* pSrcGrp; IWMEncSource* pSrc; IWMEncVideoSource* pSrcVid; IWMEncAudioSource* pSrcAud; IPropertyBag* pPropertyBag; IWMEncProfileCollection* pProColl; IWMEncProfile* pPro; IWMEncFile* pFile; IWMEncAttributes* pAttr; IWMEncDisplayInfo* pDispInfo; CComBSTR bstrName = NULL; long lCount; int i; // Initialize the COM library and retrieve a pointer to an IWMEncoder interface. hr = CoInitialize(NULL); if ( SUCCEEDED( hr ) ) { hr = CoCreateInstance(CLSID_WMEncoder, NULL, CLSCTX_INPROC_SERVER, IID_IWMEncoder, (void**) &pEncoder); } // Retrieve the source group collection. if ( SUCCEEDED( hr ) ) { hr = pEncoder->get_SourceGroupCollection(&pSrcGrpColl); } // Add a source group to the collection. if ( SUCCEEDED( hr ) ) { hr = pSrcGrpColl->Add(CComBSTR("SG_1"), &pSrcGrp); } if ( SUCCEEDED( hr ) ) { hr = pSrcGrp->AddSource(WMENC_AUDIO, &pSrc); } if ( SUCCEEDED( hr ) ) { hr = pSrc->QueryInterface(IID_IWMEncAudioSource, (void**)&pSrcAud); } if ( SUCCEEDED( hr ) ) { hr = pSrcAud->SetInput(CComBSTR("C:\\InputFile.wav")); } // Specify a file object in which to save encoded content. if ( SUCCEEDED( hr ) ) { hr = pEncoder->get_File(&pFile); } if ( SUCCEEDED( hr ) ) { hr = pFile->put_LocalFileName(CComBSTR("C:\\OutputFile.wma")); } // Retrieve a pointer to the property bag. if ( SUCCEEDED( hr ) ) { hr = pSrcAud->QueryInterface(IID_IPropertyBag, (void**)&pPropertyBag); } // Choose a profile from the collection. if ( SUCCEEDED( hr ) ) { hr = pEncoder->get_ProfileCollection(&pProColl); } if ( SUCCEEDED( hr ) ) { hr = pProColl->get_Count(&lCount); } for (i=0; i

    C / C++ / MFC com help question

  • About the WM_ENABLE?
    Z zhaopzhi

    To make the control of IDC_RADIO1 to be enabled state,I tried SendDlgItemMessage and EnableWindow respectively.The result is the statement "EnableWindow(GetDlgItem(hDlg,IDC_RADIO1),TRUE);" succeeds, but the " SendDlgItemMessage( hDlg, IDC_RADIO1, WM_ENABLE, (WPARAM)0L, (LPARAM)0L );" is failing! Why??? The following is my codes: // Mesage handler for about box. LRESULT CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) { switch (message) { case WM_INITDIALOG: return TRUE; case WM_COMMAND: switch(LOWORD(wParam)) { case IDOK: case IDCANCEL: EndDialog(hDlg, LOWORD(wParam)); return TRUE; case IDC_BUTTON1: //SendDlgItemMessage( hDlg, IDC_RADIO1, WM_ENABLE, (WPARAM)TRUE, (LPARAM)0L );//fail! EnableWindow(GetDlgItem(hDlg,IDC_RADIO1),TRUE);//succeed. //SendDlgItemMessage( hDlg, (int)IDC_BUTTON2, WM_ENABLE, (WPARAM)0L, (LPARAM)0L );//fail! //SendMessage(GetDlgItem(hDlg,IDC_RADIO1), WM_ENABLE, (WPARAM)0L, (LPARAM)0L );//fail! break; } break; } return FALSE; } Rap off for you,for me,for our human.

    C / C++ / MFC question

  • Where to get AD1812 sound card drivers for Windows 2000 ?
    Z zhaopzhi

    I understand you. I am only trying to find the driver.If it will have failed ,I 'll buy one new sound card. Rap off for you,for me,for our human.

    IT & Infrastructure help question

  • Where to get AD1812 sound card drivers for Windows 2000 ?
    Z zhaopzhi

    According to your hint,however,I haven't found it. I've added the information about the card.Would you help me with finding it? Anyway,thank you in advance! Rap off for you,for me,for our human.

    IT & Infrastructure help question

  • Where to get the sound card drivers for Windows 2000 ?
    Z zhaopzhi

    -------------------------------------- ANALOG DEVICES AD1812js SOUNDPORT 9617 BA1226.1-1.2 MODEL AA1812 MADE IN CHINA FCC ID: LX9UN-1812 -------------------------------------- I very wanna get the above sound card drivers for Windows 2000. Where to get it??? Please help me! Thank you in advance! Rap off for you,for me,for our human.

    C / C++ / MFC help question

  • Where to get AD1812 sound card drivers for Windows 2000 ?
    Z zhaopzhi

    -------------------------------------- ANALOG DEVICES AD1812js SOUNDPORT 9617 BA1226.1-1.2 MODEL AA1812 MADE IN CHINA FCC ID: LX9UN-1812 -------------------------------------- I very wanna get the above sound card drivers for Windows 2000. Where to get it??? Please help me! Thank you in advance! Rap off for you,for me,for our human.

    IT & Infrastructure help question

  • Why doesn't the process be terminated?
    Z zhaopzhi

    I have exited my application,why the process still lives in the "Windows Task manager"??? Plese help me! Rap off for you,for me,for our human.

    C / C++ / MFC help question

  • "Unhandled exception in Test.ex[MSCTF.DLL]:0XC0000005:Access Violation"???
    Z zhaopzhi

    In VC6.0,when I debug my program Test that depends on a DLL,a message box always pops up with "Unhandled exception in Test.exe[MSCTF.DLL]:0XC0000005:Access Violation".But when executing it,the undesired thing doesn't emerge.Why??? Please help me!!! Rap off for you,for me,for our human.

    C / C++ / MFC debugging help question

  • Is there such a API function for thread?
    Z zhaopzhi

    It is well-known that the PostThreadMessage function ,only for thread,places (posts) a message in the message queue of the specified thread and then returns without waiting for the thread to process the message. Q: Whether there is a function which ,similar to SendMessage in function,but for thread not window,sends the specified message to a thread and does not return until the thread has processed the message. Rap off for you,for me,for our human.

    C / C++ / MFC data-structures json question

  • PostThreadMessage(...)???
    Z zhaopzhi

    sequence 1: MessageBox(NULL,"a test","a test",MB_OK); BOOL b = PostThreadMessage(threadID,WM_TEST,0,0); sequence 2: BOOL b = PostThreadMessage(threadID,WM_TEST,0,0); MessageBox(NULL,"a test","a test",MB_OK); ---------- The "sequence 1" and the "sequence 2" are identical except for sequence.The return value "b" proved that they sent the message "WM_TEST" successfully.But "sequence 2" didn't made the thread identified by "threadID" receiving the message. Why??? For this, I should how to do??? Thank you in advance! Rap off for you,for me,for our human.

    C / C++ / MFC tutorial question

  • "sys/ioctl.h"
    Z zhaopzhi

    Where to get "sys/ioctl.h"???:confused: Thank you!!! Rap off for you,for me,for our human.

    C / C++ / MFC question

  • How to convert the raw WAV data into WMA format?
    Z zhaopzhi

    Please prompt me,how to convert the raw WAV data into WMA format? Which API fuctions are needed?:confused: Rap off for you,for me,for our human.

    C / C++ / MFC json tutorial question

  • How to open the project in VC6.0?
    Z zhaopzhi

    The VC6.0 does not make response! Rap off for you,for me,for our human.

    C / C++ / MFC announcement workspace debugging tutorial question

  • How to open the project in VC6.0?
    Z zhaopzhi

    In VC6.0,I can't open the CDex project.The following is the content of the project's helpful file: "CDex can be compiled with the MICROSFT VISUAL C compiler, version 6.0. The project files are included. Make sure though, when you've downloaded the cdex_src.tgz file that you unzip the files as DOS text files and not as UNIX text files (MSVC does not like DSW project file that are in UNIX text file format). In addition you need to download the lame source code (or you can delete the LameMp3EncDll and libmp3lame files from the project workspace). Once you have installed everything, open the cdex.dsw project file (double click on on it), and select the proper configuration (either 'CDex - Win32 Debug' or 'CDex - Win32 Release' and select Build/Rebuild All menu option. In order to run CDex from MSVC, set the working directory (project settings/debug) to the root of the cdexos project, e.g. c:\CVS\cdexos) " Please tell me how to do to open it! Rap off for you,for me,for our human.

    C / C++ / MFC announcement workspace debugging tutorial question

  • How to only list my own posted messages in the forum?
    Z zhaopzhi

    In the forum,I haven't found the funcion to only list own posted messages? Please help! Rap off for you,for me,for our human.

    C / C++ / MFC help tutorial question

  • What is needed for programming a VC project about WMA audio format?
    Z zhaopzhi

    Thank you first! Rap off for you,for me,for our human.

    C / C++ / MFC question

  • Where to find the VC6.0 source code of from CD audio to WMA?
    Z zhaopzhi

    Thank you first! Rap off for you,for me,for our human.

    C / C++ / MFC question

  • In VC6.0, how to change Release to Debug?
    Z zhaopzhi

    In VC6.0,how to change a project from Release to Debug for debuging it? Thank you very much first! Rap off for you,for me,for our human.

    C / C++ / MFC debugging tutorial question announcement
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups