|
From what I understand they are allowed but things at the moment are so tied down to Microsoft's way of things that they implemented stuff on GTK because a it was easier and b provided more flexibility (GTK was more established on different platforms and had more flexibility I think). I've got a feeling that they may have simply mapped the critical Windows.Forms to the GTK namespace.
You can from what I remember of my experimentations run most Windows.Forms apps on Mono without any adjustment but there are a few classes etc which are deeply tied into MSs way of things that they don't run. (Yet again) from what I remember the comments were that yes there are some problems with simply copying and pasting code across but there are some quite straightforward workarounds which will work in both Mono & MSs implementation so as long as you know of these before hand you should be OK.
Of couse most people writing for Mono use the GTK etc implementations because they're more used to coding to those in C++ etc and they're stuck in their ways.
But as far as I know there isn't a legal reason why Mono can't implement the Windows.Forms classes.
|
|
|
|
|
I understand that, but for a release build to contain the original variable names is just daft. Why not do a compile-time replacement of the names with the shortest possible names to at least obfuscate your code and make the IL version as short as possible?
|
|
|
|
|
to create work for people writing obsfucators, of course.
Decompilation is very useful, for example, if you need to see what the framework is doing. You don't get the source like you did for MFC, but with a decompiler, you do.
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: 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.
|
|
|
|