gsylvest's Q&A profile
Visual C++ Passing Parameters to MFC Application
Hi, I want to pass a parameter to my MFC Application, ie "myprogram.exe /noverbose" I've tried to look for resources on the web, and found some like CCmdLine. However, they don't work. I even tried to overwrite the main() method but it doesn't work too. Can someone advice me on how to go about doing it Thanks. - Regards, eddy05 I think you can try the combination of GetCommandLineW and CommandLineToArgW functions. See http://msdn.microsoft.com/library/default.asp url=/library/en-us/shellcc/platform/shell/reference/functions/commandlinetoargv.asp and provided example. I hope this helps. ...Show All
Software Development for Windows Vista WWF and sql server requirement
Is SQL server a must for running workflow applications Or is it required only for the persistance and tracking services Can we use some other database some other database like Sybase if we need sql server can we use sqlserver express or do we need the standard sql server thanks Sonali Is SQL server a must for running workflow applications No Or is it required only for the persistance and tracking services yes Can we use some other database some other database like Sybase yes, you can create your own custom tracking & persistence service if we need sql server can we use sqlserver express or do we need the standard sql server sql express is ok Serge ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Scaling textures/sprites
So I'm drawing 2D sprites using the 3D methods. I'm defining 6 vertexes (2 triangles), to create a rectangle, and rendering a texture2d to it, using a pixel shader. Except that things are a little bit more complicated. My main texture actually only has the red values filled in. Then I have another palette texture2d, that's 256x1, and my pixel shader looks like this: float4 ApplyTexture(float2 textureCoordinate : TEXCOORD0) : COLOR { return tex1D(ts2, tex2D(textureSampler, textureCoordinate).r).rgba; } So anyway, back when I was using SpriteBatch, I could specify a destination rectangle, with a width and height, and it automaticly scaled my texture to this size, and scale it using something other than nearest neighbor. In other words, it ...Show All
Visual Studio 2008 (Pre-release) Custom fields
Hi, First of all, great work! Our application has the notion of custom fields which are stored directly in the owner table with alter table statements by a nice ui. As far as I know from the documentation, that scenario is not really possible in the present release. What would be needed I think is a new element as children of EntityType like this < EntityType Name = " Client " Key = " ClientId " > < Property Name = " ClientId " Type = " Int32 " Nullable = " false " /> < Property Name = " Name " Type = " String " Nullable = " false " MaxLength = " 50 " /> < Property Name = " Age &quo ...Show All
Software Development for Windows Vista DirectShow Editing Service - Timeline Sources Preview Problem
Hi everyone, In my DES application, i have a timeline. My application add sources to timeline dynamically. When i want to preview timeline, it only plays first source, not others. However i can see all sources timeline's xml file. I can also see all sources in timeline's grf file when i open grf file with notepad. But in the preview (in my application or in GraphEdit) it only plays first source. Anyone can help me Thanks, thanks. I found problem owing to you. I calculate times from media's framecount and fps. My calculation is wrong. And i see value '6225' but i didn't notice. I am blind. Thanks again. Now it's working. ...Show All
SQL Server Changing the 'Command type' dropdown in a custom data extension
I notice when using a SQL Server data source the Command type dropdown list only shows "Text" and "StoredProcedure". It does not show "TableDirect" somehow. I would like to be able to set this drop down list to show custom values from my CDE Wrapper also. I tried writing an enum in my CommandWrapper class with no results. This was all I could think to try, and it did not work. enum MyCommandType { Text = CommandType .Text, Macro = CommandType .Text, StoredProcedure = CommandType .StoredProcedure } MyCommandType myCommandType; CommandType IDbCommand .CommandType { ...Show All
Visual Studio 2008 (Pre-release) Kevin moore OneMonthCalendar
hi there, I'm trying to use the OneMonthCalendar example from Kevin Moore - "Kevin's Bag-O-Tricks " at http://wpf.netfx3.com/files/folders/controls/entry7094.aspx. There is an example under the OneMonthCalendar Folder, but I just can't manage to make it work.. did any1 try it / thank you ...Show All
SQL Server Receiving Error 26 when trying to connect to DB...Some Machines
Good Day, We have a recently developed (and in testing) VB .Net application which attaches to a specific SQL2005 DB. The issue is that when installed (or run in DEBUG mode) on the developer box it successfully connects to the appropriate db locally and to the live server. When installed on a test box (several of them) we receive error - 26 Error locating Server/Instance Specified. The SQL Server instance is set up for remote connections and works for other dbs. All of the boxes are running XP Pro, with all SPs applied. Any thoughts on what may be occuring would be greatly appreciated. This might help: " Connection error occurs when the Database Engine service account password expires The following e ...Show All
Windows Forms how to use function key to set focus
Hi, I have a problem here is that I have a grid which I am keying in value. What I need to do is that how can i use the function key any will do be it F1 to F12 to focus on some other combo box. protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { if (keyData == Keys.F12) { comboBox1.Focus(); return true; } return base.ProcessCmdKey(ref msg, keyData); } ...Show All
Visual Studio Express Editions How to detect which column was clicked in a Listview
Hello, In the MouseUp eventhandler I so far got this: Dim info As ListViewHitTestInfo = ListView1.HitTest(e.X, e.Y) Messagebox.Show(info.Item.Index.ToString()) 'returns the 0-based item(row) I havn't found any property for detecting the index of the column clicked, though. Would be grateful if someone could hint me about this. Thanks! -- Doffen Private Sub ListView1_MouseUp ( ByVal sender As Object , ByVal e As System . Windows . Forms . MouseEventArgs ) Handles ListView1 . MouseUp Dim info As ListViewHitTestInfo = ListView1 . HitTest ( e . X , e . Y ) Dim lvi As ListViewItem = info . Item Dim lvis As ListV ...Show All
SQL Server help! I am locked out from my SQL2005
Hi Champs, Is there a way to recover from a account lockout in SQL2005 I cannot connect to "Database Engine" in "SQL Server Management Studio", error: login failed...18456. Access denied. And I also cannot start the "SQL Server agent service" Any possebility to recover without reinstall /Many thanks Do you have Mixed Autenticated enabled With which Authentication method are you trying to logon COuld it be that your Windows account is disabled for some reason HTH, jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
SQL Server Database attach error 3624
Hi all, I am trying to restore and SQL 2000 database into a new SQL 2005 database. I performed by SQL 2000 backup and created a blank database FERS_Production in SQL 2005. FERS_Production was the original name of the database in the SQL 2000 instance. I have tried giving the new database the same name as the original and a different name to the original database (Below is the scripted T-SQL that I get from the DB Admin tool RESTORE DATABASE [Fers_Production] FILE = N 'FERS_Production_dat' , FILE = N 'FERS_Production_log' FROM DISK = N 'D:\Microsoft SQL Server (2000)\MSSQL\Backup\Fers_Production\Fers_Production_db_200607270206.BAK' WITH FILE = 1 , NOUNLOAD , REPLACE , STATS = 10 GO When I ru ...Show All
Audio and Video Development Live Audio/Video Streaming
Aslamualaykum, Hi, This is Sohail from khi, Pak. Iike to do Live Audio Streaming by Windows Media Player anybody now how can i do that Its is possible on my web page hosting or i get seprate hosting for this purpose Regards, Sohail Wa Alaikum Salam! Here is an article that describes how to do what you need: http://www.microsoft.com/windows/windowsmedia/howto/articles/webserver.aspx You need a machine with Windows Server 2003. You can have the web server on either the same machine or a separate machine. Note: This forum is for questions regarding Media Foundation, the new media SDK in Windows Vista. If you need further details regarding your question, the right forum is the Windows ...Show All
Visual Studio Team System Directory Structure - Best Practices Question
I'm sure this is a dumb question, but i'm a little confused about something. I am trying to set up my build machine to be able to build some of our projects (we've moved to TFS for source/version control and work item tracking, but not yet for builds). What are the "best practices" for having all of the required files on the machine to be able to build the sources. Not everything is included in source control for the project being built. Examples of things i'm talking about might be: Output of other projects developed by our team. Output of other projects developed by other teams (or 3rd parties). Includes/Libs from SDKs - WM SDK is the one i'm dealing with right now. I imagine that this can be done quick ...Show All
SQL Server Replicate column to subscriber - even it if is unchanged in UPDATE statement
Set publisher database table column to 1. Replicate table to subscriber (column is also 1 on subscriber once it is replicated). Set subscriber database column to 2. Update publisher database column to 1 (even though it is already 1). Change is NOT replicated to subscriber (it stays at 2). This means that replication is comparing the insert statement to its current value in the database. Is there any way to change this behavior We want the the column to replicate to the subscriber. Peng, What a great stored procedure! It turns out that the command that is sent to the distributor for replication only contains the fields that change. For instance: Table has the fo ...Show All
