|
Hamed_sm2002 wrote: i need minimal coverage code by c++.
Would you like some fries with it ?
|
|
|
|
|
|
If you want to receive help, I suggest you first read the posting guidelines ("How to receive an answer to your question").
|
|
|
|
|
It looks like homework and it looks like you didn't read forum guidelines [^].
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
[My articles]
|
|
|
|
|
i want only the algorithm. plz help me to do my job
|
|
|
|
|
That make me think you haven't read forum guidelines yet. I strongly advice you to do it.
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
[My articles]
|
|
|
|
|
|
|
Ask you teacher or your manager( if you are working) to do that for you. They wont mind a kiss from you.
|
|
|
|
|
I read it but I cant find any answer yet?
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Why don't you just try? It doesn't look a daunting task and you're a developer, aren't you?
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
[My articles]
|
|
|
|
|
please send me your bank account information so that I may deduct fee for stupid question
|
|
|
|
|
hi everybody
Today i build MFC to get CultureInfo include Culture Name and Culture
Identifier
like :
en 0x0009 English
en-AU 0x0C09 English - Australia
en-BZ 0x2809 English - Belize
en-CA 0x1009 English - Canada
en-CB 0x2409 English - Caribbean
en-IE 0x1809 English - Ireland
en-JM 0x2009 English - Jamaica
en-NZ 0x1409 English - New Zealand
en-PH 0x3409 English - Philippines
en-ZA 0x1C09 English - South Africa
en-TT 0x2C09 English - Trinidad and Tobago
en-GB 0x0809 English - United Kingdom
but i don't know how to implement it?
thank you
|
|
|
|
|
anybody understand what i say? could help me
|
|
|
|
|
|
Chandru080 wrote: No
means No methods or NOT understand what i say?
|
|
|
|
|
Did not understand what you meant. Please explain a little more.
|
|
|
|
|
Hi all
i am useing this link http://support.microsoft.com/kb/q243394/ for write data in excel.I have include these files
#include <afxdao.h>
#import "C:\\Program Files\\Common Files\\Microsoft Shared\\OFFICE12\\MSO.DLL"
using namespace Office;
#import "C:\\Program Files\\Common Files\\Microsoft Shared\\VBA\\VBA6\\VBE6EXT.OLB"
using namespace VBIDE;
#import "C:\\Program Files\\Microsoft Office\\OFFICE11\\EXCEL.EXE" \
rename( "DialogBox", "ExcelDialogBox" ) \
rename( "RGB", "ExcelRGB" ) \
rename( "CopyFile", "ExcelCopyFile" ) \
rename( "ReplaceText", "ExcelReplaceText" )
"stdafx.h".
But i have a error error C2065: '_Application' : undeclared identifier .Plz help me
|
|
|
|
|
_Application is in the Excel namespace when you import it like that. Either explicitly qualify the use of Excel objects or add 'using namespace Excel;' after the last #import statement.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Thanks for reply Mr. Stuart Dootson.
See i am getting problem to write data in excel and read from mysql.I am searching here and there but i havn't found any good example or tips.If any one have example then plz givem.Plz help me
|
|
|
|
|
Davitor wrote: See i am getting problem to write data in excel...I am searching here and there but i havn't found any good example or tips.If any one have example then plz givem.Plz help me
Does this help?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hi Experts,
I m doing a databse application using CDatabase and CRecordset classes. The Database is created dynamically using Catalog.
_CatalogPtr m_pCatalog = NULL;
CoInitialize(NULL);
m_pCatalog.CreateInstance(__uuidof (Catalog));
m_pCatalog->Create((const char *)(CString("Provider =Microsoft.Jet.OLEDB.4.0;Data Source=" + csAccessDbname)));
I have two Queries.
1>. I have handle the exception using CDBExceptionand a general exception handler Catch(...).But for the following statement,
UserRs.Open(CRecordset::snapshot,Sql,CRecordset::none); an exception occurs but could not caught by CDBException but caught in Catch(...) block. But the prbm is I couldnt understand the reason.
I want to Show the Exception in Catch(...) Block.
2>. My code is as follows :
try
{
UserCn.OpenEx(_T("Driver={Microsoft Access Driver (*.mdb)};" "Dbq=" + csAccessDbname + ";"),CDatabase::noOdbcDialog);
}
UserRs.Open(CRecordset::snapshot,Sql,CRecordset::none);
}
catch(CDBException cdb)
{
MessageBox(NULL,cdb.m_strError ,"fnInitFromFile_CDBException",0);
}
catch(CException ce)
{
AfxMessageBox(ce.ReportError());
AfxMessageBox("CException..inside fnInitFromFile");
}
catch(...)
{
MessageBox(NULL,"CRecordSetfailed.. ","fnInitFromFile_Exception",0);
}
This code works fine for my machine but on others machine.
It create database and Exception is occured at UserRs.Open() statement.
PLz Help me..
I m trying my all ways to solve this problem..
Thnx is advance..
waitnng for ur valuable response..
I have never failed,I just found 1000 ways that never works.
Regards,
Victory.
modified on Monday, July 6, 2009 2:28 AM
|
|
|
|
|
vijay.victory wrote: It create database and Exception is occured at UserRs.Open() statement.
Could you paste the exact exception details (e.g. the complete error description) ?
|
|
|
|
|
Thnk u for ur reply.
But as I said, it is caught by catch(...) block and handled by me.
So I dont know the Exact Exception that occrd here..
Can u tell me, How I can Display or know which Exception is caught by catch(...) block.
I m confused about the situation where, It works fine on my machine but not on some others machines..
Plz Reply...
I have never failed,I just found 1000 ways that never works.
Regards,
Victory.
|
|
|
|
|
Note the documentation[^] - CRecordset::Open can throw exceptions of type CDBException* and CMemoryException* - i.e. POINTERS to exception objects, not exception objects. MFC throws pointers because when it was written, the Microsoft C++ compiler didn't do exceptions (not properly, at least), so MFC had its own exception handling functionality.
Change your exception handlers to the code below (note the exception signature and the added exception object deletion lines) and you should be good.
catch(CDBException* cdb)
{
MessageBox(NULL,cdb.m_strError ,"fnInitFromFile_CDBException",0);
cdb->Delete();
}
catch(CException* ce)
{
AfxMessageBox(ce.ReportError());
AfxMessageBox("CException..inside fnInitFromFile");
ce->Delete();
}
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
modified on Monday, July 6, 2009 5:30 AM
|
|
|
|