using locks depend on ur application
if u are using text file open them in exclusive mode while writing. so no concurrency problem ..
if u are using database make insert,update,delete inside
begin and end transation.. use unique index to avoid duplicate records etc ...
hi !
can u explain what problem ur facing
u can always add a column to table and store the path of ur images in that column
use alter table command to add new column and when it ask that u want to keep existing data say yes
if you are using MS Access you can directly store link in the field...
you are performing all the function outside mutex
the process is u should lock mutex
perform all ur function and
then unlock the mutex
whereas wht i see is u are locking the mutex checking only if it is busy or not and coming out.
you cannot use windows users on linux ...u have to create users for linux server.
you can login as root from your machine and shutdown or reboot the server .
Install Xmanager on your windows m/c to get the GUI of linux and login thru that
Pl. correct this the definition in cpp will be like this
------------------------------
int CDACSIVSession::CommandSetup(char *pszResponse, int nRespLen)
{
switch (m_nCommand)
{
....
}
return 0;
}
Iso C++ doesn't allow a function with no return type...
Error is in this part of code
------------------------------
CDACSIVSession::CommandSetup(char *pszResponse, int nRespLen)
{
switch (m_nCommand)
{
....
}
return 0;
}
It should be
-------------
virtual int CDACSIVSession::CommandSetup(char *pszResponse...
I feel that ur problem is u haven't initialized the variable properly.
so it is causing u this problem.
initialise the variable and try !
It will work properly
this could be a case where cout makes a difference.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.