Click here to Skip to main content
16,009,144 members
Home / Discussions / C#
   

C#

 
GeneralRe: Getting Shell Tray Info In C#? Pin
Abydosgater20-Sep-08 10:22
Abydosgater20-Sep-08 10:22 
GeneralRe: Getting Shell Tray Info In C#? Pin
Giorgi Dalakishvili20-Sep-08 10:33
mentorGiorgi Dalakishvili20-Sep-08 10:33 
GeneralRe: Getting Shell Tray Info In C#? Pin
Abydosgater20-Sep-08 11:31
Abydosgater20-Sep-08 11:31 
GeneralRe: Getting Shell Tray Info In C#? Pin
Giorgi Dalakishvili20-Sep-08 11:37
mentorGiorgi Dalakishvili20-Sep-08 11:37 
GeneralRe: Getting Shell Tray Info In C#? Pin
Abydosgater20-Sep-08 12:07
Abydosgater20-Sep-08 12:07 
GeneralRe: Getting Shell Tray Info In C#? Pin
Giorgi Dalakishvili21-Sep-08 3:03
mentorGiorgi Dalakishvili21-Sep-08 3:03 
GeneralRe: Getting Shell Tray Info In C#? Pin
Abydosgater21-Sep-08 7:24
Abydosgater21-Sep-08 7:24 
GeneralRe: Getting Shell Tray Info In C#? Pin
Giorgi Dalakishvili21-Sep-08 8:35
mentorGiorgi Dalakishvili21-Sep-08 8:35 
As I can see from the code author uses a class written by him so you need to import that class in your program using DllImport. I am not sure how to do that so you can ask the author of the article.

By the way, I have just remembered that there is another way (and probably easier) to call native methods from your application. Are you familiar with Managed c++? It's sort of combination of native c++ and managed code. You can write a dll in managed c++ that does the same job as the article and you will not need to use DllImport. You will just include the header files you need. The dll will be managed so you can reference it from your c# application. Here is an example:

Wrapping Around a Native C++ Class[^]

Netting C++[^]

Wrapping Unmanaged Classes Using Managed Extensions for C++[^]

NativeWrapper: a tool for Native Interoperability[^]

Giorgi Dalakishvili

#region signature
my articles

My blog[^]
#endregion

GeneralRe: Getting Shell Tray Info In C#? Pin
Abydosgater24-Sep-08 4:22
Abydosgater24-Sep-08 4:22 
Questionglobal:: Pin
#realJSOP15-Sep-08 11:06
professional#realJSOP15-Sep-08 11:06 
AnswerRe: global:: Pin
DaveyM6915-Sep-08 11:15
professionalDaveyM6915-Sep-08 11:15 
QuestionUnmanaged DLL injection under Vista x64 Pin
EURaklap15-Sep-08 9:53
EURaklap15-Sep-08 9:53 
AnswerRe: Unmanaged DLL injection under Vista x64 Pin
Giorgi Dalakishvili15-Sep-08 10:03
mentorGiorgi Dalakishvili15-Sep-08 10:03 
QuestionCheck if a field exists in a table before adding it to another table Pin
Twyce15-Sep-08 9:50
Twyce15-Sep-08 9:50 
GeneralRe: Check if a field exists in a table before adding it to another table Pin
Pete O'Hanlon15-Sep-08 9:55
mvePete O'Hanlon15-Sep-08 9:55 
GeneralRe: Check if a field exists in a table before adding it to another table Pin
Twyce15-Sep-08 10:40
Twyce15-Sep-08 10:40 
QuestionCoding SQL Statement with String Literals Pin
polishprogrammer15-Sep-08 8:41
polishprogrammer15-Sep-08 8:41 
GeneralRe: Coding SQL Statement with String Literals Pin
Pete O'Hanlon15-Sep-08 8:59
mvePete O'Hanlon15-Sep-08 8:59 
GeneralRe: Coding SQL Statement with String Literals Pin
polishprogrammer15-Sep-08 9:01
polishprogrammer15-Sep-08 9:01 
GeneralRe: Coding SQL Statement with String Literals Pin
Pete O'Hanlon15-Sep-08 9:08
mvePete O'Hanlon15-Sep-08 9:08 
GeneralRe: Coding SQL Statement with String Literals Pin
polishprogrammer15-Sep-08 9:28
polishprogrammer15-Sep-08 9:28 
GeneralRe: Coding SQL Statement with String Literals Pin
Giorgi Dalakishvili15-Sep-08 9:28
mentorGiorgi Dalakishvili15-Sep-08 9:28 
GeneralRe: Coding SQL Statement with String Literals Pin
Paul Conrad15-Sep-08 9:48
professionalPaul Conrad15-Sep-08 9:48 
AnswerRe: Coding SQL Statement with String Literals Pin
Paul Conrad15-Sep-08 9:47
professionalPaul Conrad15-Sep-08 9:47 
QuestionCalling c# methods from unmanaged code (Not COM) and vice versa Pin
greenbeast15-Sep-08 8:23
greenbeast15-Sep-08 8:23 

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.