Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
B

Bob Stanneveld

@Bob Stanneveld
About
Posts
939
Topics
71
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Simulate transaction: non blocking insert / update
    B Bob Stanneveld

    Hello, We're currently implementing a warehouse management system with some customizations. One task is to plan the work in the warehouse by releasing waves of picking activities. The release is handled by a stored procedure. This stored procedure generates data on the amount of work that needs to be done, number of containers that are required, etc.. The planner needs to know this information in order to release the appropriate waves. So, in order to capture the required data, we have another stored procedure which releases all waves that are not yet released and rolls back the transaction once it's done. This roll-back is a guarantee. The problem is that during this 'simulation' other queries are blocked, which creates a performance problem. Is there a way to run the 'simulation' without blocking all other queries? Thanks in advance! Kind regards, Bob Stanneveld

    Database announcement database performance help question

  • datagridview button column - text not displaying [Solved]
    B Bob Stanneveld

    Hi, I was pondering quite some time over this issue. The NullValue property did the trick :) Thanks for posting this! Kind regards, Bob Stanneveld

    Visual Basic csharp tutorial question

  • Converting 32 bit bitmap image to 24 bit bitmap image
    B Bob Stanneveld

    Hi, Interesting that you found my reply of more than 6 years ago :). I can't help you here. Try posting your question in the C# section. Also try to elaborate on the ways that you've explored so far. Kind regards, Bob Stanneveld

    C / C++ / MFC graphics question learning

  • java.net.MalformedURLException when creating an URL object [Solved]
    B Bob Stanneveld

    Hi all, I'm using the Talend Open Studio ETL tool for my integration. Unfortunately, this tool doesn't have advaneced debuging facilities and I don't have access to a nice IDE. So after a couple of hours, pain and agony I discovered that the exception is thrown elsewhere in the code where a URL object is constructed with an empty string (a redirection URL should have been obtained from the reply from the server, but this is a different issue). Thank you all for your help. Perhaps I'll post another question soon :-D. Kind regards, Bob Stanneveld

    Java question csharp java database wcf

  • java.net.MalformedURLException when creating an URL object [Solved]
    B Bob Stanneveld

    Hi, Thanks for your reply. I don't get any error message... Here's the stack trace / exception printout:

    Exception in component tWebServiceInput_1
    java.net.MalformedURLException
    at java.net.URL.<init>(Unknown Source)
    at java.net.URL.<init>(Unknown Source)
    at java.net.URL.<init>(Unknown Source)
    at routines.CRMLogin.logonSSO(CRMLogin.java:97)
    at crmtest.testcrm_0_1.TestCRM.tWebServiceInput_1Process(TestCRM.java:338)
    at crmtest.testcrm_0_1.TestCRM.runJobInTOS(TestCRM.java:632)
    at crmtest.testcrm_0_1.TestCRM.main(TestCRM.java:506)

    The strange thing is that a bogus domain in the URL results in a correctly constructed URL object. When the correct URL is passed to the constructor (checked it with Internet Explorer), the exception gets thrown... Kind regards, Bob Stanneveld

    Java question csharp java database wcf

  • java.net.MalformedURLException when creating an URL object [Solved]
    B Bob Stanneveld

    Hi all, I'm picking up Java for an integration project. I'm trying to utilize to a webservice from our externally hosted CRM application. I got some code from the CRM web services guide to log on to the application. However, when constructing the URL for logon purposes, the URL constructor throws the java.net.MalformedURLException. See the following line of code:

    URL wsURL = new URL(pstrServer + "/Services/Integration?command=ssoitsurl&ssoid=" + pstrSSOID);

    This should construct the following URL: https://abc.crmapplication.com/Services/Integration?command=ssoitsurl&ssoid=SSOID. When I remove the second query parameter (ssoid) the URL is constructed fine. Does anybody know why the construction of this URL object fails? How can I set the multiple query parameters for the URL? Thanks in advance and I'm looking forward to your reply. Kind regards, Bob Stanneveld

    Java question csharp java database wcf

  • Surviving overtime
    B Bob Stanneveld

    Hi there, Working overtime totally depends on how you feel with it. Don't do it if you don't get energy from it. Not getting energy means that you'll never be fully committed to the project and you won't work the 110%. In the end you'll just burn extra hours. If you do get energy from your job, ask yourself whats more important to you: * Family * Hobbies * Money / Job * Etcetera Spending more time on the job means spending less time on the other things you like. For example, if you are a real family man, you won't feel happy about spending less time with your family and more time on the job. Also consider the risk of not getting the lump sum. You probably don't manage the scope and extra requirements mean extra overtime. What happens when an other developer gets sick? Even more overtime? When you decide to make the extra overtime, make sure you get the enough sleep. If you don't get it, you won't be able to work the full 110%, wich will be required to make the deadline. One last thing comes to my mind: since the project manager isn't any good when it comes to planning, why do you think this estimate is any good? Kind regards, Bob Stanneveld

    Behind every great black man...             ... is the police. - Conspiracy brother

    The Lounge collaboration question career

  • Detect system shutdown
    B Bob Stanneveld

    Thanks for the information! I'll try this to solve the problem. I have just one question. http://msdn2.microsoft.com/en-us/library/ms686227.aspx[^] says the following about the first parameter: [in] The shutdown priority for a process relative to other processes in the system. The system shuts down processes from high dwLevel values to low. The highest and lowest shutdown priorities are reserved for system components. This parameter must be in the following range of values. The value 3FF is listed as the highest value for applications in the table following the description. Shouldn't SHUTDOWN_LEVEL be equal to 3FF? Unfortunatly my monitoring service is doing more than just restarting the other services so the recovery options are not sufficient in this case.

    Behind every great black man...             ... is the police. - Conspiracy brother Blog[^]

    C# windows-admin csharp dotnet sysadmin help

  • Detect system shutdown
    B Bob Stanneveld

    Hello, Thanks for the reaction! Unfortunately this is no help since my application is not receiving any messages. So the SessionEnded event will never fire for my service.

    Behind every great black man...             ... is the police. - Conspiracy brother Blog[^]

    C# windows-admin csharp dotnet sysadmin help

  • Detect system shutdown
    B Bob Stanneveld

    Hello all, I've developed a monitoring service which monitors some services and starts them when they are not running. I found a problem when the server machine is shutting down and / or restarting. Windows is shutting down some services which are monitored before my monitoring service is shut down. Result is that my monitoring service detects that the service is not running and then starts the service. Windows continues to shut down and registry corruption is the result. I thought that detecting whether the OS (Windows Server 2003) is shutting down would be a nice solution. However this is not an easy task. The OnShutdown() method is not called in my derived class. Furthermore I don't know when this method is invoked. Is it when the shutdown is initiated before the services are stopped, or is it invoked when the OS is stopping the services? Is there a simple way to detect whether the OS is shutting down or restarting without responding to Windows messages / events? I'm using the .NET framework 2.0 Thanks in advance, Bob Stanneveld

    Behind every great black man...             ... is the police. - Conspiracy brother

    C# windows-admin csharp dotnet sysadmin help

  • Problem with XML
    B Bob Stanneveld

    Thanks for the information. I'll look into that!

    Behind every great black man...             ... is the police. - Conspiracy brother Blog[^]

    C# csharp com sales tools xml

  • Problem with XML
    B Bob Stanneveld

    Hello all! We are working with a partner to integrate customer systems with eachother through EDI. The partner has a solution with translates XML messages to EDI messages and vice versa. All is going well with the translation from XML to EDI. In fact, if you consider the XML standard, all is going well with the translation from EDI to XML. The problem lies within the XML support of the Microsoft MBS Nav software. The standard XML allows that the order of the attributes in an element varies with every message. For example: <xmlelement attrib1="1" attrib2="2"> is considered the same as <xmlelement attrib2="2" attrib1="1"> as far as the standard is concerned. MBS Nav however cannot handle these situations. I know that .NET 2.0 has decent XML support. I also know a thing or two about C# and .NET. What I don't know, if there is an easy way to generate a XML file with a predetermined order of elements and attributes. I heard something about xsd schemas, but I have never worked with these things before. Any pointers into a direction are highly appreciated! Thanks in advance.

    Behind every great black man...             ... is the police. - Conspiracy brother Blog[^]

    C# csharp com sales tools xml

  • Ahhhhhh
    B Bob Stanneveld

    Jeffry J. Brickley wrote:

    Parallel is first and foremost a thought process, not a compiler, or a tool.

    I totally agree. Somehow people think that multithreading will solve their performance issues. Without really understanding what's going on, people will produce bad designs - if designs are made at all - and that will result in a coding nightmare. Not even mentioning that this will even hurt performance. Parallel is more a design concept than a programming thing.

    Behind every great black man...             ... is the police. - Conspiracy brother Blog[^]

    The Lounge c++

  • Scott Meyers on C++ Complexity
    B Bob Stanneveld

    John Cardinal wrote:

    In our shop we've absolutely without a shadow of a doubt found that c# is a much more productive and maintainable language and it's cheaper to develop and maintain applications written in c# than in c++.

    That is only true for people who know how to write quality code. I spent a lot of time yelling to fellow students who wrote very very crappy code. All they replied was "Wtf are you talking about, it works doesn't it?". In C# you can make a huge mess of your application without even knowing it. I C++, if you even pass the compiler, anyone can see the bad results.

    John Cardinal wrote:

    Personally I love c# and wouldn't go back to c++ for anything, I understand how there are a lot of people here with a lot of investment in learning and becoming wizards in c++, but any programmer who has worked for more than a couple of decades will tell you that you just have to get used to letting go of a lot of knowledge on a regular basis.

    I don't think that a C++ developer has to let go a lot of knowledge on a regular basis. I have a better understanding of C#, garbage collection, and some base classes based on my C++ knowledge than any other student who didn't code in C++. They just take everything for granted. Just like the time when I was doing a network simulation application with a few students. They just didn't understand the complete network interface. I'm glad that there was a fellow C++ developer who understood the concept of cleaning up resources. If that guy wasn't there, the whole DirectX part would've failed... Behind every great black man...             ... is the police. - Conspiracy brother Blog[^]

    The Lounge question c++ com algorithms tutorial

  • Queue and Stacks
    B Bob Stanneveld

    :-D Behind every great black man...             ... is the police. - Conspiracy brother Blog[^]

    C / C++ / MFC c++ data-structures help question

  • Queue and Stacks
    B Bob Stanneveld

    I'll search Google for just a few dollars :-> Behind every great black man...             ... is the police. - Conspiracy brother Blog[^]

    C / C++ / MFC c++ data-structures help question

  • Queue and Stacks
    B Bob Stanneveld

    Money is the magic word here... Behind every great black man...             ... is the police. - Conspiracy brother Blog[^]

    C / C++ / MFC c++ data-structures help question

  • services
    B Bob Stanneveld

    Hello, This smells like polling. Do you really need to poll for data? What kind of value do you need to pass? Is this some kind of selection criterium or is this the amount of data that you need or what? If you want to do database intensive tasks, you can try replicating the database and do all the intensive stuff on a dedicated server. Behind every great black man...             ... is the police. - Conspiracy brother Blog[^]

    C# database question

  • Plugin Engine (design question)
    B Bob Stanneveld

    Hello, This can be done, although it is not an easy road you want to travel.. Here late binding is not enough, but you also need to create code at runtime. I don't know exactly how to do this. Also several problems arise: what if more than one replacement for the surface class is found? What to do with errors that the plugin might cause? Etc. But I wonder, why do you want to give complete control over your application to some third party? Behind every great black man...             ... is the police. - Conspiracy brother Blog[^]

    C# question design oop tutorial announcement

  • C# and C/C++ capabilities
    B Bob Stanneveld

    Hello, In C# you cannot do everything that you can do with C++. Multiple inheritance is one thing and template meta programming is another. Not that these things are used on a daily basis... It all comes down to the right tool for the right job. C++ for example is good for writing core parts of an OS due to it's nature in C. C# on the contrary is fantastic for writing pluggable architectures, database applications and web apps due to its simplicity and rich framework that is shipped with the compiler. IMO C++ is good and C# is good. None is best, but one solves a particular problem better than the other. In short: the righ tool for the right job. Behind every great black man...             ... is the police. - Conspiracy brother Blog[^]

    C# csharp c++ question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups