J Andrews's Q&A profile
SQL Server how to access named instance throug ip address
I installed Named instance in SQL 2005 Server ( TESTAV\TESTNETAV ), now i am not able to acces this instance in SQL Query Ana.throug IP Address. i am able to access this instance through name How can i resolve this issue please help me out If you open up SQL Server Configuration Manager you can set up an alias under SQL Native Client Configuration, and in that alias you can specify the port that SQL Server assigned the named instance. (Default instances always use port 1433, but named instances always use different ports.) Once the alias is set up on your workstation you should be able to connect to the database. (BTW, you should be using Management Studio with SQL Server 2005, not Query Analyzer.) ...Show All
Visual C++ variables in dll
This is my code, for(int ii =0;ii<2;ii++) { Datasources[ii].hLib = LoadLibrary(MyDll.dll) Datasources[ii].fun1 =(SCODE (*)(void *))GetProcAddress(Datasources[ii].hLib, "Fun1"); Datasources[ii].fun2=(SCODE (*)(void *))GetProcAddress(Datasources[ii].hLib, "Fun2"); Datasources[ii].fun3 =(SCODE (*)(unsigned long,void *))GetProcAddress(Datasources[ii].hLib, "Fun3"); } I am using LoadLibrary to load the DLL. In the above case is the data Variables in dll will be seperately created each time we use LoadLibrary function to load a DLL It is identical to all thread and must be protected against concurrent access. Otherwise have a look at TLS (thread local storage). TlsAllo ...Show All
Windows Forms events
hi, i'm stuck on something. i have a custom dgv with inside it Private WithEvents mynavigator As BindingNavigator Public WithEvents mySave As Windows.Forms.ToolStripButton now mynavigator and mysave are on a main menu. so basically all dgv that are draggd and droppd have control over the navig, and the save button, the navigator works fine, it knows which dgv is in focus etc. the save now is an issue,. the mysave button is a reference to a shared savebutton when the dgv is in focus. now when i press save, all opened dgv save action is fired. is it not supposed to be one dgv's save when the save button is shareD what can i do/ okay basically i need somthing like. a button, we all can share it, ...Show All
Windows Forms Problem sorting DataGridView
I've written myself a sortable filterable collection object that implements IBindingList. Last week i tested it all using dummy data and i'm sure it worked fine. I've spent a few days changing the datamodel to fit with my new frontend design and had a weekend away from my desk and when i come back to the office my sorting only half works. When i click on a DataGridView column header the list sorts in ascending order and that's as it is meant to be. If i click on another header it sorts in ascending order by that column's data. If I click the same column twice however it doesn't reverse the sort. I checked the code for sorting and all the code is there to do sorting in both directions. If i drive the collection from a test harness it works ...Show All
Visual Studio Team System Error in installing the application tier of TFS
Hi I'm struggling with the TFS setup for dual server installation :( now while installing the application tier the "createDs" command fails with an error code of 4 and says "Unable to connect to the Yukon Reporting Server. Please check that the Yukon Reporting Web and NT services are running and you have sufficient privileges on the data tier: The request failed with HTTP status 404: Not Found. Data source creation failed" Can someone give me some pointers to the issue!! or any clue wat must have gone wrong Hello, Are you installing the RTM version Have you installed all of the prerequisites before starting the TFS installation You can find the latest setup guide o ...Show All
Visual Studio Express Editions Hirarical Tree View C#
Hi, I want to create Hirarical tree view based on are the following record stored in a table. Id Name Parant id === ============== ======== 1 Test 1 2 Test 1.1 1 3 Test 1.2 1 and so on... I am using C# windows form how can I create tree nodes at runtime based on above mentioned information. Thanks in advance, MustafaIsmail wrote: hmm, Please replace the light bulbs in the previous post to [ i ] minus the spaces. Mustafa Actually, if you leave the spaces, it should also work. Spaces mean nothing to the compiler unless they separate two tokens that could be taken as one otherwise, ie: to separate a keyword from an identifie ...Show All
Visual C++ stack function to simulate memory use
Have a program that I need to build a stack function for. Any ideas on where to look for help - or does anyone have code needed . I want the stack function to update a two dimensional array (memorytable in code below). It would only update column 2 with a page number (as a character). But as user inputs data and the array becomes full - the oldest member in the column needs to be replaced with new data. If a page number is in page column and it is accessed again it needs to get a new time stamp - or go to bottom of stack It has to replace pages on a LRU (Least Recently Used) basis. This is the code I have so far - commented code and put it in bold to show where I'd like to add stack: #include <iostream> #include <conio.h> ...Show All
Visual Studio 2008 (Pre-release) Can anyone help to explain How to implement page transition like Newyork Times?
There once was an article maybe refer to this topic http://www.designerslove.net/2005/10/page-transitions.html but now it seems no long be there. So can you help me to explain that Thank you! It will work in any situation where you have a Binding. In general you can apply the transition like this: <ContentControl Content="{Binding}" ContentTemplate="{StaticResource NYTimesTransition}" /> Whenever the result of the binding changes, the Transition will be performed. This looks a lot more complicated in the sample because of the crazy bindings to allow selection of different transitions. - Doug ...Show All
Visual C# How can I stop the illumination of the form ? GDI+
Hi, wile I was trying to draw on the form every 100 ms , I had a problem that the form illuminates like the flash light every time I tried to draw on it, I know that I mustn't clear the form that much but I have to because I'm trying to let the form take a shape I've drawn in a PNG file . what can I do to stop this Illumination or if you know a better way to shape the form as I want please write it here . and I want to tell you something great : I have taken 98% in my high school final exam ( the one before the university ) which means I can choose to enter any faculty I want in Damascus University . sorry I didn't understand id " Avoid it by painting the form area not covered by the bitmap " ...Show All
Windows Forms Regular Expression Validator for Combo Box:Window Forms(.NET Framework 1.1)
Hi , I am using .NET Framework 1.1 with Window forms.I want to know how to use Regular expression validator with combo box to display message like "Selection required" ,please suggest. Thanks. Hi, I am using ASP .net Windopws application.Please let me Know how to use "Regular Expression Validator" . ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to control level of multisampling ?
Hi all, I have a question: How can I control the level of multisampling I understood that with graphics.AllowMultiSampling = true the device will be set to use multisampling, if possible. But how can I control the level of multisampling, e.g. if I want to let the user to decide between 2x multisampling and 4x multisampling Another related question: Let's say I have a windowed (not fullscreen) device at a size of, say, 640x480. The device runs fine with multisampling. Now the user resizes that window to a larger size, say 1024x768. Will the device automatically be reset to no multisampling, if using multisampling would exceed the video memory Cheers, Christopher You should be able to hook the ...Show All
Visual C++ What is difference between Queued and Non-Queued Messages?
Please tell me the exact difference using proper examples in Queued and Non-Queued Messages. This Q. is relevant to Windows Programming using Visual C++. Gaurav Arora wrote: This Q. is relevant to Windows Programming using Visual C++. No, this question is not related to the C++ language. Visit the newsgroups at http://msdn.microsoft.com/newsgroups , and see my notices to you in your other threads. ...Show All
Smart Device Development WindowsCE, CF + Rijndael encrypt., I'm stuck
VS 2005 supports both NETCF V1 and V2. Since CE is Unicode it's a good idea to get rid of char and use WCHAR instead all the time. This way you could simply pass string (or StringBuilder to pass string from native to managed). If you do need to pass char, conversion from Unicode would be needed on managed side or native side. Please take a look at these P/Invoke samples: http://msdn.microsoft.com/netframework/programming/netcf/netcfsamples/default.aspx pull=/library/en-us/dnnetcomp/html/pinvokelib.asp http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnnetcomp/html/netcfadvinterop.asp http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnnetcomp/html ...Show All
Visual C# StreamWriter or StringBuilder? to a text file
Can someone advise on how I should build this. the requirement is to build a text file from a table (1500 rows & 15 columns) I need to loop through the rows in a table adapter based on a parameter and for each row in the table adapter I need to write each column of each row into one text file. thx in advance http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpguide/html/cpconWritingTextToFile.asp It would probably be easiest to use StreamWriter because all you are doing is creating a text file. ...Show All
.NET Development MS access database used but client does not have access is this possible??
I am developing a program using visual studio 2003 and c# and want to use access as the database. The client does not want to install access on all the workstations is there still any way for the program to still use an access database Thanks in advance Lorne MS Access is a file based DB which means that no database software (i.e. MS Access) needs to be installed on a client to use it. All that is required is OLEDB and the MS Jet Provider which will be installed with .Net Framework. ...Show All
