Click here to Skip to main content
15,886,551 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: std::string to System::String conversion Pin
piul8-Mar-11 5:51
piul8-Mar-11 5:51 
GeneralRe: std::string to System::String conversion Pin
Richard MacCutchan8-Mar-11 7:14
mveRichard MacCutchan8-Mar-11 7:14 
GeneralRe: std::string to System::String conversion Pin
piul9-Mar-11 20:48
piul9-Mar-11 20:48 
GeneralRe: std::string to System::String conversion Pin
Richard MacCutchan9-Mar-11 21:55
mveRichard MacCutchan9-Mar-11 21:55 
AnswerRe: std::string to System::String conversion Pin
anti.AS10-Mar-11 23:02
anti.AS10-Mar-11 23:02 
QuestionDisplaying Chinese Characters Pin
T.RATHA KRISHNAN7-Mar-11 1:33
T.RATHA KRISHNAN7-Mar-11 1:33 
AnswerRe: Displaying Chinese Characters Pin
John Schroedl7-Mar-11 4:20
professionalJohn Schroedl7-Mar-11 4:20 
QuestionSetting Access Control to a file. [modified] Pin
pix_programmer3-Mar-11 19:47
pix_programmer3-Mar-11 19:47 
Hi!
How to set Full Control & Write Unlock to a file from C++/CLI? The reason why I want this is:
I'm creating a log in form. While clicking a button, I'm writing the log in information to a file(to implement "Remember Me" functionality). While creating installer for this application, this works fine under Win XP. But did not work with Windows 7. There I've to manually set Full Control to the file. Users of my app won't like this. I used the following code to set Access control:

path = L"RememberMe.ini";	System::IO::File::SetAccessControl(path,System::Security::AccessControl::FileSecurity::WriteUnlock());


But this results in the following error:

error C3767: 'System::Security::AccessControl::ObjectSecurity::WriteUnlock': candidate function(s) not accessible

How to set access control from C++/CLI? or Can any one suggest an alternative solution to my problem? I'm using Visual Studio 2008 Deployment Project to write setup file.

modified on Friday, March 4, 2011 1:59 AM

AnswerRe: Setting Access Control to a file. Pin
N a v a n e e t h4-Mar-11 5:25
N a v a n e e t h4-Mar-11 5:25 
QuestionUser Control Pin
Milton N3-Mar-11 0:18
Milton N3-Mar-11 0:18 
AnswerRe: User Control Pin
amit_soni3-Mar-11 0:59
amit_soni3-Mar-11 0:59 
QuestionPassing arrays betwen C++ and C# Pin
jordabi2-Mar-11 4:31
jordabi2-Mar-11 4:31 
AnswerRe: Passing arrays betwen C++ and C# Pin
John Schroedl2-Mar-11 4:53
professionalJohn Schroedl2-Mar-11 4:53 
GeneralRe: Passing arrays betwen C++ and C# Pin
jordabi2-Mar-11 5:01
jordabi2-Mar-11 5:01 
GeneralRe: Passing arrays betwen C++ and C# Pin
John Schroedl2-Mar-11 5:05
professionalJohn Schroedl2-Mar-11 5:05 
GeneralRe: Passing arrays betwen C++ and C# Pin
jordabi2-Mar-11 5:25
jordabi2-Mar-11 5:25 
GeneralRe: Passing arrays betwen C++ and C# Pin
John Schroedl2-Mar-11 6:47
professionalJohn Schroedl2-Mar-11 6:47 
GeneralRe: Passing arrays betwen C++ and C# Pin
jordabi2-Mar-11 6:52
jordabi2-Mar-11 6:52 
GeneralRe: Passing arrays betwen C++ and C# Pin
John Schroedl2-Mar-11 7:06
professionalJohn Schroedl2-Mar-11 7:06 
QuestionAssembly Version Pin
jashimu2-Mar-11 2:45
jashimu2-Mar-11 2:45 
AnswerRe: Assembly Version Pin
Richard MacCutchan2-Mar-11 3:20
mveRichard MacCutchan2-Mar-11 3:20 
GeneralRe: Assembly Version Pin
jashimu2-Mar-11 3:29
jashimu2-Mar-11 3:29 
GeneralRe: Assembly Version Pin
Richard MacCutchan2-Mar-11 4:00
mveRichard MacCutchan2-Mar-11 4:00 
QuestionGet OS Name [modified] Pin
pix_programmer2-Mar-11 2:03
pix_programmer2-Mar-11 2:03 
AnswerRe: Get OS Name Pin
Richard MacCutchan2-Mar-11 3:18
mveRichard MacCutchan2-Mar-11 3:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.