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

C / C++ / MFC

 
AnswerRe: trouble with _beginthread Pin
Laxman Auti9-Jun-06 1:08
Laxman Auti9-Jun-06 1:08 
GeneralRe: trouble with _beginthread Pin
NoName II9-Jun-06 1:20
NoName II9-Jun-06 1:20 
GeneralRe: trouble with _beginthread Pin
Cedric Moonen9-Jun-06 1:24
Cedric Moonen9-Jun-06 1:24 
AnswerRe: trouble with _beginthread Pin
Michael Dunn9-Jun-06 1:09
sitebuilderMichael Dunn9-Jun-06 1:09 
AnswerRe: trouble with _beginthread Pin
Hamid_RT9-Jun-06 1:19
Hamid_RT9-Jun-06 1:19 
GeneralRe: trouble with _beginthread Pin
Cedric Moonen9-Jun-06 1:22
Cedric Moonen9-Jun-06 1:22 
GeneralRe: trouble with _beginthread Pin
Hamid_RT9-Jun-06 1:41
Hamid_RT9-Jun-06 1:41 
Questionproblem in inserting image into the database Pin
maharaja pandian9-Jun-06 0:46
maharaja pandian9-Jun-06 0:46 
hi,
i develop one application in VC++-MFC 6.0 ,
this application is responsible for inserting image into the database (oracle)-ODBC.
but when i try to insert a image file , it through a error like
"Data type conversion error."
////////////////////////////////////////////////////////////////////////
CDaoDatabse db;
CDaoRecordset recset(&db);
void CDBODBC::InsertintoDB();
{
CByteArray BlobFile;
BlobFile.RemoveAll(); // I clear the Array
CFile aFile("image.jpg",CFile::modeRead);
BlobFile.SetSize(aFile.GetLength());
aFile.Read(BlobFile.GetData(),aFile.GetLength());
aFile.Close();
COleVariant aVar(BlobFile);
CString Sql = "SELECT * FROM sample3";
db.Open("abc",FALSE,FALSE,"ODBC;UID=abc;PWD=abc;DSN=abc;");
recset.Open(AFX_DAO_USE_DEFAULT_TYPE,Sql,dbAppendOnly);
// bool b=recset.CanUpdate();
recset.AddNew();

recset.SetFieldValue("[num]","6"); //varchar field
recset.SetFieldValue("[photo]",aVar); //BLOB field -image field
recset.Update();
recset.Close();
db.Close();


}
/////////////////////////////////////
it works for Access database ..
but i got error in oracle...
"Data type conversion error."

Try again and again,
At last you will say
I don't know the meaning for impossible.,.

AnswerRe: problem in inserting image into the database Pin
Ștefan-Mihai MOGA9-Jun-06 0:58
professionalȘtefan-Mihai MOGA9-Jun-06 0:58 
QuestionRe: problem in inserting image into the database Pin
maharaja pandian9-Jun-06 1:22
maharaja pandian9-Jun-06 1:22 
QuestionProblem with IPicture-Object and Render Pin
masanne9-Jun-06 0:37
masanne9-Jun-06 0:37 
QuestionRe: Problem with IPicture-Object and CPictureHolder::Renderpicture Pin
Hamid_RT9-Jun-06 0:50
Hamid_RT9-Jun-06 0:50 
AnswerRe: Problem with IPicture-Object and Render Pin
masanne9-Jun-06 0:55
masanne9-Jun-06 0:55 
GeneralRe: Problem with IPicture-Object and Render Pin
Hamid_RT9-Jun-06 1:10
Hamid_RT9-Jun-06 1:10 
GeneralRe: Problem with IPicture-Object and Render Pin
masanne9-Jun-06 1:20
masanne9-Jun-06 1:20 
GeneralRe: Problem with IPicture-Object and Render Pin
Hamid_RT9-Jun-06 2:18
Hamid_RT9-Jun-06 2:18 
GeneralRe: Problem with IPicture-Object and Render [modified] Pin
masanne9-Jun-06 2:49
masanne9-Jun-06 2:49 
GeneralRe: Problem with IPicture-Object and Render [modified] Pin
masanne9-Jun-06 3:00
masanne9-Jun-06 3:00 
GeneralRe: Problem with IPicture-Object and Render Pin
Hamid_RT9-Jun-06 3:22
Hamid_RT9-Jun-06 3:22 
GeneralRe: Problem with IPicture-Object and Render Pin
masanne9-Jun-06 3:55
masanne9-Jun-06 3:55 
GeneralRe: Problem with IPicture-Object and Render Pin
Hamid_RT9-Jun-06 6:43
Hamid_RT9-Jun-06 6:43 
GeneralRe: Problem with IPicture-Object and Render Pin
masanne15-Jun-06 23:11
masanne15-Jun-06 23:11 
QuestionDoubt regarding the combo box Pin
Member 30398439-Jun-06 0:27
Member 30398439-Jun-06 0:27 
AnswerRe: Doubt regarding the combo box Pin
_AnsHUMAN_ 9-Jun-06 0:34
_AnsHUMAN_ 9-Jun-06 0:34 
AnswerRe: Doubt regarding the combo box Pin
Jesal Rana9-Jun-06 0:37
Jesal Rana9-Jun-06 0:37 

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.