Moustafa Arafa's Q&A profile
Visual Studio Team System file check in bug!!
hi, i often work with multiple IDE's open to work on projects separately. today, in one IDE i checked out files and modified them. later, i opened another IDE, checked out files and edited those as well. both IDE's were using the same workspace, to my surprise neither IDE showed all the files checked out (i assumed they would). i closed the second IDE leaving those files checked out. after more modifications with the first set of files in the first IDE i finally checked those in. now, i launched a third instance of the IDE (still, only two running now) to return work on the second set of files. to my amazement, those files did not appear in my "pending changes" list. searching for those files showed them to be checked in with th ...Show All
Game Technologies: DirectX, XNA, XACT, etc. I can’t see my colors on the cube
Hello everybody. I’m trying to get started with DX. I’m trying to render a simple cube with 36 Vertices (12 triangles). The problem is that the cube is black and if I try to set the color for each vertex nothing happens. I’m getting crazy because I can not find the problem. I set the FVF and disabled CULLMODE. Lights are disabled and I’m using DrawPrimitiveUP to render the cube. What could be the problem The sample code from the tutorial I’m working on works well. But my code looks almost similar (as I can see). I hope that someone can help me. P.S: My Vertextype includes a D3DXVECTOR3 vector and a D3DCOLOR variable defined in a structure. You need to Set your ColorOP to SELECTARG1 ...Show All
.NET Development Handle simultaneous access to database
I am making an application which will be running on serval pcs and access same database simultaneously. It makes more than one database access at a time on any single pc. I need one of the access thread to get data from a data resouce and write the new data into the database to replace the old one. when this thread is getting and writing data to my database for an item, other threads accessing that item must wait till it finishes writing. The accessing threads are generated at runtime and the number of them is vary from time to time. The pcs do not have knowledge to each other and there isn't any other machine or application working as a center to control the database access. The pcs probably will work on the same network. but, th ...Show All
SQL Server getting the database collection doesnt always wrok
why doesn't this code always work <code> Dim conn as serverconnection=New serverconnection(".\SQLEXPRESS") Dim srv as new server(conn) Dim db as database for each db in srv.databases cmbDBfilenames.items.add(db.Name.tostring) Next </code) If the databases are located in the applicatio path , it doesn't pick them up Hi, The method you are using only checks for the server attached databases not the user instances. So if the database is in the application path, but SQL Server does not hold an actual reference to them (being attached to the databases) you won’t find them (SMO makes a call to the server to evaluate the available databases) HTH, Jens K ...Show All
Visual Basic Links
How do you link a button to a web page... Its for a project due tomorrow Another option may be to add a simple webbrowser control to the form and then set the url property. The webbrowser control is in essence Internet Explorer - so stuff that works in IE should work just fine in the webbrowser control. Then something a simple as the following will display the web site in the webbrowser control. Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Me.WebBrowser1.Url = New Uri(" http://www.google.com ") End Sub End Class Using system.diagnostic.process.start (" http://www.goo ...Show All
Visual C# Windows Vista Image Search
Hi, does anyone know if there are new API's in .Net 3.0 that can be used to find all of the pictures that have been added in the Windows Photo Gallery and then can be used to obtain metadata the user has attached to each image such as tags, rating, notes etc Thanks Mark. .NET 3.0 doesn't include any additions to the existing BCL library, just additions for Windows Presentation Foundation (WPF), Windows Communications Foundation) WCF, CardSpace, Workflow Foundation (WF). Most new functionality added in Vista would have to be pinvoked... The Search, Organize and Visualize in Windows Vista Forum may have related posts... You might want to poke around one of the Orcas Forums to see if what you're l ...Show All
Windows Forms ScrollableControl & wheel tilt?
How can I get ScrollableControl to scroll horizontally, when user tilts mouse scroll wheel ...Show All
Visual Basic Question about how to close whole program
Hey guys i have another stupid question 2 ask, apologise for my ignorace once again as this myt seem like a really stupid question. I have multiple forms for my program. I was wondering how i would close the whole program in the third form ( closing all forms) Me.Dispose() This only closes the form that i put this code in. These are just the final touches to my project for school. Would appreciate it if you guys would reply me! THANK YOU!!! :D You guys have been really helpful to me all along. Darenko, In the interests of getting it right, I would avoid using the End statement. As I said, it is a scary way to go about it. I believe in the KISS principal, but you also need to get it right ...Show All
Visual Studio Task Output with Condition
Hi all My issue's around the output element, batching, and conditions: I have an ItemList of all my test assemblies [@(TestAssembliesUT)]. In order to run all tests with NUnit, I use an NUnit task implemented in a ToolTask subclass. That means I can get the exit code into a property using the output element. Since I want NUnit executed separately for each assembly, I use %(TestAssembliesUT.Identity) as input parameter for the task. Since I do not want MSBuild to cancel when a test fails, I use ContinueOnError="true" Since I want MSBuild to report a failure when tests fail, I would want to know wether at least one exit code was not 0. Excerpt from my tasks file: <NUnit ContinueOnError="true" Assemblies="%(TestA ...Show All
Visual C++ How do you implement an Event Sink without a Type Library?
Hi, How does one go about implementing an event sink (in CLI C++) for a COM object that supports the IConnectionPoint interface without access to it's type library. In essence, how can it be done late-bound at runtime Thanks! CodeLogic wrote: Hi, How does one go about implementing an event sink (in CLI C++) for a COM object that supports the IConnectionPoint interface without access to it's type library. In essence, how can it be done late-bound at runtime Thanks! Event handling from late-bound COM objects canb be a bit tedious. Are you sure you wan't to do this It was easy to do in C# , translating it to C++/CLI was a bit difficult and I nearly g ...Show All
Visual C++ Bug: VC++ fails to instantiate static data member in template class
This code fails to compile on VC++ 2005, failing with error LNK2001: unresolved external symbol "protected: static unsigned int Foo<unsigned int>::a_static" #include <vector> #include <algorithm> template<typename T> class Foo { protected: static T a_static; }; template<typename T> T Foo<T>::a_static; template<typename T> class Bar : public Foo<T> { public: T f() { return this->a_static; } }; template<typename T> struct Functor { Functor(T const& t) : t_(t) {} int operator()() { return t_.f(); } private: T t_; }; template<typename T> Functor<T> functor(const T &t) { return Functor<T>(t); } int main() { std::vector<int> v(100 ...Show All
SQL Server CREATE FULLTEXT CATALOG inside a user transaction.
hi: I try to create full text for new created tables. Since all new created tables will have same columns with different table name. After I run the stored procedure to create table, after i got the new table name, I would like to create full-text on that table in the DDL triger. But I got error like this: CREATE FULLTEXT CATALOG statement cannot be used inside a user transaction. Any one has idea how to deal with it Thanks This is by design. Full-text catalog cannot be created in nested/embedded transactions. I dont' think the DDL trigger would work in this case. Perhap, create a store proc that will scan all the tables that do not have full-text index and add them on fly. ...Show All
.NET Development Get Datagrid...
Hi, I currently have a populated datagrid within my c# .net application. Once the user selects a record within the datagrid, I would like to get the value within the columnX of the record they have selected. I have done multiple searches and am unable to find a solution. All help is appreciated. this is also another way but probably not the best: object theColumnSelected = ds.Tables[0].Rows[ RowIndex ][ ColumnName ]; this will get the value for the row and column selected does this help ...Show All
SQL Server Help!!!! Restore file mdf after exec "Drop table..." to previous state.
Hi all. First, sorry about my poor english. I have a database which above 6 gb data and i have droped all table in my database. I try to restore from log file but my database is set to simple backup and auto shrink so log file doesn't help anymore. I have used some software to recovery from log file too but useless. My only hope right now is mdf file. Please help me. How could i restore my mdf file to state before i droped tables. Thanks Copy it from the results window and paste it into Notepad, another Query window etc. This is a 100% manual process. There are zero tools. There are no shortcuts. There is no easy way to do this. In essence you are going to manually type back in every single piece of data within the database. If you ...Show All
Visual Studio Express Editions datagridview problem
hi all.... i have a datagridview which contain a combo box........and i want to bind the available data from database to the combo box..........and when user select on the data in the combo box, its information will be show ... now i facing problem in binding the data from database to the datagridview's combo box.... so, anyone have an idea regarding this problem thanks hi all.... i am facing a problem now........i add a combo box in a datagridview......and bind data to the combo box..... but how can i get the selected data from the combo box in the datagridview once the user select a data from the combo box....... Please kindly reply me if anyone know the solutions..... thanks ...Show All
