Click here to Skip to main content
15,917,731 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: get number of weeks from given year Pin
Thomas Krojer7-Jan-08 1:25
Thomas Krojer7-Jan-08 1:25 
GeneralRe: get number of weeks from given year Pin
Tom Deketelaere7-Jan-08 1:37
professionalTom Deketelaere7-Jan-08 1:37 
GeneralRe: get number of weeks from given year Pin
Thomas Krojer7-Jan-08 2:31
Thomas Krojer7-Jan-08 2:31 
GeneralRe: get number of weeks from given year Pin
ChandraRam4-Jan-08 1:07
ChandraRam4-Jan-08 1:07 
GeneralRe: get number of weeks from given year Pin
Tom Deketelaere4-Jan-08 1:23
professionalTom Deketelaere4-Jan-08 1:23 
GeneralRe: get number of weeks from given year Pin
ChandraRam4-Jan-08 1:36
ChandraRam4-Jan-08 1:36 
GeneralRe: get number of weeks from given year Pin
Tom Deketelaere4-Jan-08 2:08
professionalTom Deketelaere4-Jan-08 2:08 
Question'Charset' is not accessible in this context because it is private. Pin
Hemesh3-Jan-08 22:59
Hemesh3-Jan-08 22:59 
Hi all,

I am using the following API call to get the Icons and Type of windows file in my application.

<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Auto)> _
Private Structure SHFILEINFO
Public hIcon As IntPtr
Public iIcon As Integer
Public dwAttributes As Int32
<MarshalAs(UnmanagedType.ByValTStr, SizeConst:=260)> _
Public szDisplayName As String
<MarshalAs(UnmanagedType.ByValTStr, SizeConst:=80)> _
Public szTypeName As String
End Structure


Private Declare Auto Function SHGetFileInfo Lib "shell32.dll" _
(ByVal pszPath As String, _
ByVal dwFileAttributes As Integer, _
ByRef psfi As SHFILEINFO, _
ByVal cbFileInfo As Integer, _
ByVal uFlags As Integer) As IntPtr



To get the FIle Type from the above function i needed to include this line:

<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Auto)> _

in the strcuture declaration.

This works good in my machine, and returns me the icon and FIle Type. But when i take this code to a different machine, it gives me a build error:

'Charset' is not accessible in this context because it is private.

Can anyone help me figure out as what can be the cause of the problem, as its creating a problem in my developement environment where i use Source Safe to merge everyones work.

Thanks ,

Hemesh
GeneralRe: 'Charset' is not accessible in this context because it is private. Pin
Dave Kreskowiak4-Jan-08 4:25
mveDave Kreskowiak4-Jan-08 4:25 
GeneralRe: 'Charset' is not accessible in this context because it is private. Pin
Hemesh7-Jan-08 22:55
Hemesh7-Jan-08 22:55 
GeneralDate Time value Pin
BOREC3-Jan-08 22:38
BOREC3-Jan-08 22:38 
GeneralRe: Date Time value Pin
BOREC3-Jan-08 23:57
BOREC3-Jan-08 23:57 
QuestionRe: Date Time value Pin
tellytub5-Jan-08 20:15
tellytub5-Jan-08 20:15 
GeneralRe: Date Time value Pin
infotools4-Jan-08 20:26
infotools4-Jan-08 20:26 
GeneralPlease help me convert this VBS to VB.NET code. I want to try and figure out if this is the problem in my ssis package. [modified] Pin
Support1233-Jan-08 21:43
Support1233-Jan-08 21:43 
GeneralWebbrowser Control Plz Help Pin
King of Kingz3-Jan-08 21:28
King of Kingz3-Jan-08 21:28 
GeneralRe: Webbrowser Control Plz Help Pin
Christian Graus3-Jan-08 23:44
protectorChristian Graus3-Jan-08 23:44 
QuestionHow can I communicate with an sd card ? Pin
Big Ralph3-Jan-08 21:27
Big Ralph3-Jan-08 21:27 
AnswerRe: How can I communicate with an sd card ? Pin
nishkarsh_k3-Jan-08 22:02
nishkarsh_k3-Jan-08 22:02 
GeneralRe: How can I communicate with an sd card ? Pin
Big Ralph3-Jan-08 22:04
Big Ralph3-Jan-08 22:04 
GeneralRe: How can I communicate with an sd card ? Pin
nishkarsh_k3-Jan-08 22:08
nishkarsh_k3-Jan-08 22:08 
GeneralRe: How can I communicate with an sd card ? Pin
Big Ralph3-Jan-08 22:10
Big Ralph3-Jan-08 22:10 
AnswerRe: How can I communicate with an sd card ? Pin
Dave Kreskowiak4-Jan-08 4:29
mveDave Kreskowiak4-Jan-08 4:29 
GeneralRe: How can I communicate with an sd card ? Pin
Big Ralph6-Jan-08 22:13
Big Ralph6-Jan-08 22:13 
GeneralRe: How can I communicate with an sd card ? Pin
Steppo7-Jan-08 0:27
Steppo7-Jan-08 0:27 

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.