Search:
Type: Posts; User: sawer
Search :
Search took 0.02 seconds.
Hi
We know that, WinMain is buried in the MFC Framework. OK but how can Windows call it?
I opened MFC project in VC++ and tried to find out how it imports the dll(Mfc90ud.dll) and functions in...
Understood.
Solved it:
do
{
bReadSuccess = ReadFile( hFile, strBuffer, sizeof(strBuffer), &nRead, NULL);
bWriteSuccess = WriteFile( hFile2, strBuffer, nRead, &nWrite, NULL);...
Hi
do
{
bReadSuccess = ReadFile( hFile, strBuffer, sizeof(strBuffer), &nRead, NULL);
bWriteSuccess = WriteFile( hFile2, strBuffer, sizeof(strBuffer), &nWrite, NULL);...
March 16th, 2009 08:22 AM
OK. But this works:
#include <afx.h>
#include <afxwin.h>
#include <afxext.h>
CWinApp theApp;
int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])
March 16th, 2009 08:00 AM
Hi
We can add MFC support to console apps but hhy can't we add MFC support to Windows application?
I tried this:
#include <afx.h>
#include <afxwin.h>
February 19th, 2009 05:17 PM
I mean client area's handle. But now i think this can't be true.
But if toolbar lives inside the parent window's client area, so client orgin must be started above visible area. If not, how can...
February 19th, 2009 04:06 PM
If so why GetClientRect Function returns the upper-left and lower-right visible corners of the client area? It must be start under toolbar. right?
Is there a way to get handle of clent...
November 25th, 2008 08:51 AM
for ( int i = 0; i < 100; i++)
{
}
Is complexity for this loop O(1) or O(n)?
October 21st, 2008 08:13 AM
Hi
In MFC project wizard we can set Compound Document Support for our application. Here, some terms confused me.
For Compound document support, we may choose "Container". In MSDN:
And we...
Hi
Why isn't assignment to global variables allowed?
int t;
t = 9; // error C2086: 'int t' : redefinition
int main()
{
Hi
In MFC we can make relation/connection between "controls which are on property pages" and "properties in IDL" with these functions and macros:
//these are written in Activex controls cpp...
This is the main point and I think this is not disadvantage. On the contrary, to learning Win32, ATL, MFC, WTL, STL etc. is making you experienced programmer. You can see engineering. All of them has...
Thank you Arjay,
Yes, older but can't be decompiled technologies. So native coding never dies.
For database and web applications,(ERP) C# is ideal but for desktop applications that we use in our...
Thanks for opinion.
Actually "to speak COM to talk to the control" isn't problem for me.
I think the advantage of activex is:
-If the control activex, developer can adjust its property, events...
Hi
If you had to write a custom control for your application, which type of control would you write?Activex or Ordinary?
What are the advantages/disadvantages of MFC ActiveX versus ordinary MFC...
OK. Thank you very much...
By searching.
You attached many codes to your old posts. They are very helpful. Thanks.
I want to ask one more question about Size parameter that we pass CreateView function. To be honest, i...
Hi
I searched some terms and saw this thread.
In attached code:
m_wndInSplitterHigh.SetDlgCtrlID(m_wndSplitter.IdFromRowCol(0, 0));...
OK. Thank you.
Understood.
Hi
1-) I opened a SDI project:
pDocTemplate = new CSingleDocTemplate(
IDR_MAINFRAME,
RUNTIME_CLASS(CTRYDoc),
RUNTIME_CLASS(CMainFrame), // main SDI frame window...
Thanks krmed;
Yes MDI project.
How can i override the default behavior?
Sorry.
My (quick) project name is Document
Document: DocumentDoc.h and .cpp
View: DocumentView.h and .cpp
And also i have a Dialog which takes size of the point and store it in...
Hi
When clicks on View, my program draws ellipse and I tried to make all changes in one view reflects to all views.
1-)OnLbuttonDown adds a point to CArray m_PointList
2-)UpdateAllViews...
Hi
Did managed code dominate this field? Or still, companies develop with native code?
How is the popularity of MFC in Database apps like ERP projects?
I asked these question because it...
Hi
I just tried to add view new views into another view if possible.
OnInitialUpdate:
CRect clientRect;
GetClientRect(&clientRect);
clientRect.SetRect(clientRect.right -110,...
Click Here to Expand Forum to Full Width