PC Review


Reply
Thread Tools Rate Thread

Can I write MFC application and without .net Framework with Visual C++ 2005 Express?

 
 
W. Jordan
Guest
Posts: n/a
 
      28th Nov 2005
Hello,

I would like to learn MFC programming.
However, Visual Studio is expensive.
Can I write MFC programs with the VC++ 2005 Express
but without bothering the .net framework?

--

Best Regards,
W. Jordan




 
Reply With Quote
 
 
 
 
Dmytro Lapshyn [MVP]
Guest
Posts: n/a
 
      29th Nov 2005
Hello,

I am not sure about the very latest version of MFC, but I do believe MFC has
absolutely nothing to do with .NET - it is plain unmanaged C++. However,
again, I cannot say for sure VS 2005 Express includes MFC - please check the
Visual Studio Center at msdn.microsoft.com.

--
Sincerely,
Dmytro Lapshyn [Visual Developer - Visual C# MVP]


"W. Jordan" <(E-Mail Removed)> wrote in message
news:Oza0er%(E-Mail Removed)...
> Hello,
>
> I would like to learn MFC programming.
> However, Visual Studio is expensive.
> Can I write MFC programs with the VC++ 2005 Express
> but without bothering the .net framework?
>
> --
>
> Best Regards,
> W. Jordan
>
>
>
>


 
Reply With Quote
 
W. Jordan
Guest
Posts: n/a
 
      29th Nov 2005
Hello Dmytro,

Thank you for replying.
I will try download it and see whether VC++2005 supports MFC.


--

Best Regards,
W. Jordan




"Dmytro Lapshyn [MVP]" <x-(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
>
> I am not sure about the very latest version of MFC, but I do believe MFC
> has absolutely nothing to do with .NET - it is plain unmanaged C++.
> However, again, I cannot say for sure VS 2005 Express includes MFC -
> please check the Visual Studio Center at msdn.microsoft.com.
>
> --
> Sincerely,
> Dmytro Lapshyn [Visual Developer - Visual C# MVP]
>


 
Reply With Quote
 
Roman
Guest
Posts: n/a
 
      29th Nov 2005
Hello,

you can not do this!
Only one way you can download PlatformSDK and start to use WTL with VC++
2005 Express.

WTL you can find here: http://sourceforge.net/projects/wtl/
some information about WTL you can find also here:
news://gmane.comp.windows.wtl

This is short description how install WTL from the news:

===============================================
Hi,

VCExpress was released in 11/7
We can use it for our wtl programming free.

1 - Download and Install VCExpress 2005 from MSDN.
http://msdn.microsoft.com/vstudio/express/visualc/

2 - Download, Install PSDK, and Update VCExpress Setting. Detail:
http://msdn.microsoft.com/vstudio/ex...k/default.aspx

3 - Update the Visual C++ directories in the Projects and Solutions
section in the Options dialog box.Add atl path.
Include files: C:\Program Files\Microsoft Platform SDK\include\atl

4 - Change atlwin.h and atlbase.h in PSDK\ATL folder

Change SetChainEntry function at L1725 of atlwin.h,define "int i" at first?
---------------------------------------------------------------
BOOL SetChainEntry(DWORD dwChainID, CMessageMap* pObject, DWORD
dwMsgMapID = 0)
{
int i;
// first search for an existing entry

for(i = 0; i < m_aChainEntry.GetSize(); i++)
---------------------------------------------------------------

Change AllocStdCallThunk and FreeStdCallThunk at L287 of atlbase.h,to new
macro
---------------------------------------------------------------
/* Comment it
PVOID __stdcall __AllocStdCallThunk(VOID);
VOID __stdcall __FreeStdCallThunk(PVOID);

#define AllocStdCallThunk() __AllocStdCallThunk()
#define FreeStdCallThunk(p) __FreeStdCallThunk(p)

#pragma comment(lib, "atlthunk.lib")
*/
#define AllocStdCallThunk()
HeapAlloc(GetProcessHeap(),0,sizeof(_stdcallthunk))
#define FreeStdCallThunk(p) HeapFree(GetProcessHeap(), 0, p)
---------------------------------------------------------------

5 - Download and Install the WTL from http://wtl.sf.net

6 - Download AppWizard for VCExpress from
http://groups.yahoo.com/group/wtl/fi...p80express.zip
Unzip and Copy JS file into WTL\AppWiz folder, double click it to
install WTL Wizard into VCExpress

Enjoy VCExpress&WTL

--
Baryon Lee
http://www.bbshare.com/
Share our software to make your life & work more easier.
===============================================

Best regards,
Roman


"W. Jordan" <(E-Mail Removed)> wrote in message
news:Oza0er%(E-Mail Removed)...
> Hello,
>
> I would like to learn MFC programming.
> However, Visual Studio is expensive.
> Can I write MFC programs with the VC++ 2005 Express
> but without bothering the .net framework?
>
> --
>
> Best Regards,
> W. Jordan


 
Reply With Quote
 
W. Jordan
Guest
Posts: n/a
 
      30th Nov 2005
Hello,

Thank you for your guide and explanation!
Last night I tried to copy the ATL and MFC include files from my friends'
computer into the VCExpress include folder, and built some ATL related
projects. The compiler reported that there're many syntax errors in those
ATL include files.
Well, I guess that I shall try WTL then.


--

Best Regards,
W. Jordan




"Roman" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
>
> you can not do this!
> Only one way you can download PlatformSDK and start to use WTL with VC++
> 2005 Express.
>
> WTL you can find here: http://sourceforge.net/projects/wtl/
> some information about WTL you can find also here:
> news://gmane.comp.windows.wtl
>
> This is short description how install WTL from the news:
>
> ===============================================
> Hi,
>
> VCExpress was released in 11/7
> We can use it for our wtl programming free.
>
> 1 - Download and Install VCExpress 2005 from MSDN.
> http://msdn.microsoft.com/vstudio/express/visualc/
>
> 2 - Download, Install PSDK, and Update VCExpress Setting. Detail:
> http://msdn.microsoft.com/vstudio/ex...k/default.aspx
>
> 3 - Update the Visual C++ directories in the Projects and Solutions
> section in the Options dialog box.Add atl path.
> Include files: C:\Program Files\Microsoft Platform SDK\include\atl
>
> 4 - Change atlwin.h and atlbase.h in PSDK\ATL folder
>
> Change SetChainEntry function at L1725 of atlwin.h,define "int i" at
> first?
> ---------------------------------------------------------------
> BOOL SetChainEntry(DWORD dwChainID, CMessageMap* pObject, DWORD
> dwMsgMapID = 0)
> {
> int i;
> // first search for an existing entry
>
> for(i = 0; i < m_aChainEntry.GetSize(); i++)
> ---------------------------------------------------------------
>
> Change AllocStdCallThunk and FreeStdCallThunk at L287 of atlbase.h,to new
> macro
> ---------------------------------------------------------------
> /* Comment it
> PVOID __stdcall __AllocStdCallThunk(VOID);
> VOID __stdcall __FreeStdCallThunk(PVOID);
>
> #define AllocStdCallThunk() __AllocStdCallThunk()
> #define FreeStdCallThunk(p) __FreeStdCallThunk(p)
>
> #pragma comment(lib, "atlthunk.lib")
> */
> #define AllocStdCallThunk()
> HeapAlloc(GetProcessHeap(),0,sizeof(_stdcallthunk))
> #define FreeStdCallThunk(p) HeapFree(GetProcessHeap(), 0, p)
> ---------------------------------------------------------------
>
> 5 - Download and Install the WTL from http://wtl.sf.net
>
> 6 - Download AppWizard for VCExpress from
> http://groups.yahoo.com/group/wtl/fi...p80express.zip
> Unzip and Copy JS file into WTL\AppWiz folder, double click it to
> install WTL Wizard into VCExpress
>
> Enjoy VCExpress&WTL
>
> --
> Baryon Lee
> http://www.bbshare.com/
> Share our software to make your life & work more easier.
> ===============================================
>
> Best regards,
> Roman
>
>
> "W. Jordan" <(E-Mail Removed)> wrote in message
> news:Oza0er%(E-Mail Removed)...
>> Hello,
>>
>> I would like to learn MFC programming.
>> However, Visual Studio is expensive.
>> Can I write MFC programs with the VC++ 2005 Express
>> but without bothering the .net framework?
>>
>> --
>>
>> Best Regards,
>> W. Jordan

>



 
Reply With Quote
 
W. Jordan
Guest
Posts: n/a
 
      30th Nov 2005
Hello,

I downloaded the VC2005Express and modified the settings of VCExpress
according to this page:
http://msdn.microsoft.com/vstudio/ex...k/default.aspx
However, I found that "Resource Editing is not supported on the Visual C++
Express SKU". It is sad.
Is there any alternative that can help editing the resouces?


--

Best Regards,
W. Jordan



"Dmytro Lapshyn [MVP]" <x-(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
>
> I am not sure about the very latest version of MFC, but I do believe MFC
> has absolutely nothing to do with .NET - it is plain unmanaged C++.
> However, again, I cannot say for sure VS 2005 Express includes MFC -
> please check the Visual Studio Center at msdn.microsoft.com.
>
> --
> Sincerely,
> Dmytro Lapshyn [Visual Developer - Visual C# MVP]
>
>
> "W. Jordan" <(E-Mail Removed)> wrote in message
> news:Oza0er%(E-Mail Removed)...
>> Hello,
>>
>> I would like to learn MFC programming.
>> However, Visual Studio is expensive.
>> Can I write MFC programs with the VC++ 2005 Express
>> but without bothering the .net framework?
>>
>> --
>>
>> Best Regards,
>> W. Jordan
>>
>>
>>
>>

>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
getting errors while compiling the program written in .NET framework 1.1 using Visual c# 2005 Express Edition Manikandan Microsoft C# .NET 2 28th Oct 2007 09:06 AM
Simple question : Can I create a Web-based application with Visual C# 2005 Express ? cpchan Microsoft C# .NET 2 18th Apr 2007 03:37 AM
Application to maintain SQL data using Visual C# 2005 Express erlend.dalen@gmail.com Microsoft Dot NET 0 9th Dec 2005 07:35 PM
port an visual studio 6 MFC application to visual c++ 2005 express =?Utf-8?B?Z2VyZA==?= Microsoft Dot NET 0 15th Mar 2005 03:01 PM
Visual C# 2005 Express with Compact Framework Daniel Moth Microsoft Dot NET Compact Framework 1 15th Nov 2004 03:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:47 PM.