|
There's a plethora of ways:
struct tm now;<br />
localtime( &now );<br />
look at now.tm_wday
or
SYSTEMTIME st;<br />
GetSystemTime( &st );<br />
look at st.wDayOfWeek
To name a few.
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
|
|
Hi..All..
what is A2W converter, how it is used.
why we write USING_CONVERSION, before using convertors.
Thanq..
sheshidar
|
|
|
|
|
See Here[^]
Do your Duty and Don't expect the Result
|
|
|
|
|
HI I have created an Dll which is 64 bit compatible. When I tried to register it I was prompt with this error:
"%1 is not a valid Win32 application. "
"A winner is not one who never fails...but the one who never quits"
|
|
|
|
|
Did you create a COM object? or a regular DLL ?
Also, are you trying to register it on a 32-bit processor ?
Darka [ Xanya]
"When you're taught to love everyone, to love your enemies, then what value does that place on love?"
|
|
|
|
|
"MQ_ERROR_OPERATION_CANCELLED" this error is being thrown my our application.
Application comprises two threads each having a their own handle to the queue.
We are using Synchronous Call to read,open message from the Queue.
Thanks
for thendral
|
|
|
|
|
How and where I use the SetDate() to set the date on my Date/Time picker?
|
|
|
|
|
tanarnelinistit wrote: SetDate()
used when we Indicate the date components to be copied into COleDateTime object.
dt.SetDate(2006, 7, 28);
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
I have CTime object not COleDateTime. SO?
|
|
|
|
|
Did you see example SetDate() in MSDN?
|
|
|
|
|
WhiteSky wrote: Did you see example SetDate() in MSDN?
Yes, I saw the example, I solved my problem using GetCurrentTime(). Thanks.
|
|
|
|
|
Hi all.
I want to add a new tool in the tool bar of all my windows. I thing it is possible using VC++.
Any body have an idea abotu this?
Dream bigger... Do bigger...Expect smaller
aji
|
|
|
|
|
|
|
Yes.I saw it.
But my requirement is - whenever i try to open a NotePad window i want to add a tool which is created by me to that notepad window.
Is that possible??
Please help me.
Dream bigger... Do bigger...Expect smaller
aji
|
|
|
|
|
i'm planning to do a software that will map English with tamil scripts and i need to do it in VC++. can someone gimme idea how i can start it?
Sheryl Varma
|
|
|
|
|
I am working with dialog based application.In that i have added active-x control,now by using that function i am able to connect to server ,my question is:
1: When i connect to server it will give me a
sessionID and i want to display it in my dialog box.And also the mesage connected not connected is that possible?how?
2: I want to make use of that session id for further
processing And for that i have declared a global
variable .But when I try to use other function
it has come a error message.
"Invalid Session message"
global variable:
char sessionid;
USING IT FOR STORING session recive from server
sessionid==m_arielapi.Login("wwtest2","RD9234","wwtest2");
CALLING IN OTHER FUNCTION
void CWartzDlg::OnBLogout()
{
// TODO: Add your control notification handler code here
m_arielapi.Logout("sessionid");
}
Any suggestiom will b helpful
-- modified at 23:57 Thursday 27th July, 2006
|
|
|
|
|
priyanka s wrote: display it in my dialog box
HDC myDC=::GetDC (m_hWnd);
::TextOut (myDC,10,10,"Anshuman",8);
::ReleaseDC (m_hWnd,myDC);
priyanka s wrote: char sessionid;
SessionID. A number produced by a complex algorithm, the SessionID uniquely identifies each user's session and you are saving the session in a char.May be this would be the problem.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Thanks for your reply can u help me more pls tell me other then char in which vriabe type should i store it
LITTLE EXPLANATION
HDC myDC=::GetDC (m_hWnd);
::TextOut (myDC,10,10,"Anshuman",8);
::ReleaseDC (m_hWnd,myDC);
|
|
|
|
|
priyanka s wrote: LITTLE EXPLANATION
You get the DC of the dialog first of all.
In the second statement I write the text on the dialog and release the Device Context ASAP.
You can see for how to store the session ID in MSDN.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
priyanka s wrote: USING IT FOR STORING session recive from server
sessionid==m_arielapi.Login("wwtest2","RD9234","wwtest2");
CALLING IN OTHER FUNCTION
void CWartzDlg::OnBLogout()
{
// TODO: Add your control notification handler code here
m_arielapi.Logout("sessionid");
}
If you are using the exact code fragment then obviously you'll get error..
I don't know the type of session id returned by your Login(...), i assumed that char is returned....
In your code you are not assigning the value to sessionid and also you are not paasing the value of sessionid to Logout(..), instead you are passing the string "sessionid" as parameter...
priyanka s wrote: When i connect to server it will give me a
sessionID and i want to display it in my dialog box.And also the mesage connected not connected is that possible?how?
You can use DrawText are you can simply have a static control and display the information there by setting its window text..
-- modified at 0:50 Friday 28th July, 2006
Do your Duty and Don't expect the Result
|
|
|
|
|
TYPE OF SESSION ID I AM GETTING IS
BUT I DONT KNOW HOW TO PASS IT IN A PROPER WAY TO USE IN OTHER FINCTION
"SESS01"
|
|
|
|
|
If you are getting "SESS01" as return value from Login(...) then store it in char[] or char* like,
char SID[10] = {0}; //Array value should be large enough to store the return string
strcpy(SID, Login(...));
....
....
Use the SID as such in Logout as,
Logout(SID);
Don't use quote mark to SID...
Do your Duty and Don't expect the Result
|
|
|
|