Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. hankgao0703

    Relationship between DirectShow and WM9 Encoder SDK?

    Does anyone know what's the connection between DirectShow and Windows Media Encoder SDK? How can I make Windows Media Encoder support MPEG2 file?
  2. hankgao0703

    Accelerator key handling without menu item

    Thanks for your reply. I am adding jog panel support to a existing VB application. Jog panel basically is a kind of input device just like keyboard and mouse, but specifictly designed for some special applications. In my case, the application is a video playing application(we embed Ms Media...
  3. hankgao0703

    Accelerator key handling without menu item

    Does anybody know how to make a VB application respond to a certain accelerate key combination without bothering to add a menu item. Thanks
  4. hankgao0703

    20-bit to 16-bit audio sample conversion

    Does anybody know how to convert 20-bit audio sample data into 16-bit data? This is very urgent and thanks in advance
  5. hankgao0703

    User break point called from code.......

    This could happen when deleting an invalid pointer. For example, the following code would cause this problem: char * gString = new char[255]; .... delete []gString; .... and somewhere else you delete this pointer again. delete []gStrings; There are other situations you could come across...
  6. hankgao0703

    afxDump does anything

    Thanks for reply. I just want to test afxDump, so I created a console project with MFC support, in my main function, I just put the following line: afxDump << &quot;Messages&quot;; and I can not find the anything in the debug window. The project was built with Win32 Debug configuration, so...
  7. hankgao0703

    afxDump does anything

    When I try to use MFC predefined variable afxDump which is of type CDumpContext, I can not get anything from it, but it supposes to dump output to default debugger, which in VC6.0 environment is the debug window. Does anybody know the reason? Thanks Hank Gao
  8. hankgao0703

    WaitForSingleObject Crashes

    When I debug my application in IDE, I find sometimes when I call WaitforSingleObject which waits a event object, the whole application crashes, and the following message is given: Unhandled exception in blabla.exe: 0xC0000005: access violation My concern is that if the event handle which is...
  9. hankgao0703

    Weird Debug Error

    The problem is because, I think, delete is called inappropriately. Look the following example: char * pChar = new char; delete pChar; delete pChar; The above code runs without anywarning outside the debug environemnt, but error is reported in IDE. so please check your code to see if it is the...
  10. hankgao0703

    Problem with __declspec(align)

    Thanks, this is of great help
  11. hankgao0703

    Problem with __declspec(align)

    &quot;Incomplete installation&quot;? probably, I never thought of this reason, and I will check it out. I don't quite understand why you say VC.NET, I am using VC6.00, Do I have to use VC.NET before I can use __declspec(align(xx))?
  12. hankgao0703

    C-problem (and it makes me mad)

    Sorry the correct code is the following: void MyFunc(char* pArray) { typedef char myArrayType[50[20]; myArrayType * pWork = (myArrayType *)pArray; //Now you cna use pWork (*pWork)[0][0] = 20; //Something like this. .... } Sorry for the mistake.
  13. hankgao0703

    C-problem (and it makes me mad)

    I am not sure the following answer is the right one: What you want to pass to the function is a 2-dimension array(Actually a pointer which points to the beginning address of the array), and the function declaration shows that you pass a char pointer. It's okay, on problem. The key is how to...
  14. hankgao0703

    Problem with __declspec(align)

    Sure, I declare a structure type as the following: __declspec(align(16)) struct MyStruct { // short shortArray[12][64]; ..... }myVarName; and the compiler reports: fatal error C1600: unsupported data type When I doule clike this error message in the build window, I can go nowhere in the...
  15. hankgao0703

    Problem with __declspec(align)

    In one of my projects, I have to use __declspec(align(16) to force the memory allocation is done at 16 bytes boundary, but I alway get error: C1306(or else) => Unsupported Data Type When I remove __declspec(align(16)) modifier, everything seems ok. by the way, based on the MS document...
  16. hankgao0703

    CreateDIBSection problem

    Doese anybody know what exactly the reason can cause CreateDIBSection fails. I call CreateDIBSection, but it fails occassionaly. Thanks.
  17. hankgao0703

    DIVX PRO 5.0 and MP3 codec !!!

    I guess this is something related to MP3 codec, try to use another MP3 code instead of fraunhofer and see what happens
  18. hankgao0703

    How to create a new xml file using xerces xml api?

    I think xerces apis are used to parse XML document, instead of generating XML document. If you want to create a XML documents, you have to write XML statements yourself. Hope this can help.
  19. hankgao0703

    Can not open network file in windows service

    Thanks, But I am using same account with the one I use in the indepedent application, I still get this error.
  20. hankgao0703

    Can not open network file in windows service

    I am developing a windows service applicaiton in which I open a file which resides in another computer and do further handling. what I am doing now is map that network directory to a local logical driver, then call fopen function to open it, just like it were a local file, but I just can not...

Part and Inventory Search

Back
Top