mAh3u's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. bounding box with 2d
hello, how can i use a bounding box with 2d... must a bounding box always be a box (a rectangle) or can i "draw" it around my object thx can i draw something around my object to detect collisions.. i am not talking about pixel collision detection.. just a little bit more precisely than a box thx ...Show All
.NET Development Database transactions performance issue
Hi everyone, Hope you all had a nice Christmas. This is my first post here, so be gentle, even if this is in the wrong forum, but since this forum mencioned performance, I thought I was in the right one. I'm currently building an app that basically will be a database client, being the database MySql, since it's cheaper. The database will represent a catalog of products, clients and such, but the main table will be the one refering products. My issue is, since the table has one field which is the picture of the product, and it will have somewhere between 500 and 1000 products (at least), and if each picture is around 100KB, we'll have a database with 50MB to 100MB (images alone), so my question is: if the user is browsing the produc ...Show All
Visual C++ Proper code syntax for successfull connection with an ADO.net database
Hi; Could someone point out my code error here. When I try to compile I get a C2065 OleDbConnection undeclared identifier error msg. Here is my code: #using <mscorlib.dll> #using <System.Data.dll> using namespace System; using namespace System::Data; using namespace System::Data::OleDb; #include "stdafx.h" int _tmain(int argc, _TCHAR* argv[]) { // The connection //string cnNwind; OleDbConnection * conn = new OleDbConnection(); conn->ConnectionString = S "Provider=Microsoft.Jet.OLEBD.4.0; " S"Data Source=C:\my_databases\taxLots.mdb"; // The connection string try { // Open Database conn->Open(); Console::WriteLine(S"Connected to database successf ...Show All
Commerce Server Developer's workstation
I'm still struggling with the notion that all of our developers must have Windows Server 2003 running on their desktops to build CS based applications. There are few references on the net about this and the bottom line is that doing it on XP is an option but not recommended ('I told you so' on one of the blogs). Being aware that some features may not work (warehousing) I still would like to have development done on XP. I've installed CS2007, already have VS2005. I've unpacked CSharpSite and when trying to access the page get this error: ' Login failed for user ''. The user is not associated with a trusted SQL Server connection'. I went to Commerce Server Mangager and for each (I hope I've covered all) connection to into Profiles, Mar ...Show All
Visual Studio Tools for Office Document path in Word 2007
I am using the new customization tools to create a new ribbon-tab in Word 2007. I try to execute code every time an existing document is opened in Word, and Word is already open. More specifically, I want my customized ribbon-tab to be invisible if the opened document is stored in C:\temp\documents\blabla. In order to do that, I must be able to execute code when the document is opened in order to access the file-path of the document. The methods Connect, OnConnection, OnStartupComplete fires when the Word-application is opened for the first time, and are not useful because I need my code to be executed every time a document is opened. Where can I place my code in order to access the file-path ...Show All
Community Chat asp.net ajax v1.0
gr8 news microsoft has launched asp.net ajax v1.0, u guys can download the free demo of tht from the microsoft website ya dear frnd.. its quite acceptable .. and on internet evrything is there .even u can get Ajax code with asp.net on diffrnt sites.. u can visit ajax.asp.net www.asp101.com www. code project.com/ asp net/ ajax dropdownlist. asp from MS --> www.microsoft.com/downloads/ details. asp x FamilyID=EF2C1ACC-051A-4FE6-AD72-F3BED8623B43&displaylang=en ...Show All
Visual C# convert image to icon
I want convert from image to icon thank you Hello Simple make an icon object and save it to a file. Here is the code: FileStream MyStream = new FileStream("MyIconFile.ico"); Icon MyIcon = Image.FromFile(@"MyImage.bmp"); MyIcon.Save(MyStream); MyStream.Close(); ...Show All
Visual Studio attaching Biztalk process Visual Studio is crashing
Hello Bruce, When I am attaching Biztalk process Visual Studio is crashing. I really appreciate if you know any fix for this. Please reply to seshu.x.vutukuri@jpmchase.com Thanks & Regards, Seshu. Hi, apologise if i shouldn't write it here but i'm with a similar problem in similar enviorenment (VS2005, BTS 2k6). Each time i try to build any BTS project within any solution the process takes 100% of CPU processing. Although i expected for a long (the whole night) it didn't take any advance and the process seems hanged up. The BTS project within the solution has a folder and within the process i made a very simple process of requesting and sending files. I hadn't continue creating my orchestration due to the ...Show All
Visual Studio Team System Getting time of the last branch done?
Here's my problem... I have two branches: $/MyRoot/Trunk/ProjA $/MyRoot/Branches/ProjA Trunk/ProjA has several sub-folders. I branch these folders individually to Branches/ProjA. After that I might check in changesets under Branches/ProjA/... How can I programmatically determine the time of the last branch operation done to Branches/ProjA Looking at a sample on Robert Horvick's blog I tried something like this... BranchHistoryTreeItem[][] history = versionControl.GetBranchHistory( new ItemSpec[] { new ItemSpec("$/MyRoot/Branches/ProjA", RecursionType.Full) }, VersionSpec.Latest); BranchHistoryTreeItem item = history[0][0].GetRequestedItem(); But I'm not getting anything useful. Does anyone know how to tweak the abo ...Show All
Visual Studio 2008 (Pre-release) How to get a framework element define in cell template
Hello, I'm working with ListView+GridView. I define my own datatemplate (stack panel with an image and a textblock inside) for each GridViewColumn.CellTemplate I have. Once I have the table up and running (loaded, etc) I want to get a reference of for textblock object in a given cell. Is that possible When I define the template I give a unique name for the textblock, later I try to use ListViewItem.Template.FindName() to retrieve my textblock but it returns null. Thanks Felipe this talks about your concerns http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=373518&SiteID=1 ...Show All
Visual C++ Problem with DialogBox
Hi all! I have some problem with displaying modal dialog box (through DialogBox function). I use pure win32 api, no MFC. I wrote something like that: DialogBox(instance,templateName,parentWindow,DialogProcedure ); where templateName contains name of a resource template. And the problems are: after executing above line the dialog box is displayed, but it has title bar with no window title and there is an "X" button, but I cannot click it. I cannot move the dialog also... The dialog always appears at the upper left corner of the client area of the parent window (if I try to make that dialog as a main window of my app, then it always appears at the top left corner of the desktop). There should be also a system menu ( ...Show All
.NET Development Generic performance... benefit?
Hi, in every article about generics is written that they improve performance because no boxing, etc. occurs. So I wrote this simple test code and was astonished that the non generic part actually performs a couple milliseconds faster than the generic part About 59.8 seconds for the generic and 59.1 seconds for the non generic (avg. of 10 runs). Am I missing something here [code] using System; using System.Collections.Generic; using System.Text; using System.Xml; using System.Collections; namespace ConsoleApplication6 { class Program { static void Main(string[] args) { string s = ""; Test<string> test = new Test<string>("hi"); DateTime start = DateTime.Now; for (int j = 0; j < 1000000; j++) { foreac ...Show All
Windows Forms DataGridView DataError argument is wrong
I'd like to report a DataGridView bug (or at least something that is misleading). One of my DataGridViews was thorwing an error. It's DataError event's DataGridViewDataErrorEventArgs parameter (e) said the event occured for column "A" (e.ColumnIndex). However, the parameter's exception message (e.Exception.Message) said the problem (which was a NoNullAllowedException) was with column "B". The exception message had it right. The argument's ColumnIndex was directing me to the wrong column. See code below. The two handlers do not point me to the same column. private void dataGridView1_DataError(object sender, DataGridViewDataErrorEventArgs e) { string sErrorMsg;   ...Show All
Smart Device Development Share Folder Error with ActiveSync
Hello, I have a little problem when I want to access to share directory with ActiveSync In my 2 devices (Windows CE 4.2 and Pocket 2003), I want to connect to a share (in my computer) I use activesync 4.2.0. So, I wrote \\SERVER01\ShareDirectory ... and I had this answer : "Can not find 'ShareDirectory' (or one of it's components.) make sure the path and filename are correct and that all required librairies are available" When I activate WiFi connection, that's work fine. ActiveSync don't know computer host Thanks for your help. In my knowledge this is not supported with ActiveSync. You may want to retrieve the resource via HTTP instead. Cheers, Anthony Wong [MSFT] ...Show All
SQL Server Management Console Configuration
In using Windows Authentication via the Management Console to connect to a database, my user name listed is in the following format <machine name>\<user name>. I would like to change this setting to <domain name>\<user name>. Is there any setting files or registry settings for the Management Console that will allow me to modify this Hi, if you log on with a domain account this will automatically change. If you are logged in with a local account and don’t want to logon with a domain account, or your comouter is not part of the domain you can use the stored credentials cache in Windows to logon using another account: Control Panel > User Accounts > Select the user > manage my ...Show All
