|
haritadala wrote:
My manager want's me to put this feature in the application I'm developing.
OK. Sorry, I can't help with it There is a way to do it (there are apps to do it - see Process Explorer from www.sysinternals.com[^]), but I don't know how it's done.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
If you are adding C files to CPP project you may consider adding:
extern "C"
{
}
Best regards,
Alexandru Savescu
P.S. Interested in art? Visit this!
|
|
|
|
|
Post some of the errors so we can see what they are (the first and last 5 at least).
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Hi,
My app has a bunch of menu items in which I would like to bring up different windows. One of the windows has an option that when checked and "ok" is hit will bring up another window. This (2nd)window also has its own menu selection that will bring it up.
My problem is that if i display the (2nd) window and then bring up the other (1st) window that allows me to check if i want to see the information and hit "ok", it creates the same exact window. How can I get it to check if there is a window already open and just set focus to it? I am currently using this code:
if (m_pStats== NULL)
{
m_pStats= new CStats;
if (m_pStats->Create(IDD_STATS) == TRUE)
m_pStats->ShowWindow(SW_SHOW);
}
else
m_pStats->SetActiveWindow();
Can someone walk me through this and help me with this. I am extremely new to programming and would like to figure this out ASAP!
THANKS IN ADVANCE!
|
|
|
|
|
hi,
can anybody tell me ,how to use MSDE with MFC applications.
Any help will be highly appreciated.
Thanks and regards.
|
|
|
|
|
That is Microsoft's Data Engine. Which particular database are you interested in working with (e.g., Access, SQL, FoxPro)?
|
|
|
|
|
Connect and access it just as you would SQL Server. The only real difference is the number of concurrent connections it supports, resource usage limits and the fact that it does not come with the SQL tools (EM, Query analyzer, etc.).
onwards and upwards...
|
|
|
|
|
Hi,
I'm quite new to programming in MFC,
Can you tell me how to add a Button (I think CButton-like), to an empty form and add some functionality (an eventahndler)?
|
|
|
|
|
BoudewijnEctor wrote:
Can you tell me how to add a Button (I think CButton-like), to an empty form
Use the resource editor from within the IDE.
BoudewijnEctor wrote:
...and add some functionality (an eventahndler)?
Use ClassWizard.
|
|
|
|
|
XP icons with shadow does not draw properly. I'm using standard functions and can't understand what I do wrong.
|
|
|
|
|
|
I have been searching the web, doing a lot of reading. I see that C# and .NET are common. I see very little about VC++ and MFC. Yet the VC++ forum has the highest turnout it seems. Is it advisable for a beginner at programming to start with MFC or should I learn C# now. I was thinking I'd learn Windows programming with MFC, and then later move up to Visual Studio.net and C#. Am I thinking wrong?
Which brings up the next question, how does C# relate to Windows Programming. If VC++ uses C++, then what do you program C# with, Visual Sudio.net? Is C# drastically different than C++? If I learn C++, will C# be totally different. I know C# is more portable, but is it difficult to learn once you learn C++ well?
Ok, enough questions...I'd really appreciate any info on this, thanks, Dave
"The man who reads nothing is better educated than the man who reads nothing but newspapers."- Thomas Jefferson
|
|
|
|
|
I would recommend learning both C# and C++. C# is moving forward rapidly, and is being used both for applications and web design (ASP.NET). It is not radically different from C++, but more similar to Java. C++ will still be used for high-performance computing and applications that require speed, such as presentations, image/video processing, servers etc. Desktop applications are candidates for C#, but C++ will still be predominant for a while yet (that's my opinion anyway). MFC is not good (and never has been) but it will remain in use for a long time.
If you want a book to help with C#, "Inside C#" (2nd ed) by Tom Archer is brilliant.
I'm learning C# at the moment and I don't find it particularly difficult. I know C++ very well, so I can pick up C# reasonably quickly, but don't expect it to take a few days - it will take a decent amount of time.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Ryan,
Can I do everything with C# that I can do with MFC? I'm a bit confused on this. If I'm correct (and please let me know if I'm not), C# is just a language like C++. MFC is something exclusive to Microsoft Windows (and is not a language). So what has replaced MFC if C# is just the language? What program do Microsoft programmers use now to develop their XP programs? Thanks.
|
|
|
|
|
Anonymous wrote:
If I'm correct (and please let me know if I'm not), C# is just a language like C++.
Yes, although they're a bit different. C++ is a compiled language and the executable file can be directly executed. C# is compiled to an intermediate code, similar to Java, which is then interpreted by the .NET runtime when the program is executed.
Anonymous wrote:
So what has replaced MFC if C# is just the language?
The .NET framework class libraries, although there is no document-view built in (well, not that I've found anyway ).
Anonymous wrote:
What program do Microsoft programmers use now to develop their XP programs?
Visual Studio.NET, although you can use SharpDevelop[^] for C# development, which is free. You'll have to download the .NET framework SDK in this case, though.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
|
Thanks
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
So what has replaced MFC if C# is just the language?
The .NET framework class libraries, although there is no document-view built in (well, not that I've found anyway ).
I think at present Ms is using ATL to replace the MFC call in the VC.NET
|
|
|
|
|
Anonymous wrote:
What program do Microsoft programmers use now to develop their XP programs?
There is no single "program" they use. One thing is for certain though, for larger projects it's not built from an IDE!
Latest NT5 (I know you asked about XP, but since it's only a point-release I don't expect much to *actually* have changed on this front) service pack apparently (for at least some parts) used an in-house hacked VC6 compiler + linker (linker version 6.1 to be precise), and it seems more and more of the user-mode OS components are built with VC6 why I can't believe they'd be so stupid as to do it in VB or C# for NT 5.1 (XP).
The really critical stuff, kernel mode, still uses older but proven tools. It might be a hacked version from VC5 (linker version 5.12), but I think it's actually a completely different line of tools that have gotten upgraded - since the code generated from that compiler bears little resemblance with code generated by the VC5 compiler.
Then we have other areas, like Office, where I know at least earlier the Excel team used their own compiler.
Having expidited the cash-cows - since MS is a rather large company I think you can find all kind of languages and tools. Even that the languages used (in order of popularity) are mainly C, C++ and assembler - with C# probably somewhere between C++ and assembler. Probably closer to assembler in terms of LOC.
But as for what "program" they use - the question can't be answered. There simply is no silver bullet (a single "program") to fit all needs.
The majority of the code is still C and C++ though, and that won't change anytime soon.
|
|
|
|
|
Ryan,
Can I do everything with C# that I can do with MFC? I'm a bit confused on this. If I'm correct (and please let me know if I'm not), C# is just a language like C++. MFC is something exclusive to Microsoft Windows (and is not a language). So what has replaced MFC if C# is just the language? What program do Microsoft programmers use now to develop their XP programs? Thanks.
|
|
|
|
|
Ryan Binns wrote:
and is being used both for applications
I am wondering does C# have the same problem as Java?? As a result of the Virtual Machine and symbols imbeded in the executable any Java program can easily be decompiled back into source code. Sure you loose the comments and end up with cryptic variable names but the class and member names stay the same. This is one reason (along with performance) that we have avoided Java in the past.
John
|
|
|
|
|
Yes, it's just the same, except that variable names are preserved as well. However, obfuscators are available that make the decompilation process almost useless. CP advertises one, and there are a few free ones available.
I wouldn't avoid C# because of it - just use an obfuscator.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Ryan Binns wrote:
However, obfuscators are available that make the decompilation process almost useless.
I see... I have seen some of the code that is produced by obfuscators. It is almost impossible to follow...
John
|
|
|
|
|
John M. Drescher wrote:
I have seen some of the code that is produced by obfuscators. It is almost impossible to follow
That's the whole point! yeah, I know you know
It basically becomes just as difficult as decompiling a standard Win32 application.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Don't care, C# replaces Visual Basic and not C++. There was always more information about VB than about C++ and MFC. Now part of VB, database and WEB programmers are moving to C#, making a lot of noise. C++ Windows programmers remain with Windows API or MFC programming.
C++ is language specification; Visual C++ is Microsoft C++ implementation.
C# is both language specification and implementation.
MFC is not language, it is kind of library.
C++ is portable. MFC is not portable. C# is portable only in theory, actually it works only in Windows.
|
|
|
|