|
My advice would be to look at what you want to do and then examine which
language and/or framework is best for the job.
Do some research. Only you can know what's appropriate. Your decision should be based
on what the best tool for the job is and not the tool's popularity.
MFC, as mentioned in other posts, is a semi-object-oriented, C++ wrapper around the Win32
APIs. If Win32 is what you want to use for your Windows development, and C++ is your
language of choice (or the language you already know) then MFC is certainly an option.
MFC is still supported by Microsoft. There's new stuff added for VS 2008,
and there will be more new stuff added in the next Visual Studio version after
that.
Look into the .NET languages as well. The .NET framework provides many more
"canned" solutions to common programming tasks than MFC ever will.
Just my 2 cents...
Good luck!
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Honestly take a look at the MFC videos on MSDN Channel 9 (sorry dont have the link handy).
Also if you are unsure of which type of skills companies are looking for (if thats what you are getting at), always take a look at job posting boards for those skills.
I can say from a personal view is that MFC is still needed and the push MS has done with MFC for the Visual Studio orcas release indicates that.
However what you will find is a lot of companies adopting C# as their programming language and tool set of choice. They usually believe that a garbage collector is safer and will speed up development.
You may also be interested in looking at C++/CLI.
one word of advice, do not learn one thing. Only one thing is permanent in life... and thats CHANGE ! ;)
|
|
|
|
|
what is meaning of const int * & int * const.
|
|
|
|
|
The difference is where the const applied; is it applied to the pointer, or what is being pointed to. The first one is a pointer to a const int , meaning that the pointer can change (you can have the pointer point to a different int ), but not what is pointed to.
Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
const int * a constant pointer to an int
int * const a int pointer to a constant int
it is a little confusing. And it isnt the best way to code such thing.
Greetings from Germany
|
|
|
|
|
i Think u r not clear from above two ans so i m explaing u ...
Pointer To Const
syntex:
int const *ptr;
or
const int *ptr;
that means they are pointer to const int. so we can't change the value of they are pointing. we can change what they r pointing....
for example:
int i = 10;
int b = 20;
int const *ptr = & i;
(*ptr)++ ; // will give error
ptr = & b ; // OK
Const pointer:
syntex :
int * const ptr1;
it is const pointer so what it is pointing is const so we must initialize at the time of declaration
so synetx is like
int * const ptr1 = & someintegervarible;
for example:
int i = 10;
int b = 20;
int * const ptr1 = & i; //required initialization
(*ptr1)++ ;//OK
ptr1 = & b; // Error
we also have
const pointer to const :
syntex :
int const * const ptr2 = & i; // required initialization
or
const int * const ptr2 = & i; // required initialization
Neither address which that pointer is pointing nor the value that pointer pointing will change.
Hiren Thakkar
|
|
|
|
|
I am creating an dll using VC++.NET, am using it for serial key validation(Customer Information) at Msi installation, while the dll is doing some process i want to execute an exe.
Using the code "ShellExecute(NULL,"Open","test.exe","TEST",NULL,SW_MAXIMIZE); " i can able to run the exe, but the exe should be presented in the WINNT folder, i want to run the exe, which may be presented in any part of the system(physical drive). Also how to declare a string and assign a value in the VC++(sorry for this silly question, i am new to VC++).
Also is it possible to communicate an VC++ with SQL server? If possible, plz show me some examples, so that i can learn and implement in my project.
Thanks is advance
Know is Drop, Unknown is Ocean
|
|
|
|
|
if you want to communicate with a SQL-Server I strongly recommand (tata): SQL
Look for samples of SQL, ODBC you'll find them.
Greetings from Germany
|
|
|
|
|
Hi
Thanks for your suggestion. Actually i am new to this concept. plz suggest me some simple sample source to learn
Know is Drop, Unknown is Ocean
|
|
|
|
|
|
Exelioindia wrote: Actually i am new to this concept
new to what? Searching? Learning?
CodeProject has a mountain of Articles about Database access using C++ and .NET. They all come with sample source code. Stop asking for people to give you stuff and start searching and reading.
|
|
|
|
|
There's many ways to access databases from C++.
For info on data access technologies included with Windows, see here[^].
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi all,
is there any way to know if the user is calling the print command from the menu/toolbar or from the button "print" that appears in the preview?
I am interested in, because in one of my views, printing is limited to a certain number of elements. The user must choose 8 from (up to) 24 to be shown in the preview / printed in paper.
At the moment, it is needed to choose the elements both times, by preview start and by print start (before choosing the printer and number of copies).
But as the selection has already been made by selecting preview. I would like to send to the printer the same elements that are shown in the preview, so I need to know where the print command is being selected.
I have tried:
CMDIFrameWnd *pFrame = (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
CMDIChildWnd *pChild = (CMDIChildWnd *) pFrame->GetActiveFrame();
CParamRegView *pView = (CParamRegView *) pChild->GetActiveView();
if (pView->IsKindOf(RUNTIME_CLASS(CMyView)))
AfxMessageBox ("CFormView");
else
AfxMessageBox ("Another");
But I alway get the same message, so it does not separate
What should I use to do it?
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
I have reach what i wanted using two variables that get a value when pInfo->m_bPreview true or not, and afterwards I ask the combination (similar to an XOR) to know if the last activevie was my secondary view or the print preview.
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
Hello,
does std::vector have an index operator,
i mean can i read data from vector directly over an index
wthout search items in it!?
like this:
vector<CObject>VectorObjects;
VectorObjects.push_back(myCObject);
myNexCObject = VectorObjects[0];
thanks in advance
termal
|
|
|
|
|
Yes, std::vector override the [] operator, so you can safely do it.
Of course, if you try to access an index that is outside the bounds your vector, then'll get an exception.
|
|
|
|
|
Hello,
thanks for answer and help!
regards
termal
|
|
|
|
|
use vector::at.
Ex. myNexCObject = VectorObjects.at(0);
|
|
|
|
|
std::vector.at() does validate the vector boundaries.
The operator[] does not. It will happily access outside the vector. No problem when you know that, though.
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal. George Orwell, "Keep the Aspidistra Flying", Opening words
|
|
|
|
|
Hello,
thanks for input!!
regards
termal
|
|
|
|
|
You mentioned seaching also. If this is something you are looking for, then I suggest using the std::map class instead of a vector.
|
|
|
|
|
is there any problem specifying custom index in TlsSetValue other than the index returned by TlsAlloc ??
//
TlsSetValue ( 1 , (LPVOID)MyData ) ;
Tahnks & regards
|
|
|
|
|
nitin3 wrote: ...other than the index returned by TlsAlloc ??
Not according to the docs.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
As long at the index was allocated by using TlsAlloc( ), then there should be no problem.
---
Yours Truly, The One and Only!
devmentor.org
Design, Code, Test, Debug
|
|
|
|
|
Hi All,
In my from I want such type of function which copy directory from one path to other. The function should be as
CopyDir(SourcePath,DestinationPath);
Is there any API provided by MFC for doing the same.
Thanks in Advance
Atul
|
|
|
|