I have a big problem and i have to solve it in max 15 hours.
I've made a chat. Both client and server are applets. What i need to do is send a gif from client to server.I am not alowed to sign a jar archive so i must obay the security manager so I can't read the file that contains the image in...
I have to send a gif from a client to server.
I have used sockets and DataInputStream and PrintWriter to stream the data.
The problem is that the server recives incorect data; a few bytes are not recognized.This is the source gif sent by the client:
//****************************************...
Hi there, is there any way I could change the way a JMenuItem looks(I would like to change the background for instance and maybe display a custom image when the menu item is selected).
The getGraphics() method returns null so...
Should I extend the class instead and overwrite paint method ...
Please tell me how can I get the path to Desktop(I want to create a shortcut from code) and also how can I change the icon for that shortcut(or any other file). I'm using plain API but if you know how to do these in MFC it'll be ok(though I don't like MFC that much).
I'm selecting text from a JTextArea from my code with
setSelectionStart()
and
setSelectionEnd() which is working just fine
The problem is that the text selected is not visible so please tell me how can I highlight the selection I've made.
Thanks...
I'd like to acces the e-mail box(yahoo for example) using c++. This should involve socket programming (or so i think so).Please tell me how would you consider to solve this assignment.
I'm not too familiar with socket programming in visual C++, so if you know some documentation I would be...
I want to set an image as background for a button without using swing.I've never seen an example but I tryed something and unfortunally the imageUpdate method returns true() and this means that the image is not loaded yet.
Please tell me what's wrong with the code below.
I wrote the code in a...
I believe that in sun java there is no class that works with win registers but i wanna be sure.
Is there any way for me to read&write windows registers using sun java?
I've heard that in Microsoft J++ i can do this, but is there any way to do it in sun's java?
I have an application that is frame based( displays a frame ) and on the frame surface I have to display some images.Since I don't use applet I can't use getImage() and I don't
know other methods that displays images(jpg-s for example from HDD).
Please tell me how can this be done.
Thanks.
I'm working on a chat program and the clients must be done using applet.The problem is that I have one error when the client connects:
something with socket perimision.If I run the server and the clients on the same machine everithing works just fine so I guess there's some problem with security...
I must add a menu item to an existing window.
But that menu item must really work and this is my problem.
My ideea is to enumerate all windows, get handle of the menu and then append one.
Please tell me how will I now that the menu item was selected.
I have searched the forum to see what has been told in here about processes but ...
The thing is that one of my collegs needs to implement something like Task Manager using Visual C(or Borland) and I must help him(kind of coding it for him :) ).I saw lots of functions in help wich perform...
Hello...
I have to do a text editor and I have a problem with the caret.I tryed this:
/*
TEXTMETRIC tm;
GetTextMetric(hwnd,&tm);
charwidth=tm.AveCharWidth;
*/
When a button is pressed the new caret position will be:
//xpos=xpos+charwidth
It works for a few characthers like 'a,s' but for others...
what should be the new position of the caret after moving one position(left or right)?
tm.tmAveCharWidth(textmetric structure) is no good beacuse chars width depend on their value,so...?
I would like to get path,name and altough handle to those files.
And is there any metod to now when the list of the opened files has changed(a handle to a file was closed or opened)?
Thanks
I am using Borland C 5.02,Win xp.
1.
I am interested in finding the names of the
.exe files running because i have to make a
Task mannager.
I now everithing about the windows open but can't retrieve the name of the .exe files who launched the windows.
2.
Another problem:
How can i display a...
I am using Borland C 5.02,Win xp.
1.
I am interested in finding the names of the
.exe files running because i have to make a
Task mannager.
I now everithing about the windows open but can't retrieve the name of the .exe files who launched the windows.
2.
Another problem:
How can i display a...
I don't now if it is possible, but I'm tryng to retrive a handler for a window,(not one created by me !!!).For example I want to retrieve a hadler in my code for an existing window created by any aplication.
I'm interested in C.500(or heigher) functions that could do this.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.