|
No . I don't want anybody to see my code.It is not a case of IP or something like that
|
|
|
|
|
If its something ground breaking, get a patent. You wont be able to stop someone 100% from reading your code.
Why are you worried about people seeing your code anyways?
Regards,
Gareth.
(FKA gareth111)
|
|
|
|
|
No commenting
|
|
|
|
|
Don't say some bullshit if you don't know the answer.
Every company is concerned about their source code.
I am creating a product by after a lot of hardwork.
Someone simply decompiling my code a creating a new version of it.
what is the meaning in that.
|
|
|
|
|
And that's why company's get patents.
Regards,
Gareth.
(FKA gareth111)
|
|
|
|
|
You do know that IP stands for Intellectual Property, don you? That would be the only thing that you would really want to protect in the first place.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios
Discounted or Free Software for Students:
DreamSpark - downloads.channel8.msdn.com
MSDN Academic Alliance - www.msdnaa.com
|
|
|
|
|
If you happen to be knowledgable in a programming aspect you can always write an outstanding article and if you are chosen in the CodeProject monthly competition for best article you can get one for free (depending on language and month).
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios
Discounted or Free Software for Students:
DreamSpark - downloads.channel8.msdn.com
MSDN Academic Alliance - www.msdnaa.com
|
|
|
|
|
Hi,
The code below gives this error:
Cannot implicitly convert type 'System.Collections.Generic.List<DataAccess.clsSetting>' to 'DataAccess.clsSetting'
Any thoughts please?
DataAccess.clsSetting s = DataAccess.clsSettingDB.GetSetting(strSelectedItem);
'in case you would like to know what GetSetting does:
public static List<DataAccess.clsSetting> GetSetting(string strSelectedItem)
{
//some code here...
return genericlist
}
|
|
|
|
|
DataAccess.clsSettingDB.GetSetting returns a List<DataAccess.clsSetting> and you are trying to assign to a DataAccess.clsSetting object. That is the error.
|
|
|
|
|
Hi Guys,
A vendor of ours has given me the source code for one of his applications. This is a MFC based form (in VC++) which uses the vendor's own .lib file for its actual functionality (i.e. actual communication with device).
Now I need to make a similar application but in C#. For this I need to take the LIB file as provided with the source code, and use it in my C# application.
But I cannot find anyway to do this. C# only binds DLLs, right?
I tried to wrap the LIB in a DLL (MFC shared), but since i really dont know how the lib is made, and moreover, the lib gives out some enum datatypes from its functions (as paramter & return types), i am not able to successfully create this DLL.
Does anyone know any other way for using a C++ LIB in a C# App??
Thanks a lot guys!
|
|
|
|
|
Compile the C++ code with the CLR compiler flag, also add some managed C++ wrappers in there to expose to .NET. Simply reference the new assembly (yes, its an assembly now, not just a DLL).
|
|
|
|
|
I'm working on an open-source project, writing a program to convert MathML (from, say, Word 2007) to C# code. I need help with coding and therefore would like to ask whether anyone is interested. Details of the project can be found here: http://www.codeplex.com/mmlsharp[^]
|
|
|
|
|
It seems you already have 2 active developers. I have been working solo on my opensource projects for more than 5 years, and never needed help (yes, time is what I do need! ).
I just downloaded the code. Is that all of it? I dont understand why you need help with coding the project. Maybe you just need to be more patient
|
|
|
|
|
Well, there are lots of really nasty tasks - some of the features I'd like to have are hell to implement. BTW, what do you mean by 'viral license'?
|
|
|
|
|
You may get more interest using a less viral license
|
|
|
|
|
Dear all,
I'm stuck once again and calling on you for aid. I want to convert a byte array to an arraylist. I managed to write some code that will put my byte[] data in a file :
Byte[] result = (Byte[])foundRows[0]["bin_file"];
using (BinaryWriter binWriter = new BinaryWriter(File.Open("@C:\test.txt", FileMode.Create)))
{
binWriter.Write(result);
}
This works fine but I would like to write it to an ArrayList so I can process it from there. Reading it back from the file into an ArrayList seems unlogical for me and unneccesary too.
ArrayList list = new ArrayList();
StreamReader se = new StreamReader("@C:\test.txt");
string line = se.ReadLine();
while (line != null)
{
list.Add(line);
line = se.ReadLine();
}
se.Close();
Can somebody point me in the right direction on how to tackle this problem ? With other words, how can I put my byte[] data directly into an ArrayList.
Kind regards,
Rick
|
|
|
|
|
Arraylists are a bit old fasioned these days. You should be using some form of generic list instead.
2 easy ways.
byte[] byteArray = new byte[5];
List<byte> byteList1 = byteArray.ToList();
List<byte> byteList2 = new List<byte>(byteArray);
1) In .net 3.5, there is a ToList() extension method on arrays.
2) One of the constructor for List<> takes an array.
Simon
|
|
|
|
|
You have an array and need to represent it in a ArrayList. Right ? You can use List<T> .
byte[] yourArray = ...;
List<byte> list = new List<byte>(yourArray);
This will insert all the array elements to the list. To get items, you can iterate items on the list.
|
|
|
|
|
I have to convert some Java code to C# and I've stumbled over the Error class. I have been told already that the use of Error instead of Exception allows to bypass catch-clauses for all Exceptions. Now C# doesn't have a direct equivalent to Error, AFAIK. Also at the place of the Error the internal state of the program is corrupted, so abortion makes sense. Am I supposed to use the Exception or even InvalidOperationException then?
|
|
|
|
|
jluber wrote: Am I supposed to use the Exception or even InvalidOperationException then?
It doesnt matter, but a more specific Exception type is preferred. Main thing it to make a clear message so the user can see what went wrong.
|
|
|
|
|
Will do so. Thanks for the clarification!
|
|
|
|
|
Hi,
I have created a c# windows project and in same solution i ve one setup and deployment project also.
what i need is to ask for the serial key before installtion and if the entered key does match with my predefined logic then installation must be aborted.
i ve tried Customer Information dialog in Setup project's User Interface but i want to varify the Serial Key with my own logic and length of the key may vary, that i could not do with it.
Waiting for some helpful reply....
- Dev
|
|
|
|
|
hi guys
i have a dataset named mds in my c# project 2005, there is an datatable named mdt in this dataset and there are four columns in this datatable ,
but after getting data from database when i populate this datatable from dataadapter.fill(mdt) method so values are not there in the table though it shows the number of rows , why is that ?
thanks in advance
hello
|
|
|
|
|
Could you please post the code how you try to achieve this. There might be a slight hickup somewhere along the lines in your code.
Cheers
|
|
|
|
|
I wish to be a Prophet
If i was one, i was going to tell you exacly what is wrong, why dont you post your code and we will tell you what went wrong.
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|