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. Design and Architecture
  4. Will C++ and even MFC Work in this Environment?

Will C++ and even MFC Work in this Environment?

Scheduled Pinned Locked Moved Design and Architecture
c++questionworkspace
4 Posts 3 Posters 1 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.
  • Richard Andrew x64R Offline
    Richard Andrew x64R Offline
    Richard Andrew x64
    wrote on last edited by
    #1

    I'm planning to develop a Winsock Layered Service Provider. Given that the provider DLL will end up being loaded into system processes as well as user ones, are there any restrictions on the uses of the C++ runtime and/or MFC inside these processes? Am I going to have to develop it in straight C? (I hope not.) When I say system processes, I mean user mode system processes. The LSP is not a kernel mode component.

    The difficult we do right away... ...the impossible takes slightly longer.

    M A 2 Replies Last reply
    0
    • Richard Andrew x64R Richard Andrew x64

      I'm planning to develop a Winsock Layered Service Provider. Given that the provider DLL will end up being loaded into system processes as well as user ones, are there any restrictions on the uses of the C++ runtime and/or MFC inside these processes? Am I going to have to develop it in straight C? (I hope not.) When I say system processes, I mean user mode system processes. The LSP is not a kernel mode component.

      The difficult we do right away... ...the impossible takes slightly longer.

      M Offline
      M Offline
      Munchies_Matt
      wrote on last edited by
      #2

      Its a user mode process, system or app, then yes, any MFC code can be used. Oh, and you can write C++ in the kernel, it does after all just end up as assembler, same as C. The issue with MFC are the libraries it uses. These just arent kernel usable.

      1 Reply Last reply
      0
      • Richard Andrew x64R Richard Andrew x64

        I'm planning to develop a Winsock Layered Service Provider. Given that the provider DLL will end up being loaded into system processes as well as user ones, are there any restrictions on the uses of the C++ runtime and/or MFC inside these processes? Am I going to have to develop it in straight C? (I hope not.) When I say system processes, I mean user mode system processes. The LSP is not a kernel mode component.

        The difficult we do right away... ...the impossible takes slightly longer.

        A Offline
        A Offline
        Albert Holguin
        wrote on last edited by
        #3

        I personally wouldn't recommend using MFC for anything that doesn't involve a GUI. It's relatively large and really buys you minimal help for most things (although it does help a lot with GUI objects). As to building an LSP (note the "deprecated" part)... Layered Service Provider - Wikipedia[^] As to building this type of DLL using C++, sure, you probably just need to export some functions using the 'C' style exports so they could be loaded. It's common practice so you'll find examples everywhere.

        Richard Andrew x64R 1 Reply Last reply
        0
        • A Albert Holguin

          I personally wouldn't recommend using MFC for anything that doesn't involve a GUI. It's relatively large and really buys you minimal help for most things (although it does help a lot with GUI objects). As to building an LSP (note the "deprecated" part)... Layered Service Provider - Wikipedia[^] As to building this type of DLL using C++, sure, you probably just need to export some functions using the 'C' style exports so they could be loaded. It's common practice so you'll find examples everywhere.

          Richard Andrew x64R Offline
          Richard Andrew x64R Offline
          Richard Andrew x64
          wrote on last edited by
          #4

          Albert Holguin wrote:

          As to building an LSP (note the "deprecated" part)...

          I know it's deprecated, but I don't have the resources or the time to learn how to write a kernel mode filter driver for the new Windows Filtering Platform. Plus I don't think it will be removed because LSPs are part of the Winsock spec.

          The difficult we do right away... ...the impossible takes slightly longer.

          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