Adrian Militaru's Q&A profile
Visual Studio XMI and Design Patterns
Hi, A model (Class Diagrams) is exported to XMI format. Now,in the class diagrams,each class is stereotyped to follow a design pattern say Observer Pattern (take 4 classes are participating in a single Observer Pattern). If there are 2 or 3 sets of classes (i.e. there will be 8 or 12 classes) which follow Observer Pattern within the same XMI file then how can we know which class is related to which other 3 classes (Say in set 1, class c1 is ...Show All
Game Technologies: DirectX, XNA, XACT, etc. LockRect on a DXT1 surface with 1bit alpha
Hi, Im just working on my terrain shadowing (not realtime) and want to consider the alpha-values of an objects texture. I want the object to cast a correct shadow and already managed to achive this for "normal" texture formats like A8R8G8B8 and A1R5G5B5. I lock the texture using lockrect for a rect of a single pixels-size. So this works alright: lpAlphaTex->LockRect( 0, &lckd_rect, &rect, D3DLOCK_READONLY); DWORD* pTBits = reint ...Show All
SQL Server Does SSIS have these features????
1> Support for rules based and change-data-capture extracts 2> Push and Pull methods supported 3> Convert between ASCII and EBCDIC 4> Ability to extract from packages like SAP and Peoplesoft natively 5> Extract from multiple sources simultaneously 6> Support for native database features like database bulk loaders 1. Can you elab ...Show All
.NET Development IStream.Read documentation
The msdn documentation for IStream.Read says the following about the pv parameter: When this method returns, contains the data read from the stream. This parameter is passed uninitialized. What does uninitialized mean here As far as I can tell this method does not work as expected unless pv is a byte array with length equal to the cb argument. If I use the interface from C# it wont even compile if I leave pv uninitialized. ...Show All
Visual Studio Express Editions C# Loop thru a Listbox
Just started knocking around in C#. For the life of me (no pun intended)....I cannot convert this from VB: for i = 0 to List1.listcount - 1 MsgBox (List1.List(i)) next Believe me.....I have tried every logical possibility....this is pretty scary, from what I've read the syntax diffs between VB.Net/VB and C#....are not really that different. for (int i = 0; i < 5; i++) MessageBox.Show(listbox1. Hi, listbox.items is an array thet ...Show All
Windows Forms How to get all the attributes of an HtmlElement?
System.Windows.Forms.HtmlElement.GetAttribute can be used to get value of an atribute by its name, How can I get the name of all attributes for an HTMLElement Thanks i guess that would be one way to look at it---of course, if your html is well formed, then you just load it in an xmlreader, there you have it...no shortcoming ...Show All
Windows Forms Application Settings Upgrade
From what I have seen, the application settings do not migrate from one version of the application to another. I have read about AppSettingsBase.Upgrade() but I am not sure how to apply it. Should the application call Upgrade() each time it is started If not, how should the application handle the transition between versions without requiring end-user assistance and assuming the settings are the same between versions. Thank you, Valentin T ...Show All
Smart Device Development Windows CE Shared Sources Premium - what's included?
There is a web site outlining the MS shared sources initiative: http://msdn.microsoft.com/embedded/usewinemb/ce/sharedsrccode/default.aspx , but it's not detailed enough to allow a developer to make suggestions re purchasing decision. Can anyone answer (an MVP perhaps), what exactly is included into the Premium sources, for example does it include TAPI, RIL, cellcore, and so on Thx. VB. I would ...Show All
Visual Studio Team System Could just be a bug! - loading webtest to loadtest
Hi guys, I'm using a trial version of Visual Studio 2005 Team Suite Edition. I was trying to create a new load test using the wizard. Then, I want to add a recently created Webtest (in vb code - which has been successfully compiled). I realise that I couldnt find the webtest from the list (Test Mix - Add - /All Loaded Tests - Available tests) I then restarted Visual Studio 2005 Open up the load test and edit the test mix - now I can see all th ...Show All
Visual Studio Problem with List type value property
I'm having a problem getting a value property with a non-standard type to work as expected. I want to add a value property with a list type to one of the classes, so what I have done is created a trivial subclass of System.Collections.Generic.List whose type parameter is a trivial class with a few properties: public class ViewCollection : System.Collections.Generic. List < ViewItem > { } public class ViewItem { p ...Show All
Windows Forms Forms and Parent property
Something has changed between how VS2003 and beta 2 and I need help in indentifying that. I have one form that I call a parent form. This form in not a MDI form. Within the parent form code I create a new form and make it a child of my parent form. The code is below. Form frm = new frmChildTest(); frm.TopLevel = false; frm.Parent = this; frm.Show(); It works, the new form, my child form, is contained within my parent form. ...Show All
Smart Device Development DataGrid issues
Hi, I've installed the CF2.0 SP1 patch so that my DataGrid could be align to the right (I'm writing a RTL program.. hebrew) But I didn't understand how to get the headers to be align to the right aswell, another question regarding the binding of the SQL MOBILE and the DataSet, I have a table, and i want the user to see only 3 columns in the datagrid, but the problem is that one of the columns vary in the DB, I need to display i ...Show All
Visual Studio Tools for Office paneClassDC ????
Someone knows why in the code below, the hWnd returns 0 I'd like to get the slide handle but not with the slide show running with "screenClass", but with the show stopped. HWND h = ::FindWindow("PP11FrameWindow",NULL); HWND hWnd =::FindWindowEx(h,NULL,"paneClassDC",NULL); DIG. Hi This is a forum for Visual Studio Tools for Office I think you would be best posting thi ...Show All
SQL Server SUM problem in SSRS 2005 report
I don't know how best to explain this but will try. In my SSRS 2005 report, i have one group in my table. In that group, I have a field that for each company record in my dataset, this field value is repeated for each record. This is a transactions table so you'd expect several records in the dataset for each company..that's not the problem. example data from dataset: TransID CompanyID &nbs ...Show All
Smart Device Development Smartphone 2003 SE emulator error--"VPC network driver error"
I m new to using VS2005 for smartphone2003 native development. As it seems I m not very impressed wid its claims of scoring over eVC 4.0. Neways, as I try to deploy any app (even the template for that matter), it shows this error message box--"Failed to open VPC network driver. The driver might not be installed". MSFT ppl hav any explanation for this behaviour I sserched up the forums and got the reason why the error was there. It was bec ...Show All
