Click here to Skip to main content
15,921,990 members
Home / Discussions / C#
   

C#

 
GeneralRe: Threads Pin
AndrewPeters31-Dec-05 14:34
AndrewPeters31-Dec-05 14:34 
GeneralRe: Threads Pin
Igor Vigdorchik31-Dec-05 14:51
Igor Vigdorchik31-Dec-05 14:51 
GeneralRe: Threads Pin
AndrewPeters31-Dec-05 15:16
AndrewPeters31-Dec-05 15:16 
GeneralRe: Threads Pin
Igor Vigdorchik31-Dec-05 15:29
Igor Vigdorchik31-Dec-05 15:29 
GeneralRe: Threads Pin
Bassam Saoud1-Jan-06 0:38
Bassam Saoud1-Jan-06 0:38 
QuestionFolder View Pin
rakesh_nits30-Dec-05 19:26
rakesh_nits30-Dec-05 19:26 
AnswerRe: Folder View Pin
Dave Kreskowiak31-Dec-05 5:26
mveDave Kreskowiak31-Dec-05 5:26 
GeneralRe: Folder View Pin
rakesh_nits2-Jan-06 2:49
rakesh_nits2-Jan-06 2:49 
Hi Dave,
Thanks for your reply.Actually using the IShellFolder and IShellFolder2 interface was the first thing which i had tried.but i didn't have any success with them then i tried to get it through registry.Basically i want to know the sort order for a particular folder view if there is any.Hopefully by using IShellView or IShellFolder2 i can get some useful information.This is the code which i had tried.
IntPtr newPidl = IntPtr.Zero ;
IShellFolder ishFolder = null;
IntPtr ppvOut = IntPtr.Zero;
string path = @"C:\Documents and Settings\Administrator\Desktop\A";
if(Interop.SHGetDesktopFolder(ref ishFolder)==0)
{

// we have it:
int cParsed = 0;
int afItem = 0;
ishFolder.ParseDisplayName(
IntPtr.Zero,
IntPtr.Zero,
path,
out cParsed,
out newPidl,
out afItem);
IntPtr handle = IntPtr.Zero;

WIN32_FIND_DATA data = new WIN32_FIND_DATA();
handle = Class2.FindFirstFile(path,out data);
//here i am getting the error
ishFolder.CreateViewObject(handle,ref IID_IShellFolder2,out ppvOut);
******************************************************
but i was not able to get any folder even IShellFolder interface itself from the CreateViewObject
function.This is The error i got::
System.InvalidCastException: No such interface supported
at TestApplication.IShellFolder.CreateViewObject(IntPtr hwndOwner, Guid& riid, IntPtr& ppvOut)
How can i get IshellFolder2 or IShellView interface for any folder.what i am doing wrong here?
Also thanks for the .ini link but i don't think it is going to solve my problem.Any ideas will be greatly appreciated.Thanks in Advance.
Rakesh

QuestionWhich is the best book to learn C# Pin
Rajkamal_dfine30-Dec-05 18:01
Rajkamal_dfine30-Dec-05 18:01 
AnswerRe: Which is the best book to learn C# Pin
S. Akif Kamal30-Dec-05 21:32
S. Akif Kamal30-Dec-05 21:32 
Answersend me the C#.NET step by step programming. Pin
ChandrasekharCh30-Dec-05 23:52
ChandrasekharCh30-Dec-05 23:52 
GeneralRe: send me the C#.NET step by step programming. Pin
Colin Angus Mackay31-Dec-05 1:40
Colin Angus Mackay31-Dec-05 1:40 
GeneralRe: send me the C#.NET step by step programming. Pin
naglbitur31-Dec-05 4:58
naglbitur31-Dec-05 4:58 
AnswerRe: Which is the best book to learn C# Pin
N.Byarley31-Dec-05 19:03
N.Byarley31-Dec-05 19:03 
QuestionInsert/remove break point at runtime! Pin
tiancaidao30-Dec-05 17:12
tiancaidao30-Dec-05 17:12 
QuestionBest Way To Convert From Screen Coords To My Own Pin
...---...30-Dec-05 15:48
...---...30-Dec-05 15:48 
AnswerRe: Best Way To Convert From Screen Coords To My Own Pin
Curtis Schlak.30-Dec-05 15:52
Curtis Schlak.30-Dec-05 15:52 
GeneralRe: Best Way To Convert From Screen Coords To My Own Pin
...---...31-Dec-05 9:02
...---...31-Dec-05 9:02 
Questionhow to create a custom scrollbar? Pin
Sasuko30-Dec-05 12:38
Sasuko30-Dec-05 12:38 
AnswerRe: how to create a custom scrollbar? Pin
AndrewPeters31-Dec-05 14:35
AndrewPeters31-Dec-05 14:35 
QuestionTEXTURE PROBLEM Pin
_Comet_Keeper_30-Dec-05 11:29
_Comet_Keeper_30-Dec-05 11:29 
AnswerRe: TEXTURE PROBLEM Pin
Judah Gabriel Himango31-Dec-05 11:18
sponsorJudah Gabriel Himango31-Dec-05 11:18 
Questioncrosshair Pin
Sam 200630-Dec-05 10:59
Sam 200630-Dec-05 10:59 
AnswerRe: crosshair Pin
Dave Kreskowiak30-Dec-05 16:18
mveDave Kreskowiak30-Dec-05 16:18 
QuestionTwo Forms Pin
picasso230-Dec-05 9:36
picasso230-Dec-05 9:36 

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.