|
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]--
|
|
|
|
|
yes VivekuniQ we want controll the object from VC++
|
|
|
|
|
yes VivekuniQ u right i want to control the object from VC++, so plz tell me how can i do this.
thanx 4 reply
|
|
|
|
|
Hello.
I have a 3D SMax file having extension .max and i want to open it in vc++, also i want to give some values manually through VC++ and in correspondence of these values to move the object in 3D max so how can i give that VC++ value to 3D SMax.
thanx 4 reply
|
|
|
|
|
yes VivekuniQ u right i want to control the object from VC++, so plz tell me how can i do this.
thanx 4 reply
|
|
|
|
|
yes VivekuniQ u right i want to control the object from VC++, so plz tell me how can i do this.
thanx 4 reply
|
|
|
|
|
you search for any activex control that provides you access to your max objects. just like macromedia has its own activex component for its .swf files. or you should try directX in VC (u can even use VB) thatz the appropriate way to design 3D games
He is like a one-legged man in a bum kicking competition. -Novjot Sidhu
--[v]--
|
|
|
|
|
Well i am novice in vc++ programming. Suppose i have a VC++ project i want to determince whether it is mfc application or atl component. How can i determine the same ? Is there any property file describing the same ?
rgds,
Suinl Virmani
|
|
|
|
|
well, you could ckech this :
if the program is refereing to MFCxx.dll, it is using mfc
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
In the MFC project u will fine some
files ending like
Doc
View
Frame
In and ATl project u will fine some files
with named as
CExeModule
_Module
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
vikas amin wrote:
Doc
View
Frame
Not Neccessary.. 90% of project I have worked it CDialog based.. there you cannot find these classes
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
its simple, in ATL u'll have a .IDL file.
He is like a one-legged man in a bum kicking competition. -Novjot Sidhu
--[v]--
|
|
|
|
|
you can have idl file in mfc that supports activex :P
-prakash
|
|
|
|
|
oops what happend to my Name ??
He is like a one-legged man in a bum kicking competition. -Novjot Sidhu
--[v]--
|
|
|
|
|
VivekuniQ wrote: oops what happend to my Name ??
VivekuniQ wrote: VivekuniQ
wooooww pretty pink, isn't it ??
it seems that you're still looking for a styled name aren't you ?!
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
With you and Alok, it makes highly coloured CP boards .
Maybe I should start also. What about red ?
|
|
|
|
|
cedric moonen wrote: With you and Alok, it makes highly coloured CP boards
yeah, it breaks the flatness/monotony of the Visual C++ forum of those days...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
By the way, how do you change this ?
I never tried it before
|
|
|
|