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. VB6 - COM+ - propertybags - .net

VB6 - COM+ - propertybags - .net

Scheduled Pinned Locked Moved C#
csharpquestiondatabasecom
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.
  • H Offline
    H Offline
    Helfdane
    wrote on last edited by
    #1

    I've got an interesting issue here, where I am not sure how to tackle it. So if you have some input for me, it's appreciated. What is the issue? I am working on a new component, which calculates stuff and does some other things. It's not that important what it does for this issue. This new component is programmed in C# on .net 3.5. This new component is meant to replace an old component in the currently widely deployed application. This current application is programmed in VB6 and is an application with a number of COM+ components. One of those components is the DataManager which handles all access/traffic to and from the database, this is a COM+ component. Now, this is where I'm having some difficulties. This datamanager expects 3 parameters: connectionstring, function to be called and last but not least, a propertybag to put the results in. My new component has to use the datamanager for data retrieval. So here I am, in .net I don't have a propertybag, and the methods are called like: _werknemerBO.FetchData(_connectionString, "WnWithWndnstvb", ref data); // data is an empty propertybag, WnWithWndnstvb is the method to be called. I'm no VB6 coder, I can only read it. But is there a robust solution how I can get this solved elegantly? I can't change the datamanager-code, since that component is used by other parts of the application. In .net I have the free hand to get it working. Any suggestions plz, thanks.

    The consumer isn't a moron; she is your wife.

    H 1 Reply Last reply
    0
    • H Helfdane

      I've got an interesting issue here, where I am not sure how to tackle it. So if you have some input for me, it's appreciated. What is the issue? I am working on a new component, which calculates stuff and does some other things. It's not that important what it does for this issue. This new component is programmed in C# on .net 3.5. This new component is meant to replace an old component in the currently widely deployed application. This current application is programmed in VB6 and is an application with a number of COM+ components. One of those components is the DataManager which handles all access/traffic to and from the database, this is a COM+ component. Now, this is where I'm having some difficulties. This datamanager expects 3 parameters: connectionstring, function to be called and last but not least, a propertybag to put the results in. My new component has to use the datamanager for data retrieval. So here I am, in .net I don't have a propertybag, and the methods are called like: _werknemerBO.FetchData(_connectionString, "WnWithWndnstvb", ref data); // data is an empty propertybag, WnWithWndnstvb is the method to be called. I'm no VB6 coder, I can only read it. But is there a robust solution how I can get this solved elegantly? I can't change the datamanager-code, since that component is used by other parts of the application. In .net I have the free hand to get it working. Any suggestions plz, thanks.

      The consumer isn't a moron; she is your wife.

      H Offline
      H Offline
      Henry Minute
      wrote on last edited by
      #2

      You could try looking at this[^] article, to see if it gets you at least started. I found this by googling 'propertybag'. You could try that, if the article above doesn't help you. It just seemed closest of the first page to your question. Good luck! :)

      Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

      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