Can't get System.Security

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Mar 2007
Posts: 686
Reputation: sillyboy is on a distinguished road 
Solved Threads: 61
sillyboy's Avatar
sillyboy sillyboy is offline Offline
Practically a Master Poster

Can't get System.Security

 
0
  #1
Feb 3rd, 2009
Hey all,

I haven't had a lot of experience with VBA (Excel), but I think I have done enough research, so now I'm coming here for assistance.

I need my VBA macro to use a keystore, so I was going to use System.Security.Cryptography.X509Certificates.Import. My issue is however, I cannot add a reference to System.Security.dll in my macro. I get the generic "Cannot add reference to file", and a google search gets results for custom dll files, but this is a .NET library, so I don't know why there would be an issue.

Other libraries, e.g. System are listed as available,

Thanks for any assistance.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: Can't get System.Security

 
0
  #2
Feb 4th, 2009
VB6, to the best of my knowledge.... is NOT .NET friendly. That said, have you tried putting a declaration to it (just like an API call)?
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 686
Reputation: sillyboy is on a distinguished road 
Solved Threads: 61
sillyboy's Avatar
sillyboy sillyboy is offline Offline
Practically a Master Poster

Re: Can't get System.Security

 
0
  #3
Feb 4th, 2009
Yeah, I was thinking there would be some VB vs .NET issues. I tried importing the namespace, but it doesn't like it too much.
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 686
Reputation: sillyboy is on a distinguished road 
Solved Threads: 61
sillyboy's Avatar
sillyboy sillyboy is offline Offline
Practically a Master Poster

Re: Can't get System.Security

 
0
  #4
Feb 4th, 2009
I found a different library which I could use, thanks.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC