|
You should atleast give some code snippet, what causing you problem.
Otherwise, with given info its difficult to solve your problem. And thread will keep growing without any result.
Refer Chris's sticky post at the top.
|
|
|
|
|
Your thread has a message loop, right? It will need one if you want to use CSocket
If you still need help with this you'll need to post some eample code!
Mark
|
|
|
|
|
Hi
I want to use COleVariant class object .
I also include "afxdisp.h" But it show compit time error
"error C2065: 'COleVariant' : undeclared identifier"
what is the reason.
manu
|
|
|
|
|
Whats your program and your compiler?
|
|
|
|
|
CoInitialize(NULL);
IRDOSession* Session;
HRESULT hr;
hr=CoCreateInstance(__uuidof(RDOSession),NULL,CLSCTX_INPROC_SERVER,__uuidof(IRDOSession),(void**) &Session);
COleVariant covOptional((long)DISP_E_PARAMNOTFOUND, VT_ERROR);//error here
Session->Logon(covOptional,covOptional, covOptional, covOptional, covOptional, covOptional);
manu
|
|
|
|
|
Plz tell the solution
Thanx in advance
manu
|
|
|
|
|
Im using vs2003 and its good working
|
|
|
|
|
i have also vs2003.can u tell me how to write it .
manu
|
|
|
|
|
COleVariant covOptional((long)DISP_E_PARAMNOTFOUND, VT_ERROR);//without error 0 error(s), 0 warning(s)
whats application type
|
|
|
|
|
win32 console project
manu
|
|
|
|
|
:-DAnd also on Win32 Console Project with insert Afxdisp.h its working when you insert this file you get same error undeclared identifier
|
|
|
|
|
ya after including the afxwin.h it produce the same error.
manu
|
|
|
|
|
Did you use of <> in include
|
|
|
|
|
ya i also use <afxdisp.h>
manu
|
|
|
|
|
If you create a new project(win32 console) and insert COleVariant in this new project and also include this file to stdafx.h of your project what happens?
|
|
|
|
|
Did you try it?what happend?
|
|
|
|
|
What does a error SocketNotificationSick error with memory exception mean?
What might have gone wrong?
thank you in advace.
KIRAN PINJARLA
|
|
|
|
|
kiran.pinjarla wrote: SocketNotificationSick
There is no such thing. This must be custom written in my opinion. Consult with the docs pertaining to that error, if you have any.
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
Hi Friends,
I am developing a database application. I have one problem in this application.such as
How to retrieve the image file like jpeg image from mdb file.
Information:
IDE : VC++ 6.0
Provider=Microsoft.Jet.OLEDB.4.0
class:
CDaoDatabase and CDaoRecordset
Fields in Image table ( db1.mdb ),
1. Name - Text
2. Id - Number
3. DOB - Date
4. Photo - OLE Object
Sample code:
CDaoDatabase database;
CDaoRecordset m_recordset ( &database );
CString strName = "D:\\db1.mdb";
database.Open ( strName,TRUE ,TRUE , _T(";PWD=vichu") );
//
if ( ! m_recordset.IsOpen ( ) )
{
m_recordset.Open ( dbOpenDynaset, "SELECT * FROM images", 0);
}
COleVariant var;
if ( ! (m_recordset.IsBOF ( ) && m_recordset.IsEOF ( ) ) )
{
m_recordset.MoveFirst ( );
}
while ( ! m_recordset.IsEOF ( ) )
{
var = m_recordset.GetFieldValue ( "AF_Text" );
str.Format ( "%s", var.bstrVal );
AfxMessageBox ( str );
var = m_recordset.GetFieldValue ( "AF_Number" );
str.Format ( "%d", var.intVal );
AfxMessageBox ( str );
var = m_recordset.GetFieldValue ( "AF_Date" );
COleDateTime m_date ( var );
str.Format ( "%d/%d/%d", m_date.GetDay ( ), m_date.GetMonth ( ), m_date.GetYear ( ) );
AfxMessageBox ( str );
<code>var = m_recordset.GetFieldValue ( "AF_Photo" );
</code>
str.Format ( "%s", var.bstrVal );
AfxMessageBox ( str );
m_recordset.MoveNext ( );
}
m_recordset.Close ( );
Pls anyone give suggestion/examples to me asap.
Thanks & Regards,
Vichu
|
|
|
|
|
|
Hi,
I can't able to display image as per your suggestion. Actually , the binary data stored into jpg file and then opening image file using any one of the image editor. But the file is not loaded into that tools even if that jpg have contents.
Vichu
|
|
|
|
|
Did you search on the internet ?
|
|
|
|
|
Hi everyone,
If I have a lot of images does this way correct or no?
I use of a listctrl with imagelist and use of Timer(WM_TIMER) for read images of hard and insert to listctrl and since images are jpg I use of cimage class for read their and convert to hbitmap for insert to listctrl.
Is this correct or no if no can you suggest me a way.
Thanks
|
|
|
|
|
What is the purpose of the timer ? What do you want to achieve ?
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
Do not feed the troll ! - Common proverb
|
|
|
|
|
I have a lot of images and I think its not suitable that I use of while or For so I think its better that I read this images on timer (WM_TIMER) Is it good
|
|
|
|