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
N

NorthWoodsman

@NorthWoodsman
About
Posts
4
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Copying data to bytes for sockets
    N NorthWoodsman

    What is the graceful way of moving your data to byte[]'s to be sent over the wire? In C++, I'd do something like this struct SomeDataHeader { AnEnum SomeDescriptiveFlag DWORD dwDataLength } void SendThis(SOCKET &rS, LPCTSTR szData) { SomeDataHeader h; h.SomeDescriptiveFlag = SDH_RANDOMSTUFF; h.dwDataLength = lstrlen(szData) + 1; BYTE *pbData = new BYTE[sizeof(h) + h.dwDataLength]; memcpy(pbData, h, sizeof(h)); memcpy(&pbData[sizeof(h)], szData, h.dwDataLength); Send(rS, pbData, sizeof(h) + h.dwDataLength); } (Note that this code is pretty sloppy/probably not right, but you get my idea) What I'm trying to do is send arbitrary data over the line; What's the best way to do this?

    C# question c++

  • Setting Master Volume
    N NorthWoodsman

    How do you set the master volume for sound devices? There appears to be no simple way to do this; Every time I try to find something, I end up being bogged 10 miles deep in random WINMM functions that, in my opinion, should've been depreciated about 3 versions ago. Mind you, I don't want to control the WAVE volume, I want the "What you Hear" volume, or in other words, what is set when you left-click the Sound tray icon.

    C / C++ / MFC question lounge

  • Client-side scripts with ASP.NET
    N NorthWoodsman

    So I'm trying to add script my ASP.NET objects using JScript on the client side (Just dumb stuff like resizing images, etc), and I have this code:

    <!-- function Form_onResize() { Image1.width = 2 } -->

    This code, when executed, shows a "Image1 not defined" in both Mozilla Firebird and IE6. Seeing the source code downloaded by the browser shows that they are indeed still named. Also, when I add the "name" tag to ASP:image, it underlines it, like it doesn't understand the tag.

    ASP.NET csharp asp-net tools

  • Question about UTF8 Encoding
    N NorthWoodsman

    How do I take an arbitrary string and UTF8 encode it using System.Text.Encoding.UTF8? I found out how to write strings and how to convert byte data, but not how to convert strings. You'd think this would be easier; maybe I'm missing something. (I'm using C# by the way).

    .NET (Core and Framework) question csharp tutorial
  • Login

  • Don't have an account? Register

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