Click here to Skip to main content
15,901,373 members
Home / Discussions / C#
   

C#

 
QuestionDifferent Colored Items in ListView Pin
rahultaing14-Apr-06 16:30
rahultaing14-Apr-06 16:30 
AnswerRe: Different Colored Items in ListView Pin
Ravi Bhavnani14-Apr-06 17:19
professionalRavi Bhavnani14-Apr-06 17:19 
AnswerRe: Different Colored Items in ListView Pin
Ravi Bhavnani14-Apr-06 19:35
professionalRavi Bhavnani14-Apr-06 19:35 
QuestionInternet Explorer Settings in C# Pin
Farhat C14-Apr-06 15:25
Farhat C14-Apr-06 15:25 
AnswerRe: Internet Explorer Settings in C# Pin
VaibhavJ14-Apr-06 23:02
VaibhavJ14-Apr-06 23:02 
GeneralRe: Internet Explorer Settings in C# Pin
Farhat C15-Apr-06 6:40
Farhat C15-Apr-06 6:40 
QuestionHow to open a html page by IE in CF? Pin
pmasknguyen14-Apr-06 13:55
pmasknguyen14-Apr-06 13:55 
QuestionProblem with API calls [P/Invoke ] Pin
t4ure4n14-Apr-06 12:54
t4ure4n14-Apr-06 12:54 
Hi, I am using the P/Invoke to call some methods from an API "wrg303API.dll". I am currently facing problems to convert few of the methods and variables to .NET (c#)..
1. [C/C++ declaration] char szSerNum[9];
[C# declaration]
[MarshalAs(UnmanagedType.ByValArray,SizeCount=9)]
public char [ ] szSerNum;
2.  [C/C++ declaration]
DWORD dwVcoFreq[8];
[C# declaration]
[MarshalAs(UnmanagedType.ByValArray,SizeCount=8)]
public DWORD [] dwVcoFreq;

Can I write "string" instead of "char [ ]" and then put the limit on its size. Any suggestion for the "DWORD" array
Now the methods which have problem:
3.  [C/C++ declaration]
BOOL __stdcall G3BlockScan (int hRadio,DWORD *Freqs, int Count,int StopSquelchRaw,DWORD feedbackTime,
HWND WinHandle,DWORD Msg);
  [C# declaration]
[DllImport("wrg303api.dll")] 
public static extern bool G3BlockScan(int hRadio,ref uint Freqs, int Count,int StopSquelchRaw, uint FeedbackTime,
IntPtr WinHandle,uint Msg);
I am using IntPtr for HWND .. is it right? Or there is an other option.
4.  [C/C++ declaration]
BOOL __stdcall CodecStart(int hRadio,void __stdcall (*CallbackFunc)(void *),void *CallbackTarget);
  [C# declaration]

5.  [C/C++ declaration]
DWORD __stdcall CodecRead(int hRadio, void *Buf, DWORD Size);
  [C# declaration]

I need the equivalent of methods 4 and 5 in C#
6.  [C/C++ declaration]
BOOL __stdcall G3GetPath(int hRadio, char *Pathname, size_t size);
  [C# declaration]
[DllImport("wrg303api.dll")] 
public static extern bool G3GetPath(int hRadio, string Pathname, size_t size);

What will be the equivalent of “size_t” in c#

I would appreciate if any1 can help me...
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 
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 

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.