|
From Managed C++ you can include windows.h and then just call the function as you normally would.
This will make use of the "IJW" or "it just works" interoperability feature of Managed C++.
The following page has additional information on this: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmxspec/html/vcmg_PlatformInvocationServices.asp
Hope this helps!
Tarek Madkour & Mark Lacey
Microsoft Visual C++ Team
This posting is provided "AS IS" with no warranties, and confers no rights.
|
|
|
|
|
i want to show a string in vs.net debug output window.
i think i can use Trace or Debug class. but i dont now how to use them to display a string in managed code ?
if there exist some other way plz tell?
i want to see the execution and flow of my program
can any bode tell?
plz write the complete syntex i will be very thank full to u.
r00d0034@yahoo.com
|
|
|
|
|
in the console window ? or the output window ?
something like :
<br />
using namespace System::Diagnostics;<br />
...<br />
<br />
Console::WriteLine(S"XmlNodeType::Element : {0}", reader->Name );<br />
<br />
Debug::WriteLine(S"XmlNodeType::Element : {0}", reader->Name );<br />
Max.
|
|
|
|
|
I am new of the term so Managed Extensions C++ (MC++) is new to me. I'd like to know of about, any others details welcome.
Thank you
|
|
|
|
|
Image C++ stripped of all power so it fits into the .NET world. MC++. Basically it's C++ without the cool stuff, but with the .NET framework libraries, and compiled to MSIL, so it is interoperable with C#, etc. Useful to pull legacy code into the .NET world, but otherwise a waste of time IMO.
If you're new, you should stay away from ALL M$ specific constructs and learn C++ before you think about windows, dialogs, MFC, etc.
Christian
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
I'm looking for a good book that covers the windows commands and controls. The on line help is all great as a function reference manual, but doesn't help the novice (me) figure out which commands to use when. I'm looking for something to get me started writing C programs that will open and close applications, run from a hidden window, create a task manager, etc.
Can anyone recommend a good book, or web sight to start with?
squeaky
|
|
|
|
|
on microsoft press, look for "Visual C++.net step by step" by Templeman and Olsen, quite a nice book.
maybe not have all of the more advanced features you're looking for, but it's a nice start.
Max.
|
|
|
|
|
i want to use .net namespaces into my MFC application how to do it ?
can any body give help and releted links?
r00d0034@yahoo.com
|
|
|
|
|
i have converted a vc++ dll into managed code.
that hook keboard .it run in managed code but it also creat some exception when i ignore them i can seen the result of mine programe.
i dont know how to get rid fro, these execptions?
could any body help?
r00d0034@yahoo.com
|
|
|
|
|
hello,
i'm stuck in a problem with IShellView. here's my story :
i've implemented an IShellBrowser to make a file explorer holding to the windows one. problem : the THUMBNAILS display (only in windows 2000 and later).
when i switch to THUMBNAILS display, all is right, except when i change to another directory : the THUMBNAILS display isn't kept. nevertheless, i've been careful in saving the FOLDERSETTINGS of IShellView, and moreover, thanks to it, the "large icons" display, the "small icons", the "list" and the "details" ones are well and truly restored when i visit another directory. only the THUMBNAILS display is lost when the directory is changed.
why ? how to keep the THUMBNAILS display ? where is this parameter stocked if it isn't in FOLDERSETTINGS ?
|
|
|
|
|
I want to add tree control in the left view of my SDI application in MFC, also i want to add events regarding each Child node of the tree..
Any Help ??
ThankU
|
|
|
|
|
Hi there !!
I am currently working on my term project . I need to implement MSN Messenger type Alert (which appears when a user signs in ) in MFC. If any one could tell me how to implement that or give any references or any example code etc. i would be obliged.;)
Petrol.
|
|
|
|
|
|
I need to write a program that reads n from the keyboard and prints on the screen the sum of numbers 1 + 4 + 7 + ... + (3n-2). Compile it and run it
What is the result for n=7 and n=98
|
|
|
|
|
huh!
where's the programming question please ? write some code, and we'll be happy to help you !
say that it's not a homework assigment !?
Max
|
|
|
|
|
the "compile it and run it" line at the end makes it look like homework to me!
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
Here's the program:
<br />
int n;<br />
cin >> n;<br />
cout << "The result is" << (3 * n * n - n)/2 << endl;<br />
Best regards,
Alexandru Savescu
|
|
|
|
|
is it the right way to initialized MFC in managed code DLL
if (!AfxWinInit(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), 0))
{
// TODO: change error code to suit your needs
cerr << _T("Fatal Error: MFC initialization failed") << endl;
nRetCode = 1;
}
May i use the same code in c# static void Main function ?
May i used AfxGetInstanceHandle() in managed code after that ?
can any body tell how to access and creat an object of class in MFC DLL that will be used in managed code?
r00d0034@yahoo.com
|
|
|
|
|
There's no GUI Builder in VS C++.net, and that's a real damn shame!, you need to build/write everything from scratch!
As I found out, one of the best way to learn how to build GUI with .net is with the "Visual C++.net Step by Step" by Julian Templeman and Andy Olsen, on microsoft press. There are a couple of chapters on GUI building with .net.
Also, look around here, on codeproject, ManagedC++[^] there's a section on Windows Form, which is the GUI Toolkit of .net.
Max.
P.S. don't forget to stretch your fingers because you're gonna type a whole lotta' !
|
|
|
|
|
I would also say that a Windows Forms designer for C++ is slated for inclusion in Everett, I'm still awaiting my discs to see whether this is the case
--
Paul
"I need the secure packaging of Jockeys. My boys need a house!"
- Kramer, in "The Chinese Woman" episode of Seinfeld
MS Messenger: paul@oobaloo.co.uk
Sonork: 100.22446
|
|
|
|
|
Everett? sorry im not familiar.. ive been doing some work with c++ and the .net forms and the book i have suggests using C# and then porting the code over.. i think that is completely stupid.. what is this Everett, and does anyone know if MS is really trying to keep c++ from using the new .net forms?
-dz
|
|
|
|
|
|
have a look at the microsoft roadmap[^].
Max.
|
|
|
|
|
also, look at MSDN : msdn[^]
and remembering that the System::WinForms namespace was replaced with System::Windows::Forms.
Max
|
|
|
|
|
i have process id then how to get its main window hwnd is there any api available in vc++.
Because i have use Enumewindo.. but that the inderiect way.
r00d0034@yahoo.com
|
|
|
|