Click here to Skip to main content
16,009,156 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Another Lambda Expression Problem Pin
Sonhospa8-Jul-12 5:19
Sonhospa8-Jul-12 5:19 
AnswerRe: Another Lambda Expression Problem Pin
Dave Doknjas8-Jul-12 11:15
Dave Doknjas8-Jul-12 11:15 
QuestionLambda Syntax Pin
Sonhospa6-Jul-12 3:06
Sonhospa6-Jul-12 3:06 
AnswerRe: Lambda Syntax Pin
Dave Kreskowiak6-Jul-12 3:43
mveDave Kreskowiak6-Jul-12 3:43 
AnswerRe: Lambda Syntax Pin
Sonhospa6-Jul-12 5:52
Sonhospa6-Jul-12 5:52 
GeneralRe: Lambda Syntax Pin
Dave Kreskowiak6-Jul-12 9:47
mveDave Kreskowiak6-Jul-12 9:47 
Question32 bit to 64 bit Pin
shoniya6-Jul-12 2:13
shoniya6-Jul-12 2:13 
AnswerRe: 32 bit to 64 bit Pin
Wayne Gaylard6-Jul-12 2:56
professionalWayne Gaylard6-Jul-12 2:56 
QuestionHELP Pin
corperate4-Jul-12 9:34
corperate4-Jul-12 9:34 
AnswerRe: HELP Pin
Paul Conrad4-Jul-12 11:48
professionalPaul Conrad4-Jul-12 11:48 
AnswerRe: HELP Pin
Midnight Ahri4-Jul-12 15:09
Midnight Ahri4-Jul-12 15:09 
QuestionCreating or changing tables in an access database Pin
No-e3-Jul-12 8:33
No-e3-Jul-12 8:33 
AnswerRe: Creating or changing tables in an access database Pin
ChandraRam4-Jul-12 4:03
ChandraRam4-Jul-12 4:03 
GeneralIShellFolder - GetThumbnails [edit title] Pin
jkirkerx2-Jul-12 11:40
professionaljkirkerx2-Jul-12 11:40 
AnswerRe: IShellFolder - GetThumbnails [edit title] Pin
Eddy Vluggen3-Jul-12 0:58
professionalEddy Vluggen3-Jul-12 0:58 
GeneralRe: IShellFolder - GetThumbnails [edit title] Pin
jkirkerx3-Jul-12 7:04
professionaljkirkerx3-Jul-12 7:04 
I get this for the someFolder when in the BindToObject

Value of type 'Admin_PM_Standard.IShellFolder' cannot be converted to 'System.IntPtr'.

In one instance, I changed the interface function to

From
<PreserveSig()> _
Function BindToObject(
   ByVal pidl As IntPtr,
   ByVal pbc As IntPtr,
   <MarshalAs(UnmanagedType.LPStruct)> ByRef riid As Guid,
   ByRef ppv As IntPtr) As Int32

To
<PreserveSig()> _
Function BindToObject(
   ByVal pidl As IntPtr,
   ByVal pbc As IntPtr,
   <MarshalAs(UnmanagedType.LPStruct)> ByRef riid As Guid,
   ByRef ppv As IShellFolder) As Int32


And got the (System attempted to access memory that is protected) during debug. So I think I was on the right track and it worked, only it didn't like the Word 2007 Doc.

[IMPORTANT NOTE]

I should of mentioned this, I'm trying to use this in asp.net. I read that I could extract a thumbnail of an office document using the Shell32.Dll, post XP SP2. I'm starting to think that it is not possible, and that GetThumbnail replaced it, and that getThubmnail only works on image files.

This was an experiement, a chance to call a unmanaged DLL in managed code, to see if I can write something in c++ in the future, to use in my asp.net apps.
AnswerRe: IShellFolder - GetThumbnails [edit title] Pin
Eddy Vluggen3-Jul-12 7:33
professionalEddy Vluggen3-Jul-12 7:33 
GeneralRe: IShellFolder - GetThumbnails [edit title] Pin
jkirkerx3-Jul-12 7:43
professionaljkirkerx3-Jul-12 7:43 
GeneralRe: IShellFolder - GetThumbnails [edit title] Pin
Eddy Vluggen3-Jul-12 9:28
professionalEddy Vluggen3-Jul-12 9:28 
AnswerRe: IShellFolder - GetThumbnails Pin
Luc Pattyn3-Jul-12 1:21
sitebuilderLuc Pattyn3-Jul-12 1:21 
GeneralRe: IShellFolder - GetThumbnails Pin
jkirkerx3-Jul-12 7:06
professionaljkirkerx3-Jul-12 7:06 
QuestionVB6 Won't Install On Windows 7 Pro x64 Pin
CodeZombie6230-Jun-12 19:33
CodeZombie6230-Jun-12 19:33 
AnswerRe: VB6 Won't Install On Windows 7 Pro x64 Pin
Dave Kreskowiak1-Jul-12 3:54
mveDave Kreskowiak1-Jul-12 3:54 
GeneralRe: VB6 Won't Install On Windows 7 Pro x64 Pin
CodeZombie621-Jul-12 13:56
CodeZombie621-Jul-12 13:56 
GeneralRe: VB6 Won't Install On Windows 7 Pro x64 Pin
Dave Kreskowiak1-Jul-12 14:38
mveDave Kreskowiak1-Jul-12 14:38 

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.