|
Thanks, yeah long time (of january) of course I never forget friends like(you,ThatAlok,DavidCrow,Pallini and other) BTW yesterday I was watching series TV and I remembered you("knot monte cristo" a serial of french)
|
|
|
|
|
|
WTF is a "list String " ???
|
|
|
|
|
|
WTF are you talking about ?
please explain with full words if you can't illustrate with a code sample, because i really don't get you...
|
|
|
|
|
Hi all,
I have recently bought a new laptop and moved my code to the new laptop. I installed the necessary programs and when tried to compile my code. I receive the following error (Please note that I'm using Borland Developer Studio 2005 C++)
DBXpress.hpp (475) E2040 Declaration Terminated incorrectly) DBXpress.hpp (476) E2040 Declaration Terminated incorrectly) and the two lines of code which the errors refer to:
static const Shortint SQL_ERROR = -1;
static const Shortint SQL_NULL_DATA = 0x64;
Can anyone please help me in this matter. The .hpp file at the top states the following:
Many thanks in advance
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
modified on Tuesday, April 15, 2008 5:08 AM
|
|
|
|
|
Programm3r wrote: static const Shortint SQL_ERROR = -1;static const Shortint SQL_NULL_DATA = 0x64;
Do you have Shortint defined as user defined data type some where before. I believe Shortint is not predefined one.
try some thing like "short int" inplace of Shortint.
|
|
|
|
|
Thanks for the reply, but I'm sad to say that it makes no difference.
I have sql.h included into the project, may it be that there is a conflict that occurs within the DBXpress.hpp and the sql.h because both of them have the following declared within?
static const Shortint SQL_ERROR = -1;
static const Shortint SQL_NULL_DATA = 0x64;
Many thanks again
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
I have put the #include <DBXpress.hpp> before the #include <sql.h> and that seems to have solved the problem.
No errors occur.
Can anyone explain
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
Dear Friends,
I need to calculate the future date from number of seconds available from now.
Can anybody help me out? Which all classes i can use for this calculation?
|
|
|
|
|
CTime and CTimeSpan ...
CTimeSpan sPan(0,0,0, 86400 );
CTime CurTime = CTime::GetCurrentTime();
CurTime += sPan;
CString csTime = CurTime.Format(_T("%A, %B %d, %Y"));
AfxMessageBox( csTime );
modified on Tuesday, April 15, 2008 5:16 AM
|
|
|
|
|
Thanks Naveen for such quick response. actually i have tried these two things but i dont need the number of days i directly want the date. For example from now if 24 hrs are there then i need date as 16 Apr. i dont want as 1 day.
could you please help me out for this?
|
|
|
|
|
I modified the post with example, pls check it.
From CTime, you can get the date, not the number of days...
|
|
|
|
|
Thank u so much.. it worked...
|
|
|
|
|
I have been using Microsoft Visual C++ 2005 Express Edition for a few years now and I've heard that it's not possible to compile 64bit code in the express edition. Is this so? Is there any way I can get around it? If not, is this restriction lifted in future versions such as the 2008 Express Edition?
|
|
|
|
|
|
Thanks for the links
I'll take it that an edition other than the express edition is required to compile 64-bit applications then. Thats no problem, it will just have to wait until I get my free copy (from uni ) of visual studio '08
|
|
|
|
|
when ever i build my project in VC6.0 , i get a message as follows :
C:\ProgramFiles\XXX\YYY\MyProjectName.plg
This File has been modified outside the source editor.Do you want to reload it?
What is a .plg file and why is my compiler asking for reload ?
Thanks in advance.
Anandi
|
|
|
|
|
Anandi.VC wrote: This File has been modified outside the source editor.Do you want to reload it?
This is because you have kept the "MyProjectName.plg" opened in the IDE window.
Take "Window->Close All" menu item in the VC++ IDE.
|
|
|
|
|
Thank u Naveen. i did as u instructed and got rid of the message to reload it.
but for what purpose the compiler uses a .plg file ??
Anandi
|
|
|
|
|
.plg file is the compilation build log.
it will write all the verbose commands of compiler and linker information.
have a look on .plg you will get more information.
|
|
|
|
|
Thank u for the Info ERLN !!
Anandi
|
|
|
|
|
I wrote a c++ and cyristal report application and embeded all cyristal report resources to application exe file. This exe can be run on computer with visual studio but i want to run this application without visual studio. What do i need to run this application on my computer? Cyristal report engine or what else? Thanks.
|
|
|
|
|
CWinThrd *pThrd;
...
pThrd=AfxBeginThread(ThrdFunc,pData);
pThrd->m_bAutoDelete=FALSE;
Is it possible that the thread completed before
pThrd->m_bAutoDelete=FALSE;
is executed.
|
|
|
|
|
followait wrote: Is it possible that the thread completed before
It may happen( its upto OS ). How ever if you change the code as follows, it will be thread safe.
CWinThread *pThrd = AfxBeginThread( ThrdFunc,pData, THREAD_PRIORITY_NORMAL,0, CREATE_SUSPENDED );<br />
pThrd->m_bAutoDelete=FALSE;<br />
pThrd->ResumeThread();
|
|
|
|