Click here to Skip to main content
15,442,199 members
Home / Discussions / COM
   

COM

 
AnswerRe: Voice call with Huawei USB Pin
dusty_dex16-Apr-13 0:12
Memberdusty_dex16-Apr-13 0:12 
QuestionMatlab COM Builder Pin
SergentX28-Mar-13 7:13
MemberSergentX28-Mar-13 7:13 
QuestionCould not load file or assembly Interop.Microsoft.Office.Core Pin
Member 182181119-Mar-13 3:04
MemberMember 182181119-Mar-13 3:04 
AnswerRe: Could not load file or assembly Interop.Microsoft.Office.Core Pin
Marco Bertschi19-Mar-13 3:56
professionalMarco Bertschi19-Mar-13 3:56 
GeneralRe: Could not load file or assembly Interop.Microsoft.Office.Core Pin
Member 182181119-Mar-13 5:30
MemberMember 182181119-Mar-13 5:30 
GeneralRe: Could not load file or assembly Interop.Microsoft.Office.Core Pin
Marco Bertschi19-Mar-13 5:53
professionalMarco Bertschi19-Mar-13 5:53 
Questionerror '80004003', Object reference not set to an instance of an object. Pin
notahack2-Mar-13 4:40
Membernotahack2-Mar-13 4:40 
QuestionNeed help with COM project on Windows 8 Pin
T800G1-Mar-13 10:47
MemberT800G1-Mar-13 10:47 
I hope I'm asking in the right place.
I don't have Win8 machine available and my computer can't run Win8 in a virtual machine, so I'm asking for help from someone with Win8 machine to find out why my code doesn't work in Win8.

I received request for a small project, namely Explorer thumbnail shell extension for OpenRaster (*.ora) files saved by the MyPaint application.
OpenRaster files have the same structure as OpenOffice files (*.odt, etc...), the thumbnail is stored as "Thumbnails\thumbnail.png" inside the zip file.
I've made similar thumbnail shell extensions before and I have working code from previous projects but it's a bit more complicated.
This time I got inspired by article I found here (Google translate FTW!):
http://eternalwindows.jp/installer/zip/zip02.html

Apparently you can use CompressedFolder zip storage handler COM object (from zipfldr.dll) as described in the article, pretty elegant and lightweight even though it doesn't support Unicode file names inside zip.
My code finds and extracts thumbnail.png inside the zip and loads it with ATL::CImage.
I've made this activex dll (ATL project, source + 32/64bit binaries):
https://dl.dropbox.com/u/61407853/orathumbs1002.zip

I use VC2008 Express + Win7 SDK + ATL7 headers (from WDK) and I started off with VC6 ATL project skeleton.
Everything compiles without warnings and everything worked fine both on XP and Win7 32/64-bit but I'm told it doesn't work on Win8 x64, the dll is registered and thumbnail cache cleared but no thumbnails are generated, and I couldn't say where's the problem without access to Win8 machine.

Here is a small Win32/ATL dialog project that tests the extracting code:
https://dl.dropbox.com/u/61407853/ThumbTest.zip
Inside the zip is the source, compiled exe (debug release) and 2 test files (1 good and 1 with invalid thumbnail). The dialog accepts dropped files and shows the thumbnail if successful.
It pops up a messagebox with a description of HRESULT error and calling location in source file (just hit Ctrl+C to copy text from messagebox).

I don't know what is the problem, is my activex dll code broken or is the extracting code broken, do I need to compile with VS2012/WinSDK8 or something else, so if someone could help me track down the problem (compile and debug), it would be greatly appreciated.

My apologies if my post is chaotic, I try to describe in as much detail I can.
AnswerRe: Need help with COM project on Windows 8 Pin
Garth J Lancaster1-Mar-13 11:42
professionalGarth J Lancaster1-Mar-13 11:42 
QuestionTLDR, simpler version Pin
T800G18-Apr-13 10:23
MemberT800G18-Apr-13 10:23 
QuestionHow to get the path Pin
sarfaraznawaz27-Feb-13 19:44
Membersarfaraznawaz27-Feb-13 19:44 
AnswerRe: How to get the path Pin
Richard MacCutchan27-Feb-13 22:04
mveRichard MacCutchan27-Feb-13 22:04 
GeneralRe: How to get the path Pin
sarfaraznawaz27-Feb-13 22:27
Membersarfaraznawaz27-Feb-13 22:27 
GeneralRe: How to get the path Pin
Richard MacCutchan27-Feb-13 22:46
mveRichard MacCutchan27-Feb-13 22:46 
GeneralRe: How to get the path Pin
sarfaraznawaz27-Feb-13 23:27
Membersarfaraznawaz27-Feb-13 23:27 
GeneralRe: How to get the path Pin
Richard MacCutchan27-Feb-13 23:28
mveRichard MacCutchan27-Feb-13 23:28 
QuestionWorkBooks::OpenText file not loading Pin
ForNow12-Feb-13 10:38
MemberForNow12-Feb-13 10:38 
AnswerRe: WorkBooks::OpenText file not loading Pin
Richard MacCutchan27-Feb-13 22:09
mveRichard MacCutchan27-Feb-13 22:09 
GeneralRe: WorkBooks::OpenText file not loading Pin
ForNow28-Feb-13 8:07
MemberForNow28-Feb-13 8:07 
GeneralRe: WorkBooks::OpenText file not loading Pin
Richard MacCutchan28-Feb-13 21:47
mveRichard MacCutchan28-Feb-13 21:47 
GeneralRe: WorkBooks::OpenText file not loading Pin
ForNow1-Mar-13 8:20
MemberForNow1-Mar-13 8:20 
GeneralRe: WorkBooks::OpenText file not loading Pin
Richard MacCutchan1-Mar-13 23:46
mveRichard MacCutchan1-Mar-13 23:46 
QuestionDISP_E_EXCEPTION & excepinfo->scode 800A03EC from WorkBooks::OpenText Pin
ForNow6-Feb-13 12:26
MemberForNow6-Feb-13 12:26 
AnswerRe: DISP_E_EXCEPTION & excepinfo->scode 800A03EC from WorkBooks::OpenText Pin
Richard MacCutchan6-Feb-13 22:34
mveRichard MacCutchan6-Feb-13 22:34 
QuestionWorkBooks::OpenText failure Pin
ForNow5-Feb-13 11:25
MemberForNow5-Feb-13 11:25 

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.