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#
  4. VC 6 code won't compile in .Net

VC 6 code won't compile in .Net

Scheduled Pinned Locked Moved C#
csharphelpannouncement
2 Posts 2 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.
  • R Offline
    R Offline
    Ryan Cromwell
    wrote on last edited by
    #1

    I have an Explorer extension that implements the IContextMenu interface. It all compiles fine in vc6 but if I open and hence convert it in vc7 (.net) it tells me that interface hasn't been defined. In my class file I can right click on the word IContextMenu and go to definition and life is good. all win32 defines are correct. Would there be a problem with the SDK if it was installed before .Net. Maybe I'll check the SDK update...

    S 1 Reply Last reply
    0
    • R Ryan Cromwell

      I have an Explorer extension that implements the IContextMenu interface. It all compiles fine in vc6 but if I open and hence convert it in vc7 (.net) it tells me that interface hasn't been defined. In my class file I can right click on the word IContextMenu and go to definition and life is good. all win32 defines are correct. Would there be a problem with the SDK if it was installed before .Net. Maybe I'll check the SDK update...

      S Offline
      S Offline
      Stephane Rodriguez
      wrote on last edited by
      #2

      From what I read, you are not using C# (C# forum). -IContextMenu is defined in ShlObj.h which is not a default header automatically included by vc. -IID_IContextMenu is defined in ShlGuid.h -You must link with either uuid.lib or shell32.lib


      And I swallow a small raisin.

      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