|
They got what error?
If the code is P/Invoking a function from user32.dll have they updated to the latest SP level for Win2K (sp4, IIRC)? It's unlikely that's the problem since it rarely changes (especially to the point of adding new entry points), but it's possible.
I should be able to help more if you post the exception that was thrown.
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]
|
|
|
|
|
The error message, as relayed over the phone and then sent to me via email is
JUKEBOX.EXE_ENTRY POINT NOT FOUND
X The procedure entry point get raw input oem of list
could not be located in the dynamic link library
user 32.dll
They won't have installed any service packs I reckon, so I'll get them to try that.
jukebox.exe is the program they are running, and it runs perfectly well, no reported errors, after this message. The joystick stuff is used to collect input from the coin mechanism, so if that wasn't working, I'd definately know about it.
Thanks for your help.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Sorry. Since you inserted a paragraph between your colon and the actual error it didn't really make sense.
It's hard to know what the problem is. Unless they're trying to P/Invoke an exported function - rare for EXEs and it requires custom load code to resolve relative addresses - the only entry point that matters is the main function (which is vastly different under different circumstances). Since the program proceeds to run that is just weird. The format of the error is also odd.
Could it be that the EXE is trying to dynamically load a function via its proc address and is reporting back an error? If they can, have them take a look at the process list while this error is displayed to see if the executable is even running. If so, the problem is with the EXE itself.
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]
|
|
|
|
|
I wrote the exe, and I definately don't try to dynamically load functions via proc addresses.
So if they check the process list when the error message comes up, if the program is in the list, the trouble is in the exe, right ?
Thanks again
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Yes, that would (most likely) be correct. Does the EXE statically bind with anything else? It shouldn't start if it does and the library isn't found, but it obviously is.
Are you familiar at all with the code that invokes the EXE?
At any rate, upgrading to the latest SP4 is not only a likely solution to the problem, but it'd be absurd not to for security and stability reasons (and no matter who's marketing says what, every OS needs patching now and again, but I would only expect the usual bandwagon crap from the Lounge or /. so I digress...).
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]
|
|
|
|
|
Yeah, either way I've recommended SP4 to them. I always patch, with the sole exception of XP SP2, which sadly kills our application on my notebook.
I'll recommend that and see how we go.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
How does your application die? IMO, fix the issue with XP SP2 but don't force your clients to stick with SP1. XP RTM support is ending soon, meaning they'll have to go with SP1 or 2. When SP3 comes out expect SP1 support to go the way of the dodo.
Is it because of the firewall? There are ways to add your application into the exception list programmatically. See Adding an Application (VBScript)[^] for an example, keeping in mind that the same automation objects script can use you can use through an RCW.
There's a few DCOM issues (i.e., fixes) that can cause problems, with workarounds posted online.
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]
|
|
|
|
|
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?
|
|
|
|