|
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
|
|
|
|
|
Hi,
In my VC applications, i need to use static members and methods for a callback function. The dialog was modal. Now i need to change the dialog as modeless. Does the static members would affect the display of results that are from the callback functions?
The result from the callbacks are inserted in the list control.
The problem am facing is , after converting the dialog to modeless, if i open the dialog (more than 1), the result from the callback is displayed in one only dialog.
Please clarify.
Thanks
Raji
|
|
|
|
|
Can you show some code for your explanation ?
|
|
|
|
|
All the dialog instances are going to share the static variables.
If the list control is static then you have a problem - each instance of the dialog needs its
own list control object because each will have its own HWND.
If the callback is setup from in the dialog class, then is there a way you can have the callback
called with some parameter to differentiate between the different dialog instances (like a pointer
to a dialog object)?
Mark
|
|
|
|
|
List control is not static.
Thanks
Raji
|
|
|
|
|
What is not working then?
|
|
|
|
|
Hi,
I want my application will be displayed in Multiple language without creating
dialogs each one for each language.
How can i do it?
|
|
|
|
|
Refer localization [^] section of this site.
You will get good idea , how to acheive this.
|
|
|
|
|
Adding to the above reply, make sure your application is unicode aware. Store literal strings to be displayed in a string table instead of hard-coding. Then load them accordingly.
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
My Application is unicode aware. And also i loaded strings from string table. Now i put the menu which is for displaying different languages.
Now what i want is when i click chinese ,the GUI will be displayed in chinese.. how can i do it ?
|
|
|
|
|
|
Do you care to read links provided to you ?
|
|
|
|
|