|
Christian Graus wrote: to create work for people writing obsfucators, of course.
Not only does it let you see what the framework is doing, it also lets your customers see what you are doing. Suppose you are charging for the interface software to some proprietary hardware - with C# your customers can see exactly how the interface works and write their own for free. Goodbye revenue stream!
This has put me off using C# for any serious work that I will be sending to customers. I think I will be sticking with C++ and MFC for the foreseeable.
|
|
|
|
|
Steve_Harris wrote: This has put me off using C# for any serious work that I will be sending to customers. I think I will be sticking with C++ and MFC for the foreseeable.
Why? Unless you are doing serious reflection, there are ways round this using tools like Obfuscators.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Why should I have to buy one just to protect my IP? If I compile a C++ program it is immediately pretty well protected.
|
|
|
|
|
Steve_Harris wrote: Why should I have to buy one just to protect my IP? If I compile a C++ program it is immediately pretty well protected.
But not bulletproof. While it is protected better, it still isn't totally foolproof. All code is capable of being reversed.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Steve_Harris wrote: it also lets your customers see what you are doing
Sure, if you have the sort of customers who would be inclined to look.
Steve_Harris wrote: I think I will be sticking with C++ and MFC for the foreseeable
The obvious alternative is to write C++ DLLs that hide your proprietary stuff and call them from C#.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: The obvious alternative is to write C++ DLLs that hide your proprietary stuff and call them from C#.
What about C++/CLI? Isn't that managed and unmanaged code in the same assembly?
(Just curious... )
-alwinus
|
|
|
|
|
C++/CLI is managed code, so it also can be decompiled. It can be a combo of both, but the unmanaged part is the only way to write stuff that can't be decompiled.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I have 2 binding lists (say A and B), i need to compare the contents of A to B to see if they conatin the same items.
How can i do this?
|
|
|
|
|
You will find good number of information on the following site
http://www.thescripts.com/forum/thread231103.html
Regards,
Jaiprakash M Bankolli
jaiprakash.bankolli@gmail.com
http://jaiprakash.blog.com/
|
|
|
|
|
hi,
I am saving some content in an XML file and and i am passign a XMl file name as a parameter to some function..
if i give normal file name it is creating a XML file.
but if I give some extra charcters like this in a file name &,",' it is giving error like below
"The & character,hexadecimal vale 0x26 can't be included i a filename"
is there any way to handle extra chracters.
pls help me.
-- modified at 5:22 Thursday 12th April, 2007
|
|
|
|
|
71 wrote: The & character,hexadecimal vale 0x26 can't be included i a filename"
The error is correct. Try to create a file with that name in the file system and you'll find it's a limitation of windows. In fact, that's a good way to get a list of characters you need to remove or not allow in your filenames.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Well, actually '&' is a legal character in a Windows filename.
Illegal characters are: '/', '\', ':', '*', '?', '"', '<', '>' and '|'.
|
|
|
|
|
hi,
but how can I handle those extra chracters like
if & replace with &
if " replace with "
help me pls
|
|
|
|
|
hi,
foreach (char c in FileName)
{
switch (c)
{
case '&':
FileName = FileName.Replace("&", "&");
//"<","&"
break;
case '>':
FileName = FileName.Replace(">", ">");
break;
case '<':
FileName = FileName.Replace("<", "<");
break;
case '"':
FileName = FileName.Replace("\"", """);
break;
case ' ':
FileName = FileName.Replace(" ", " ");
break;
case '@':
FileName = FileName.Replace("@", "@at");
break;
see the code i am replacing the exttra charcters like this but still i am gettign error.
|
|
|
|
|
This code is way too messy, the string.Replace method will do this much nicer.
What's the error you're getting, and what's the filename ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hi,
i am giving file name as G&avi this is in somevariable var1;
forexch(char c in var1)
{
switch(c)
{
strifn newname="";
case '&':
newname=var1.replace("&","&");
break;
}
}
(i am replacing a & with @amp;)
)
|
|
|
|
|
71 wrote: forexch(char c in var1)
{
switch(c)
{
strifn newname="";
case '&':
newname=var1.replace("&","&");
break;
This is ridiculous. All you need is the replace statement ( although this particular one does nothing, it replaces & with &.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
<company>
<employee name="Prasad&Hiremath">
o/p:
Error wright
<company>
<employee name="Prasad&Hiremath">
o/p:prasad&hiremath
i want like this pls
*/
hi i have placede xml codes it is not shown here
|
|
|
|
|
hi,
but how can I handle those extra chracters like
if & replace with &
if " replace with "
help me pls
|
|
|
|
|
That is fine but my question is why do you want to store a file name with special character as most of OS doesn't allow that !!!
Regards,
Jaiprakash M Bankolli
jaiprakash.bankolli@gmail.com
http://jaiprakash.blog.com/
|
|
|
|
|
hi,
foreach (char c in FileName)
{
switch (c)
{
case '&':
FileName = FileName.Replace("&", "&");
//"<","&"
break;
case '>':
FileName = FileName.Replace(">", ">");
break;
case '<':
FileName = FileName.Replace("<", "<");
break;
case '"':
FileName = FileName.Replace("\"", """);
break;
case ' ':
FileName = FileName.Replace(" ", " ");
break;
case '@':
FileName = FileName.Replace("@", "@at");
break;
see the code i am replacing the exttra charcters like this but still i am gettign error.
|
|
|
|
|
OK - this code is way too messy and shouldn't be used. More importantly, you are replacing illegal characters with illegal characters. For instance, you are replacing an & with an & - consider replacing it with a space or an empty string or even an underscore.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
hi,
since i am pasting the xml code u are not able to see it i am replacing
[""""& with [&""""]'
e.g: & with """"&"""
foreach (char c in FileName)
{
switch (c)
{
case '&':
FileName = FileName.Replace("&", "&");
break;
case '>':
FileName = FileName.Replace(">", ">");
break;
case '<':
FileName = FileName.Replace("<", "<");
break;
case '"':
FileName = FileName.Replace("\"", """);
break;
case ' ':
FileName = FileName.Replace(" ", " ");
break;
case '@':
FileName = FileName.Replace("@", "@at");
break;
}
}
|
|
|
|
|
I have a feeling that this needs some thinking as special character with special character could lead to some unknown exceptions !!!
I have another question why you want to use replace then ?
Let me get back to you !!
Regards,
Jaiprakash M Bankolli
jaiprakash.bankolli@gmail.com
http://jaiprakash.blog.com/
|
|
|
|
|
hi,
sicne i am placing the xml code u r not able to see it.
this is my gmail :prasad.gch71@gmail.com
can u come online
or say me how can i place the HTMl codes on this forum.
i am pasting but it is not visible for u.
|
|
|
|