Author Archives: admin

Consuming ASP.NET 2.0 Web Services in Delphi for Win32

A couple of years ago I wrote an article Consuming C# Web Services with Delphi 7 Professional, and while the information in the article is still correct, it’s no longer complete, because ASP.NET 2.0 changed the rules a little bit.
Even if you follow the examples exactly on creating the web service in C# and in creating the consuming application in Delphi for Win32, no matter what you try to echo, the result will always come back as 0 for numbers or as an empty string for strings.

This is due to the fact that the C# web service is deployed on an ASP.NET 2.0 machine (which changed some of the ways WSDL was published compared to .NET 1.1).

The problem is caused by the fact that any .NET Web Service is using the document|literal binding. With ASP.NET 1.x Web Services, this was specified using element, but with ASP.NET 2.0 Microsoft has changed that and now specifies the style in the operation input and output nodes instead of the binding element. The Delphi Win32 WSDL Importer is not able to recognise this, and as a result the generated import unit is using the (for Delphi default) binding type of RPC instead of the .NET document|literal binding type.
CodeGear is aware of the situation, and is already working on fixing the problem in the Win32 WSDL Importer. In the meantime, there is a workaround available that you can use, namely manually specifying the ioDocument as InvokeOptions for the SOAP interface type, as follows:

  InvRegistry.RegisterInvokeOptions(TypeInfo(xxx), ioDocument);

Where xxx is the name of your SOAP interface type.

This line of code needs to be added to the initialization section of the generated Win32 import unit, and will make sure the parameters and result types are no longer empty when Win32 clients are talking to ASP.NET 2.0 Web Services.

 

source link:
Bob Swart 2/5/2007 10:04:56 AM (GMT+1)

Delphi Default IDE Shortcut Keys

Delphi Default IDE Shortcut Keys read more »

How to close Apps in Windows 8

There are 4 ways you can close metro apps in the new Windows 8:

  1. If you have a touch screen tablet or laptop, touch your finger on the top of the screen and drag it all the way to the bottom. It will minimize and move the app from your way.
  2. If you don’t have a touch screen but you use a mouse, do the same with the mouse. Point your mouse on the top of the screen and drag it all the way down. When you point the mouse to the top of the screen, you can see the cursor is changing.
  3. Press ALT key + F4. This will still work just like the traditional Windows programs.
  4. The killer option: use ALT+CTRL+DEL and kill the app using the task manager.

 

Windows 8 Activation Error: DNS name does not exist Error Code: 0x8007232B

Depending on where the installation media was obtained from (MSDN, TechNet subscription download,..) the activation wizard  by default will look for a Key Management Service (KMS) host on your internal network. It will not try to activate using the internet to reach Microsoft Activation servers.

The solution is to manually change the product key to a Multiple Activation Key (MAK) most likely provided with your MSDN or TechNet subscription.

To change the product key, use the slmgr.vbs script included with your Windows installation.

  1. Run the command prompt as an administrator
  2. Enter slmgr -ipk xxxxx-xxxxx-xxxxx-xxxxx-xxxxx where xxxxx-xxxxx-xxxxx-xxxxx-xxxxx is your product key.

Excel – How to make first character Uppercase, the rest lowercase?

make a quick test file
see what this is going to do. if its what you want, then try it in your original

– Right Click on your sheet1 tab and choose View code (or just hit Alt F11)
– cut and paste this

[vb]

Sub SentenceCase()
For Each cell In Selection.Cells
s = cell.Value
Start = True
For i = 1 To Len(s)
ch = Mid(s, i, 1)
Select Case ch
Case "."
Start = True
Case "?"
Start = True
Case "a" To "z"
If Start Then ch = UCase(ch): Start = False
Case "A" To "Z"
If Start Then Start = False Else ch = LCase(ch)
End Select
Mid(s, i, 1) = ch
Next
cell.Value = s
Next
End Sub

[/vb]

– then highlight your column (or whatever you want to change)
– then run the macro
– click tools
– click macro
– choose sentance case and run

Windows 8 RTM System Requirements

Today August 15th, 2012, Microsoft releases the RTM version of Windows 8 for MSDN and TechNet subscribers along with an evaluation version of Windows 8 Enterprise to early adopters and developers; if you want to give a try and not sure about minimum system requirements then this blog post helps you to determine whether your existing PC is capable to install it or not.

Microsoft has kept its promise that Windows 8 won’t require any more hardware than Windows 7. Grant George, Corporate VC of Windows Test repeats on Bulding Windows 8 blog what Microsoft has said in the past. So Windows 8 RTM works great on the same hardware that powers Windows Vista and Windows 7:

  • 1 GHz or faster 32-bit (x86) or 64-bit (x64) processor
  • 1 GB RAM (32-bit) or 2 GB RAM (64-bit)
  • 16 GB available hard disk space (32-bit) or 20 GB (64-bit)
  • DirectX 9 graphics device with WDDM 1.0 or higher driver
  • Taking advantage of touch input requires a screen that supports multi-touch
Got all… Then you can download the Windows 8 RTM and experience first-hand the beautiful, fast and fluid experience.

Code Translation for .NET (C#<->VB.NET)

This service will translate the code for you, just start typing the code or upload a file to convert it.
For now it only supports from VB.NET to C# and from C# to VB.NET.
To use it you can either:

  1. Start typing your code.
  2. Copy and Paste the code in the Code Text Box.
  3. Translate an entire file using the file upload.

Disclaimer: No copy is done whatsoever of the code that you either type, or upload for translation. Everything is processed in the server in memory and returned immediately to the browser.
If you want to give feedback on the translation, please send me an email including the code you used and the desired translation to me@carlosag.net.

http://www.carlosag.net/Tools/CodeTranslator/

see also:

http://www.developerfusion.com/tools/convert/csharp-to-vb/

Windows 8: HAL_INITIALIZATION FAILED.

“HAL INITIALIZATION FAILED”, means the hardware is not compatible with Windows 8 Operating System.

Windows 8 developer installation is supported on only below platforms.

 

 

How to unlock android phones after too many pattern attempts

Microsoft Exchange POP3 Service Stuck on ‘Starting’ State

The Microsoft Exchange POP3 service  stuck in an infinite state of  ”Starting” status after tried to manually restart it .

Try

  1. Open Task Manager. [Ctrl+Alt+Delete]
  2. Find the process “inetinfo.exe” .
  3. Click on ‘End Process’

The service should now start .