Click here to Skip to main content
15,867,686 members
Home / Discussions / C#
   

C#

 
QuestionProblem with API calls [P/Invoke ] Pin
t4ure4n14-Apr-06 12:54
t4ure4n14-Apr-06 12:54 
QuestionWhere to insert the code Pin
papa198014-Apr-06 10:53
papa198014-Apr-06 10:53 
AnswerRe: Where to insert the code Pin
HakunaMatada14-Apr-06 19:18
HakunaMatada14-Apr-06 19:18 
AnswerRe: Where to insert the code Pin
RedhaDev15-Apr-06 8:40
RedhaDev15-Apr-06 8:40 
QuestionSystem.Diagnostics.Debug on a Release run. Pin
Rafferty Uy14-Apr-06 10:20
Rafferty Uy14-Apr-06 10:20 
AnswerRe: System.Diagnostics.Debug on a Release run. Pin
leppie14-Apr-06 11:18
leppie14-Apr-06 11:18 
GeneralRe: System.Diagnostics.Debug on a Release run. Pin
Rafferty Uy14-Apr-06 12:31
Rafferty Uy14-Apr-06 12:31 
QuestionQuestion about DllImport Pin
Zultan14-Apr-06 9:59
Zultan14-Apr-06 9:59 
Hello,

I'm posting what I hope will not be too ignorant of a question regarding com interop Smile | :)

A number of times I've seen in examples on this site a piece of code where the author has used com interop to call a method from an external dll (I assume c++ dlls being called from the c# code). My question is if you did not author the c++ dll yourself what is the best method to find out what the classes, methods, etc are that are contained in the dll? Basically, where do you determine what it is that you need to call from the dll?

For example, consider this call to an external dll (from an article here on Code Project):
private static extern long WritePrivateProfileString(string section, string key, string val, string filePath);

How did the author determine that in the dll that he called that there is a WritePrivateProfileString method and that it takes 4 string parameters? Is there some utility out there that allows you to browse c++ dlls and that you can use to determine what method and parameters you would need to import?

Bear in mind that I'm still learning c# and com interop is one subject that I've struggled to understand fully.

Thanks.
AnswerRe: Question about DllImport Pin
Corinna John14-Apr-06 11:10
Corinna John14-Apr-06 11:10 
GeneralRe: Question about DllImport Pin
Zultan18-Apr-06 9:06
Zultan18-Apr-06 9:06 
QuestionRaw IP Packet Pin
Dave k.a. DPA14-Apr-06 9:39
Dave k.a. DPA14-Apr-06 9:39 
QuestionAdding a subscript to a dynamic image Pin
asifmaniar14-Apr-06 9:32
asifmaniar14-Apr-06 9:32 
QuestionPoker Peeker Pin
IceWater4214-Apr-06 9:08
IceWater4214-Apr-06 9:08 
QuestionMaster-Detail relation update problem Pin
Bobby88714-Apr-06 6:04
Bobby88714-Apr-06 6:04 
Question'Virtual' printer driver possible? Pin
pjvander14-Apr-06 5:45
pjvander14-Apr-06 5:45 
AnswerRe: 'Virtual' printer driver possible? Pin
Judah Gabriel Himango14-Apr-06 6:54
sponsorJudah Gabriel Himango14-Apr-06 6:54 
GeneralRe: 'Virtual' printer driver possible? Pin
pjvander14-Apr-06 8:14
pjvander14-Apr-06 8:14 
QuestionwebBrowser1 (.NET 2) .Navigate from Form2 Pin
codah2314-Apr-06 4:23
codah2314-Apr-06 4:23 
AnswerRe: webBrowser1 (.NET 2) .Navigate from Form2 Pin
Judah Gabriel Himango14-Apr-06 6:51
sponsorJudah Gabriel Himango14-Apr-06 6:51 
GeneralRe: webBrowser1 (.NET 2) .Navigate from Form2 Pin
codah2314-Apr-06 8:15
codah2314-Apr-06 8:15 
GeneralRe: webBrowser1 (.NET 2) .Navigate from Form2 Pin
Judah Gabriel Himango14-Apr-06 8:29
sponsorJudah Gabriel Himango14-Apr-06 8:29 
GeneralRe: webBrowser1 (.NET 2) .Navigate from Form2 Pin
codah2314-Apr-06 9:29
codah2314-Apr-06 9:29 
Questionvery hard to find... Pin
KORCARI14-Apr-06 2:39
KORCARI14-Apr-06 2:39 
Questionhotmail account Pin
TAREQ F ABUZUHRI14-Apr-06 2:05
TAREQ F ABUZUHRI14-Apr-06 2:05 
AnswerRe: hotmail account Pin
Sean8914-Apr-06 2:16
Sean8914-Apr-06 2:16 

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.