|
If have any query pls ask
|
|
|
|
|
thanx for the offer, I guess i'll just look for some very good articles about network programming
|
|
|
|
|
That depends, if the server you are looking for is in the same network as you are, you can set up a service which makes use of broadcasts. The same way how DHCP works...
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Can you please help me how a self duplicating program works?
If the program is executed, it will create a copy of its own on whatever directory it desires. It will duplicate once it is being executed. Please help, I really need to know for my topic How virus works in school, self-duplicate is a part of my topic.
|
|
|
|
|
|
I agree. It smells just like one.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
|
yep, its for a discussion purposes only, and even though it will be ussed for virus as some of you might think, its does very little effect since it will only create a duplicate once you execute the file
|
|
|
|
|
|
ok thanx, i'l search for it in msdn
|
|
|
|
|
windows virus!!! awww thats boring you should try dos virus. they are more challenging.
-prakash
|
|
|
|
|
its just for discussion purposes
|
|
|
|
|
Hi to All,
I am facing one problem for ListControl.
I have developed one dialog based project VC++ 6.0,on that dialog I have
taken one ListControl.Problem is that list control is not refreshed when
I minimize and restored a window.Means it is not repainted.Note that this
is only happened When focus is on the ListControl.
When I am used InvalidateRect() API over that listControl it is not
repainted scrollbar of ListControl.Scroll Bar of listControl is not diaplayed
I am waiting for ur reply,
Rahul
sf
|
|
|
|
|
Why are you using InvalidateRect() with a list control?
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
Dear friend,
Interesting challenge, i tried this out find if this solution suits u !
//////---- Start only during minimize & restore u have this problem,
///// 1.so get OnCaptureChanged event handler of u r window
/// 2.Send message to window to focus u r dialog
//
/
void CModallessDlg::OnCaptureChanged(CWnd *pWnd)
{
SendMessage (WM_SETFOCUS,0,0);
CDialog::OnCaptureChanged(pWnd);
}
Muthu Ramji.Al.V
Software Developer(VC++)
Sify Limited
muthu_ramji@sifycorp.com
|
|
|
|
|
I have created an MFC project which contains a DialogBar
where i have ket a DateTimeCtrl
i actully wanted to get the window text of control
so i created a pointer to that control .
CDateTimeCtrl * pwnd =(CDateTimeCtrl *) m_dlgbar.GetDlgItem(IDC_DATE_PICKER);
now i tired to get the window text by this but
CString st;
pwnd->GetWindowText (st);
I dont understand why this dont work ..........
do u have any idea.
Yeh actuly i got the date and time by using the
pwnd->GetTime(ct);
Thank u
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
vikas amin wrote: i actully wanted to get the window text of control
you mean the 'time' that's displayed on the control? . whatz returned in the st?
He is like a one-legged man in a bum kicking competition. -Novjot Sidhu
--[v]--
|
|
|
|
|
vikas amin wrote: i actully wanted to get the window text of control
you mean the 'time' that's displayed on the control? . whatz returned in the st?
He is like a one-legged man in a bum kicking competition. -Novjot Sidhu
--[v]--
|
|
|
|
|
|
Yeh i want to get the time that is on the control
i actully got i by the GetTime() function but it
it should also get the text by the method
GetWindowText();
Nothing is returned in st (CString variable )
in the debug window it viewed as {""}
Also i used to promt by a MessageBox the messagebox
didnot display anything
thank you
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
if you want it in CString, why not u try converting it(your 'ct') like this...
(this is for converting System time to Cstring.)
CString FormatTime(CTime time)
{
// get time in system time format
SYSTEMTIME st;
time.GetAsSystemTime(st);
// get necessary buffer size
int nSize = GetTimeFormat(
LOCALE_SYSTEM_DEFAULT,
LOCALE_NOUSEROVERRIDE,
&st,
NULL,
NULL,
0);
// format the time
CString strTime;
GetTimeFormat(
LOCALE_SYSTEM_DEFAULT,
LOCALE_NOUSEROVERRIDE,
&st,
NULL,
strTime.GetBuffer(nSize),
nSize);
strTime.ReleaseBuffer();
return strTime;
}
He is like a one-legged man in a bum kicking competition. -Novjot Sidhu
--[v]--
|
|
|
|
|
or u can take ct.min, hr, sec and convert them into CString using Format. but there may be a better way. (note the previous thread is based on WinCE,make sure its compatible for u )
He is like a one-legged man in a bum kicking competition. -Novjot Sidhu
--[v]--
|
|
|
|
|
Hi,
how can i connect the 3D stdio max with VC++ please help
|
|
|
|
|
What do you mean by connect ??? 3D SMax is a tool for creating graphics (as far as I know), what do you want to by 'connecting' it with VC++ ?
Maybe do you want to use the graphics you made inside a C++ program ? But then you'll have to explain a little bit more if you want help: what is the format generated, what you want to do, ...
|
|
|
|
|
no he means controlling Max objects from VC++. ( i guess he wants to design a game )
He is like a one-legged man in a bum kicking competition. -Novjot Sidhu
--[v]--
|
|
|
|