[C++] Form in Dll

05/11/2014 21:01 reload!#1
Hello guys :) How to make a for in dll project? Thanks all
05/11/2014 21:03 Schlüsselbein#2
for(int i = 0; i < 1337; ++i);
Youre welcome.
05/11/2014 21:41 Logtetsch#3
05/11/2014 22:42 LcPlayer1#4
You can also use .Net. (Google: C++/CLI)
05/11/2014 23:40 MrSm!th#5
Quote:
Originally Posted by LcPlayer1 View Post
You can also use .Net. (Google: C++/CLI)
No. Just don't.
05/11/2014 23:52 ~.ScoiL#6
This one.
05/12/2014 08:40 reload!#7
Thanks all,but for add button and other?
05/12/2014 19:48 MrSm!th#8
This is an English thread. Please do not post in German.
05/12/2014 19:52 LcPlayer1#9
Quote:
Originally Posted by MrSm!th View Post
No. Just don't.
So I take another try, this time in English:

Why is C++/CLI that bad?
05/12/2014 21:17 MrSm!th#10
[Only registered and activated users can see links. Click Here To Register...]
One example.

You won't be able to inject a managed DLL, btw.
05/12/2014 21:22 LcPlayer1#11
Quote:
Originally Posted by MrSm!th View Post
You won't be able to inject a managed DLL, btw.
That's not true. I already did this.
05/12/2014 22:29 reload!#12
Thanks Guys i solved alone
05/12/2014 22:50 MrSm!th#13
Quote:
Originally Posted by LcPlayer1 View Post
That's not true. I already did this.
It is. You cannot simply inject a managed assembly. You either have to create a CLR host or you have to compile your C++/CLI Dll as unmanaged.
And this is just one drawback.
05/12/2014 23:18 LcPlayer1#14
Well, I set #pragma unmanaged above the DLLMain, everything else is managed and the project is compiled with the /clr option.