Gary7's Q&A profile
SQL Server How to align the text in Justify format with SQL Reports?
When i was working with SQL reporting services of MS SQLSERVER 2005, I am not able to align the text in Justify format, since there is no such option in it. But i need to align the text in justify format. How do i align it ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Could C# be the future of gaming?
Since XNA is using C#, and is is a more intuitive language than C++, is it possible that in the future that C# will dominate, espessially in AAA titles. Could XNA be ushering a new way of programming in the main stream With the ability to use unsafe code in C#, I expect performance to not be an issue in any game other than cutting edge stuff. There will probably always be those that will prefer C++ over anything else, but I can see a move by smaller companies to C#, for the increased speed of development if nothing else. ...Show All
Visual Studio Express Editions Reading txt file
Assuming i have a txt file, how am i going to read certain lines of the file Like, reading the third line or reading from 3 to 7th line Sorry, another question, how to make it reads when it reaches line 3 until it reaches line 7 Means how to set the line reading interval ...Show All
Visual Studio 2008 (Pre-release) How to enumerate and access client channels on a WCF server
Is there a way to enumerate connections on a WCF server I have a scenario where I'd like some code on the server to be able to get a list of all the connected clients, e.g. to display which clients are connected. But more than that, I'd like to be able to add custom state information to connected client channels and have a service method then have access to all the other client channels which are connected to the server. I've looked at the IExtensibleObject<T> but it's not clear from the channel extensibility example how this should be used. Any suggestions anyone Cheers, MikeS. Hi Mike, You can call ServiceHost.GetInstanceContexts() to get a list of the active InstanceContext objects. Depending on your InstanceContextMode ...Show All
Game Technologies: DirectX, XNA, XACT, etc. IDE problem
I downloaded XNA today from microsoft after installing the VS 2005 express edition. I then watched a tutorial on how to develop pong and noticed a difference in my IDE. when i go to create a new project, i do not have the option to create "Game(XNA)". Mine says: "Game". the text below the project type window says it's an XNA 1.0 game so i clicked it. I then noticed my default game1.cs class has no designer to it. There is supposed to be an expand option on the class so i can set properties such as height, width, etc. My game1.cs is simply a class with no way to view it in design time. Has anyone else experienced this Thanks. the tutorial i watcehd from learnxna.com showed the designer t ...Show All
Visual Studio Tools for Office Outlook 2007 RTM FormRegion & InfoPath control
Thanks for your reply (sorry I didn't see it sooner). The basic form region is made up of the standard to, cc, subject, and message fields and then an InfoPath control at the bottom. The form region is a "replacement" form as opposed to a partial region that exists in another form. Using the simplest repro method, have the add-in cause the InfoPath control to create a new form using a template (we open a File Open dialog to get the template but you can hard-code it for your tests). Once the form region (as its own form since it is a replacement form region) is open, you can tab to all of the controls except the InfoPath control. You can click (with a mouse) into a field in the InfoPath control, but if you press tab, you will leave the ...Show All
.NET Development get columnscollection from table
Is there an easy, memory efficient, way to retrieve a columnscollection object from a specified table The regular way would be just to do: SqlConnection con = new SqlConnection("..."); con.Open(); SqlDataAdapter adapter = new SqlDataAdapter("...", con); DataTable table = new DataTable(); adapter.Fill(table); But for my current project I do not have control over the query string and the query string could also be a stored procedure, which would then be passed as a SqlCommand object. So I am forced to use an SqlDataReader when doing what I need to do. So is there a way to get column information from an SqlDataReader that includes Default Values, Data Types, etc... for each column Preferably I would like to get a pointer to the actual ...Show All
Visual Studio Express Editions Putting a byte in to a text box
Hi, Please can someone paste some code for me, I am trying to put a byte in to a text box but have no iead how. I'm pulling my hair out with VB 2005 express and have no idea how to do anything. Thanks I am sending data ok to my hardward and my hardware is sending data back constantly which I can see with the terminal program I have which also connects to com1, this is my first ever peice of code so I could do with someone to look at it and see what I am doing wrong, I know there is an error in the code not the hardware I am missing something in it ...Show All
Visual Studio Express Editions weird exception
THe below codes create an Access violation exception which I could not fix ptmp = a; sortedlist=a; //process of joining both lists, into a single list begining at a while (ptmp->next!=NULL) { ptmp=ptmp->next; } ptmp->next=b; Would you please help me Thanks JavaBoy wrote: There is full list of node whose head is a. p =a; then we pass through the each nodes to reach the last part and then we can merge/stick the second list of nodes to the " p ". Could you provide entire code (if the project is too big, could you make a minimum sample code that can generate the error)so that we have enough context to help you to solve this problem I believe the problem will become obvious when we ...Show All
SQL Server sql server management studio express
I need sql server management studio express,could you tell me from where i can download it or send it to me, if it possible Thanks You can download it from the SQL Express download page at http://msdn.microsoft.com/vstudio/express/sql/download . Mike ...Show All
Visual Basic Custom Button Control flickers - Paint event gets fired continuously
Hi All, I have a custom button control in VB 2005, ported from VB 6.0. I faced many hurdles before i got it working with all the functionalities that it had in VB 6.0. I draw the graphics of the button in paint event. I need clarifications on the following things. 1. When there is a change in property. example the text property, it needs to be reflected in the control. So i call Invalidate method. Is it the right way to refresh the button 2. This button control works fine when there is no change in the form that uses it while running. i.e. What i mean is, if there is a label in form that updates the timer count down, the custom button control received paint event every time the label in the form that also has this control change ...Show All
SQL Server Locking Issue
Hello everyone, We have an unexplainable problem concernaing locking in SQL Server 2000 sp3a. Here is what we can see using Enterprise Manager: Process ID Lock Type Mode Satus Owner Index Resource ---------- ---------- ----- ------ ------ ------ ---------- 112 KEY U GRANT Xact idx1 (fd0066dd24ee) 112 PAG IU GRANT Xact idx1 1:215772 112 ...Show All
Windows Live Developer Forums Is the pixel unit of virtual earth map the same as unit of web browser?
I use the web browser to display virtual earth map .I set the map size and the size of the web browser the same size ,but i found that the size of the map is lesser than the size of the web browser. My code for virtual earth map is as follows : map.Resize(nwidth,nheight); my code for web browser is as follows: m_pWebCtrl->MoveWindow(0, 0, nwidth,nheight); I know the unit for virtual earth map is pixels value, maybe I need to set the mapmode of CDC. Please tell me how to do the unit conversion or something else to make the size of my web browser and virtual earth map the same. i appreciate your help. Dude, you dont really have to think about width/height conversions, just add a body_onresize function to y ...Show All
Visual Studio Express Editions Manual Update
anyone got any example code on manually uodating your application without using the clickonce upload installer, this would help me out alot. yeah I did read that thread lol. Renee how do you do, could you help I did try sharewarestarterkit but It wouldn't configure for me. ...Show All
Visual C++ Finding the windows directory?
I have tried googling, and searching these forums for what I thought would be a simple answer, but I can't find it. I am looking for a way to find the location of the windows directory on any given computer. How would I go about doing that I am sure it's a win32 call but beyond that I am stuck. Thanks, Matt mattdawg wrote: I have tried googling, and searching these forums for what I thought would be a simple answer, but I can't find it. I am looking for a way to find the location of the windows directory on any given computer. How would I go about doing that I am sure it's a win32 call but beyond that I am stuck. Thanks, Matt It is a shell API called SHGetSpecialFolderPath(). ...Show All
