|
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
|
|
|
|
|
|
u say that but i think their must be some way.
if i have window title then may i get the hwnd of it ?
|
|
|
|
|
|
I've finally had time to finish off my second validation control (CP article coming soon . However, I cannot get these damned properties to work!
__property String* get_LocalServer() { return m_sLocalServer; }
__property void set_LocalServer(String* value) { m_sLocalServer = value; }
The above properties are included in the public section, and the member variable is declared as private.
However, nothing is ever set, the m_sLocalServer member variable is never filled with anything.
If I move m_sLocalServer to be public, then I can set its value correctly from the ASP.NET page via. the validation control's properties as expected.
I don't suppose anyone has any suggestions as to why this might be?
--
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
|
|
|
|
|
how to get window hwnd if have its process id ?
how to get total no of windows that a process created ?
and how to get its active window?
if i want to get wheather a process is performing processing or not what to do?
plz help.
r00d0034@yahoo.com
|
|
|
|
|
If you need to see if a process is doing work, use the Task Manager and find it.
If you have the process ID, you can probably get the Thread ID of the process' main thread.
Use GetGUIThreadInfo using that thread ID to retrieve the information. The GUITHREADINFO structure filled by the function will contain the HANDLE of the active window. From there, you can ennumerate the Child Windows.
GetGUIThreadInfo reference.
-- ian
http://www.ian-space.com/
|
|
|
|
|
if i have process id and i want to get its whwnd how to get it in win32 api?
r00d0034@yahoo.com
|
|
|
|
|
can any body tell the link to some code
that include keboard hooks and mouse hooks and reccord their messages and replay them.
all in managed code.
because i triedhard but i could not get any success.
r00d0034@yahoo.com
|
|
|
|
|
Must be something I installed recently, but this stinking VS.NET C++ IDE is junk ... can't debug ... process is started, but it's dead in the water ...
There's an old post about this in the IDE forum, but no answer yet, anyone have this problem ?
I can run it, but not debug !
Max.
|
|
|
|
|
Max,
Does VS.NET crash when you hit the debug (looks like a 'play' icon) button. Mine does it occasionally. Very wierd.
"I spent a lot of my money on booze, birds and fast cars. The rest I just squandered"
George Best.
|
|
|
|
|
I had this problem several weeks ago and here are 2 steps which helped me to solve this mystery:
1. In the project properties dialog set Linker\Debug\Generate Debug Info to Yes.
2. If you have dlls make sure to copy Debug Databases ( *.pdb ) to the app's folder.
43 68 65 65 72 73 2c
4d 69 63 68 61 65 6c
|
|
|
|