|
Well, when it sees a fuilly unmanaged function, why doesn't it auto-apply #pragma unmanaged to that block?
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
Don't know
I tricked you by letting you think I actually learned something when in reality i've been too busy sleeping and working on the screensaver
Oh and looking for good songs on mp3.com, here, here, and here.
James
Simplicity Rules!
|
|
|
|
|
James T. Johnson wrote:
Simplicity Rules!
Try saying that to Chris Losinger
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
James
Simplicity Rules!
|
|
|
|
|
Nish [BusterBoy] wrote:
Well, when it sees a fuilly unmanaged function, why doesn't it auto-apply #pragma unmanaged to that block?
1. Managed Code - Code that compiles into IL (atleast in the first version of CLR in the next version it would be possible to have IL unmanaged functions)
2. Unmanaged Code - Code that compiles into native processor's instructions
So you see there is nothing called an unmanaged function before anything gets compiled.
It is perfectly legal to have global functions in managed code. ILASM can create and use it( may be VB.NET).
|
|
|
|
|
Rama Krishna wrote:
So you see there is nothing called an unmanaged function before anything gets compiled.
That's what I thought too, till it disallowed me from using the #pragma unmanaged directive to a function
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
If i write a program in UNMANAGED VC++ 7.0 using ATL 7.0 and\or MFC 7.0, do I have to install the .Net framework or can I just supply the required ATL\MFC DLL's to the users machine?
Is installing the framework just for Microsoft's CLR?
|
|
|
|
|
If its unmanaged you don't need the framework; only when you cross into managed code do you need the framework on the users machine.
James
Simplicity Rules!
|
|
|
|
|
So I guess if I am using 'normal' and Managed code I just have to install the framework?
|
|
|
|
|
Yes. If your application uses both; the framework has to be installed.
Something that just came to mind though. If you have it set so it can *optionally* load the managed code (ie it loads the managed code on demand and doesn't have anything about the managed code compiled aside from a GUID), then the framework could possibly be an option for the client as well... But if they decide to use it they will need the framework.
James
Simplicity Rules!
|
|
|
|
|
BTW, hopefully this time next year or the year after we can assume that many will have the framework installed so the fact there is a 20MB download won't be as much of an issue.
James
Simplicity Rules!
|
|
|
|
|
The redistributable is already part of windows update
Nish
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|
|
End users, using windows update?!?!?! That'll be the day....
The problem with windows security problems isn't the problems its that stupid users don't patch their computers up to get rid of the problems.
This is non-existant in the *nix community because almost everyone who uses it knows about security problems and patches them ASAP.
James
Simplicity Rules!
|
|
|
|
|
Ollie wrote:
If i write a program in UNMANAGED VC++ 7.0 using ATL 7.0 and\or MFC 7.0, do I have to install the .Net framework
No, you dont have to.
Ollie wrote:
can I just supply the required ATL\MFC DLL's to the users machine?
Yes, that's what you should do
Nish
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|
|
Ollie the use of the word UNMANAGED implies deviant behavior, Many of us are calling it 'normal' programming now.
Regardz
Colin J Davies
Sonork ID 100.9197:Colin
More about me
|
|
|
|
|
With the advent of .NET, normality got inversed
Nish
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|
|
Hello, I've been working for a couple of years with VC++; a few months ago I started to see information about Managed C++ but actually I don't know nothing at all about it. I've been searching recently for some introductory articles or explanations but I've been not able to find it.
Does anyone know where could I find something like that? In the board everybody seems to be already deeply inside the world of MC++, but I need something more basic!!
Thanx in advance
Jaims
|
|
|
|
|
You could buy a book about MC++? Or you can read the msdn.microsoft.com they have a pretty good introduction about .net, you can also look in http://www.microsoft.com/visualc/
The easiest way is to jump in the pool. Install Visual C++ .NET and create a project.
After coding a "hello world" you won't be able to stop
Al
|
|
|
|
|
Albert Pascual wrote:
After coding a "hello world" you won't be able to stop
True. Very true indeed!
Nish
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|
|
Jaims wrote:
but I need something more basic!!
Read this one for a first time introduction to MC++
http://www.codeproject.com/useritems/mcppintro01.asp
Then this one for intro to GUI apps
http://www.codeproject.com/useritems/mcppwinforms01.asp
And this one for IJW
http://www.codeproject.com/useritems/mcppthreadsync01.asp
Regards
Nish
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|
|
|
|
|
Well,
I thanked him, so I guess I am morally obliged to thank you as well.
Thanks Nick
Nish
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|
|
Nish I guess I was just being obnoxious, that all, all in good fun. Thanks.
Nick Parker
|
|
|
|