Gabriel_XD's Q&A profile
Visual C++ Intrinsic available for reading CPU flags
Hi. I'm looking for intrinsics that allow me to read CPU flags, especially the carry flag would be important to me. I'm writng x64 application so I have no possibility to use the inline assembler therefor. I would need the flag register to check wheter a value assigned to an unsigned __int64 caused an overflow. Thanks in advance, Trenor If performance is not absolutely critical, I'd recommend not to use intrinsics and stay with portable C/C++. For example, after addition you easily can find out if there was overflow by comparing result with operands you just added. I.e. unsigned long long add (unsig ...Show All
SQL Server Win 2003 x64 - SSIS error Importing xls and access data
I am having a problem importing data from xls and access into my SQL2005 DB using SSIS . Would appreciate any help in getting this resolved. Environment: Xeon 64 bit processor machine/Win 2003 64 bit (x64)/SQL 2005 64 bit Some of the resources that I have dug up so far have pointed to Jet Engine SP8 and WOW64. A search on the box shows this: C:\Windows\SysWOW64\Msjet40.dll – File version is 4.0.9025.0 Not sure what is missing. The following is the error from the import from xls. The one from access is very similar. ======================================================= ...Show All
.NET Development inserting into access database throws an exception
exception thrown: "Operation must use an updateable query." Code that throwed excpeption: OleDbConnection conn=new OleDbConnection(ConfigurationSettings.AppSettings["ConnectionString"]); string sqlInsertUserInfo=@"INSERT INTO Users (UserName,[Password],RealName,Email) "+ " VALUES " + "(@UserName,@Password,@RealName,@Email)"; OleDbCommand command=new OleDbCommand(sqlInsertUserInfo,conn); command.CommandType=CommandType.Text; try { conn.Open(); command.Parameters.Add(new OleDbParameter("@UserName",OleDbType.VarChar,30)); command.Parameters["@UserName"].Direction=ParameterDirection.Input; c ...Show All
Software Development for Windows Vista end-user workflow design & compilation
In WWF, you compile a workflow, which I believe calls the workflow compiler wfc.exe, and then calls the C# compiler, which outputs a .NET assembly. What I'm wondering is how this will work for end-user workflow design, where I have re-hosted the designer in my own app. Will this require me to output the workflow definition to a file on disk, call the workflow compiler, then generate a .NET assembly from that for a specific workflow Do I end up with potentially hundreds of compiled workflow assemblies in that case, if I have many workflows Or can I do all this compilation in memory The idea of compiling a workflow seems somewhat s ...Show All
Windows Forms listviewitem backcolor problems
I'm having a bit of a hard time with the framework listview right now, and I can't seem to find anyone else having the same problem, so here's a thread to discuss it. In my application, I am setting the backcolor property of specific listviewitems in a listview to convey some state information. I'm not having problems changing the colours, (forecolor or backcolor), but for two circumstances where the listview doesn't seem to be behaving the way I would like. My listview has its view property set to "Details". 1 - This one is less serious, but if I have the backcolor and/or forecolor for a listviewitem changed, and the listview item is ...Show All
Architecture Designing Databases for SOA
My question relates to best practices in database design for SOA. Specifically I am looking for a guideline that will help me maximize performance and guarantee uniqueness in and SOA environment. Is it generally advisable to use surrogate keys in your tables if you are designing the data store for an entity service If so, what datatype should you use, integer, GUID I would expect that if I use surrogate keys, that they will then be used by consumers as reference data in other services. All ideas are welcome. Thanks, Jeremy Hi Jeremy, In the starting process of investigating SOA for our compa ...Show All
Visual Studio Express Editions Email Program HELP!!!
Hi yall, im currently building an email application and ive gotten the send mail part down, but i have no idea how to recieve mail. Can someone piz give me some sample code to recieve an email!! HELP!!!!!!!! Check out the below article , hope it helps http://www.informit.com/guides/content.asp g=dotnet&seqNum=277&rl=1 Also you can try using the mail.dll http://www.lesnikowski.com/mail it supports POP3 and SMTP commands. & Parses attachments ...Show All
Windows Search Technologies Outlook 2000 crashes on exit with WDS installed
I ran into 2 problems with WDS version 2.06.0000.2083. I have just installed WDS for the first time on XP SP2. I don't have MSN Search Toolbar installed. My Outlook setup doesn't use Exchange and just connects to my ISP to retrieve email. The problem I have is that Outlook crashes on exit. I can post memory dump if necessary. Additionally, if I let WDS finish indexing while Outlook is up, WDS doesn't ever find anything in the email messages. Kind of defeats the purpose of Outlook integration. Are these known issues that I ran into If so, when should we expect to have a new version out that addresses Outlook 2000 integration Thanks. ...Show All
Microsoft ISV Community Center Forums Select line of text in Word documents
How can I "Select a line of text in Word documents" to futher manipulate it I figured how to do individual Words, but I'd like to select a line ot text containing a certain word. Not too sure how to select a line of text, but this will select the sentence containing the word: Sub SelectSentence() Dim oDoc As Word.Document Set oDoc = Documents.Open("C:\documents and settings\mydocument") With Selection.Find .Text = InputBox("Enter word to find") .Replacement.Text = "" .Forward = True .Wrap = wdFindContinue .Format = False .MatchCase = False . ...Show All
Windows Forms Can ClickOnce deploy web application?
Can ClickOnce deploy web application If not, should I pack my web service application in window installer package and make it a prerequisite in ClickOnce Thanks ClickOnce is for windows app deployment only and you cant deploy a web service with that. Making it as a prerequisite will definitely work. ...Show All
Windows Forms oleDbDataAdapter and Updating
I am using an oleDbDataAdapter and a dataset. When I use this code to insert a new record, the record instantly is included in the dataset.... this .dataSet11.tblDVD.AddtblDVDRow(field1, field2 ); this .oleDbDataAdapter1.Update( this .dataSet11, "myTable"); this .dataSet11.AcceptChanges(); But, when I use this code to update a record, the changes are in the database, but NOT the dataset.... this .oleDbDataAdapter1.UpdateCommand.CommandText = sql; this .oleDbConnection1.Open(); this .oleDbDataAdapter1.UpdateCommand.ExecuteNonQuery(); this .oleDbDataAdapter1.Fill(dataSet11); this .oleDbConnection1.Close ...Show All
Visual Studio Team System Dual Server - install af App Tier fails with error 28919 (Beta 3)
After installing the Data tier without any remarks, the installation of the App tier fails with the message: Error 28919.TFServerStatusValidator: ErrorLogonAs - possible reasons: ServiceAccountDomain, ServiceAccountLogin or ServiceAccountPassword are invalid I have (of course) tried several times, suspecting bad typing of the password, had the password for TFSSERVICE confirmed, had it reset, etc. The Data Tier server are running. The account is not allowed to log on locally on the servers (neither data or app tier servers). Could this cause any trouble There are nothing in the Installation Guide that indicates that this is a re ...Show All
Visual C# Running associated application
Hello, please can someone help me with running an associated application for some file from my application For example I've got a full path to some picture, lets say c:\picture.jpg and I want to run its associated program, let it be Paint. How should I do that Thanks, michi. Probably you can use short type of folder names like in DOS. For example Documents and Settings would be Docume~1. About starting the default application associatated with some file extension, it is done automatically. If you start the picture file, then the associated application will be started. For example Process.Start(@"C: ...Show All
Game Technologies: DirectX, XNA, XACT, etc. directx mesh drawsubset
hey, im coding a simple 3d scene and encounterde the following problem: whats in the scene: loading a mesh : D3DXLoadMeshFromX( "tile.x", D3DXMESH_SYSTEMMEM, c.d3dd, NULL, &pD3DXMtrlBuffer, NULL, &c.g_dwNumMaterials, &n ...Show All
Visual C++ How to run an application when clicking "Shut Down" from start menu?
Hello, I am using Windows 2000 Professional and VC++ 6.0 (MFC). I have created a simple dialog based application. I want to run this application when I click "Shut Down" from start menu. How to achieve this TIA, Regards, Jahfer V P Just read this: http://pcworld.about.com/magazine/2206p160id115628.htm HTH ...Show All
