Thanks for the information. I will try it out as soon as possible.
arthur89kim
Posts
-
java.lang.ClassNotFoundException -
java.lang.ClassNotFoundExceptionThanks for the suggestion. I will try the solution proposed. :)
-
java.lang.ClassNotFoundExceptionthanks for the suggestion. I will try to solve it.
-
java.lang.ClassNotFoundExceptionThanks for the suggestion but it doesn't seems to be able to solve the problem. There are others java games has been uploaded onto the same server but only the one I have is not able to work online while the rest can be loaded and played.
-
java.lang.ClassNotFoundExceptionI have created a Java game (183MB for .jar file) and can be played on local (offline) through .html and it works perfectly fine. However, once it is allocated into the server in my University, it does not run as expected and it projects the following exception:
load: class wildwildwest.applet_selection_screen not found.
java.lang.ClassNotFoundException: wildwildwest.applet_selection_screen
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception: java.lang.ClassNotFoundException: wildwildwest.applet_selection_screenWhat causes the above problem and what solution can be proposed to solve it? :) By the way, the .html code for the game is as followed is as following:
<HTML>
<HEAD>
<TITLE>Wild Wild West</TITLE>
</HEAD>
<BODY bgcolor="#000000"><font color="#ffffff" face="Curlz MT">
<center>
<H3><HR WIDTH="100%">Wild Wild West<HR WIDTH="100%"></H3><P>
<APPLET CODE="wildwildwest.applet_selection_screen" archive="Wild Wild West.jar" width=800 height=600></APPLET>
</P></center>
</font>
</BODY>
</HTML> -
Get Application Window Handle from mouse click, C++Thanks for the reply. Even though I can get handles from there. How do I actual press with my mouse to get the coordinate (POINT) on any position of the Window Application to obtain corresponding handle of that Window Application since I got a transparent window at TOPMOST and other Window Applications before it? :confused:
To code or not to code, that is the question~
-
Get Application Window Handle from mouse click, C++Hi all, I'm using Visual Studio 2005 with MFC application. Is there a coding method to obtain Application Window's handle and rect with a mouse click? :confused: Let's say I have a transparent window with WS_EX_TOPMOST attribute and there are other window applications such as Microsoft Word, Mozilla Firefox and Window Explorer. I was told to obtain the rect and the handle of the window application with a mouse click while the transparent window on TOPMOST. Example: I click on Mozilla Firefox while all other windows are opened and on top of mozilla and yet the transparent window is on TOPMOST of all. How do I obtain the RECT as well as the handle?? By the way, I'm trying to BitBlt that Mozilla with a mouse click with all window including my own created MFC window on top of it. :-O
You smile at me and I smile at you, And so one smile makes two~
-
FillRect C++Hi all, I am using Visual Studio 2005 with MFC application. I have create a transparent window with following codes:
HINSTANCE hInst = ::GetModuleHandle(NULL); WNDCLASSEX wc; wc.cbSize=sizeof(WNDCLASSEX); wc.cbClsExtra = 0; wc.cbWndExtra = 0; wc.hbrBackground = (HBRUSH)GetStockObject( NULL\_BRUSH ); wc.hCursor = LoadCursor( NULL, IDC\_CROSS ); wc.hIcon = LoadIcon( NULL, IDI\_APPLICATION ); wc.hInstance = hInst; wc.lpfnWndProc = (WNDPROC) CCaptureDlg::WndProc; wc.lpszClassName = L"Test"; wc.lpszMenuName = 0; wc.style = CS\_HREDRAW | CS\_VREDRAW; wc.hIconSm = NULL; m\_hWnd=::CreateWindowEx(WS\_EX\_TRANSPARENT|WS\_EX\_TOPMOST,L"Test",0, WS\_VISIBLE|WS\_POPUP,0,0, m\_ComputerResolutionX, m\_ComputerResolutionY,0,0,0,this);
In that Window "Test", I can drag and draw a rectangle but when I keep dragging and moving the mouse around the screen, it does not clear off my previous drawing, is there a way to clear off my previous drawing? I have tried FillRect as following but still does not work:
case WM\_MOUSEMOVE: { if (pClass->m\_MouseDown==1) //to indicate mouse is pressed before drawing { HDC hdc; hdc = ::GetWindowDC(hwnd); RECT re; SetRect(&re, 0,0,pClass->m\_ComputerResolutionX,pClass->m\_ComputerResolutionY); HBRUSH brush =(HBRUSH)::GetStockObject(NULL\_BRUSH); if (pClass->m\_tempPoint.x!=p.x && pClass->m\_tempPoint.y!=p.y) //if mouse move into different position { static int count = 0; TRACE(L"Test %d\\n", count++); FillRect(hdc,&re,brush); pClass->m\_tempPoint=p; } CPen mypen(PS\_DOT, 1, RGB(0,0,0)); HPEN pen = (HPEN)mypen; SelectObject(hdc, pen); SelectObject(hdc, brush); ::Rectangle( hdc, pClass->m\_InitPoint.x, pClass->m\_InitPoint.y, p.x , p.y); } break; }
Or is there another way to remove my previous drawing on this transparent window other than FillRect? I would be pleased to learn about it. TQ~
Teaching and learning is a cycle... Learning something new enable to teach others; Teaching others enable self learning.
-
Permanent popup menu (aka list control) c++, MFCThat is the task I'm given. To eliminate the white space in order to make it a full row highlight without white space. It would seems more professional that way. By the way, thanks for your reply. I will try out the WM_DRAWITEM as mentioned by Sauro Viti.
Sincerely, arthur89kim
-
Permanent popup menu (aka list control) c++, MFCThanks for your reply. I have try it out but no different. There is still white space withing that icon area.
Sincerely, arthur89kim
-
Permanent popup menu (aka list control) c++, MFCSorry for the confusion, I was given task to make a list control with icons (EnumWindowProc from windows' applications) and a tick (check mark) to indicate my item is selected when I double click on it. However, the drawback of using list control occurs when I highlight the item before double clicking it. This is where my task given, I am suppose to make a full row highlight without white space (especially when there is an icon in the list). The white space is reserved for the icons inserted into it. Hence, I was trying to use CMenu to obtain desirable results (exp: right click on PDF file to see the popup menu). ;P Nevertheless, by using popup menu, I am not able to show the popup menu permanently as we can do with list control. I hope my statements do clear up the confusion made. Thanks for your patient to help me out. :-O
Sincerely, arthur89kim
-
Permanent popup menu (aka list control) c++, MFCThanks for the reply. I'll look into it. I was hoping to find alternative way to solve it without using owner-draw or other drawing method. :-O If that's the case, I shall study on it. Thanks again.
Sincerely, arthur89kim
-
Permanent popup menu (aka list control) c++, MFCWhat I need to do is to create a popup menu literally looks like list control. The reason why I do so is because I found out that the list control icon attribute as following... m_list.SetExtendedStyle(LVS_EX_SUBITEMIMAGES | LVS_EX_FULLROWSELECT); ...where when I click on one of the item, I manage to select the whole row but not able to highlight the icon itself. If u have notice, when you put in the above code, there will be an empty white space reserved for the icon to be loaded. My original task is to eliminate that white space (in other words is to make it transparent). For example, I'm trying to make the list control to be exactly same as the right click button in Adobe PDF reader where i can select whole row with icon (transparent background) and a tick (check mark). By the way, the icons I obtained is from EnumWindowProc where I get from Window Application (same as ALT + TAB button).
Sincerely, arthur89kim
-
Permanent popup menu (aka list control) c++, MFCYes. Just like what u mentioned. What I need to do is to create a popup menu literally looks like list control. The reason why I do so is because I found out that the list control icon attribute as following... m_list.SetExtendedStyle(LVS_EX_SUBITEMIMAGES | LVS_EX_FULLROWSELECT); ...where when I click on one of the item, I manage to select the whole row but not able to highlight the icon itself. If u have notice, when you put in the above code, there will be an empty white space reserved for the icon to be loaded. My original task is to eliminate that white space (in other words is to make it transparent). For example, I'm trying to make the list control to be exactly same as the right click button in Adobe PDF reader where i can select whole row with icon (transparent background) and a tick (check mark). By the way, the icons I obtained is from EnumWindowProc where I get from Window Application (same as ALT + TAB button)
Sincerely, arthur89kim
-
Permanent popup menu (aka list control) c++, MFCI'm using Microsoft Visual Studio 2005 and I'm new to MFC application. :-O The task I'm given is to create a popup menu (CMenu::CreatePopupMenu) somehow looks like a list control. This occurs to do some limitation of a list control. Is there a way to do it without using WM_DRAWITEM and WM_MEASUREITEM? Or does anyone knows how to attach a popup menu onto a picture control (CStatic)? or ShowWindow to show the popup menu permanently? Either way is fine with me. Will be waiting for reply~ TQ!!! ;)
Sincerely, arthur89kim