Onlinemercenary's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. to use interfaces or not to use interfaces (where ever possible) ?
I was wondering if its inefficient to use interfaces, considering you would want to squeeze every bit of performance from a game, interface calls are much slower than direct calls. regards Fluxtah yeh your right, they are only a little slower, I guess space war is not that complicated to warrant heavy use of interaces. ...Show All
SQL Server Encryption and bulk insert
Hello, I need to build a table with encrypted data with the source data coming from a .csv. The account number from the .csv will need to be encrypted in the final table and I will also need to have a hashed or MAC index on the account number. I'm guessing that I can do this with a stored procedure using a temp table to load the unedited data and then load the actual table from there. The table will be built from a download every evening. The key and certificate for the encryption are already set. I have been able to load data directly to the table providing values. But, I have been struggling getting a bulk insert to work. I'd appreciate any ideas or examples. Thanks! Thanks for your quick ...Show All
Internet Explorer Development Frames?
I would like to use something like frames in my webpage, something that had a central page separeted from the rest so that when you click a link you don't have to download the hole page. Altought I have no ideia how to do this, please help, what should i use so that i can have a top made of links, tha is independent from the rest of the page when you download it Thank you Using either a frameset or an inline frame (<IFRAME>) would be the easiest way to achieve this. Frameset Example: <FRAMESET rows="30,*"> <FRAME src="http://www.yahoo.com"> <FRAME src="http://www.microsoft.com"> </FRAMESET> IFrame Example: <HTML> <BODY> Parent page <IFRAME src= ...Show All
Visual Studio "sgen.exe" exited with code 1
I am trying to build a project in VS 2005 but I am getting the error: Error 67 "sgen.exe" exited with code 1. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets 1892 9 TAI.Util This project had been building just fine earlier today. The only thing that happened between is I refreshed the web references in this project. As a test I added the same web references to a new project and it builds just fine. Mahesh, Birch, What exactly is your project structure Are you doing an ASP.NET website, webservice, or something else Were the projects originally created in Visual Studio 2003 and then upgraded to 2005 We need as much detail as you can provi ...Show All
Visual C# Searching Text or Unicode strings
I would like to be able to take 1 file with entries, like: COMPARE FILE: _________________ siteone.com sitetwo.com sitethree.com _________________ And search a file for matches... But it seems like if I loop through each entry (siteone.com, sitetwo.com, etc.) it will take forever. How can I search contents of files to compare to see if there is a string of text in the file It needs to be quick because it will be searching tons of files... I could check with each loop, but then if there are 2000 entries in the compare file, and it takes 2 seconds for each compare, then that would be like 30 minutes per file... I am just throwing numbers out there, so I am sure it is a little quicker than that, but if I am doing 100 files a minute, ...Show All
Windows Forms Readonly dgv
hi, how can i have a readonly grid with addnew available. all records should be readonly but i should be able to add records. thanks Try something like this Public Class Form1 Dim newRow As Integer = -1 Private Sub Form1_Load( ByVal sender As System. Object , ByVal e As System.EventArgs) Handles MyBase .Load Dim dt As New DataTable dt.Columns.Add("Student Name", Type. GetType ("System. String ")) dt.Columns.Add("Score", Type. GetType ("System.Int32")) Dim dc As New DataColumn("SumCol") dc.Expression = "Sum(Score)" dt.Columns.Add(dc) dt.LoadDataRow( New Object () {"Ken", "90"}, True ) dt.LoadDataRow( Ne ...Show All
.NET Development auto increment
public class AddAnnouncement { public void _AddAnnouncement() { XmlDocument newAnnDoc = new XmlDocument (); newAnnDoc.Load( "~/App_Data/Announcement.xml" ); XmlNode newAnn = newAnnDoc.CreateNode( XmlNodeType .Element, "ann" , null ); XmlNode Id = newAnnDoc.CreateNode( XmlNodeType .Element, "annID" , null ); XmlNode Title = newAnnDoc.CreateNode( XmlNodeType .Element, "annTitle" , null ); XmlNode Body = newAnnDoc.CreateNode( XmlNodeType .Element, "annBody" , null ); XmlNode Date = newAnnDoc.CreateNode( XmlNodeType .Element, "annDate" , null ); XmlNode Priority = newAnnDoc.CreateNode( XmlNodeType .Element, "annPriority" , null ); XmlNode Sender = newAnnDoc.Creat ...Show All
Windows Forms Make Cut & Paste popup menu for datagridview
I want to make a Cut & Paste popup menu for datagridviews located in many of my MDIChilds. What is the proper way to do the the follows 1. Implement cut & paste process 2. set up a popup menu for datagridview Thanks a lot. I found the answer in http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=242504&SiteID=1 and http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=166894&SiteID=1 ...Show All
Visual Studio Express Editions Using C# project+classes in a web application
I have VWD express and C# express. I have a solution written in VC# that contains several classes I wish to expose to a VWD web site project. Normally in VC# I would simply add a new project to the solution and add a reference, but since the web app isnt in the same solution as the c# project I can't do this. Is there a way to reference the c# project within my web site and have it automatically recompiled when I compile my web app, or do I need to manually compile my c# project into a dll which I then reference from the web app Thanks in advance! Hi, If your consider these classes as a 'library', it's better to keep them in a separate dll and add a reference to it. Otherwise you can al ...Show All
SharePoint Products and Technologies Setting fields as required or mandatory in the initiation form using SharePoint designer
Todd Bleeker's book on WSS Development makes reference on page 471 (step 19) to a feature where SharePoint Designer can set certain fields in the initiation form as required. However, I do not see this option in the tool. Can anyone shed any light on this ...Show All
Visual Basic How to load a dll into a vb program
Hi, I need help, i'm a n00b and i don't know how to load a dll into my program. Using the Add Reference button i'll recive this error: A refence to ... could not be added this is not a valid assembly or COM component. Bla bla bla Someone tell me to install it into the gac directory using gacutils, so i did it but i had recive this error: Failure adding assembly to the cache: Tentativo di caricare un programma con un formato non corretto. (trying to load a program with an unknow format). What's the problem Help me pls ;) I hope this is the right section. Sorry for my bad english By "prototype functions" do you mean C style function prototypes If so, then the dll is probably not a COM assembly ...Show All
Visual C++ some charactor losed
i build a vc++6.0 console program,and use HINTERNET send a string to server,and on server,i use asp script receive this string and insert it to access database,when the string include character as '\0',just like a[0]='a',a[1]='b',a[2]='\0',a[3]='c',the script dose not work well,it lose some charactor,why and how to solve this problem Hello Re: some charactor losed Such questions are outside the scope of this forum - for the scope of the VC General forum please look at: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=19445&SiteID=1 For such issues please use the newsgroups at http://msdn.microsoft.com/newsgroups. OTP Thanks Damien ...Show All
SQL Server Managing concurrency in Stored Proc with Timestamp
Hello all, I am trying to find the right way to get the correct error reported in a Stored Proc where the table contains a timestamp column. I gather the TSEqual is not the way to go (I'm using SQL Express, which uses Server 2005 syntax and TSEqual is deprecated). Within an update procedure, given an ID, a TimeStamp, and a new value, I would like to specifically know if the update fails because the record was not found or because the timestamp indicated that the record was previously updated. I can't figure out how to specifically raise the 532 error if the timestamps don't match, since I can't use RAISERROR. Any thoughts would be much appreciated Regards, Flavelle I think this is a good ...Show All
Visual FoxPro How to: Query dbf free tables with cdx
Hi all, My english is not good, lets see if i can make myself clear: Im importing data from .dbf tables into Sql Server. Using VS2005, VB, SQL Server 2005 Express My connection string: Public dbfConnectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\server\folder on Srv\" _ + Replace(strDate, "-" , "" ) + "\;Extended Properties=dBase 5.0" With .dbf tables without a corresponding cdx I have no problem. But when trying to query .dbf tables with cdx files i get this error: Syntax error (missing operator) in query expression 'GNDITEM.ENTRYID = GNDLINE.ENTRYID INNER JOIN TAX ON GNDITEM.TAXID = TAX.ID'. In the directory folder theres a table "TAX ...Show All
Visual Basic Unable to build my porject, i am using VB.NET 2003
I build my project and run it successfuly. Then i added a setup and tried to build it. It faild. it shows a message 'unable to build assamby named 'xyz.exe', HRESULT == '8007064F'. I read on the internet the character " ' " which may found in the project name may cause this error. actually there was one and i removed it, but the error is still there. Any help NIBbaye, There has been an internal failure while attempting to package an assembly. To correct this error 1. Make note of the exact text in the error message. 2. Contact Microsoft Product Support Services and report the error. According to your problem, I suggest you to take a look at the property of your project. Just right click the project name in ...Show All
