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
A

Alegria_Lee

@Alegria_Lee
About
Posts
23
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • After clicking search button, pop up menu will be not at the top level
    A Alegria_Lee

    My browser is TTraveler,and ,I also tried in IE8.

    Site Bugs / Suggestions

  • After clicking search button, pop up menu will be not at the top level
    A Alegria_Lee

    In any page ,After I clicked the search button which is in the same line with "FQA",no matter what results my search matched,the pop up menus will be covered by the search input box.In the meantime, If I want to switch any menu item below the input box ,I can't.

    Site Bugs / Suggestions

  • Got a 512 error on calling acmStreamOpen() in c#
    A Alegria_Lee

    Bernhard Hiller wrote:

    Next, some codecs can be used for playback only, not for recording or conversion. On Windows XP, you could try to do the conversion with Windows Audio Recorder in order to find out if it is possible at all.

    I'm sure it can be converted.

    Bernhard Hiller wrote:

    Is the codec for WAVE_FORMAT_ALAW installed?

    Do you know how to check out if a codec is installed?I am pretty new about this.

    C# help csharp question

  • Got a 512 error on calling acmStreamOpen() in c#
    A Alegria_Lee

    Hi all, I got a problem on calling acmStreamOpen() in C#.When I 'm calling acmStreamOpen(), on WAVEFORMATEXsrc and WAVEFORMATEXdest are both with the wFormatTag of WAVE_FORMAT_PCM,it returns 0(Successful).but if I changed any of them (or both )to be WAVE_FORMAT_ALAW, I got a 512 error. Did I miss something on defining the ALAW WAVAFORMATEX?Thanks.

    CWavConvertor.WAVEFORMATEX WAVEFORMATEXsrc = new CWavConvertor.WAVEFORMATEX();
    WAVEFORMATEXsrc.wFormatTag = CWavConvertor.WAVE_FORMAT_PCM;
    WAVEFORMATEXsrc.nChannels = 1;
    WAVEFORMATEXsrc.nSamplesPerSec = 22050;
    WAVEFORMATEXsrc.wBitsPerSample = 16;
    WAVEFORMATEXsrc.nBlockAlign = Convert.ToUInt16(WAVEFORMATEXsrc.nChannels * WAVEFORMATEXsrc.wBitsPerSample / 8);
    WAVEFORMATEXsrc.nAvgBytesPerSec = WAVEFORMATEXsrc.nSamplesPerSec * WAVEFORMATEXsrc.nBlockAlign;

            CWavConvertor.WAVEFORMATEX WAVEFORMATEXdest = new CWavConvertor.WAVEFORMATEX();
            WAVEFORMATEXdest.wFormatTag = CWavConvertor.WAVE\_FORMAT\_ALAW;
            WAVEFORMATEXdest.nChannels = 1;
            WAVEFORMATEXdest.nSamplesPerSec = 8000;
            WAVEFORMATEXdest.wBitsPerSample = 8;
            WAVEFORMATEXdest.nBlockAlign = Convert.ToUInt16(WAVEFORMATEXdest.nChannels \* WAVEFORMATEXdest.wBitsPerSample / 8);
            WAVEFORMATEXdest.nAvgBytesPerSec = WAVEFORMATEXdest.nSamplesPerSec \* WAVEFORMATEXdest.nBlockAlign;
            WAVEFORMATEXdest.cbSize = 0;
            CWavConvertor.WAVEFILTER wfltr = new CWavConvertor.WAVEFILTER();
            IntPtr mystreamptr = IntPtr.Zero;
            int a = CWavConvertor.acmStreamOpen(out mystreamptr, IntPtr.Zero, ref WAVEFORMATEXsrc, ref WAVEFORMATEXdest, wfltr, 0, 0, CWavConvertor.ACM\_STREAMOPENF\_NONREALTIME); // returns 512(ACMERR\_NOTPOSSIBLE )
    
    C# help csharp question

  • combine multiple rows in single row
    A Alegria_Lee

    why MIN?

    Database tutorial

  • Multiple Rows to Single Rows
    A Alegria_Lee

    :-D you are welcome

    Database database

  • How to put a rsa private key "hiden" in the code, and encrypt something with RSA! Sending the public key to decrypt.
    A Alegria_Lee

    You're welcome. By the way,Have you find out a solution to solved your problem ?(" encrypt with private key and decrypt with public key ") AS i know,RSA can not seem to do so .

    C# help security tutorial question

  • Productivity to a grinding hault
    A Alegria_Lee

    DavidKiryazi wrote:

    Is it ok to develop a large application all in code behind and then try to refactor it out later?

    Absolutely not. if you to do so,you will find the workload is far beyond your imagination. did you read any article about "Object-oriented design patterns"?

    Design and Architecture help csharp design tools oop

  • date manipulation
    A Alegria_Lee

    How about "case when" ?

    case when
    cast(right(@dates,2) as int) > 1
    then
    convert(char(8),dateadd(month,1,cast(left(@dates,6) + '01' as datetime(8))),112)
    else
    @dates
    end

    Database

  • combine multiple rows in single row
    A Alegria_Lee

    SELECT FID,Code,Max(Value1),Max(Value2)
    FROM TableName
    Group By FID,Code

    Database tutorial

  • Multiple Rows to Single Rows
    A Alegria_Lee

    SELECT ...,...,...,MAX(open_value_1),MAX(close_value_1) FROM
    (
    --YOUR SELECT QUERY
    )A
    GROUP BY ...,...,...

    Database database

  • How to put a rsa private key "hiden" in the code, and encrypt something with RSA! Sending the public key to decrypt.
    A Alegria_Lee

    I'm glad it's helpfull for you. Actually,I haven't used this before. :-D

    C# help security tutorial question

  • How to put a rsa private key "hiden" in the code, and encrypt something with RSA! Sending the public key to decrypt.
    A Alegria_Lee

    here is an example. http://wenku.baidu.com/view/87cbefaedd3383c4bb4cd2ac.html[^]

    C# help security tutorial question

  • 1 recursive field in a Query
    A Alegria_Lee

    Do you mean ,with a given root node to get a whole tree ?

    Database database help question

  • Subquery select case
    A Alegria_Lee

    but he alse got this Error infomation "got an error: Invalid column name 'MYFLG'".

    Database help database csharp

  • Subquery select case
    A Alegria_Lee

    I guess "MYFLG" is not a column of table1. what result he wants to get is that rows "

    not in where COLUMN1 = 1 AND COLUMN2 = 0

    " If so,Why don't use this

    Select * from TABLE1 where PK not in ( Select PK From TABLE1 Where COLUMN1 = 1 AND COLUMN2 =0)

    modified on Wednesday, October 13, 2010 10:37 PM

    Database help database csharp

  • Where is "My Setting"?
    A Alegria_Lee

    Actually,I'm not sure.If it was disabled ,when i hovered over these items (such as "Articles"、"Questions&Answers" ...),I was not supposed to see their submenus,but the js is not working only when i hovered over my username ,is that mean it is not disabled? anyway,my problem has been solved,thanks at all. :-D

    The Lounge question

  • Where is "My Setting"?
    A Alegria_Lee

    Thank you so much!!:rose::rose:

    The Lounge question

  • Where is "My Setting"?
    A Alegria_Lee

    I have hovered my mouse over it for a long time ... nothing shows up ...

    The Lounge question

  • Where is "My Setting"?
    A Alegria_Lee

    I saw my id and a green triangle down ,at the top right corner after i have logged on ,but i could't find where the button (or label or anything ) which should be named "My Setting " is. Can the green triangle down be expanded? :confused: I just want to change my password ...

    The Lounge question
  • Login

  • Don't have an account? Register

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