Dll File
-
There is a dll file in a program I use that contains product information for the program to use. I was wondering is there any way I can gain access to the data in the dll file in a C# project. The file dosent contain anything that I shouldnt have, it is just catalogue information. I have never accessed data from a dll file before and I dont know where to start. I can access the data using Resource hacker but when I tried to add it as a reference to my C# project in Visual studio it gave an error saying that the file isnt a valid com component. I am sure that this is obvious to anyone that has a clue about this, but as you can tell i dont. Can anyone help me access the data in the dll file?
-
There is a dll file in a program I use that contains product information for the program to use. I was wondering is there any way I can gain access to the data in the dll file in a C# project. The file dosent contain anything that I shouldnt have, it is just catalogue information. I have never accessed data from a dll file before and I dont know where to start. I can access the data using Resource hacker but when I tried to add it as a reference to my C# project in Visual studio it gave an error saying that the file isnt a valid com component. I am sure that this is obvious to anyone that has a clue about this, but as you can tell i dont. Can anyone help me access the data in the dll file?
What DLL is that? A managed one or a native DLL?
Best wishes, Navaneeth
-
There is a dll file in a program I use that contains product information for the program to use. I was wondering is there any way I can gain access to the data in the dll file in a C# project. The file dosent contain anything that I shouldnt have, it is just catalogue information. I have never accessed data from a dll file before and I dont know where to start. I can access the data using Resource hacker but when I tried to add it as a reference to my C# project in Visual studio it gave an error saying that the file isnt a valid com component. I am sure that this is obvious to anyone that has a clue about this, but as you can tell i dont. Can anyone help me access the data in the dll file?
If it's not a COM component, then you can try to reference it as a standard .NET dll. If that doesn't work, then it's not written in .NET, and .NET is the only way you could use reflection to read the contents of the dll. Even if it was COM, you still couldn't read the contents. Your best bet in that case, is to use a hex editor to see if what you want is sitting in there in an unencrypted state.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
If it's not a COM component, then you can try to reference it as a standard .NET dll. If that doesn't work, then it's not written in .NET, and .NET is the only way you could use reflection to read the contents of the dll. Even if it was COM, you still couldn't read the contents. Your best bet in that case, is to use a hex editor to see if what you want is sitting in there in an unencrypted state.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
yeah ok thanks, but I am really looking for an easier solution.
-
What DLL is that? A managed one or a native DLL?
Best wishes, Navaneeth
dont really know the difference. All I know is that it is packaged with the program and it contains catalogue data .
-
yeah ok thanks, but I am really looking for an easier solution.
Well, it doesn't exist.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
dont really know the difference. All I know is that it is packaged with the program and it contains catalogue data .
If you can't import it into a .NET app, then it probably is neither COM nor .NET, meaning it's just a bog standard dll, and my answer below applies.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
Well, it doesn't exist.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
Thanks anyway