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

Managed C++/CLI

 
AnswerRe: How can i access which .exe or file are open after computer starting Pin
T210226-Nov-09 0:21
T210226-Nov-09 0:21 
QuestionCLR,What is the event for the scrolling of middle mouse scroll? Pin
akira3217-Nov-09 22:08
akira3217-Nov-09 22:08 
AnswerRe: CLR,What is the event for the scrolling of middle mouse scroll? Pin
Richard MacCutchan17-Nov-09 22:49
mveRichard MacCutchan17-Nov-09 22:49 
QuestionImport C# dll in C++ application Pin
Game-point17-Nov-09 18:54
Game-point17-Nov-09 18:54 
AnswerRe: Import C# dll in C++ application Pin
Game-point18-Nov-09 17:52
Game-point18-Nov-09 17:52 
QuestionHow to use PropertyGrid to browse and modify the attributes of customized object Pin
akira3217-Nov-09 16:37
akira3217-Nov-09 16:37 
AnswerRe: How to use PropertyGrid to browse and modify the attributes of customized object [modified] Pin
akira3218-Nov-09 19:52
akira3218-Nov-09 19:52 
QuestionC++\CLI Assembly.Load failed [modified] Pin
Huisheng Chen17-Nov-09 16:10
Huisheng Chen17-Nov-09 16:10 
first please download the PDFLibNet.dll from here: http://www.codeproject.com/KB/files/xpdf_csharp/PDFViewer.zip[^]

it's ok like this:
<br />
Assembly a = Assembly.LoadFile("PDFLibNet.dll");<br />


but exception like this:
byte[] b = File.ReadAllBytes("PDFLibNet.dll");<br />
Assembly a = Assembly.Load(b);<br />


throwing FileLoadException, telling me it could not verify the code or could not pass policy check. .net thinks that it is not a valid assembly.

I found a solution here: http://nonodes.spunow.co.uk/2009/04/assemblyload-c-cli-assembly-gives.html[^] telling me to build the C++ assembly with /clr:safe, but is there any other way out?

Regards,
unruledboy_at_gmail_dot_com
http://www.xnlab.com

modified on Tuesday, November 17, 2009 10:16 PM

QuestionCLR,How to modify the AutoScrollMinSize of Form1 by coding? [modified] Pin
akira3216-Nov-09 21:02
akira3216-Nov-09 21:02 
AnswerRe: CLR,How to modify the AutoScrollMinSize of Form1 by coding? Pin
Luc Pattyn17-Nov-09 1:37
sitebuilderLuc Pattyn17-Nov-09 1:37 
AnswerRe: CLR,How to modify the AutoScrollMinSize of Form1 by coding? Pin
Shameel23-Nov-09 7:48
professionalShameel23-Nov-09 7:48 
QuestionCLR,How to put any type controls on Toolstrip? Pin
akira3216-Nov-09 20:11
akira3216-Nov-09 20:11 
QuestionHow to get HBITMAP from BitMap Pin
vibindia15-Nov-09 17:44
vibindia15-Nov-09 17:44 
AnswerRe: How to get HBITMAP from BitMap Pin
Mark Salsbery16-Nov-09 7:53
Mark Salsbery16-Nov-09 7:53 
QuestionCLR,How to set RootFolder of FodlerBrowserDialog to be Current Working Directory Pin
akira3212-Nov-09 19:10
akira3212-Nov-09 19:10 
AnswerRe: CLR,How to set RootFolder of FodlerBrowserDialog to be Current Working Directory Pin
N a v a n e e t h12-Nov-09 19:53
N a v a n e e t h12-Nov-09 19:53 
AnswerRe: CLR,How to set RootFolder of FodlerBrowserDialog to be Current Working Directory Pin
Mark Salsbery15-Nov-09 5:52
Mark Salsbery15-Nov-09 5:52 
GeneralRe: CLR,How to set RootFolder of FodlerBrowserDialog to be Current Working Directory Pin
akira3216-Nov-09 20:07
akira3216-Nov-09 20:07 
QuestionHow to render DirectX9 on my CLR customed control? Pin
akira3211-Nov-09 4:58
akira3211-Nov-09 4:58 
AnswerRe: How to render DirectX9 on my CLR customed control? Pin
akira3212-Nov-09 7:02
akira3212-Nov-09 7:02 
GeneralRe: How to render DirectX9 on my CLR customed control? Pin
akira3212-Nov-09 7:03
akira3212-Nov-09 7:03 
GeneralRe: How to render DirectX9 on my CLR customed control? Pin
Lutosław13-Nov-09 7:11
Lutosław13-Nov-09 7:11 
GeneralRe: How to render DirectX9 on my CLR customed control? Pin
akira3216-Nov-09 20:07
akira3216-Nov-09 20:07 
QuestionHow to redirect and log the output of the VC++ console to a file? Pin
santoshkaif5-Nov-09 2:47
santoshkaif5-Nov-09 2:47 
AnswerRe: How to redirect and log the output of the VC++ console to a file? Pin
Richard MacCutchan6-Nov-09 3:44
mveRichard MacCutchan6-Nov-09 3:44 

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.