Click here to Skip to main content
15,888,255 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi guys, I need your helps. Right now, I working on a C# project, which is compression data using Huffman methods. Since there isn't a code for Huffman encoding and decoding (string) I decide to create a DLL file from vb6.0 file. I have try the DLL file in different project, and it is work well.

Here is the snippet of my project :
OutHuf = OutHuf + " " + Convert.ToString(Huff.EncodeString(ref DCT.RLEString));

DCT.InputDecomp = deHuff.DecodeString(ref OutHuf);//error on this line


when I debug the project, it return with error that said : index out of array exception, Additional information: Subscript out of range.

anyone have same problem? thanks for your response
Posted

I think you need to debug the source code inside the VB6 dll.
The error is coming from there, so the code lines that you have pasted in the question are really not going to help.
 
Share this answer
 
Comments
Member 7955849 27-Jul-11 5:56am    
thanks for your response. but I don't get it. How I can debug the source code inside .dll file?
Abhinav S 27-Jul-11 6:47am    
Ok I thought you had the source code.
Member 7955849 27-Jul-11 6:50am    
oh, I have the source code which I use to build the .dll file. But I dont understand how to run the code in vb6 if I need an input that will be available in my c# project
Mehul M Thakkar 28-Jul-11 3:34am    
Why don't you write the logger with VB6 code, which can provide you debug information line by line. We usually do like this.
Could could always reflect into the dll with the famous reflector from RedGate and then change your language to C# and export the code. Then you'll be able to work with the dame code in C# and not have to worry about vb
 
Share this answer
 
Comments
Member 7955849 27-Jul-11 23:26pm    
hi there. I have already downloaded the software, and I still don't know what to do. I have open my .dll file, and then what should I do? I have click the decompile button, but nothing happen there. can you help me?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900