Johnny Richards's Q&A profile
.NET Development Rendering Text from a SVG file
I have problems rendering text from a SVG file in C# at the correct position. What is the correlation between the x, and y position attributes in the SVG file and the "origin" parameter in the GDI+ method GraphicsPath.AddString(...) Simply putting in the values from the SVG file shifts the rendered text. I don't see any other simple relationship either, like the origin beeing defined in the bottom left corner and the GDI+ window having it in the top left or something like that. I just noticed now that it might have something to do with the StringFormat tag in the AddString method. If I use StringFor ...Show All
Smart Device Development How to debug native dll?
I have a solution which contains a managed "exe" project and a native "dll" project. The exe calls the dll using platform invoke. I start a new (realtime) thread in the dll. I create breakpoints in my native code. How can I debug my native code in the dll using this breakpoints I have read "Development Tools and Languages/Visual Studio/Smart Device Development/ Debigging Device Project/ Walkthrough: Debugging a Solution That Includes Both Managed and Native Code" in MSDN Native debugger should be attached to the exe or to the dll ( I don't find my dll in available processes box) Theoretically I am ...Show All
Smart Device Development PPC 6700 Sprint -- FileName Problem
I have Dell Axim X51V with CF2.0 C# application. In my device if I create filename programatically like 123.txt it works great with no problem. One of my customer has complained that if he enters 123 for filename, his device (PPC 6700 Sprint) is not creating the file. But if he enters characters like abc then abc.txt is getting created fine. In the previous case he is not getting any error message. If somebody has this type of phone can you please conform this behaviour If there is problem, why it is working in Dell Axim and not in PPC6700 What is the workaround Thanks, Vijay What sort of input co ...Show All
Visual Studio Team System Availability of 3rd party templates for "Requirements"?
Are there any 3rd party Process templates (for Import into TFS) that address the area of project Requirements tracking (Commercially available or in-development). Surprisingly, this key area is not represented at all in the MSF Agile process. Barkingdog To be a bit clearer, I was thinking along the lines of tracking Requirement documents, in Word, as work items. Barkingdog ...Show All
.NET Development BeginSend() is not sending all messages
I am having a problem where the first message I send a client on connect is not recieved. Anyone have any ideas why Also , I'm having some buffer issues where parts of messages are sent multiple times...I'm sure it's something stupid on my end Below is the code [code] public void OnClientConnect(IAsyncResult ar) { byte[] data = new byte[1024]; Socket listener = (Socket)ar.AsyncState; Socket client = listener.EndAccept(ar); clients.Add(client); String sending = client.RemoteEndPoint.ToString() + " Joined"; TextAdd(rtbox, sending); Send(client , "Welcome to the ...Show All
Visual Studio Express Editions Can't create new project
All right, no one answered the last post but I absolutely cannot find an answer ANYWHERE! I get that stupid syntax error when I try to create a new project, I've moved the temp folder to a path where there are no symbols and it still doesn't work. What a rip... I wanna learn! Anyone Have you done everything listed in this thread http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=132012&SiteID=1 ...Show All
Visual Studio 2008 (Pre-release) constructor not executed on deserializing
When using wcf to send an object over the wire, it seems the default constructor is not executed on deserialization. My breakpoint doesn't get there. Also fields with initialization code are not initizialised on deserialization. I'm implementing [ OnDeserializing ]. After that the members that have been marked as DataMember are being set. At that point I noticed the wrong state. Yes your are right. Constructor is not called for DataContract types. OnDeserializing should be called instead of the constructor. If you need your callback to be called after the DataMembers have been set, then please implement OnDeserialized. I hope this h ...Show All
.NET Development Exception comments best practice, use of unique identifiers ?
While developping libraries, I naturally end-up with a lot of exception dispersed amoung the code (I am speaking of potential exceptions, the common case being if incorrect-args then exception ). Within a single class, I like to have a unique string prefix for all exception comment, i.e. a typical exception looks like throw new FooException("#E001 Hello World") . Such convention is quite usefull to identify a problem and ease the communication developper/developper or user/developper. Yet, this convention requires some amount of work (classes having to be proof read to achieve this). Nevertheless, such drawback can be easily be resolved t ...Show All
Visual Studio Express Editions Build doesn't work
Every time I build a project and get a .exe file I can't send it to anyone. Why I have one file Kekke.exe in the debug folder which I can open but when I tried to send it to my other computer it couldn't open it.. What happens 1. I asume that you build a native exe that uses the CRT in a DLL. So you need the DLLs of the CRT. http://www.codeproject.com/useritems/vcredists_x86.asp 2. You are not allowed to redistribute the DLLs of the Debug build, so only copy the Release Builds! ...Show All
.NET Development Where does the assemblies loaded?
Hi all, I've the following doubts., Say I've a assembly Myassembly.exe and when i run it it is loaded into a AppDomain.Where does the referred assemblies gets loaded For ex:My assembly refers mscorlib by default and say it refers another user-defined assembly MyLibrary.dll.Now ,where both mscorlib and MyLibrary will be loaded Will it be in the same Appdomain as MyAssembly or If not ,if it it gets loaded in another AppDomain then Remoting will be used for communication Thanks, Suresh. >Is there any case or situation where the CLR loads a referenced assembly in a seperate AppDomain or Will it neve ...Show All
SQL Server sql expree instalation error
Hello my big problem for today. I downloaded sql express advanced with reporting services and when I try to install it on step: "sql server database services" I recive the error below: TITLE: Microsoft SQL Server 2005 Setup ------------------------------ SQL Server Setup could not connect to the database service for server configuration. The error was: [Microsoft][SQL Native Client][SQL Server]Login failed for user 'sa'. Refer to server error logs and setup logs for more information. For details on how to view setup logs, see "How to View Setup Log Files" in SQL Server Books Online. For help, click: htt ...Show All
SQL Server SQL Server 2005 Analysis Services Activity
Are query logs the only why to tell who is accessing MOLAP cubes in Analysis Services I know I can use the Activity Monitor to view SQL Server activity; however, users accessing MOLAP cubes are not displayed in the Activity Monitor. What happens if someone creates the MDX query from hell and it needs to be canceled or if I simply wanted to know who is using the majority of resources in Analysis Services Use SQL Server Profile. Just connect to the server and select the relevant events you are interested in. For example, use Audit Login to see who is creating connections to the server. Hope ...Show All
Windows Forms HOW TO: Dynamically Add a Control Without Hardcoding the Control Type in Visual Basic .NET
this article http://support.microsoft.com/default.aspx scid=kb;en-us;311321 is very interesting, but only tells how to add controls to the form. I want to do more than that and add a control to a previously added control. Let's say I add a panel to the form (using the code provided in this article by adding the Panel to the combobox list) and then, I wan ...Show All
.NET Development Error: SQL Server does not exist or access denied
I am a newbie so any help appreciated. the ASP.NET web application is on a seperate machine than the machine that runs the SQL Server. There are 3 SQL Servers running on machine that has my database. The 3 SQL Servers are: SQLM1\DevSQL SQLM1\DemoSQL SQLM1\QASQL where SQLM1 is the machine name & QASQL is the name of the SQL Server. The database that this application connects to is in SQLM1\QASQL. In the default.apx.vb, I have a connection string as follows: Me.SqlConnection1.ConnectionString = "data source=SQLM1\QASQL;inital catalog = MyDB; password=somepass;persist sec urity info=True;user id=sa;packet size=4096" But get t ...Show All
Visual Studio Tools for Office ListObject and Range Relation
Hi all, First, I'm happy to see the performance improvement when databinding of ListObject in VSTO 2005, compared with Looping and Range in previous edition. However, I want to complaint the imcompatibility of these 2 controls in VSTO2005. I databind a ListObject, and then now want to convert it to a Range object and automate the "Subtotal" features, I tried the following code after databinding: ((Microsoft.Office.Tools.Excel.ListObject)Globals.DataIsland.Controls["MyLO"]).Disconnect(); ((Microsoft.Of ...Show All
