Click here to Skip to main content
16,013,516 members
Home / Discussions / COM
   

COM

 
GeneralRe: Remote GUI Pin
Renjith Ramachandran26-Aug-02 9:23
Renjith Ramachandran26-Aug-02 9:23 
GeneralRe: Remote GUI with DCOM Pin
Hostalet Wandosell26-Aug-02 22:08
Hostalet Wandosell26-Aug-02 22:08 
GeneralRe: Remote GUI with DCOM Pin
Renjith Ramachandran3-Sep-02 5:04
Renjith Ramachandran3-Sep-02 5:04 
Generali did not develop any com yet but i want Pin
imran_rafique22-Aug-02 9:51
imran_rafique22-Aug-02 9:51 
GeneralRe: i did not develop any com yet but i want Pin
Simon.W26-Aug-02 0:55
Simon.W26-Aug-02 0:55 
GeneralRe: i did not develop any com yet but i want Pin
Stephane Rodriguez.26-Aug-02 23:47
Stephane Rodriguez.26-Aug-02 23:47 
GeneralRe: i did not develop any com yet but i want Pin
Vagif Abilov30-Aug-02 10:16
professionalVagif Abilov30-Aug-02 10:16 
Generalthumbnail using imgthumb ActiveX control Pin
toon22-Aug-02 2:07
toon22-Aug-02 2:07 
Hi.
I want to display thumbnails of images. I tried using the "Imaging for Windows" ActiveX control imgthumb.ocx (Kodak image thumbnail) that comes along with Windows2000. I use VC++6.0.
I want to dynamically create the thumbnails. I am unable to figure out which functions to call.
Here is my code snippet.
It does not show any error, but nothing is displayed.
Can you point out what is wrong?

m_thumb = new CImgThumbnail;
BOOL res = m_thumb->Create("Thumbnail", WS_CHILD | WS_VISIBLE | WS_BORDER,
CRect(100, 100, 170, 170), this, 1341);
m_thumb->SetThumbWidth(50);
m_thumb->SetThumbHeight(50);
m_thumb->SetImage("c:\\flowers.jpg");
m_thumb->SetEnabled(true);
m_thumb->SetThumbCaption("seen???");
m_thumb->SetThumbBackColor(0);
m_thumb->SetThumbCaptionColor(100);
VARIANT image, page;
BSTR bst;
CString str="c:\\database_n\\flowers\\21099_wallpaper110.jpg";
bst = (unsigned short *)str.GetAt(0);
image.vt = VT_BSTR;
image.bstrVal = bst;
page.vt = VT_I2;
page.iVal = 1;
m_thumb->UISetThumbSize(image, page);
VARIANT thumbno, options;
thumbno.vt = VT_I4;
thumbno.lVal = 1;
options.vt = VT_I2;
options.iVal = 0;
CString str1 = m_thumb->GetImage();
m_thumb->DisplayThumbs(thumbno, options);
//m_thumb->Refresh();

However, the thumbnail is displayed when I put the control in a dialog box (using the editor), and set its properties.
Where am I going wrong in the dynamic creation process?
Hope somebody can throw some light.
Thanks.

Logic is a systematic method of coming to the wrong conclusion with
confidence.
GeneralRe: thumbnail using imgthumb ActiveX control Pin
Stephane Rodriguez.26-Aug-02 23:51
Stephane Rodriguez.26-Aug-02 23:51 
GeneralRe: thumbnail using imgthumb ActiveX control Pin
toon27-Aug-02 1:52
toon27-Aug-02 1:52 
GeneralRe: IDocHostUIHandler::TranslateAccelerator Help Pin
Michael Mac21-Aug-02 11:47
Michael Mac21-Aug-02 11:47 
GeneralRe: IDocHostUIHandler::TranslateAccelerator Help Pin
Douglas Troy23-Aug-02 10:25
Douglas Troy23-Aug-02 10:25 
GeneralVBScript and COM Inf. with ByRef Pin
Anonymous21-Aug-02 6:57
Anonymous21-Aug-02 6:57 
GeneralRe: VBScript and COM Inf. with ByRef Pin
Ernest Laurentin21-Aug-02 7:09
Ernest Laurentin21-Aug-02 7:09 
GeneralRe: VBScript and COM Inf. with ByRef Pin
Anonymous21-Aug-02 9:31
Anonymous21-Aug-02 9:31 
GeneralRe: VBScript and COM Inf. with ByRef Pin
Ernest Laurentin21-Aug-02 9:50
Ernest Laurentin21-Aug-02 9:50 
GeneralRe: VBScript and COM Inf. with ByRef Pin
Anonymous21-Aug-02 22:12
Anonymous21-Aug-02 22:12 
GeneralRe: VBScript and COM Inf. with ByRef Pin
Ernest Laurentin22-Aug-02 7:38
Ernest Laurentin22-Aug-02 7:38 
GeneralRe: VBScript and COM Inf. with ByRef Pin
Anonymous22-Aug-02 0:46
Anonymous22-Aug-02 0:46 
GeneralRe: VBScript and COM Inf. with ByRef Pin
Ernest Laurentin22-Aug-02 6:52
Ernest Laurentin22-Aug-02 6:52 
GeneralRe: VBScript and COM Inf. with ByRef Pin
Koep25-Aug-02 22:04
Koep25-Aug-02 22:04 
GeneralRe: VBScript and COM Inf. with ByRef Pin
Ernest Laurentin27-Aug-02 5:21
Ernest Laurentin27-Aug-02 5:21 
GeneralRe: VBScript and COM Inf. with ByRef Pin
Ernest Laurentin27-Aug-02 8:08
Ernest Laurentin27-Aug-02 8:08 
Generalreceiving data Pin
Lily1820-Aug-02 9:57
Lily1820-Aug-02 9:57 
QuestionHow to put HTML? Pin
User 100963419-Aug-02 8:20
User 100963419-Aug-02 8:20 

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.