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
G

grv575

@grv575
About
Posts
42
Topics
20
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • hyperthreading
    G grv575

    smack! that used to be the case actually.

    The Lounge question

  • fileshare
    G grv575

    I'm creating a file in a dll with: invoke CreateFile, addr logfile, GENERIC_READ or GENERIC_WRITE, FILE_SHARE_READ or FILE_SHARE_WRITE, 0, CREATE_ALWAYS, 0, 0 and then trying to open it for read access with: fs = new FileStream("whlog.log", FileMode.Open, FileAccess.Read, FileShare.Read); which always gives me: An unhandled exception of type 'System.IO.IOException' occurred in mscorlib.dll Additional information: The process cannot access the file "C:\\whlog.log" because it is being used by another process. What gives?

    C# question

  • video overlay screen grab
    G grv575

    What's necessary to get a screen capture from a program that uses video overlaying (Windows Media player for one). Several programs such as SnagIT advertise being able to capture from these programs. Is there anything special in code that I need to use besides a standard bitblt?

    C# question

  • Media Player
    G grv575

    OK but I'm trying to get away from programming directshow or using s/o else's wrapper. I'd prefer to use the MS Media Player control.

    C# com tutorial announcement

  • Media Player
    G grv575

    Using the Media Player activex control with the latest version of directshow sdk I can't figure out how to play the file. Setting the filename is apparently done with the Url property. Also can't figure out how to seek...set the media player position.

    C# com tutorial announcement

  • Interop
    G grv575

    If I have the C code: beEncodeChunk(HBE_STREAM hbeStream, DWORD nSamples, PSHORT pSamples, PBYTE pOutput, PDWORD pdwOutput); can I just use ...(..., short[] Samples, ...) or do I need pSamples to be an IntPtr? If you want to check out the simple code (a wav -> mp3 encoder) it's located at http://www.geocities.com/grv575/encode.zip I don't see what's wrong besides maybe the gc moving the managed arrays around if that's what causing the encode method to fail.

    C# com question

  • marshalling
    G grv575

    Wish I knew. I deleted VS6 and am not keen on reinstalling it. In any case I'm almost certain it's typedef int bool or typedef enum { false, true } bool. Either way, it looks like I need a dword size field.

    C# question

  • marshalling
    G grv575

    unsigned char or int? :) What's more common (VC 6 i guess, if anyone can check)

    C# question

  • marshalling
    G grv575

    What size should I use to get an equivalent C struct for the type bool? i.e. struct { DWORD a; bool b; } s; would be struct s { int a; // bool a; or char a; or byte a; ? } ...what's the best way to marshal C bools?

    C# question

  • unicode searching
    G grv575

    I have a text file with unicode strings (T H I S I S A S T R I N G) and I want to search for those strings and convert them to ascii. How do I use string.IndexOf for a unicode value? Say I want to search for: file.IndexOf(Encoding.Unicode.GetBytes("http://")); which obviously doesn't work since there is no byte[] overload. So how do I convert an ascii string to a unicode string? All I really need I guess is how to get "http://" converted to "h\0t\0t\0p\0:\0/\0/\0" and back.

    C# question algorithms tutorial

  • removing file lock
    G grv575

    Is there a way to manually remove a file lock?

    C# question

  • show tooltip
    G grv575

    Is there a way to force the display of a notifyicon tooltip? I want the tooltip to be displayed without the user actually hovering over the taskbar icon.

    C# question

  • unions
    G grv575

    Yeah what exactly does cls compliant really mean? Is that the same as a Microsoft Certified Professional?

    C# question csharp

  • unions
    G grv575

    Thanks. So for the BE_CONFIG union in the LAME api I should just start every inner struct at FieldOffset(0)?

    C# question csharp

  • merge mpeg
    G grv575

    Heh. It's powervcr that's my problem. Cuts recorded mpegs to 600mb. But the problem with using copy /b is that it uses the movie length (total time) of the last mpeg. So seeking only seeks within the first part of the final mpeg.

    C / C++ / MFC tools tutorial question

  • merge mpeg
    G grv575

    Any source code examples on how to merge multiple mpeg files or maybe a commandline utility that would do it?

    C / C++ / MFC tools tutorial question

  • ir driver
    G grv575

    Would it be simpler doing it in C then?

    C# csharp question

  • ir driver
    G grv575

    Is it possible to write a win2000 driver to control a usb ir remote in C#?

    C# csharp question

  • cast rounding defaults
    G grv575

    Is there way to make int i = (int)3.6; give a rounded as opposed to floored result? Some global setting?

    C# question

  • Threads and multiple http connections
    G grv575

    If you are looking to track down the bug I'd recommend the allocation profiler which will give you memory snapshots (same site) and compuware's devpartner profiler might give you some insight.

    C# help debugging 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