Click here to Skip to main content
15,913,055 members
Home / Discussions / C#
   

C#

 
QuestionHashTable sort order Pin
Blumen29-May-07 23:56
Blumen29-May-07 23:56 
AnswerRe: HashTable sort order Pin
Martin#30-May-07 0:07
Martin#30-May-07 0:07 
AnswerRe: HashTable sort order Pin
CPallini30-May-07 0:15
mveCPallini30-May-07 0:15 
AnswerRe: HashTable sort order Pin
sujithkumarsl30-May-07 1:25
sujithkumarsl30-May-07 1:25 
AnswerRe: HashTable sort order Pin
leppie30-May-07 4:51
leppie30-May-07 4:51 
Questionfailed to load view state Pin
tauras8129-May-07 23:49
tauras8129-May-07 23:49 
AnswerRe: failed to load view state Pin
leppie30-May-07 4:53
leppie30-May-07 4:53 
QuestionASCII LpSTR? Pin
Russell Jones29-May-07 23:41
Russell Jones29-May-07 23:41 
I'm trying to make a call into a compression dll

This is declared like this in VB6:
<br />
Private Declare Function compress Lib "compression.dll" (dest As Any, destLen As Any, src As Any, ByVal srcLen As Long) As Long<br />
Private Declare Function uncompress Lib "compression.dll" (dest As Any, destLen As Any, src As Any, ByVal srcLen As Long) As Long


I've added the following to a c# class
<br />
   [DllImport("compression.dll")]<br />
      public static extern int uncompress(ref byte[] inputBuffer, ref int inputLength, ref byte[] outputBuffer, int OutputLength);<br />
      [DllImport("compression.dll")]<br />
      public static extern int compress( [MarshalAs(UnmanagedType.LPStr)]  StringBuilder inputBuffer,ref  int inputLength,  [MarshalAs(UnmanagedType.LPStr)]  StringBuilder outputBuffer, int OutputLength);


If i call the compress method using c# and decompress using c# this works fine. The problem arises when i try to compress in c# and decompress in vb6 or vice versa. Is there a back compatability mode for string functions like this?

Thanks in advance

Russell
AnswerRe: ASCII LpSTR? Pin
Dave Herren30-May-07 1:21
Dave Herren30-May-07 1:21 
QuestionSub-classing Pin
Shivaprasad D Atthigode29-May-07 23:27
Shivaprasad D Atthigode29-May-07 23:27 
AnswerRe: Sub-classing Pin
MarkB77729-May-07 23:56
MarkB77729-May-07 23:56 
Questionrich textbox Pin
treah29-May-07 23:18
treah29-May-07 23:18 
AnswerRe: rich textbox Pin
JoeSharp29-May-07 23:26
JoeSharp29-May-07 23:26 
AnswerRe: rich textbox Pin
NassosReyzidis29-May-07 23:27
NassosReyzidis29-May-07 23:27 
QuestionPopulate combobox Pin
matjame29-May-07 23:00
matjame29-May-07 23:00 
AnswerRe: Populate combobox Pin
Christian Graus29-May-07 23:06
protectorChristian Graus29-May-07 23:06 
GeneralRe: Populate combobox Pin
matjame29-May-07 23:21
matjame29-May-07 23:21 
AnswerRe: Populate combobox Pin
sujithkumarsl29-May-07 23:15
sujithkumarsl29-May-07 23:15 
GeneralRe: Populate combobox Pin
J4amieC29-May-07 23:42
J4amieC29-May-07 23:42 
GeneralRe: Populate combobox Pin
sujithkumarsl29-May-07 23:58
sujithkumarsl29-May-07 23:58 
GeneralRe: Populate combobox Pin
J4amieC30-May-07 0:58
J4amieC30-May-07 0:58 
GeneralRe: Populate combobox Pin
matjame30-May-07 0:48
matjame30-May-07 0:48 
AnswerRe: Populate combobox Pin
Shivaprasad D Atthigode29-May-07 23:38
Shivaprasad D Atthigode29-May-07 23:38 
GeneralRe: Populate combobox Pin
matjame29-May-07 23:50
matjame29-May-07 23:50 
GeneralRe: Populate combobox Pin
sujithkumarsl30-May-07 0:00
sujithkumarsl30-May-07 0:00 

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.