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