Click here to Skip to main content
16,004,854 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: A doubt about templates Pin
toxcct17-Jan-07 23:48
toxcct17-Jan-07 23:48 
AnswerRe: A doubt about templates Pin
Nibu babu thomas18-Jan-07 0:48
Nibu babu thomas18-Jan-07 0:48 
Questionproblem in send() (Winsock) .. Pin
Sakthiu17-Jan-07 22:51
Sakthiu17-Jan-07 22:51 
QuestionRe: problem in send() (Winsock) .. Pin
Mark Salsbery18-Jan-07 6:39
Mark Salsbery18-Jan-07 6:39 
AnswerRe: problem in send() (Winsock) .. Pin
malaugh18-Jan-07 7:49
malaugh18-Jan-07 7:49 
QuestionVersion Information Pin
Daniel Kanev7-Mar-17 21:54
Daniel Kanev7-Mar-17 21:54 
AnswerRe: Version Information Pin
toxcct17-Jan-07 22:28
toxcct17-Jan-07 22:28 
QuestionUsing OLE automation to call another application Pin
Malcolm Chu17-Jan-07 21:42
Malcolm Chu17-Jan-07 21:42 
I am using VS.NET 2005 to build a Windows Form Application (not MFC). I found a ACL editor program from codeproject.com which I want to incorporate in my application. It has two dll files, FilePermsBox.dll and FilePermsBox.Interop.dll

In section "16. FilePermsBox API" of the article http://www.codeproject.com/win32/accessctrl4.asp, it was mention that the author has rewritten wrappers to allow the program to be called using OLE automation.

I have little knowledge on OLE automation and hence I just tried adding FilePermsBox.Interop.dll as references. This allow me to compile the following code.

array<string^>^ fCollection = gcnew array<string^, 1="">{"C:\test.txt"};

ManagedSecurityBoxWrapper::IManagedSecurityBoxWrapper^ sb = gcnew ManagedSecurityBoxWrapper::ManagedSecurityBoxWrapper();

sb->FileNames = fCollection;

sb->COSecurityBox1(false);


However during runtime I will encounter the following error when ManagedSecurityBoxWrapper constructor is invoked.

An unhandled exception of type 'System.TypeInitializationException' occurred in System.Windows.Forms.dll

Additional information: The type initializer for '<module>' threw an exception.


Is there anything else I need to add in project properties to use it or can someone enlighten me on how to use OLE automation to call this API. I will be more than grateful if someone is willing to download the dlls from codeproject.com under the link

http://www.codeproject.com/win32/accessctrl4/filepermsbox111.zip[^]

and try it out, letting me know whether this is even possible. Thanks a million!
QuestionSequence number retrieval. Pin
chks17-Jan-07 20:45
chks17-Jan-07 20:45 
AnswerRe: Sequence number retrieval. Pin
jhwurmbach17-Jan-07 22:16
jhwurmbach17-Jan-07 22:16 
GeneralRe: Sequence number retrieval. Pin
chks17-Jan-07 22:32
chks17-Jan-07 22:32 
GeneralRe: Sequence number retrieval. Pin
jhwurmbach17-Jan-07 22:47
jhwurmbach17-Jan-07 22:47 
AnswerRe: Sequence number retrieval. Pin
David Crow18-Jan-07 3:21
David Crow18-Jan-07 3:21 
GeneralRe: Sequence number retrieval. Pin
chks18-Jan-07 21:25
chks18-Jan-07 21:25 
GeneralRe: Sequence number retrieval. Pin
David Crow19-Jan-07 2:28
David Crow19-Jan-07 2:28 
QuestionConverting string to long Pin
vgandhi17-Jan-07 20:39
vgandhi17-Jan-07 20:39 
AnswerRe: Converting string to long Pin
Cedric Moonen17-Jan-07 20:44
Cedric Moonen17-Jan-07 20:44 
GeneralRe: Converting string to long Pin
vgandhi17-Jan-07 20:50
vgandhi17-Jan-07 20:50 
GeneralRe: Converting string to long Pin
Cedric Moonen17-Jan-07 21:01
Cedric Moonen17-Jan-07 21:01 
GeneralRe: Converting string to long Pin
Michael Dunn17-Jan-07 22:17
sitebuilderMichael Dunn17-Jan-07 22:17 
GeneralRe: Converting string to long Pin
vgandhi17-Jan-07 22:26
vgandhi17-Jan-07 22:26 
GeneralRe: Converting string to long Pin
Michael Dunn18-Jan-07 7:52
sitebuilderMichael Dunn18-Jan-07 7:52 
GeneralRe: Converting string to long Pin
David Crow18-Jan-07 3:23
David Crow18-Jan-07 3:23 
GeneralRe: Converting string to long Pin
vgandhi18-Jan-07 6:44
vgandhi18-Jan-07 6:44 
GeneralRe: Converting string to long Pin
David Crow18-Jan-07 7:08
David Crow18-Jan-07 7:08 

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.