|
You can get the SYSDATE from the Oracle server and that will give you the date and time. Set your local PC time according to the time returned from the query.
|
|
|
|
|
I converted a console app into an NT service.
Is there a way to determine in the main if my app was called from SCM or because user double clicked on the AppName.exe ?
|
|
|
|
|
Your ServiceMain(...) callback can set a flag which indicates SCM involvement.
Peace!
-=- James Please rate this message - let me know if I helped or not!<hr></hr> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
Hello all,
What is the fastest way to get an url's source code?
I tried to use CHttpFile class, but it is very slow,
is there any way to get faster url's sourse code?
thanks for advance
It is never late to learn
|
|
|
|
|
Gofur Halmurat wrote: I tried to use CHttpFile class, but it is very slow,
is there any way to get faster url's sourse code?
use direct API, but is surly depend on your network speed!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/codeProject$$>
|
|
|
|
|
Thanks for reply:
What is direct Api?
It is never late to learn
|
|
|
|
|
ohh sorry I chewed the word before writing it here .. i ama talking about Internet api's. you could try this application, see it might be helpful :-
http://www.codeproject.com/KB/IP/amhttputils.aspx[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/codeProject$$>
|
|
|
|
|
Have you tried URLDownloadToFile() ?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
i have a simple dialog based program which uses this control.
http://www.codeproject.com/KB/list/sortlistctrl.aspx[^]
A member variable of CSrtList type is also defined.
I use a button on the main dialog which opens a new dialog (with domodal) and all items of every row of the sortlist control is filled in some sections. At last I want to use this command:
m_ctlList.AddItem( _T("Mark Jackson"), _T("09/08/1974"), _T("100") );
but it says the m_ctList is undeclared. I tried to use it as an external variable but no success!
|
|
|
|
|
Why don't you re-post it again? We all are waiting for.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
CPallini wrote: Why don't you re-post it again? We all are waiting for.
Patience! Stop jumping up and down. Can't you see others are waiting as well? He's busy creating another user id and he'll post it ASAP. After all, it's an urgent query, you see.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
) I just made two mistakes!
|
|
|
|
|
Is this the third one?
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
_AnShUmAn_ wrote: Is this the third one?
might be fourth one coming soon!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/codeProject$$>
|
|
|
|
|
let we do it for him! REPOST
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/codeProject$$>
|
|
|
|
|
Is this some kind of recursion that affects all the members here? or you are reposting it using different user names for any reason?
www.tamelectromecanica.com
www.tam.cat
|
|
|
|
|
i have a simple dialog based program which uses this control.
http://www.codeproject.com/KB/list/sortlistctrl.aspx[^]
A member variable of CSrtList type is also defined.
I use a button on the main dialog which opens a new dialog (with domodal) and all items of every row of the sortlist control is filled in some sections. At last I want to use this command:
m_ctlList.AddItem( _T("Mark Jackson"), _T("09/08/1974"), _T("100") );
but it says the m_ctList is undeclared. I tried to use it as an external variable but no success!
|
|
|
|
|
have you included the header file and declared the variable in the dialog!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/codeProject$$>
|
|
|
|
|
is DDX entry of variable present in the Dialog Class!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/codeProject$$>
|
|
|
|
|
I have declared the variable and used the header, but what is DDX entry?
|
|
|
|
|
general_era wrote: I have declared the variable and used the header, but what is DDX entry?
how do yuo associate the control with the variable
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/codeProject$$>
|
|
|
|
|
This is all I have done, I on the main Dialog I have a CSrtList control, I have associated a variable with it ,(of CsrtList type).
next I added a new dialog and defined a dialog based class.
on the main dialog there is a button,
defined a click handler as follows
//////// TODO: Add your control notification handler code here
Dialog Dialog1;
Dialog1.DoModal();
//////
(I have also declared the header)
in this dialog i want to receive some inputs from the user and save them in the CsrtList Type variable, (using _Additem as shown in the refrenced webpage)
That's it!
modified on Tuesday, May 6, 2008 3:11 AM
|
|
|
|
|
I have two programs in a project.
1st, in a1.cpp
string str1;
string func()
{
str1="A simple string";
return (str1);
}
2nd, in a2.cpp
extern func();
void func1()
{
ofstream myfile;
myfile.open (path.c_str());
myfile<<str1;
}
Now wen I built it I get
LNK2001: unresolved external symbol "int __cdecl func(void)" (?func@@YAHXZ)
fatal error LNK1120: 1 unresolved externals
HOW TO RESOLVE THIS.. THANKS
|
|
|
|
|
pl_kode wrote: extern func();
probably you are using older compiler it shows error in newer version
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
specify the return type it is taking default int.
extern string func();
do you heard about declaration and header files, what about declaring the function in header a1.h and including it in a2.cpp
|
|
|
|
|
thanks, it worked by using extern string func();
|
|
|
|