Click here to Skip to main content
15,914,419 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralProblem (bug?) with new WinXP icons and COleClientItem Pin
posselt23-Apr-03 20:41
posselt23-Apr-03 20:41 
GeneralDisable/Enable PrintScreen key Pin
CS42923-Apr-03 20:31
CS42923-Apr-03 20:31 
GeneralRe: Disable/Enable PrintScreen key Pin
Rickard Andersson2023-Apr-03 20:47
Rickard Andersson2023-Apr-03 20:47 
GeneralRe: Disable/Enable PrintScreen key Pin
Dominik Reichl23-Apr-03 22:08
Dominik Reichl23-Apr-03 22:08 
GeneralRe: Disable/Enable PrintScreen key Pin
Joan M23-Apr-03 22:30
professionalJoan M23-Apr-03 22:30 
GeneralSerialization question... Pin
work_to_live23-Apr-03 18:52
work_to_live23-Apr-03 18:52 
GeneralRe: Serialization question... Pin
work_to_live26-Apr-03 7:27
work_to_live26-Apr-03 7:27 
GeneralProblem using Sybase thru ODBC from VC++ DLL Pin
AjazM23-Apr-03 18:26
AjazM23-Apr-03 18:26 
Hi all,

I am connecting to sybase through my VC 6.0 DLL which gets called from PB
application, its is multithreaded DLL. I am using ODBC to connect sybase. I
am facing some major problems. I am connecting to (Ora, Syb, SQL) through
this sam DLL with ODBC.
The problems which i am facing is

1) Sybase not allowing to use Dynaset in recordset. if i use forwardonly it
works but not allows me to go back.

2) When this thread is ended, system gets hanged.

Although the same code is running perfectly with ORA,SQL server.

I am looking forward for some general way which will be applicable for all the databases.

Thanks
Ajaz

/***************Thread Code **************/
// check if new mails have arrived for the logged in dealer
UINT of_CheckNewMail(LPVOID lpnull)
{


CString l_SQL ;
CString msglabel ;
long ll_LastMsgCount,ll_LoopCount, ll_CurrMsg ;

l_SQL = "select mailid,ufrom,umsg,udate from kastlemail where uto =
'" + gsDealer + "' and (recieved is null or lower(recieved) <> 'y') " ;

KMailCount = new CRecordset(&gdb_Connection) ;

gdb_Connection.BeginTrans () ;

KMailCount->Open(CRecordset::dynaset, l_SQL,
CRecordset::noDirtyFieldCheck ) ;


while ( ib_StartMail == true )
{
TRY
{

KMailCount->Requery() ;

ll_CurrMsg = 0 ;
while ( !KMailCount->IsEOF())
{
ll_CurrMsg++ ;
KMailCount->MoveNext();
}

if ( (ll_CurrMsg > 0 ) && (ll_CurrMsg !=
ll_LastMsgCount) )
{
// show the popup window and let the
process stop for 3 sec
msglabel.Format ("%d%s", ll_CurrMsg, " New
Message");

popup->Show(msglabel);
while(popup->m_nAnimStatus > 0 );

ll_LastMsgCount = ll_CurrMsg ;
ll_LoopCount=0;
}

ll_LoopCount++;

if ( ll_LoopCount > 20 )
{
ll_LoopCount = 0 ;
ll_LastMsgCount = 0;
}
}

CATCH(CDBException, e)
{
::MessageBox(0, e->m_strError, "Kastle Mail Error",
MB_OK) ;
ib_StartMail = false ;
}
END_CATCH

Sleep(3000);
}

popup->Hide();

if(gdb_Connection.IsOpen())
gdb_Connection.Rollback () ;

if(KMailCount->IsOpen())
KMailCount->Close() ;

// close the cursor
::SQLFreeStmt( KMailCount->m_hstmt, SQL_CLOSE );

delete KMailCount ;

AfxEndThread(0);

delete popup;

return 0;
}
GeneralUsing the SOAP trace utility Pin
Anthony_Yio23-Apr-03 18:13
Anthony_Yio23-Apr-03 18:13 
GeneralRe: Using the SOAP trace utility Pin
Anthony_Yio23-Apr-03 19:39
Anthony_Yio23-Apr-03 19:39 
General32-band equalizer Pin
Henry P.23-Apr-03 13:37
Henry P.23-Apr-03 13:37 
GeneralRe: 32-band equalizer Pin
Sendel23-Apr-03 14:50
Sendel23-Apr-03 14:50 
Generalfstream Pin
Selevercin23-Apr-03 13:32
Selevercin23-Apr-03 13:32 
GeneralRe: fstream Pin
Nitron23-Apr-03 13:37
Nitron23-Apr-03 13:37 
GeneralRe: fstream Pin
Selevercin23-Apr-03 13:44
Selevercin23-Apr-03 13:44 
GeneralRe: fstream Pin
Nitron23-Apr-03 13:55
Nitron23-Apr-03 13:55 
GeneralRe: fstream Pin
Toni7823-Apr-03 14:02
Toni7823-Apr-03 14:02 
GeneralRe: fstream Pin
Selevercin23-Apr-03 14:14
Selevercin23-Apr-03 14:14 
GeneralRe: fstream Pin
Toni7823-Apr-03 14:40
Toni7823-Apr-03 14:40 
GeneralRe: fstream Pin
Sendel23-Apr-03 15:00
Sendel23-Apr-03 15:00 
Generalmaking a SAVE AS button Pin
shyang9823-Apr-03 12:39
shyang9823-Apr-03 12:39 
GeneralRe: making a SAVE AS button Pin
Nitron23-Apr-03 13:40
Nitron23-Apr-03 13:40 
GeneralRe: making a SAVE AS button Pin
shyang9823-Apr-03 16:01
shyang9823-Apr-03 16:01 
GeneralRe: making a SAVE AS button Pin
brianwelsch23-Apr-03 18:41
brianwelsch23-Apr-03 18:41 
GeneralRe: making a SAVE AS button Pin
Martyn Pearson23-Apr-03 21:24
Martyn Pearson23-Apr-03 21:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.