Tuesday, 8 April 2014

Spring MVC 404 blunder when controlling annotation-driven configuration

I am removing a following error: The requested apparatus
(/SpringWebApp/) is not available.My Web.xml Spring Web MVC
Application MVC
org.springframework.web.servlet.DispatcherServlet
contextConfigLocation
/WEB-INF/spring/appServlet/servlet-context.xml 1
MVC / MyFirstController:package
com.assyst.SpringWebApp;import java.util.Locale;import
javax.servlet.http.HttpServletRequest;import
javax.servlet.http.HttpServletResponse;import org.slf4j.Logger;import
org.slf4j.LoggerFactory;import
org.springframework.stereotype.Controller;import
org.springframework.ui.Model;import
org.springframework.web.bind.annotation.RequestMapping;import
org.springframework.web.bind.annotation.RequestMethod;import
org.springframework.web.servlet.ModelAndView;import
org.springframework.web.servlet.mvc.AbstractController;@Controller open
category MyFirstController { @RequestMapping(value="/")
stable ModelAndView ServletContainer(HttpServletRequest
request,HttpServletResponse response) throws Exception {
ModelAndView denote = new ModelAndView("HomePage");
model.addObject("msg", "welcome to open mvc hello
world"); relapse model; }
}servlet-context.xml: The
url we am controlling to opening it is:
http://localhost:8080/SpringWebApp/My concentration server is jboss 7.What
am we doing Wrong here?

Friday, 4 April 2014

Is duplicate constructor called when a surrogate returning vigilant is indifferent to another vigilant immediately

i am carrying problem bargain how a cost of this formula comes out like
this:#includeusing namespace std;class three_d{float x,y,z;public:
three_d(){x=y=z=0;cout<<"\n\tDefault Constructor";} three_d(float
a,float b,float c){x=a;y=b;z=c;cout<<"\n\tOverloaded Constructor";}
three_d(const three_d &obj){x=obj.x;y=obj.y;z=obj.z;cout<<"\n\tCopy
Constructor";} three_d operator+(three_d op2); three_d
operator=(three_d op2); vacant show();
~three_d(){cout<<"\n\tDestructor Working !!";}};three_d
three_d::operator+(three_d op2){ x=x+op2.x; y=y+op2.y; z=z+op2.z;
relapse *this; }three_d three_d::operator=(three_d op1){ x=op1.x;
y=op1.y; z=op1.z; relapse *this;}void three_d::show(){
cout<<"\n\n\tValues are : x="<2. Overloaded Constructor3. Default
Constructor4. Copy Constructor5. Copy Constructor6. Destructor Working
!!7. Copy Constructor8. Destructor Working !!9. Destructor Working !!10.
Values are : x=3.1 y=3 and z=3.211. Values are : x=1 y=1 and z=112. Values
are : x=3.1 y=3 and z=3.213. Destructor Working !!14. Destructor Working
!!15. Destructor Working !!So my questions are:In a 5th line of cost what
is this duplicate constructor for? is it for *this pointer (but as it is a
pointer i dont cruise it needs a duplicate constructor)? The fourth line
is for vigilant op2(i suppose) ?If above matter is loyal when overloading
"=" since is wholly one duplicate constructor used(when it also have a
returning value ? When is a temporary(returning) vigilant destructed ?
Please explain how a cost is systematic like this. Even if i change a
overloaded "+" to something like this :three_d three_d::operator+(three_d
op2){three_d temp;temp.x=x+op2.x;temp.y=y+op2.y;temp.z=z+op2.z;return
temp; }the cost of duplicate constructor for "=" stays same(though values
will be changed) i.e wholly 1 duplicate constructor for "=". However we
cruise there contingency be 2 duplicate constructors for "=" 1 for op1
vigilant and other for *this . If i use rudimentary assignment in sure
like : ob3=ob1; a duplicate constructor is called twice as expected.
Please explain.

Tuesday, 1 April 2014

how to pull a taskbar symbol like idol controlling thesis api

Currently I'm building a deskband controlling c++. Now I'm means to pull
things within a taskband window and we would like to pull a taskbar symbol
like icon. we trust it won't be too challenging given a default reason
keyboard and a TouchMousePointer already finished it.I initial emanate a
vacant window and use a thesis api to pull a background. But we
unequivocally don't know how to make a taskbar button. Currently wholly
stationary idol or half pristine symbol (only a difference on it are
transparent) works.In this post How do we pull a Taskbar symbol
controlling visible styles?they mentioned something by controlling .net
though we unequivocally don't wish to do that. Just perplexing to keep all
simple.(no mfc or .net)There's also some info in this postHow to pull
Windows 7 taskbar like Shaded Buttonsbut not unequivocally usefull.I also
checked a import functions of TipBand.dll(default reason keyboard)
UxTheme.dll 18000D088 Import Address Table 18000D668
Import Name Table 0 time date stamp 0
Index of initial forwarder anxiety 9 CloseThemeData
11 DrawThemeParentBackground D
DrawThemeBackground 50 SetWindowTheme
4D OpenThemeDataCOMCTL32.dll 18000D0B8 Import Address Table
18000D698 Import Name Table 0 time date stamp
0 Index of initial forwarder anxiety 7C
InitCommonControlsExGDI32.dll 18000D358 Import Address Table
18000D938 Import Name Table 0 time date stamp
0 Index of initial forwarder anxiety 2D4
SelectObject 4C CreatePen 56
CreateSolidBrush 10E DeleteObject
261 LineTo 26F MoveToExHe also used a DrawIconEx in
user32.dll, we attempted that though only a stationary icon.I also
attempted a thesis api drawicon though zero happened only blank. Please
lamp me........