MFC Serialize and CAsyncSocket
Does anyone know how I can transmit a full class thru a network using
CAsyncSocket ? I think that the serialize method from CObject must be used
but seems to work with files and not with networking.
Thx for your answers.
Try attaching a CSocketFile or CArchive to the CSocket
"Bonnel Maxime" <firstname.lastname@example.org> wrote in message
> Hi !!!
> Does anyone know how I can transmit a full class thru a network using
> CAsyncSocket ? I think that the serialize method from CObject must be used
> but s...learning MFC #2
where can I find some online tutorials to learn MFC programming?
"Marc Schodermayr" <SchodMC@muv.com> wrote:
>where can I find some online tutorials to learn MFC programming?
Check the Scribble tutorial. It's in your MSDN library, and online at
This site also has gud material:
"Marc Schodermayr" <...MFC Application has encountered a problem and needs to close. HELP
This is driving me nuts.
Whenever I run my program in release configuraiton it always crashes with
the above error message offering me an option to send a message to Microsoft.
I have discovered it is an access violation (code 5).
Whenever I run the program in debug configuration it runs OK.
I have two main questions:
1 How can the program behave so differently in the two configurations? I can
find no explanation of this in the help files.
2 How can I get useful information about the access violation?
I cannot save the crash dump produced which the exception handler offers to
send to ...Multi-threading and CMap / CList MFC classes
Hello MFC gurus,
(1) Is it legal to allocate (using "new" operator) a CMap / CList object in
one thread and destoyed it (using "delete" operator) in another one?
(2) Is it legal to access a CMap / CList MFC object in different threads
(using a "mutex" to control access to the shared object)?
Thanks in advance
Also, FYI, I use MFC as shared dll + multi-threaded CRT (dll)
"Olivier" <email@example.com> a �crit dans le message de news:
> Hello...CCommandLineInfo and MFC GUI
I am trying to write an MFC-based application which can be run via
It should not pop up GUI if following line is executed:
It should execute normally when following line is executed:
I am able to parse command line arguments using CCommanLineInfo
class. If user executes the program from command prompt with /nogui
option then application should run code and it should pop up messages
as to its progress and never the main program GUI. After it has done
executing code it should gracefully exit. Need some pointers on how
to...MFC Sample Programs for Visual Studio 2008?
I'm trying to find an example MFC program that demonstrates use of the Tab
Looking in MSDN, I find references to an example named "Fire...", but I
cannot locate the actual download.
Anybody know where this, or another Tab Control use example program can be
Thanks for any suggestions.
"PvdG42" <firstname.lastname@example.org> wrote in message
> I'm trying to find an example MFC program that demonstrates use of the Tab
> Control (CTabCtrl).
> Looking in MSDN, I find references to ...How Do We Insert a VC++ Routine in a MFC program?
I need to do this because I do not know how to convert
the VC++ routine into MFC. However, the routine does
compile (and executes with main() included) when we do it
with Visual Studio 6.0 (MFC).
So, assume that we have a routine hello(string bertolucci);
How do we call this routine from inside a MFC program?
Seriously can you provide more information? Have you declared your hello()
function within the class you are trying to call it from? Is the function
one of yours, or is it a 'system'; API call. If it is an API call, have you
inclu...Migrating from Beta Edition of Access 2003 to Access 2003
I designed a database for a customer who was initially using the Beta
Edition of Microsoft Office 2003 Professional. Recently, they bought
Microsoft Office 2003 Professional and installed it on their computer.
However, now the InvoiceForm and the EditDeleteInvoice form do not show the
total amount like they did with the Beta Edition. Neither does the
rptInvoiceStatement show the total amount, however it did display the total
amount with the Beta Edition. There have been no changes made to the
database application itself which is in Access 2002 format. The InvoiceForm
has two subforms o...New Version of MFC for VC2005?
It appears that SQL Server 2008 installs a new side-by-side mfc version:
The one included with SP1 was
Trouble is my application now crashes when that one is loaded with a Unicode
How can I set up a manifest that insists on loading the one I distributed
with my application.
I tried setting up a manifest that said:
<assemblyIdentity type='win32' name='Microsoft.VC80.CRT'
...mfc project not compile in visual studio 2008
I made a mfc project using wizard in visual studio 2008 and it didn`t
compile,. i didn`t add anything, just made it as it should be.
i tried changing _WIN32_WINNT and WINVER 0x0600 but it just resulted in
i also reinstalled my vs 2008, but it didn`t help.
For more informations i have win xp sp2 and freshly installed microsoft
visual studio 2008 in a default way.
1>c:\program files\microsoft visual studio
9.0\vc\atlmfc\include\winnt.h(3019) : error C2146: syntax error : missing ';'
before identifier 'ContextRecord'
1>c:\progr...Portfolio Review-Performance Section
Running Money '04 and its great. But, Performance section
of Portfolio Review is not showing "YTD" column for: My
Portfolio or DJIA or SP500. It is showing "Last 12
Months" figures, in these columns.
Not sure what I messed up. If a resolution is previously
available, what is navigation to solution.
...CommandLine argument in MFC
I have dialog based application. Now i want to pass command line arguements
to this application. How do i go about it. What is the best way of getting
Also i will be starting this application using the api CreateProcess() and
pass my arguement from it.???
So how do i go about it??
>I have dialog based application. Now i want to pass command line arguements
>to this application. How do i go about it. What is the best way of getting
I make use of the global arguments that the MS C++ run-time provides -
__argv (__targv) & __...HTML in MFC Application?
I have created a MFC SDI application.
i have derived the view class from the CHtmlView class and used the
LoadFromResource() to load the html page into the view.
Now there were quite a few things that i wanted to stop for ex:
-------) stop the context menu to be displayed when mouse is right clicked
on the html page.
-------) stop the mouse selection for the html content.
-------) stop the mouse cursor change over the static text.
All these problems are solved by adding some code in the html page inside
the <SCRIPT> tag.
There is one more behaviour that i want to stop:
&qu...how to set different colors to track changes author reviewer
I want different colours to be set for track changes i.e first colour by
author another colour by reviewer and yet another colour when the author
reviews the replies given by the reviewer
...System Calls from MFC Application
using system() command from mfc application, the black
screen pops-up before my dialog box is very annoying, how
do I automatically minimize it or close it and only show
my dialog window?
Instead of using system() , use any of the following API's.
Check Abdoul [ VC++ MVP ]
"Arun" <email@example.com> wrote in message
> using system() command from mfc application, the black
> screen pops-up before my dialog box is very ann...Beta Tester
How can my organization become an official CRM beta tester??
...Styles change when someone reviews a document and returns it
Using Word 2007, I'm creating a template that will be used for writing
policies. Formatting has become an issue though.
If I use the default MS Word styles, the formatting of the document will
sometimes change if the doc is sent to someone else for review and that
person then returns the document with edits. For example, a text line will
no longer be flush with the Heading 1 line above. Is that because that
reader's style specifications for Heading 1 might differ from mine even
though the style names are the same?
If I rename the MS Word styles (e.g., CIP-Heading ...OT: MS FixIt Centre Beta
Any one tried the new MS Fix It Centre Beta? Any comments?
...MFC 7 DDE problem
This is a multi-part message in MIME format.
MFC 7 has a bug in WM_DDE_EXECUTE handler of CFrameWnd
lstrcpyn(szCommand, lpsz, _countof(szCommand)); line is missing.
This is why when the user double-clicks on the Document associated with =
in WindowExplorer nothings happens.
Microsoft recommends workaround by implementing WM_DDE_EXECUTE handler
in app's CMainFrame and copying there the missing line.
Unfortunately it solves the problem only i...Compile error with Console App using MFC
I'm get the following compile errors when trying to build an MFC console
application in release mode using Visual Studio .NET 2003 Professional
C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\atlmfc\include\afxwin2.inl(1034) : error C2039: 'Enable3dControls'
: is not a member of 'CWinApp'
C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\atlmfc\include\afxwin.h(4289) : see declaration of 'CWinApp'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\ostream(604)
: fatal error C1903: unable to recover from previous error(s)...Pub 2007 beta > Pub 98 > Pub 97 conversion
OK, I know I know...this is a very old topic. I've read thru some of
the older threads from years back but haven't seen anything very recent
regarding the ability to do this type of conversion. Probably because
I'm the only one left on the planet who needs to know how it can be
done. But sometimes as time goes on solutions appear. Here's hoping!
I just can't believe that this is a dead end. I have over the years
been able to convert just about everything I needed to convert but this
project has me stumped.
Here's what I have been able to do thus far.
The original fil...MFC project with my classes
I have got a project that uses MFC. I want to expand the functionality
of the project by adding a few of my own classes to it. But I don't
know where should I create objects of my new classes so that I can
access them, I know the WinMain function resides in CWinApp class and
my project has a class inherited from the CWinApp class, but where
should I define my own objects I can't figure it our. Can anybody help?
> I have got a project that uses MFC. I want to expand the functionality
> of the project by adding a few of my own classes to it. But I don't
> kno...Vista/MFC 4.2 OnUpdateRecentFileMenu() quirk/bug
I'm testing a Visual C++ 6/MFC 4.2 app on Vista. I notice some (not all) of
the items in the MRU list are blank.
1) Has anyone else noticed this?
2) Is there an OS update that fixes/will fix this?
- copying mfc42u.dll from my XP machine to the app folder on the Vista
machine solves the problem, so I suspect a bug in the Vista version of the
- when I step into CRecentFileList code I can see the paths in the member
array is fine.
- calls to GetDisplayName() return empty strings for the problem files.
...Bought Office 2008 Beta and now it says it's about to Expire
Anyone seen this? And if so, what can I do
Come on, you're kidding us aren't you?: you say you "*bought* Office 2008
beta"! If you're telling the truth you have been absolutely *conned*.
There has been no public beta release of Office 2008, for sale or otherwise.
Therefore, your copy of a beta MUST have been stolen. It originated,
ultimately, in someone violating the terms of their non-disclosure agreement
with Microsoft. That is rather serious. There may be legal consequences of
acquiring such a copy and you may well feel obliged to report the seller to
I am making a client for a server and i would like to know if if MFC is best
to use r is .NET a better solution for this and also i would like to know if
MFC is outdated and only used for existing applications.
This question pops up every once in a while and, of course, the answers are
always opinionated, but from what I understand MFC will be supported for
some time to come. If you are creating a native Windows UI based
application my opinion is that MFC or ATL would be great platforms to
continue using. There are lots of library functions and examples for code
available. Also, usi...