|
No, our clients can use SP2, in fact everyone else here at work can, too. The firewall broke our app, but we figured out how to fix that. However, my notebook was the only machine on which, once we applied all the same fixes we applied elsewhere, and everyone here looked at it, the application continued not to work.
Maybe when SP3 comes out, I'll try again, and see if progressive fixes have solved my problem.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Is there any .Net method that compares a mask to a file name and returns if they match ?
I'm aware of Directory.GetFiles(), I need to compare objects in memeory not on disk.
i.e. compare "This???Match.*" to "ThisIsAMatch.txt"
thanks
|
|
|
|
|
Regular Expressions.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
I am absolutely useless at Math, always have been, always will be. Despite this I continue to write software. I needed a way to reverse a decimal no matter it's original sign so that if it was positive it would become negative to the same absolute degree and vice versa. Zero remains zero.
To accomplish this I wrote this function:
<hr><br />
private decimal Reverse(decimal dIn)<br />
{<br />
if(System.Math.Sign(dIn)==0) return 0M;<br />
if(System.Math.Sign(dIn)==-1) return System.Math.Abs(dIn); <br />
return 0M-dIn;<br />
}<hr>
I couldn't find a built in function to do that, is this crazy or really the only way to do this?
|
|
|
|
|
how about return -dIn ? Surely - -1 = 1 ?
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
P.S. The one vote was not me, you got my 5, partially because the 1 had no reason that I could see, and partially because the line 'despite this I continue to write software' made me smile.
|
|
|
|
|
I've long ago given up trying to understand the vagaries of the voting system, but it was probably a vote to have me stop writing software. I've always been privately amused at how little math you really need to know to write software, non-programmers think it's the be all and end all of computer programming, I just look it up, but I guess this was just something so simple that it isn't really documented anywhere. Anyway, never being afraid to look stupid I just thought I would ask here!
I didnt know you could just stick a negative sign in front of it like that, but if that's the case and zero doesn't throw an exception or anything then that rocks and you rock as well!
Thank you!
|
|
|
|
|
I have a remote object with one method that takes roughly about 10 minutes to finish. I created a Windows Service to host the remote object using TCPChannel, Binary formatter, and SingleCall. If I stop the service while a client has invoked the remote method I want the service to wait until the remote object is done doing its job. How do I control this behaviour?
|
|
|
|
|
Why C# instead of Visual Basic.Net? They both run at the same speed. People in the Code Project seem to encourage C# development but not VB.Net. Why?
|
|
|
|
|
I think it's really a matter of taste, probably depending on what you started programming with.
People with a C/C++ background are likely to use C# because of the similar syntax, while people who were doing VB/VBA in the past are likely to use VB.NET IMHO.
mav
|
|
|
|
|
1. In actual fact, the C# compiler generates faster IL than the VB.NET compiler ( that's according to a pro VB.NET guy I got into a big argument with, so I doubt he'd say it without feeling sure it was true )
2. VB.NET is crap. I've had to use it a bit recently, and I am astounded by some of the terrible things it does or does not do. In fact, another pro VB guy told me that VB.NET originally was a good .NET language, and all the VB6 guys were up in arms about breaking existing code, so Microsoft had to turn it into a mess, and add various hacks to make it possible to write nice code in VB.NET, but of course everyone who uses it tends to use the old, bad VB6 syntax.
3. It has no future. Microsoft needed to keep supporting VB for now, but consider this. C# has been submitted to an external standards body, C# does not have a bad name ( VB is syonymous with people who can't program and bad code, right or wrong ), and Microsoft simply does not need to be pushing two languages. I doubt VB will be around for much longer.
4. C# was designed from scratch, VB had OO, etc. bolted onto the side of the worst language in history. Which is more likely to have been designed well ?
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Christian Graus wrote:
bolted onto the side of the worst language in history.
Oh really? Worse than Intercal[^]?
|
|
|
|
|
If two viruses exist, and virus A does the most damage, but virus B is infinitely more successful in propogating itself, so that virus A infects 3 machines world wide, and virus B infect 300,000, which one is worse ?
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Ahh.. you make a good point, although from another standpoint you could bring in all the stats of how many corporations were able to save money by hiring less knowledgeable Visual Basic (or even Java) programmers to do in-house stuff quickly and cheaply.
|
|
|
|
|
Assuming there was a case for this before, it's no longer true. C# is just as fast to develop in, in fact I find it faster, because the language does not fight me.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Actually, you're referring - it would seem - to VBScript (which I currently sustain), but VBScript itself is not the problem. It is merely a language that drives an engine (the Windows Script Host, for example) that calls into an automation server like Internet Explorer, which is what contains the problems to which you refer. Script itself has only had one security bulletin in several years, IIRC.
Besides, what could be worse than a language[^] you can't event see?
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
What are the code sizes of the following?
IL_0000
IL_0002
IL_0006
or
IL_0000
IL_0002
IL_0003
IL_0007
How does one "add" it up. How does the IL_XXXX relate to the code size?
thanks for your time -
|
|
|
|
|
What do you mean by code size? Those are line labels.
Charlie
if(!curlies){ return; }
|
|
|
|
|
Thanks for your reply.
Why then are they not sequential? Why for example does IL_0000 have IL_0003 next?
What makes the 'code size' the size it is?
|
|
|
|
|
Like the other post mentioned they are only labels. ILDASM names them with an offset hint, but it has no semantic value, and doesnt take up space. Try for yourself, insert a few nop calls at the beginning of the method with jumps, the result of both methods will be the same.
top secret Download xacc-ide 0.0.3 now! See some screenshots
|
|
|
|
|
leppie- thanks for your reply
Why then are they not sequential? Why for example does IL_0000 have IL_0003 next and not IL_0002?
What makes the 'code size' the size it is?
|
|
|
|
|
|
Hello all,
i made a runtime dataset and trying to delet a row from this data set is it update the row index in the dataset?
Thanks
hay
|
|
|
|
|
Not sure if this is the answer your looking for but:
DataSet dSet = new DataSet();
//fill table called "MyTable" here...
dSet.Tables["MyTable"].Rows[x].Delete();
|
|
|
|
|
problem:
1)how to create an UDP server for multiple clients.use multithreading or something else?
2)how to send messages over UDP to many servers at the same time.
thanks
|
|
|
|
|
I have a windows application in c#. I am required to create an html file and save on a certain directory.
At the moment I am writing the file using streamwriter.
But I do have a problem with the images in the file in deployment.
I notice that I have available when I add an item to the project to add html page. Does anyone know if that can be dynamically altered? or anyone have a better way to add an html page?
thank you
tephra
|
|
|
|