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
D

David Williams

@David Williams
About
Posts
14
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • What am I doing wrong with Public?
    D David Williams

    Yeah, but the VB doc says "The Public keyword in the Dim statement declares elements to be accessible from anywhere within the same project, from other projects that reference the project, and from an assembly built from the project."

    Visual Basic question

  • What am I doing wrong with Public?
    D David Williams

    This doesn't work. I thought declaring a variable as public in a class made it global. Public Class Form1 ... Public i as integer Private Sub Form1_Load(... i = 1 End Sub End Class Public Class Form2 ... Private Sub Form2_Load(... Dim j As Integer j = i :confused: compiler says i is undefined End Sub End Class

    Visual Basic question

  • How do you print a project in NET
    D David Williams

    In VB 6, as I recall, you could print an entire project with one Studio command, set the header, etc. Now, do I have to print each file and class seperately? Can't I customize the header, at least?

    Visual Basic question

  • This control array should work, right?
    D David Williams

    Thanks for the reply. But I'm new to .NET. If you mean, have the main form inherit from System.Windows.Form.IContainerControl it doesn't work. At least I get an error that says classes can inherit only from classes.

    Visual Basic csharp database data-structures question

  • This control array should work, right?
    D David Williams

    Thanks, works pretty good. If I want to add the control array to a panel instead of a form, how would I declare the control? assuming a Panel1 on the main form, Dim ControlArray as ButtonArray(Panel1) 'doesn't work since Panel1 is not a "form" container

    Visual Basic csharp database data-structures question

  • This control array should work, right?
    D David Williams

    Thanks, works pretty good. If I want to add the control array to a panel instead of a form, how would I declare the control?

    Visual Basic csharp database data-structures question

  • This control array should work, right?
    D David Williams

    I know .NET is different than 6 wrt control arrays. But shouldn't I be able to capture the CLICK on the following (fragment)? Dim contArray(2) as Button for i = 0 to 1 contArray(i) = new Button contArray(i).tag = i controls.add(contArray(i)) next i ... private sub contArray_CLICK (...) or something that lets me get the tag or index of the button clicked. -David

    Visual Basic csharp database data-structures question

  • Playing raw audio samples
    D David Williams

    How do I? Or, to be a little more precise, I would like to suck homemade audio samples from an buffer (e.g., noise might be a gaussian distribution of integers between + -32K)and feed them at the right rate to a soundcard (audio device) for real-time play. (I'm not trying to play an existing, saved wav file.) A simple application would be a VCO (oscillator with a slider controlling the frequency). In the .net world, is this done by DirectX? By the WINAPI? wavePlay? Magic? Not at all? Background note: a wavetable might contain one complete waveform of a sample, and the buffer might have as many repetitions of the sample as maching performance allows.

    C# question csharp graphics game-dev performance

  • Help reading a binary file
    D David Williams

    This works for little endian. Will it work for big endian if I call it thus: 16IntURead() ;)

    C# data-structures help question

  • Help reading a binary file
    D David Williams

    No, not simple. Gunnerson's BinaryReader works, but for little endian, not big. :((

    C# data-structures help question

  • Create An "add-in-able" Application
    D David Williams

    How tightly coupled do you want the add-ins? Photoshop, I believe, uses a type of plug-in where, if a function (filter, in this case) in the right folder on startup, it is made available to the app. But I don't know what kind of internal interface it uses.

    C# com tutorial

  • Help reading a binary file
    D David Williams

    Yeah, I tried the deserialize and found it needed a header. Just to see what it needed, I serialized a 10 byte binary file and found the binary formatter put 28 bytes of header up front. Oh, well. lippie's solution works. Thanks for the response, though.;)

    C# data-structures help question

  • Help reading a binary file
    D David Williams

    Yep. This works, and you do have the bit ops correct. Thanks:)

    C# data-structures help question

  • Help reading a binary file
    D David Williams

    I need to read a binary file into a ushort array. The file was created with another app, and just consists of two bytes per ushort (big endian). FileStream.Read will get the bytes in OK - as bytes. I'd like to read them in directly to ushort. Sounds simple. Is it?

    C# data-structures help 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