Software Development Network Logo
  • .NET Development
  • Microsoft ISV
  • Visual FoxPro
  • Visual Studio
  • SQL Server
  • Audio and Video
  • Visual C++
  • Windows Vista
  • SharePoint Products
  • Smart Devicet
  • IE Development
  • VS Team System
  • Game Technologies
  • Visual C#
  • Visual Basic

Software Development Network >> Darren Ford AUS's Q&A profile

Darren Ford AUS

Member List

GTrz
narukrish
vsvinodvinodkumar
karen_tgha
narend
syhzaidi
danych
Steph_Job0
michaelp
Gregor Suttie
UK_2006
bdot
Soulia
Rajesh batchu
andien_geo
Sam Loud
Kama
KD Hallman-MSFT
SHBEHM
sami27913
Only Title

Darren Ford AUS's Q&A profile

  • .NET Development incoding arabic language to hexa(important)

    my application should send texts in arabic language through http protocol .. and as we know http does not support arabic language ... so I have to incode the texts into hexa ... how can I do that ... I have a source code but in VB.net can any one convert it to c#.net or can any one help me to write the incoding function ....   this is the VB.net code   Public Function ArabicHex( ByVal b() As Byte ) As String Dim s As String , h As String Dim i As Integer i = 0 s = "" While i <= UBound(b) h = Microsoft.VisualBasic.Right("00" & Hex(b(i)), 2) i = i + 1 h = Microsoft.VisualBasic.Right("00" & Hex(b(i)), 2) & h If h = "000D" Then h = "" ...Show All

  • Visual Studio MSI Deployment Issues

    I've successfully created my TemplateSetup.msi file. However, when installing my template from the setup.msi file, I get a popup stating: The file aAlpha.config could not be foundwithin the project templates. Continuing to run, but the resulting project may not build properly. This file is in a folder called Config. The folder is copied over successfully but aAlpha and the other config files located in that folder all pop up the same error message. I have config files located in the root of the website and they are also giving the same pop up message of not being found. I also get the message for my MyMaster.Master page, but the MyMaster.master.vb file is copied over without any issues. Does anyone know why this would be hap ...Show All

  • SQL Server Help translating Access SQL to T-SQL

    Can someone tell me what this Where clause (from MS Access) should be T-SQL Basically, if the value in the [reason] field contains 'DIST' then the row should return as long as the value in [movement] is greater than or equal to 1. Where IIf ( [reason] LIKE '%DIST%' , Val ( [movement] ),1 )>= 1 Thanks! Replace the IIF() with Case: Case when [reason] like '%DIST%' then... Am I correct in intrepreting Val() as converting to a number (saves me a google) Then you want to use Convert(). Final syntax: Where Case When [reason] Like '%Dist%' then Convert(int, [movement] ) Else 1 End >= 1 You could also use NULL with the Else case.     ....Guess I'm a s ...Show All

  • .NET Development Sudden unexpected CLR error

    I have a client running several winforms application that I developed for him in VS2005 using the.NET v2.0 framework. Yesterday, all of the applications suddenly stopped working, giving him the following error: ".NET Framework initialization error. Unable to fin a version of the runtime to run this application" Clearly something has gone wrong. We have tried repairing and re-installing the runtime--no luck. We have looked in the registry, and he seems to have the correct version installed and referenced (v2.0.50727), but still, no luck. Does anyone have any ideas what might cause this Thanks in advance. -Kevin Kevin, Try running http://www.sysinternals.com FileMon on the br ...Show All

  • Smart Device Development Repainting whole screen on application exit

    Hi When I exit my application the OS does not refresh the menu bars. Both the start menu bar on the bottom of the screen and the "battery" bar don't refresh. Is there any command I could issue before exiting my application so that all screen components are refreshed on exit I use C++ so no C# code please. many thanks, Martin Malek Hi Alex I tried your other suggestion but it didn't work either. I actually allready do start a window of my own for my application to run in but I did create an extra window and killed it just before the application exits. The results are the same. The two bars still hold old graphics and don't get refreshed at all. Do you have any other suggestions I could try Isn't there any way to schedule a ...Show All

  • SQL Server what s wrong with this bcp script pls

    I am using sql 2000. exec master..xp_cmdshell 'bcp mozaikDB737.dbo.SearchOutput1 out SearchOutput1-CSV-File -T -c -Uusrtest -Ppassword -Sinstance'   error: Error = [Microsoft][SQL Native Client]Shared Memory Provider: No process is on the other end of the pipe. NULL SQLState = 08S01, NativeError = 233 Error = [Microsoft][SQL Native Client]Communication link failure NULL   thanks a lot Hi Tutus From you error message, i am just making guessing (if you are in the Client/server model)that your connection to the server is broken. Just check the connection first or reboot the client system. May help you. Gurpreet S. Gill ...Show All

  • Visual Basic Out Parameter

    Hello. A question please. In .net if I create a method that returns a whole record of a file sending a key, the out parameter I must declare "ByRef". Is it true Thanks... That's correct - vb doesn't (yet ) support a purely out parameter, so you need to make it ByRef. That will return whatever value is assigned to it inside the method. So your function definition would be something like: public GetRecord(ByVal FileNumber as Integer, ByRef Key as string) as string ...Show All

  • Visual Studio 2008 (Pre-release) How to host WPF content in Win32 API applications (non-.Net)?

    Hi, I have a Win32 API application (not a .Net application) and would like to place a control on the main window to display loose Xaml or XBAPs. I guess that I must use the WebBrowser control. But how exactly should I use it There is some docs in MSDN regarding the IWpfHostSupport interface but it's too brief and has no sample. Can anyone provide me with links to samples or thorough description of how to use that interface Thanks, Igor Hi Igor, I highly recommend this book http://www.manning.com/sivakumar/ I purchased it and was able to get a very large native C++ application using MFC to host WPF controls using the approach outlined in section 7.4 of the book - Hosting a WPF control i ...Show All

  • Visual C++ C++/CLI ICE while passing a member function pointer to template argument

    The original code that caused ICE was different, but I narrowed it down to: #include "stdafx.h" using namespace System; struct Dummy { void bar() {} }; template < void (Dummy::*pmem)()> void foo() { void (Dummy::*memfunc)() = pmem; } int main(array<System::String ^> ^args) { foo<&Dummy::bar>(); return 0 ; } _Winnie C++ Colorizer The ICE occurs at line 14. If I remove line 19, everything's ok. Note, that this code causes no problems in native C++ compiler and is C++ ISO conformant (well, except for System::String^ and array<>^ part ;)) Good catch. I can see the ICE ...Show All

  • Software Development for Windows Vista starting application from setup - not as administrator

    Hello all: When my application is run for the very first time at the end of the installation process, it is running as administrator, because the setup itself was automatically detected and elevated by Vista. Is there any option to run it from setup at usual (medium) privilege level I have tried manifest with requestedExecutionLevel of asInvoker - to no avail. TIA OTNS Here is the answers I have got from MS: your application running with high privilege can not directly create a low privilege application. The best way to do this today is to first create a medium privilege exe that launches your high and low privilege apps. The medium privilege exe can create a low privilege thread and t ...Show All

  • Visual Studio Team System VS for DB crashes on Vista Ultimate

    AFter I've upgraded my OS to Vista Ultimate, VS for DB Pro crashes consistently when I am importing DB schema or opening an exisitng project. The same happens for both 2000 and 2005 schemas. I've patched with VS sp1 and the update for Vista to no avail. Please help!!!! I am having the same problem, except DB Pro crashes whenever I update my database project schema and attempt to save changes to my local instance of SQL Server. It is also crashing when I build my project solution. If the problem is the December 2006 SP2 CTP, which I do have installed, then how do I get around the problem in which Vista is informing me that SQL Server 2005 is incompatible and requires service pack 2 When will S ...Show All

  • Software Development for Windows Vista How to get(set) cursor position in my service before logon?

    Hello, I noticed that an interactive service cannot run in vista any more. This issue is good to security, but bad news for me using an interactive service. My service is simple and needs only 2 functions - one is getting cursor position and the other is setting cursor position. These 2 functions can be implemented through one other user application after user logon. But before user logon, how can I do this job Thank you in advance. Sweating Egg;; Dear Matthew, That's correct. I want to know how to check cursor position when there is no user session. Dear Aaron, As I mentioned early, almost all of our SW users are a single user for their computer. I think th ...Show All

  • SharePoint Products and Technologies Supplying a default value of a parameter for a class that can't be instantiated directly.

    I'm calling a webservice method that requires an XmlElement as a parameter. For example: public void MyMethod(XmlElement MyXmlElement); XmlElement objects can't be instantiated directly. In code this is no problem as I can grab the XmlElement from my XmlDocument, however I don't see a way to do this using the BDC. Any help would be greatly appreciated. COmplex Paramenter types would be possible but you have to be crafty in your XML for the BDC... I played with it a bit and got some to work but never quite as good as I would like. Typically in scenario's like this, I build a facade web service that has the methods that I want to call and the simple input types, this service then marshals ...Show All

  • Architecture Hosting Long Running Batch Processes In IIS 6

    I am currently architecting a framework that will depend on IIS to host batch oriented code. The design will use a disconnected model with a controller (that lives remotely) and checks back periodically via an ASMX layer. When invoking the actual batch execution code the ASMX call will spawn as many threads as it is configured to run and immediately respond (hence avoiding any long running HTTP connection). I like the idea for a number of reasons, obviously I get to use a standard communication protocol to invoke the batch code across tiers and I can even incorporate standard load balancing routines. I'm also able to use the same communication end points to check back in on the threads as they are executing. There are also a number of o ...Show All

  • Visual Studio Express Editions Passing an object collection to a procedure ByVal

    Given: Private MyButton As New Button Private ButtonCollection As New Collection InitializeButtons() Sub InitializeButtons() 'Calling Context ButtonCollection.Add(MyButton) SetupButtons(ButtonCollection) End Sub Sub SetupButtons(ByVal Buttons As Collection) For Each Button As Button In Buttons With Button .Property = Something End With Next Button End Sub From MSDN: Question: Does this mean that the procedure will change the button properties (something) in the calling context If so, isn't this the same as ByRef From MSDN: Reference type (contains a pointer to a class or structure instance) ...Show All

©2008 Software Development Network