Kardi's Q&A profile
Visual C++ Resource compiler truncates text in dialog template to 256 characters
Resource compiler (VS 2005) issues a warning if the text length in a static control exceeds 256 characters: "warning RC4206: title string too long; truncated at 256". AFAIK dialog template has no such a limit. Is this warning just a 16-bit legacy This was not an issue until now - we always were able to rephrase a text to fit it in 256 limit. Now we are localizing our product. After translating to German and French the length of the text in many controls became longer than 256 chars and resource compiler truncated it to 256. So we moved long strings to the string table and setup control text at runtime. The disadvantages are obvious: rather than just translate resources we must change source code and English ...Show All
Visual Basic VB.Net SQL Server 2005 Accessing a stored Procedure via a datagridview
Hello, I've created a datagridview from a table in SQL server 2005. In the table I have one text field and two bit fields that I'd like to be updated from the datagridview during runtime. I need to know how to do this with in line sql as well as by hitting a stored procedure. Dim cmd As New SqlClient.SqlCommand() Dim param As SqlClient.SqlParameter Dim dr As SqlClient.SqlDataReader Dim conn As New SqlConnection() conn.ConnectionString = "Data Source=xxxx;Initial Catalog=xxx;Persist Security Info=True;User ID=xx;Password=xxx" cmd.Connection = conn cmd.CommandType = CommandType.StoredProcedure cmd.CommandText = "makeuncallable" param = New SqlClient.SqlParamet ...Show All
Windows Forms Dumb question? : What are the different ways to combine C#/Forms and C++ ?
Apologies in advance if this in some FAQ somewhere (I did check the Forms FAQ b4 submitting). I am aware of Forms hosting COM/ActiveX controls (mine is written in C++). However, are there other ways to interoperate C++ with C# My compute intensive code and graphics code is all written in C++ and it is not going to be rewritten in C# anytime soon (or most likely anytime ever for many reasons). In the past, I've tried Java/C++ combinations with JNI. This is a total nightmare that I would not wish on anyone, so scratch Java....ugh. I'd really like pointers to information (or books) that discuss all the nitty gritty details of how I can combine languages in .NET (specifically C# and C++) Cheers, Mark The mos ...Show All
.NET Development How can I convert this c# code into a regular expression?
I'm trying to create a "path validation method" to check if a string can be used as a valid path in my program. The path must contain an indication character at the beginning of it which can be either minus, tilde or a dot. In case of a minus character than it must be followed by a number. In case of tilde or a dot than it must be followed by any valid step format. A valid step format is either a s tring enclosed by a sharp brackets , a number or a combination of a string enclosed by a sharp brackets followed by a number without white spaces between the brackets and the number. After the initial step we can have a dot separator to indicate that we have additional steps that must follow the normal step format without the starting indicatio ...Show All
Visual C++ Help with script.
I know nothing about programming. But I need a script that once you press a F7 will use SetWindowsHookEx and count every key and mouse press every second and add them for a total of 60 seconds. After 60 seconds it will delete the amount that happened in second 1 and add the amount that happened in second 61 and continue on in this pattern. Starting out with SetWindowsHookEx and timers is not a good way to learn how to program. Start with a book or a class at your local community college... ...Show All
SQL Server LEAVES function causing problems in MDX Script
Hello, Got a bit of a weird situation here and I'm having trouble fathoming it. I have a cube with a dimension called [Currency]. I have a MDX Script which contains the function call: LEAVES([Currency]) And up until this afternoon everything was getting processed fine. Since then I introduced a new measure group that does not include [Currency] and still everything is getting processed fine. I then added another measure group that, again, does not include [Currency]. I am now getting a processing error on my second new measure group: Leaves function for attributes with mixed granularity in different measure groups is not supported. I think I can kinda work out why I'm getting the error - its because the LEAVES function ...Show All
Windows Live Developer Forums Find results vary when compared to Local.live.com
Hi all, Please help me to figure out the cause of this problem. When i am searching what as "pizza" and where as "us" in the find text boxes of local.live.com, its giving around 10 results in the result panel. I put the map in lowest zoom position and checked it. Although in my project is giving me 10 results , its not exactly same as in local.live.com. I am using find(what,where,i,onfoundresults) for searching. How can i make my search exactly same as in local.live.com Thanks Sarath. Sorry but I'm still confused: 1) How are you searching for the address on local live 2) What does this line mean: " i got some results in such a way that i have to select a locat ...Show All
SQL Server software to reverse engineer a data dictionary from an existing database?
Is there any freeware or features in SQL Server or Visio that can reverse engineer a data dictionary from an existing database I had produce a ER diagram using reverse engineer function in Visio, but I still need to produce a data dictionary I've been using Jesse hersch's SqlSpec for the past couple of weeks. For $20 it documents most of what I need. I'd suggest checking it out and seeing if, for a pittance, it can give you what you want. /**************************************************** Check out our Sql Server 2005 and 2000 tutorials ****************************************************/ ...Show All
SQL Server MDX with parameters using OleDb?
I'm trying to run an MDX query with a parameter. It works fine with ADOMD.NET, but I can't get it to work using OleDb. (I have to use OleDb because of limitations of the calling application.) Is this possible The following code works: //using Microsoft.AnalysisServices.AdomdClient; string MDX = "with member [Measures].[Test] as Str(@Param1) " + "SELECT [Measures].[Test] on 0, " + "[Product].[Category].[Category].Members on 1 " + "from [Adventure Works]" ; AdomdConnection conn = new AdomdConnection ( "Provider=MSOLAP.3;Data Source=localhost;Initial Catalog=Adventure Works DW;Integrated Security= SSPI ;Persist Security Info=false;" ); conn.Open(); ...Show All
Visual Basic How to search a file??
Hi everybody!!! I'm developing an application in visual basic, and its working with a data base... I need to look if this data base is in the correct location, if not I would show to the user an input box (he sould write there the correct location of the data base...) Any idea would be very helpful!!! thanks, alba You can use System.IO.File.Exists to determine if the file exists, and if not, use the System.Windows.Forms.OpenFileDialog to let the user browse for the file. Best regards, Johan Stenberg ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Random Offset and Master Volume
Hello. Long time watcher, first time poster. (August 2006 SDK version 2.0 windows version 9.14.701.0 content version 40) I have been using Xact for only a month or so but I have found some bugs (that i want to make sure are bugs and not just me being dumb.) Master Volume: I am trying to adjust the master volume of a track in the Sound Bank and it does not react. (at all). I have the volume at -96 and it plays at the same volume as if it were at 0. Ideal uses for this feature: -having all the sounds in a 'play wave' list be at a certain volume level. (so you don't have to re-normalize a bunch of waves. is this a known error will it work in game, just not in the xact tool does anyone else have this problem Random Offset: The tool that ...Show All
Visual C# SqlHelperParameterCache
can u explain me why use SqlHelperParameterCache class. And this article is also helpful: http://www.devx.com/codemag/Article/22641/1954 pf=true ...Show All
SQL Server A Little Basic Help needed (SQLServer 2005) Merge Replication
Hi all, We are using SQL Server 2005, on Windows server 2003 R2. We Have Two Database Servers say DBServer1 and DBServer2, Now I wants to do Replication between these to servers, such that 1. The Changes at DBServer1 should be reflected at DBServer2 2. The Changes at DBServer2 should be reflected at DBServer1 3. Changes includes Data changes and Schema Changes 4. After every Synchronization Both Databases should be Identical I tried doing so, what i did was I cofigured Distribution at DBServer1, also Publisher and Publication at DBServer1 and Made a Subscription at DBServer2. What I successfully done is If Publisher means DBServer1 do some changes then it gets updated at DBServer2. But New Rows added at DBServer2 doesn't gets added at DBSe ...Show All
Visual Studio Team System Access is denied: Could not create metadata cache directory
After installing a web application that interacts with the TFS API for Work items I get an exception. This works fine on Windows XP, but I'm sure there is a problem with the permissions on some folder, any idea what folder I should give permission to Access is denied. (Windows) Could not create metadata cache directory '? 耇 ? '. (Work Item Tracking Metadata Cache) The system cannot find the path specified. (Windows) Could not create metadata cache directory '? 耇 ? '. (Work Item Tracking Metadata Cache) Could not open file '? ? ? '. (Work Item Tracking Metadata Cache) Access is denied. (Windows) Could not create metadata cache directory '? 耇 ? '. (Work Item Tracking Metadata Cache) The system cannot find the path specified. (Windows) Co ...Show All
Software Development for Windows Vista changing directshow capture dimension
hello, i am using directshow to capure live video on pocket pc (QTEK 9100). the captured frames have dimension 144*176. the other possible media types have dimension 288*352 etc I would like to know if/how it is possible to change the camera properties to make it capture in one of the standard formats 176*144 (QCIF) , 352*288 (CIF) etc many thanks deji You generally can't use arbitrary dimensions no. What is listed as the possible media types is usually all that is available. So do I surmise that you video is in a portrait 3x4 configuration or that the image is sideways (90 degree rotation) Do you check for any hardware settings Sometimes there is an option to use the device i ...Show All
