kennm's Q&A profile
Visual Studio localization in crystal report
Hi all I want to ask if crystal report support arabic - hindi numbers or not i couldn't view arabic (hindi) numbers on my report wich made by crystal report any help plz thanx Hanafy.A.Behairy ...Show All
Smart Device Development What it takes to Convert Win32 ActiveX Control to Mobile ActiveX
We have some ActiveX controls working on Win32 platform. I wonder if hat it takes to adapt them for Mobile Devices . Should we use Embedded Visual C++ 4.0 or 3.0. Any recomendations. Note:I have spent 2 days on this one month ago there were alot of missing libraries for compiling such as WinHttp is not there for Mobile in Visual Embedded C++ 4.0 Hi Michael; Assuming that all the libraries used in the Win32 Edition is supported on the Embedded Platform Have you got some ActiveX conversion experience Especially for converting ActiveX prepared with Visual C++ ATL COm to Visual Embedded C++ ATL COm Thanks Baris www.thecoreopsis.com ...Show All
Visual C++ Can't add a function by mapping a Windows message using the ClassWizard
Hi, I failed in mapping a Windows messge such as OnCreat in my View class using VS 2005 ClassVizard. An error message saying "Add/remove operation is impossible, because the code element 'xxx' is read only" appears. Please help figure out a solution. Thanks. Jason First, OnCreate is not a Windows messge; WM_CREATE is a Windows messge. That is probably not relevant to the problem, but use of proper terminology can avoid confusion. Second, check to ensure that the .h and .cpp files are not read-only and that you have write-access to them. That is the first thing I would check if I got a message such as the one you are asking about. ...Show All
SQL Server Inherit from executepackagetask
Hi, is there a way to inherit from ExecutePackageTask I try to build my own control flow component, mainly doing the same as the named task, with some special logging and configuration. Application.LoadPackage(); Package.Execute(); Execute the Packages, but IMHO dont have the ability to jump into the package and show up the flow in the BI-Studio DebugMode. So I will give it a try to inherit from ExecutePackageTask and customize the behavior. Thanks Thorsten I don't think you can. I cannot see the task class itself. There is some wrapper, but that does not seem to be the actual business task. It looks like the working parts are native, so not really sure. ...Show All
Visual C# Retrieving Lists of Services
I wanted to use this code System.ServiceProcess.ServiceController[] services; services = System.ServiceProcess.ServiceController.GetServices( "machinename"); from ms-help://MS.VSCC.v80/MS.MSDN.vAug06.en/dv_fxradcomp/html/06a631c3-1fbf-4076-8dca-6035d351fb48.htm to get a list of services. It turns out the ServiceController is not a part of ServiceProcess namespace. I got an error. None of the code samples on that page actually worked for me. How can I get a list of services to enumerate their ports later on Thanks. Thank you very much. It does help. I do know how to obtain ports and have already done it for one particular service whose name I know: "MathService.wsdl" I just need oth ...Show All
Visual C# Using Back button in web pages (how?)
i am developing a web application. i need to use back button for navigation to previous pages. how do i do that ...Show All
Visual Studio Overwriting project properties from the msbuild command line - can not get it to work
Hi, We have a click-once deployment project. Per our customer's requirements, we would like to publish this click-once deployment project for web distribution and CD ROM distribution (with generating an autorun.inf file). We also have an automated build process which uses msbuild to publish click-once projects. To accomplish this goal, I am issuing two msbuild commands, the first command is for the web distribution, which publishes everything under webclient directory. I do not pass any command line parameters to msbuild, because in the project file, all properties are set for the web deployment (Publish directory, etc) Then the second msbuild command I am using attempts to overwrite the project properties (as desribed @ http://msdn2 ...Show All
Smart Device Development Draw Gradient Background - Error with Tabs
Hi all, I'm trying to draw a gradient (linear) background on my devices. I've found some stuff using System.Drawing.Drawing2D.LinearGradientBrush but for some reason my application doesn't seem to be able to find it. I can get System.Drawing.Drawing2D but that's as far as it goes I also can't find SystemGradientColors and ControlPaint which are things I need. I'm using CF2. Any help would be much appreciated. Kind Regards, Grant. Hi Grant The sample should be fine - except the remarks about the Windows Mobile 2003 Pocket PC in step 7. I've successully used this on Windows Mobile 5.0 (Smartphone and PocketPC) devices. It's hard to say why this occurs without knowing your code. ...Show All
SQL Server RAISERROR in CLR Routines
When I use the following code to execute a RAISERROR from within a CLR Routine (Stored Procedure), and I call this CLR stored procedure from T-SQL within a TRY/CATCH block, the error is not caught in the CATCH block. Why is this happening try { SqlContext .Pipe.ExecuteAndSend(cmd); } catch { } I have noticed that if I throw the exception out of the CLR routine, then the T-SQL stored procedure begin catch .. end catch does catch it. But of course, there is a lot of .NET information sent back with it, so the error message is quite messy. ...Show All
Visual C++ disable "->" that represent tabs
Hi all, I have accidentally enable a feature that convert all Tabs with " ->" and all space with a "." And my text editor is now full of arrows and dots, surrounding my codes. Can anyone tell me how to turn that off, as my code looks very messy with all those '.' and "->" stuff lyndon ...Show All
Game Technologies: DirectX, XNA, XACT, etc. ExternalReference from custom ContentImporter
I'm writing a custom Importer in which I have a number of references to textures. It seems I must reference the built files (xnb files) in my ContentWriter; how can I build the textures in the import-stage of the pipeline (in ContentImporter.Import()), and how do I get a reference to the built files Aha, but how do I create the ExternalReference<> It complaints that... Building content threw ArgumentException: External reference "F:\dev\Lidgren\XNA\Lidgren.Xna.Render\RenderTestApp\Content\Skybox\0001" is not a compiled .xnb file. ... I assume I could use context.BuildAsset<>() but i'd prefer not to hardcode the processor used into this processor - i'd rather just reference the ...Show All
Visual Studio Tools for Office Custom Assembly Message Driving Me Nuts!
I'm using VSTO in Visual Studio.Net 2005. My current project is a MS Word 2003 WordTemplate project. It uses smarttags to identify autotext entries and to reformat the document when needed. All the code is running well, and has been debuged. Here is my problem - that did not start with this project - but keeps reoccurring with all Word Template projects: I have gotten a message, "The Customization Assembly could not be found or could not be loaded. You can still edit and save the document. Contact your administrator or the author of this document for further assistance.", a few times. Usually when I get it I can start a new project and copy and paste my stuff into it. When I do that t ...Show All
.NET Development CreateObject("wScript.Schell").Exec("nbtstat") does not return output unless debugging
First, a little background. We have machines that connect to the network every day via VPN that have a virtual IP address assigned by a firewall. As a result, these computers' names are not added to the domain's DNS as they are not local to the domain. In order for administrators to support these users remotely, they must have the user find their machine's IP each day for remote desktop support. I wrote an application that pings the entire range of virtual IPs and when a valid IP is found, the app runs 'nbtstat -A <IP>' and parses the output to retrieve the host name. From this, a hosts file is created and distributed to the admin machines so they only need to remember the computer names. I originally wrote this in vbscript and it wa ...Show All
Gadgets Version upgrade for gadgets
Hi! I am just about finished making a gadget - and I'm making the gadget detect if there is a newer version out there. So I compare the System.Gadget.Version and another version number coming via a XML, and if the xml file shows a newer version, the gadget notifies the user about the new version and gives her a link. Now, I have been testing this and there are some shortcomings. Let's say I'm currently running a gadget called mygadget.gadget, and its in my localapp/sidebar folder (since its installed) and it has version no. 0.9. Little later there is a newer gadget with 1.0 version and the xml notifies the 0.9 gadget about the new version. The user clicks the link (that just appeared) and I get the Install dialog... (i did set up the m ...Show All
Visual C# Case sensitiveness (For Console Application)
My current code: string math; <insert stuff> math = Console.ReadLine(); if (math == "add") { <Insert stuff> } My problem is that it only triggers if you type add, not when you type ADD or whatever, any idea how I would go about this I know it has something to do with ToLower, but I don't know what to do with it. I tried to do math.ToLower(Console.Readline()); and vice versa which of course didn't work :(. Well if you're going to compare multiple values like that, an even clearer way would be to use a switch statement: class ="txt4"> string math = Console.ReadLine(); math = math.ToLower(); switch (math) { case "add": ... break ; case "sub": ... break ; case "times": ...Show All
