alphonso's Q&A profile
Smart Device Development build cab
idesign application for pocket pc on vs 2005 and when i build cab file on it i discovered that to execute it , it must be that ppc have windows ce 5 so that i design it on vs 2003 to execute it to windows ce 3 and i don't know how can i build cab file can any one hilp me ........................ please do NOT duplicate post: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=676657&SiteID=1 ...Show All
Visual C++ MessageBoxW and converting to LPCWSTR
Hi MessageBox(NULL, "Hello World", "Message Box Title -- Hello World", MB_OK); Error: error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [12]' to 'LPCWSTR' IDE:VS2005 I don't understand why it gives this error. Can you please tell me what the problem is and how i can solve it. Thanks Of course, you're free to do whatever you want. But I would very much prefer to fix your bug and use Unicode , instead of ANSI. Frankly speaking, in this global world, in this Internet era, I consider ANSI strings as prehistoric obsolete string format. Note that modern programming languages like Java, C#, Python, etc. use Unicode as their ...Show All
.NET Development XslCompiledTransform loading external xml from database using document()
I have some xml and xsl documents all stored in a database, so there are no physical files. I use the XslCompiledTransform and a custom XmlUrlResolver class to load xsl documents from the database. My custom XmlUrlResolver class only resolves the import and include directives. How can I write a custom resolver for the document() directive From the VS2005 documentation : C# public void Transform ( XmlReader input , XsltArgumentList arguments , XmlWriter results , XmlResolver documentResolver ) C++ public : void Transform ( XmlReader ^ input , XsltArgumentList ^ arguments , XmlWriter ^ results , XmlResolver ^ documentResolver ) ...Show All
Windows Live Developer Forums VE Collection Pushpin Menu
Hello again! lol. Another quick question... Is there a way to edit the pushpin popup menu for a VE Collection If so how do you do so in the code Thanks again! Umm, that did not seem to work I am not sure like what to do with the load buttons and with those gone where to add the code (or "link" to my collection in the code Sorry. and Thanks ...Show All
SQL Server Losing config file between child packages and *$##@!- Passwords!
I have a parent package that uses Execute Package Task against three child packages. They are all setup to use the same configuration file, and the packages are all located in the same folder. Purpose of the configuation is to use the same connection strings for each child package. I removed the path from the config. file specification to facilitate deployment. During debugging, the child packages cannot find the config file when they are run via the parent unless the full path is specified. If run standalone, a child package can find the config. file without the path. As I said, all dtsx filaes and the config file is in the same folder. Also, the password-removal issue is killing me in development. Everytime I touch the config. f ...Show All
.NET Development At least one element in the source array could not be cast down to the destination array type
Hi I am trying to send an array of doubles to new class which is uisng a Matlab .dll. However I am having problems with the following error: - System.SystemException {"At least one element in the source array could not be cast down to the destination array type."} System.SystemException The Code is private void btnOkActive_Click( object sender, System.EventArgs e) { ArrayList ccyPairsCheckedLogic = new ArrayList(); if (checkBoxEURJPYa.Checked)ccyPairsCheckedLogic.Add("EURJPY"); if (checkBoxEURCHFa.Checked)ccyPairsCheckedLogic.Add("EURCHF"); if (checkBoxEURGBPa.Checked)ccyPairsCheckedLogic.Add("EURGBP"); if (checkBoxEURUSDa.Checked)ccyPairsCheckedLogic.Add(& ...Show All
SQL Server How to dynamically create Tables
I'm currently developing an RDF application which need to handle lots of datatypes. But I want to use SQL-Servers capabilities for efficient querying and sorting. Therefore, I've wanted to create a Main Table which stores a Reference to the Table where the Data is stored. The Data itself should get stored in a Datatype-specific Table. The Typed Table might get created by something like: public void CreateTypedLiterals(Type type) { String sql = String.Format( "CREATE TABLE [Literals_{1}] (" + "ID int DISTINCT NOT NULL, Value {1})", // BUG: does not work // WARNING: introduces a potential sql-injection problem type.ToString() ); ... As you can see on the statements this solution makes many troubles. So I've wanted ...Show All
Windows Forms DataGrid row insertion
How to add new row in datagrid in between two rows I tired to add new row in selected index in table but its not working still it adds new row at last position in datagrid. Thanks just check the following link. This link will helps you to add the new row in between rows http://www.codeproject.com/aspnet/DataGridInsert.asp ...Show All
Visual Studio 2008 (Pre-release) where can i find binary of wpf samples?
i have downloaded wpf samples from microsoft site. there are hundreds of project available. problem is, none of them is compiled. and compiling every one of them is tedious. i suspect the samples in binary form are already in my hardisk(when i try to download the samples from local msdn). but where is it how about, from a visual studio command line: for /R "c:\pathToYourExamples" %projFile in (*.csproj) do msbuild %projFile To build all projects. Replace by *.sln to build solutions. Is it smart enough ...Show All
SQL Server SET NOCOUNT behaviour change - bug ?
https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx FeedbackID=257880 Bug The SQL 2000 equivalant is: SET ROWCOUNT 1 if (select name from sysobjects) is not null BEGIN PRINT 'HI' END This works without error, and does not generate a parsing error. Returning 'Hi' When running the equivalant on SQL 2005, we get an error: SET ROWCOUNT 1 if (select name from sys.sysobjects) is not null BEGIN PRINT 'HI' END --> This fails to generate output, generates a sub-query error. ...Show All
Windows Live Developer Forums Saving maps
Hi, Is there a way to save a map (along with pushpins) as a pdf or a image file My client really will like if we could save a map as an image or a pdf file so it can be emailed to other users. Thanks, Sanjeev Yes, it is possible, but it will not be as easy if you might think. All the tile images from the background are available as picture files (I don't think the information is public, but it isn't too hard to figure that part out) so you could grab them and "glue" them together to get one big picture (you have to cut off the unused parts). You can keep track of all the pushpins you add / delete and enumerate the ones that are in the current view. Then you can draw those on the pic ...Show All
Visual Studio Express Editions Programming Sudoku
Well I just bought teh book Programming Sudoku, and I ran into a few problems. When I saw that you needed Visual Studio 2005 I was upset, but tehn I read on and found out it says C# shouldnt have a problem so im using Microsoft Visual C# Express Edition. Ive gotten pretty far in the book, and its in the Code section where i ran into a few problems! Heres what the bok says to do, Public Class Form1 '---dimension of each cell in the grid--- Const CellWidth As Integer = 32 Const cellHeight As Integer = 32 And thats where I hit the problems! See I wrote that and i get build errors! Heres my Code using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.D ...Show All
Visual FoxPro Simple question about option group labels
Can't find where to change the background color of the label portion of the option buttons. They stay the original color of a dirty beige. Even though the color of the group box changes, the label will not. How Thanks Interesting but I had already tried a new form ... with the same result. Also, neither form has any code applied. They were both built from scratch as a way to learn how to use VFP's form controls. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Multi threading in a game (using XNA)
Hello. I am able to create thread and make them exchange information through common objects they know (server / each other reference) Now I would like 2 threads to update a server. Each of those threads takes for inputs a keyboard for one, a mouse for the other one. However, it seems that the thread that listens on the keyboard do not detect events from it. Seems like it is the parent thread that is able to listen to a keyboard event and only that parent thread. How would you do so that a children thread is master over a device even if it does not have the focus Regards, Chryso The XNA Racer Starter Kit (or whatever its official name is going to be) is going to be an example of taking advantage of threadi ...Show All
Visual C++ program runs really slow after about a day, anyway to fix it?
Hi, I have a visual c++ program that runs 24/7 on a computer. After about 22-25 hours it stars running slow, even though the computers specs are very good. I need to restart and then start it up again. Is there anyway to fix it or do I just need to restart each time Thanks, Stan This is an application specific problem. You may be experiencing this problem because of issues such as memory leaks or a complexity which (erroneously) increases over time, such as iterations with heightened limits. It's hard to give any generic advice for you to avoid these problem, apart from giving some thought to the amount of time you've spent attempting to avoid such issues while writing the application. ...Show All
