|
Hi All,
Can anyone tell me some links that tell the differences or comparision between MFC6 and MFC8?
I tried to google, but couldnt find it.
Kindly help!
Priya Sundar
|
|
|
|
|
Priya_Sundar wrote: MFC6 and MFC8?
Do you mean VS6.0 and VS8.0
AFAIK there is nothing like MFC6 or MFC8 that may be the reason you don't find anything on google related with it
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
_AnShUmAn_ wrote: AFAIK there is nothing like MFC6 or MFC8
*sigh*
Actually, there *is* MFC 6.0 and MFC 8.0
|
|
|
|
|
Thanks for the update.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
No, that wasn't an update; it didn't happen all of a sudden - those versions of MFC were already existent. Having worked on MFC for several years (your profile), I was shocked you didn't know it. I would guess that you probably were emphasizing more on Win32, ATL or something else.
|
|
|
|
|
ATL/COM. On another note I like to see and build code in MFC .
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
modified on Monday, July 28, 2008 4:47 AM
|
|
|
|
|
Another member of the MFC 's not-fan club, maybe!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Possibly. But, did you check out the additions to MFC via VS 2008 feature pack? I'm very impressed. The new additions are awesome; it would make a lot of articles on "How to do this extra thing with MFC" obsolete, as almost everything is now a part of MFC and is implemented in a much more elegant way.
|
|
|
|
|
Rajesh R Subramanian wrote: it would make a lot of articles on "How to do this extra thing with MFC" obsolete, as almost everything is now a part of MFC and is implemented in a much more elegant way.
I strongly doubt about: they simply stole the content of CP 's articles.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I would agree if you say they stole the "idea" (not the content). Because most articles are published under a license that prevents them from using it for commercial purposes. Besides that, the code for new additions is from BCGSoft.
|
|
|
|
|
CPallini wrote: Another member of the MFC's not-fan club, maybe!
Unfortunately no. Read his updated message.
|
|
|
|
|
With every new release of MFC, there are additional security features, additional classes, more methods added to existing classes, etc., I don't know if you will be able to find a document which would do a side by side comparison between two versions of MFC.
If you need to know the new features of a specific version of MFC, just Google for "What's new MFC X.0", X being the version of your interest (or even better, try looking into MSDN?!).
Besides that, these links may be of your interest:
http://www.codeguru.com/cpp/v-s/devstudio_macros/visualstudionet/article.php/c10147/[^]
http://blog.kalmbachnet.de/?postid=70[^]
|
|
|
|
|
Hi all,
I have this class generated by gsoap:
class SOAP_CMAC _ns1__DoCheckForProductUpdates
{
public:
std::string *productName;
std::string *productVersion;
std::string *serialNumber;
std::string *siteCode;
struct soap *soap;
then my structure:
struct RMproduct
{
RMproduct(){};
RMproduct(wstring szName, wstring serv, wstring version){m_Name = szName; m_serviceKey = serv; m_versionKey = version;};
wstring m_serviceKey;
wstring m_versionKey;
wstring m_Name;
wstring m_SerialNo;
wstring m_VersionNo;
vector<RMUpdates*>* updateList;
~RMproduct()
{
if (updateList !=NULL) {
vector<RMUpdates*>::iterator Iter;
Iter = updateList->begin();
for (; Iter < updateList->end(); Iter++)
delete *Iter;
updateList->clear();
}
delete updateList;
}
};
I cant find a way to pass the value of
wstring m_Name;
wstring m_SerialNo;
wstring m_VersionNo;
to
std::string *productName;
std::string *productVersion;
std::string *serialNumber;
thats what I need to be able to use the methods of the webservice.
Thanks,
jayjay
|
|
|
|
|
You actually need a string conversion. You may use, for instance WideCharToMultiByte [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
What is the use of that string pointer (string* serialnumber)?
|
|
|
|
|
Well, the library documentation should state if you need to allocate the string object or you just nned to use it.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Use W2A() macro for painless conversion. For instance,
#include "atlconv.h"
wstring WideString = L"Hello";
{
USES_CONVERSION;
string str = W2A( WideString.c_str());
}
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
I have a tree tree control with check boxes corresponding to the
leaf items. How can I retrieve the zero-based index of the leaf item
when I click on their corresponding check box.
Thanks in advance
|
|
|
|
|
You may compute it traversing the childs of the selected item's parent.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I could write the following code snippet based on the suggestion to accomplish the requirement :
HTREEITEM hSelectedItem = m_pwndPageTree->HitTest(&HitTestInfo);
:
:
HTREEITEM hNextItem = m_pwndPageTree->GetRootItem();
INT nCounterForPageIndex = 0;
if (hSelectedItem != hNextItem)
{
while (hSelectedItem != hNextItem)
{
hNextItem = m_pwndPageTree->GetNextItem(hNextItem, TVGN_NEXTVISIBLE);
nCounterForPageIndex++;
}
}
Thanks for the suggestion
|
|
|
|
|
how can i select all rows in report?
ex:
m_list my CListCtrl.
for(int i=0; i<m_list.getitemcount();i++)>
{
if(m_list.GetCheck(i))
{
CString s1 = m_list.GetItemText(i++,4);
m_rezult.SetWindowText(s1);
}
}
this not work ...
i whant to do somenting like this :
col1|col2|col3|
--------------
1 | 1 | 1 |
--------------
2 | 2 | 2 |
--------------
3 | 3 | 3 |
--------------
lets say i have checked row 2 and 3 and i have this :
row 2 (col3) + row3(col3) = m_result.SetWindowText(...);
How can i do that?
|
|
|
|
|
Please
1. use code block button to surround code snippets with <pre> tags.
2. explain more clearly what do you need to do.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CPallini wrote: 2. explain more clearly what do you need to do.
Why? What happened to your CPMRU?
|
|
|
|
|
Monday is the CPMRU rest day.
BTW (& first THHB attempt) You've enriched your Microsoft MVP profile (at least since last time I visited ). It's good, I like it.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Thanks pal, I'm glad you liked it. The "Languages and Interests" and the "My recommendations" sections had been set (by me) mistakenly as viewable only by MS and other fellow MVPs earlier. I just made them viewable by public recently.
BTW (THHB attempt 2): The latest chip from Intel is so powerful that it can execute an infinite loop in less than 7 seconds.
modified on Monday, July 28, 2008 4:32 AM
|
|
|
|