ctharam


{ City } vizianagaram
< Country > india
* Profession * software engineer
User No # 101750
Total Questions Posted # 1
Total Answers Posted # 28

Total Answers Posted for My Questions # 2
Total Views for My Questions # 6987

Users Marked my Answers as Correct # 38
Users Marked my Answers as Wrong # 12
Answers / { ctharam }

Question { Symphony, 15350 }

if both base and derived class have the constructors if i
create an object for derive class which class constructor
is executed first


Answer

1) First of all, Base class constructor called and then Derived class constructor will call.

Is This Answer Correct ?    0 Yes 0 No

Question { 5718 }

what is CSharp


Answer

Good to use C#:-
------------
1)which is suitable for windows based application's platform
2)which is pure OO programming language like C++ and java
3)its support Hardware devices
4)which is the allowing programming Developers to build console base applications and webservices (web applications) and have to put in internet across the World
5)simple and easily to learn
6)supports exception handling mechanism.

Disadvantage:-
--------------
1) does not support multiple inheritance.(but support by Interface)

2)does not support Copy Constructor

3)does not use Pointer concepts

4)does not support different platforms unlike java.

Is This Answer Correct ?    0 Yes 0 No


Question { Aspect, 5817 }

what is the updated verssion in vc++


Answer

1) Visual C++ 2010 (known also as Visual C++ 10.0) was released on April 12, 2010

2) Visual C++ 2012 (known also as Visual C++ 11.0) was released on August 15, 2012, and it is currently the latest stable release

Is This Answer Correct ?    0 Yes 0 No

Question { Invensys, 33242 }

Types of DLL's


Answer

DLL means (D)ynamic (L)ink (L)ibrary.

it has two Kinds. 1) Regular DLL 2) Extension DLL

1) Regular DLL:-
a) nothing but all C-language Library functions.
b) supports Static DLL and Dynamic Dll
c)Supports , Non-Library Functions
d)For Example, Win32 Application(SDK)
2) Extension DLL:-
a)Nothing but Extension all C++ Library Functions.
b)Only Support Dynamic DLL's.
c)supports, MFC Library Functions.
d)For Example, MFC applications.

Is This Answer Correct ?    1 Yes 2 No

Question { Infosys, 27727 }

What is the initial function to be called in MFC and what
it will do


Answer

InitInstance() is a main function of a Class CWinThread. by default , it returns TRUE.

Is This Answer Correct ?    0 Yes 0 No

Question { 8619 }

what are the differences b/w structure and class?


Answer

Struct:-
-------
1) by default, Public
2) doesn't support OOP's Concepts.
3) doesn't support Constructor and Destructor member functions.
4) No Security for data.

Class:-
-------
1) by default ,Private
2) its support OOP's Concepts.
3) supports Constructor and Destructor .
4) provides highly security for user's data.

Is This Answer Correct ?    1 Yes 0 No

Question { Synechron, 5258 }

an object,class is value type or refarance type. ?


Answer

They are Class, Object, Interface, String, Delegate and Dynamic.

Is This Answer Correct ?    0 Yes 0 No

Question { HCL, 20126 }

How to update windows title bar dynamically?


Answer

Ex1:-
BOOL CSample1_button_name_changingDlg::OnInitDialog()
{
CDialog::OnInitDialog();

SetWindowText(L"Changing the Caption of Dialogbox at Runtime");

return TRUE; // return TRUE unless you set the focus to a control
}

Ex2:-
BOOL CSample1_button_name_changingDlg::OnInitDialog()
{
CDialog::OnInitDialog();

SetWindowTextW(L"Changing the Caption of Dialogbox at Runtime");

return TRUE; // return TRUE unless you set the focus to a control
}

Is This Answer Correct ?    0 Yes 0 No

Question { 15074 }

What is piller of OOPS in C#.


Answer

Class,Object,Encapsulation,Message Passing,Abstraction,Inheritence and polymorphim.

Is This Answer Correct ?    1 Yes 1 No

Question { Mphasis, 15052 }

what is the use of CWinApp class?


Answer

The base class from which you derive a Windows application object.

class CWinApp : public CWinThread

When you derive an application class from CWinApp, override the InitInstance member function to create your application's main window object.


1) AfxGetApp Obtains a pointer to the CWinApp object.

2) AfxGetInstanceHandle Obtains a handle to the current application instance.

3) AfxGetResourceHandle Obtains a handle to the application's resources.

4) AfxGetAppName Obtains a pointer to a string containing the application's name. Alternately, if you have a pointer to the CWinApp object, use m_pszExeName to get the application's name.

Is This Answer Correct ?    0 Yes 1 No

Question { 13811 }

what r the vc++ components


Answer

some most VC++ components

File name Version Size
Asycfilt.dll 2.40.4275.1 144KB (147,728 bytes)
Atl.dll (Windows 95 and Windows 98) 3.0.8449.0 72KB (73,785 bytes)
Atl.dll (Windows NT) 3.0.8449.0 57.5KB (58,938 bytes)
Comcat.dll 4.71.1460.1 21.7KB (22,288 bytes)
Comctl32.dll (Windows 95 and Windows 98) 5.80.2614.3600 564KB (577,808 bytes)
Comctl32.dll (Windows NT) 5.80.2614.3600 544KB (557,328 bytes)
Mfc42.dll 6.0.8665.0 972KB (995,383 bytes)
Mfc42u.dll (Windows NT only) 6.0.8665.0 972KB (995,384 bytes)
Msvcirt.dll 6.0.8168.0 76KB (77,878 bytes)
Msvcp60.dll 6.0.8168.0 392KB (401,462 bytes)
Msvcrt.dll 6.0.8797.0 272KB (278,581 bytes)
Oleaut32.dll 2.40.4275.1 584KB (598,288 bytes)
Olepro32.dll 5.0.4275.1 160KB (164,112 bytes)
Stdole2.tlb 2.40.4275.1 17.5KB (17,920 bytes)

Is This Answer Correct ?    1 Yes 4 No

Question { 9150 }

1)How to create ToolTip in MFC?


Answer

STEP1:-
-----
In, CVC_searching_folderDlg.h

protected:
CToolTipCtrl m_ToolTip; // Tooltip

STEP2:-
--------
In, CVC_searching_folderDlg.cpp

BOOL CVC_searching_folderDlg::OnInitDialog()
{
CDialog::OnInitDialog();


SetIcon(m_hIcon, TRUE); // Set big icon
SetIcon(m_hIcon, FALSE); // Set small icon


// below, to set caption on a Dialogbox
SetWindowText(L"Welcome");

// Below, to create ToolTip for all Controls and Written
by Ctharam

if( !m_ToolTip.Create(this))
{
TRACE0("Unable to create the ToolTip!");
}
else
{

m_ToolTip.AddTool(&m_ok, _T("This is OK Button
!")); // for OK button

m_ToolTip.AddTool(&m_close_tooltip,_T("This is CANCEL
Button")); // for CANCEL button
m_ToolTip.AddTool(&m_onlyToolTip_button,_T("Yes This
is only ToolTip Button")); // for Button
m_ToolTip.AddTool(&m_edit1_tooltip,_T("Please Enter
Your Name here")); // for Edit Control
m_ToolTip.Activate(TRUE);
}
return TRUE; // return TRUE unless you set the
focus to a control
}

STEP3:-
-------
In, CVC_searching_folderDlg.cpp

BOOL CVC_searching_folderDlg::PreTranslateMessage(MSG* pMsg)
{

m_ToolTip.RelayEvent(pMsg);

return CDialog::PreTranslateMessage(pMsg);
}

Is This Answer Correct ?    2 Yes 1 No

Question { 9150 }

1)How to create ToolTip in MFC?


Answer

step1:-
--------
In, CVC_searching_folderDlg.h

protected:
CToolTipCtrl m_ToolTip; // Tooltip


Step2:-
--------
In, CVC_searching_folderDlg.cpp

BOOL CVC_searching_folderDlg::OnInitDialog()
{
CDialog::OnInitDialog();


SetIcon(m_hIcon, TRUE); // Set big icon
SetIcon(m_hIcon, FALSE); // Set small icon


// below, to set caption on a Dialogbox
SetWindowText(L"Welcome");

// Below, to create ToolTip for all Controls and Written
by Ctharam

if( !m_ToolTip.Create(this))
{
TRACE0("Unable to create the ToolTip!");
}
else
{

m_ToolTip.AddTool(&m_ok, _T("This is OK Button
!")); // for OK button

m_ToolTip.AddTool(&m_close_tooltip,_T("This is CANCEL
Button")); // for CANCEL button
m_ToolTip.AddTool(&m_onlyToolTip_button,_T("Yes This
is only ToolTip Button")); // for Button
m_ToolTip.AddTool(&m_edit1_tooltip,_T("Please Enter
Your Name here")); // for Edit Control
m_ToolTip.Activate(TRUE);
}
return TRUE;
}


step3:-
---------
In, CVC_searching_folderDlg.cpp

BOOL CVC_searching_folderDlg::PreTranslateMessage(MSG* pMsg)
{

m_ToolTip.RelayEvent(pMsg);

return CDialog::PreTranslateMessage(pMsg);
}


Code by Ctharam

Is This Answer Correct ?    5 Yes 0 No

Prev    1    [2]