Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
I want to get data from user like userid,registration id etc. and want to store this data in DLL file(in dll file data store in some variable) not in DataBase, so that if i have used this dll in another project then it will give me the value store in DLL file.This is my requirement. I have create a DLL with static class and static function. But if I have used this DLL in another project then it will gives me null value.
So how i can store value permanently in DLL. Is it possible?? Thanks in advance...
Posted
Comments
Milfje 5-Jun-15 5:56am    
Only by hardcoding it, not dynamically. Unless you make your code recompile itself with the newly acquired data (not a realistic option to pursue).
Sinisa Hajnal 5-Jun-15 6:26am    
If you don't want to use database, use XML or plain text file (encrypted of course)...give it some custom extension so you know its data file from your app.
Richard MacCutchan 5-Jun-15 6:41am    
You could do it by adding a resource table to your DLL that can hold the data, and then updating it at the time the user enters the details. However, it is not a very easy mechanism to use as many things can go wrong. You would be better using some sort of preferences/properties file.
Member 11151142 5-Jun-15 7:02am    
Ok...Thank you very much for your reply..I will do it as per your suggestions...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900