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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
R

rikkemus

@rikkemus
About
Posts
16
Topics
9
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Combine assemblies
    R rikkemus

    If i have several dll's in my solution Is it then possible to include them in my EXE file, instead of them flooding my launch directory? I dont want to put them in the gac or anything. Just want them included in the EXE file somehow.. Kind Regards CS

    C# dotnet question

  • ShowDialog Help
    R rikkemus

    Im making a window with 3 fields that needs to be filled out. Im using it as a modal window. 2 buttons for OK and Cancel. If the User presses OK, i want to inform him, he hasnt filled out all fields, if thats the case. And then keep the window open. The question is, how do i suppress the form from closing, when not every field is filled out. Thx in advance.

    C# question help

  • Modal Dialog Loosing focus
    R rikkemus

    I have tried that, bu the application that called my Dialog window snatched focus back, and was hiding behind my dialog. But i found a working solution through the User32.dll call. [DllImport("user32.dll", SetLastError=true)] static extern void SwitchToThisWindow(IntPtr hWnd, bool fAltTab); SwitchToThisWindow(this.Handle, false); It activates my window/dialog. Thx though for the answer :-)

    C# json question

  • Modal Dialog Loosing focus
    R rikkemus

    Hi i made a Modal DIalog Box( showdialog() ) Its on top and everything, but the application who calls it( another enviroment ) steals back the focus, but with my modal dialog box on top still. This annoys me! meaning i cannot just press enter to move along, but need to get focus back to my dialog form, before i press enter. How can i make sure that it(dialogbox) always have focus over other applications, that nothing takes it away. is there some windows api i can call or something, i have been looking but with no luck. Thx in advance

    C# json question

  • Print the contents of an entire form
    R rikkemus

    Yes but those examples doesnt really do what i want, it has shortcomings when it comes to pictureboxes etc. In old vb6.0 you could print an entire form, with PrintForm. MSDN makes an example where they Screenshot the memory for the drawed form(since printform isnt in .net), but if some part of the form is outside the screen, it cant dump that. To me it sound logically, that you should be able to extract the drawed form somehow, even though it isnt on screen. Perhaps build a shadow of it in memory? and then memcpy that to the printerdocument.

    C# question

  • Print the contents of an entire form
    R rikkemus

    Is it possible to print your entire form, with pictureboxes etc. I know you can use ControlPaint.Button etc to print my controls, but what if i had an entire form(not mainmenu and the things above) i wished to output to my printer?

    C# question

  • Fun Image Components
    R rikkemus

    Everyone ever heard about a free image component(open source perhaps) i can use, similar to Kai's Power Goo, where i can alter the pictures in my own windows form. Does .net have any build in methods to manipulate pictures with for instance stretching a picture in selected regions, like the nose of a portrait. Or any other fun ways to alter portraits. Thx in advance.

    IT & Infrastructure csharp

  • How do i store an array of 500 in an db
    R rikkemus

    Im making an access db, that is accessed through my VB 6.0 software. How would a clever way be to store this array in my database without making 500 rows in the table for it. Its 500 double values from a testsystem, that is used to draw a curve.

    Database database data-structures question

  • how to compress audio data
    R rikkemus

    Usually speech doesnt need alot of bits to be audible. If you record speech with 16 bit, try and reduce it.

    C / C++ / MFC help tutorial question

  • how to compress audio data
    R rikkemus

    When it is speech, you dont need as many bits to represent the sound. if its 16, use 8 instead, or even lower perhaps.

    C / C++ / MFC help tutorial question

  • Need help playing sound with DirectSound
    R rikkemus

    I have made a DSP program that reduces a wave file size. Now i want to be able to play it on the fly as a unpack it the new soundformat. Been trying to figure out how to play it with directsound, but havent had much luck, and resources for setting this up is sparse. Does anyone have a working example/link/tutorial, that does the following or explains how to make it. Takes a block of PCM data, for instance 256 bytes. Puts it in a buffer The audio device plays the data in the buffer without gaps. Have some trouble getting the larger picture, of how it should be set up, from reading MSDN explanation. Im all new to directx. Thx in advance

    C / C++ / MFC tutorial graphics game-dev help

  • Playing sound help
    R rikkemus

    I have made my own compressed sound format, and i wish to play it as i decompress it back to pcm format. The problem is this. I wanna play them on the fly, as i decompress the music. Each music frame decompressed is 256 samples. So a compressed music file, consists of alot of frames. The few methods i have found to play music, requires a buffer to the entire length of the PCM data. Since that would require alot of ram, i see that as a problem, besides the fact, that it decompresses the entire file then plays the music.

    C / C++ / MFC help

  • Saving variables with odd bit sizes
    R rikkemus

    Thx for all the answers. I've learned alot. I ended up writing a function that would feed the odd bit sizes to an array of unsigned shorts. Then i could just write them to a file later on, and extract them the reverse way. it looked like this: rawData = data to write to file numberOfBits = the amount of bits from rawdata to be stored. void ReadWriteFrame::placeBit( unsigned short rawData, unsigned short numberOfBits) { unsigned short Data = dataToWrite[dataPtr]; unsigned short dataBit = 0; unsigned short bitToWrite = 0x0001; unsigned short bitToWrite2 = 0; unsigned short bitToRead = 0x0001; unsigned short bitToRead2 = 0; while(numberOfBits > 0) { bitToWrite2 = bitToWrite << bitPointer; bitToRead2 = bitToRead << (numberOfBits - 1); dataBit = rawData & bitToRead2; if( dataBit > 0 ) dataToWrite[dataPtr] |= bitToWrite2; numberOfBits--; bitPointer++; if(bitPointer > 15) { dataPtr++; bitPointer = 0; } } } Thanks for the help :-)

    C / C++ / MFC data-structures

  • Saving variables with odd bit sizes
    R rikkemus

    Thx, this is starting alot of ideas. Just have a few questions. As far as i understand, my struct : struct MyStruct{ int b:3; } only allokates 3 bits of memory for this. I use this command to write -> if( (m_stream = fopen(m_fileName,"ab")) != NULL ) { fwrite(dataPtr, sizeof(short), m_dataBlokSize, m_stream); fclose(m_stream); } else cerr <<"File "<

    C / C++ / MFC data-structures

  • Saving variables with odd bit sizes
    R rikkemus

    Its divided up like this. each set of information about the sound, have a header like this. [0xFFF, 25*4 bit contains info about the number of bits used to represent a sound sample, 25*4 bit contains info about how much the data should be scaled.] 25*4 because there is 25 Bins that contains certain frequency, and 4 bit to represent the number of bits used. 0000 = 0 bit, 0001 = 2 bit, 0002 = 3 bit etc. We cannot use standard compression methods like Zlib( im guessing its an algoritm like winzip? ) I was just hoping for a library allready made, that would put odd number bits into an array. The library would do as you said, by putting the bits next after each other, since it cant write odd numbered bit count to a file. It will become a simple compression. Im just guessing someone might allready have made this kind of function allready. Thx for the reply's

    C / C++ / MFC data-structures

  • Saving variables with odd bit sizes
    R rikkemus

    I need to save information that has odd bit sizes, like 4,5,9,15 bits. I need them to save them in a file, so they use as little space as possible. For instance, i have an array short, and i only need the value of the first 11 bit of each place in the array saved to a file.( In order to compress the file size). When it has all been saved it 0 pads the data, so it will be a multiplum of 8 bits. Is there any standard libs, or other that does this. (Its a school projekt on sound compression.)

    C / C++ / MFC data-structures
  • Login

  • Don't have an account? Register

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