|
Ravi is right, use "Test\r\nTest" for EditBox.
Maxwell Chen
People say "No news is good news". Then, no code is good code!?
|
|
|
|
|
Use \r\n instead of just \n
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
|
Alternatively you can use The following commands
CString temp;
{
temp +=13;
temp +=10;
}
For new line in edit box
Samir Sood
|
|
|
|
|
Use \r\n
"Isn't that the "write once, debug everwhere" language?" Tom Archer on Java...
|
|
|
|
|
Hi! I’m currently a junior in H.S. and during this summer, I was hoping to find an internship in the field of computer programming (C++). Yet, I’ve just started to learn C++ so I’m not very experience or have a lot of knowledge on C++ and the real reason I would like to be an intern in the field of computer programming (C++) is mainly to gain hands-on experience and to see what goes on in the field. I’m very focused on my future in the computer business and thought that I could start learning now before I get to college and start building my resume at a young age. Anyways, I was wondering how I can go about looking around for an internship in the field of computer programming (C++) near my area (NY, Queens or Manhattan/NYC) whether I search online or at the library or however I can find so. I was just wondering if anyone could help me out with my search for an internship or anything that I would need to know. If you need to reach me, you can instant message me at “ iZ Spyder Zi” (That’s my Screen Name) or email me @ iiispyderxiii@aol.com
Thanks in advance for all the help.
-Albert
|
|
|
|
|
Many large corporations (particularly those with government contracts) hire student for summer internships. Make a list of all the major employers in your area (the phone book is probably a good start) then search the web for their websites. Send emails to the HR departments explaining what you're seeking, and you might land several replies!
|
|
|
|
|
Hi! I’m currently a junior in H.S. and during this summer, I was hoping to find an internship in the field of computer programming (C++). Yet, I’ve just started to learn C++ so I’m not very experience or have a lot of knowledge on C++ and the real reason I would like to be an intern in the field of computer programming (C++) is mainly to gain hands-on experience and to see what goes on in the field. I’m very focused on my future in the computer business and thought that I could start learning now before I get to college and start building my resume at a young age. Anyways, I was wondering how I can go about looking around for an internship in the field of computer programming (C++) near my area (NY, Queens or Manhattan/NYC) whether I search online or at the library or however I can find so. I was just wondering if anyone could help me out with my search for an internship or anything that I would need to know. If you need to reach me, you can instant message me at “ iZ Spyder Zi” (That’s my Screen Name) or email me @ iiispyderxiii@aol.com
Thanks in advance for all the help.
-Albert
|
|
|
|
|
Hi,
How can I get the license number of Windows? I want it to run on 95,98,ME,NT,2000, XP.
thanks
Neil
|
|
|
|
|
|
Mike if you look at his other question, I think he wants to programatically get the licence number for the installed copy of Windows. Why, I cannot imagine.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
|
|
|
|
|
You want what to run on every version of Windows ?
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
|
|
|
|
|
Christian Graus wrote:
You want what to run on every version of Windows ?
Good question, CG
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
As far as I know it is stored under the HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\ProductId key. At least it is on Win2k and Win98.
|
|
|
|
|
Hi
How do I get the workstations Workgroup name, and domain name? I have to get these in Windows 95(second edition),98,NT,ME,2000,XP. I would like to know the domain name when the user logs on, even windows 95..
thanks
Neil
|
|
|
|
|
I use 1 my class derived from CSocket - MFC as usually.
In server, I use an object of this class as a listening socket. Now, can you help me in solving this problem:
-Once a client connect to server, whole transaction between server and that client is run in a separate thread.
At this time, I can't solve it. I just use a CPtrList of many CMySocket, each in a connection.
In my opinion, using thread is better, but I can't.
Help me !
Hung Son
A Vietnamese student
i-g.hypermart.net
dlhson2001@yahoo.com
|
|
|
|
|
The moment a new socket connection is established, spawn a new thread. Though if there are too many connections in parallel, this is not a recommended method
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
How can I load a dynamic images as background (of my View, of my edit box background, richedit box background), and on foreground, I can still show my text. (It look like Yahoo Messenger with dynamic IMEnvironment.)
I found a way seems good, but actually, it's not good:
-Use background as CHtmlView, and load a web page with dynamic images (.gif)
But, I can't use DrawText or TextOut to write string on it.
Any way ?
Hung Son
A Vietnamese student
i-g.hypermart.net
dlhson2001@yahoo.com
|
|
|
|
|
By "dynamic images", do you mean animations?
--------
Higher education helps your earning capacity. Ask any college professor. --Shog9 --
|
|
|
|
|
Hi.
I was wonder about the best way to varify if a socket is currently active. In other words, I need a way to determine if there is a connect on a socket. This is just for command update UI. Basically, if the socket is active, I enable/disable something. If not, I enable/disble something.
How about this code?
// if (mysocket == WSAENOSOCKET)
// socket is invalid or inactive
Thanks,
Kuphryn
|
|
|
|
|
Call getsockname on the socket. If you get an error, call WSAGetLastError and chk and see if the error code is WSAENOTSOCK
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
Okay. Thanks.
johnnie2 posted a different solution using a similar approach to setting pointers to NULL. Your solution looks like it is a more sophisticated and safer approach.
Here is a link to the code I mentioned.
http://www.cprogramming.com/cboard/showthread.php?s=b3cf15b75e3287ca197b18fc2d335361&postid=111612#post111612
Kuphryn
|
|
|
|
|
Hi,
I just want to set a menu as owner draw...
How do I do That ?
thanks.
|
|
|
|
|
There are numerous owner drawn menu examples here on CP. Take a look at them.
http://www.codeproject.com/menu/
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
Hi,
Im using the following to get a list of windows running:
EnumWindows((WNDENUMPROC)AddWinsList, 0);
And within the routine I am doing the following:
BOOL CALLBACK AddWinsList(HWND hWnd, LPARAM lParam)
{
if (!IsWindowVisible(hWnd) || GetWindow(hWnd, GW_OWNER) != NULL)
return TRUE;
TCHAR szClassName[80];
GetClassName(hWnd, szClassName, 80);
if (lstrcmpi(szClassName, _T("Progman")) == 0)
return TRUE;
char szWndText[556];
GetWindowText(hWnd, szWndText, 556);
if (strlen(szWndText) > 0)
AfxMessageBox(szWndText);// just display window title
DWORD p,i;
i=GetWindowThreadProcessId(hWnd,&p);
HANDLE hProcess = OpenProcess(
PROCESS_QUERY_INFORMATION | PROCESS_VM_READ,
FALSE, p);
char FileName[50];
GetModuleFileNameEx(hProcess,?,FileName,49); //? dont know how to get the 'module handle'...
////////////////
I dont know how to get the module handle above in (GetModuleFileNameEx) the second field, anyone any ideas?
thanks
|
|
|
|