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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Question regarding "typeof" equivalent in VC++ .NET

Question regarding "typeof" equivalent in VC++ .NET

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestioncsharpc++
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    NietzscheDisciple
    wrote on last edited by
    #1

    I'm attempting to port a DirectSound application I wrote in VC# (.NET 2003) to VC++ (.NET 2003). I've almost ported the entire code, but I'm stuck on one line, and would really appreciate it if somebody could help me out on this. The line in C# is:

    MemBuffer = (short[])(AppCaptureBuffer.Read(StreamCapBuffReadPos, typeof(short), LockFlag.None, 50000));

    MemBuffer was previously declared as: private short[] MemBuffer; How would I do this in C++? My problem is with the "typeof" keyword in C#. It signifies the returned data type. C++ doesn't appear to have the "typeof" keyword. How do I write this in C++? Thanks!

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

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