Software Development Network Logo
  • Visual Studio
  • Visual FoxPro
  • Windows Vista
  • Game Technologies
  • .NET Development
  • Audio and Video
  • SQL Server
  • Windows Forms
  • IE Development
  • Visual C#
  • SharePoint Products
  • Microsoft ISV
  • VS Team System
  • Smart Devicet
  • Visual C++

Software Development Network >> Santhoo's Q&A profile

Santhoo

Member List

saddy
Jesudhas
sascue
Indirani
faith2006
maulikk
meravsha
_M_
Jeff Levinson
GillRanjit
sandyrae
Michael Hogue
Stevo Zilik
BrentB
Shelto
Nick Gravelyn
CharissaJB123
Tim Windsor
stswordman
Ceres629
Only Title

Santhoo's Q&A profile

  • Commerce Server Paging in Commerce Server.

    We have a requirement to set up variants for a product, but display each variant as a product.When we use Paging for our listing, the paging is paged in context of products and not in variants , so we display more number of products ( as each product has many variants) than the page size, worst page 2 and on are totally messed up. Is there a way that I can page on products * variant than just on products in commerce server Code Used: CategoryConfiguration categoryConfiguration = new CategoryConfiguration(); categoryConfiguration.LoadChildProducts = true; CatalogSearchOptions catalogSearchOptions = new CatalogSearchOptions(); catalogSearchOptions.ClassTypes = CatalogClassTypes.ProductClass | CatalogClassTypes.P ...Show All

  • Visual Studio 2008 (Pre-release) Is this a breaking change or was it a prior bug?

    So I finally upgraded my machine to the June CTP of .NetFX3 and found my code was broken. Basically it was complaining that an ObservableCollection in my control was null during initialization. In Beta 2 it would just initialize my collection for me. Before this code would work: <tempNS:MyControl> <tempNS:MyControl.MyCollection> <tempNS:MyCollectionItem ..../> <tempNS:MyCollectionItem ..../> <tempNS:MyCollectionItem ..../> </tempNS:MyControl.MyCollection> </tempNS:MyControl> Now I have to explicitly declare the new collection like so: <tempNS:MyControl> <tempNS:MyControl.Collection> <tempNS:MyCollection> ...Show All

  • Visual Studio Express Editions Adding images to a project?

    I want to sort of store my images I use in my program with my project, so that other people can see them is there a way to do this I have an image stored under resources but when i go to call it ie mapImage=My.Resources.Washington it says it isn't a member of Resources. Anyone know why this is the case, I have set it as an 'Embedded Resource'. Hi. On a picture box use: PictureBox1.Image = WindowsApplication1.My.Resources.Resources.name_of_image_with_no_extensions   An easy way to test this is: 1 - Create a new project. 2 - Add a picturebox to form1 3 - Go to Image on the Properties, and import all the images that you want. 4 - PictureBox1.Image = WindowsApplication1.My.Resource ...Show All

  • Visual Studio Team System Reporting server not seen by other machines

    What could be the problems that other machines cannot see the RS that i can view on that server Regards Alu Hi for the RS i am not using TFS. I set up the RS on my local machine but the client machines have problem viewing them. Was wondering what are the settings that need to take care of to enable this to work. Regards Alu ...Show All

  • SQL Server Replication Failed: MSmerge_genhistory getting too big?

    Hi All, We have a SQL server 2000 merge replication and it has been running for couple of years. We were even fine too at the beginning after upgraded our publisher SQL Server 2000 to SQL Server 2005. Now we are starting have problems. I just found there were two files seem to be too big, MSmerge_genhistory.bcp (1,830,287K) and MSmerge_genhistory90.bcp (1,977,746K). I have no idea why these two files are so big. My questions are: 1.        Why these two files (we do have a mix of SQL Server 2000 MSDE and SQL Server 2005 Express as the subscribers) 2.        Can (Should) I clean the MSmerge_genhistory table How ( sp_mergemetadataretentioncleanup ) 3. ...Show All

  • Visual C++ project configuration: optional custom output directory depending on an environment variable or a temporary file

    hello, I've got the following issue: we have a C++ solution and the projects generate their outputs to "$(SolutionDir)\out". Now it's sometimes desirable to put the outputs somewhere else (e.g. when the $(SolutionDir) is read only). The problem is that source-controlled files must not be changed in order to switch output dirs (people will tend to accidentally check them in and kill the nightly build). It is possible to make developers set an environment variable set prior to launching VS2005 like "MY_OUT=C:\out" in case they want an alternative output dir. It is also possible to create new files to do this. No VB macros or plug-ins allowed (too high maintenance effort). The alternative output directory is generall ...Show All

  • Software Development for Windows Vista RegLoadKey / RegUnLoadKey in C#

    Hopefully this is the correct place to post. I have an XP application that I am porting to Vista. The app calls DllImport on advapi32.dll, and kernel32.dll. I am executing the following methods: OpenProcessToken GetCurrentProcess LookupPrivilegeValue AdjustTokenPrivileges RegLoadKey RegUnLoadKey I am receiving a null pointer in a method running the following code: /////////////////////////////////////////////////////////////////////////////////////////////////// int token = 0; int retval = 0; TOKEN_PRIVILEGES TP = new TOKEN_PRIVILEGES (); TOKEN_PRIVILEGES TP2 = new TOKEN_PRIVILEGES (); LUID RestoreLuid = new LUID (); LUID BackupLuid = new LUID (); retval = OpenProces ...Show All

  • Visual C++ BUG: when throwing exception a copy occured.

    class Ex { public:  Ex()  {   destroyed = false;   cout<<__FUNCTION__<<endl;  }     //Ex(const Ex& v)  //{  // destroyed = false;  // cout<<"copy:"<<__FUNCTION__<<endl;  //}  ~Ex()  {   destroyed = true;   cout<<__FUNCTION__<<endl;  }    bool destroyed;  void M()const  {   cout<<__FUNCTION__ <<": "<<(destroyed "destroyed": "not-destroyed")<<endl;  } }; void M1() {  throw Ex();  } void M2() {  try  {   M1();  }  catch (const Ex& ex)  {   cout<<"Catch-beg ...Show All

  • .NET Development Display data retrieved from a datasource in a label

    Hi all, can someone tell me how to display some data from a datasource into a label control Thanks you cam use as follow DataTable TB = TBC.GetTableA(); BindingSource BS = new BindingSource (); BS.DataSource = TB.DefaultView; this .label1.DataBindings.Add( "Text" , BS, "ID" , false , DataSourceUpdateMode .OnPropertyChanged); ...Show All

  • Visual Studio 2008 (Pre-release) LINQ2SQL Cast Exception on Average Aggregate only after I add an OrderBy on a Joined table

    Hi, I am having an issue with the Avergage operator. I am joining two tables, and projecting some aggregates in the result. As soon as I join to another table, it fails. Average equates nicely in the un-joined example, but fails in the join. I thought I'd bring it up in case i'm doing something silly, but the query does seem reasonable. Let me know if you need more information. This works: var q = from call in db. CallLog where call.Incoming == true group call by call.Number into g select new { Avg = g.Average( c => c.Duration ) }; foreach ( var call in q) Console .WriteLine(call.Avg); SELECT [t1].[value] AS [Avg] FROM ( SELECT AVG([t0].[Duration]) AS [value] FROM [Call ...Show All

  • Software Development for Windows Vista OpenThreadToken() failed with access is denied

    I have two users defined in my system. One is UserA, and the other one is UserB. Both of them are defined in the administrative group. UserA is a local user, and UserB is a domain user. I have an application running as UserA, and a service running as UserB. The application is calling a method defined in a COM object running in the service. I run into a problem when trying to call OpenThreadToken() when the thread is impersonating with a copied impersonated token. Here is the psuedo code: void SomeMethod() { // Try to retrieve the access token of UserA ::RpcImpersonateClient(); HANDLE hTok, hCopyTok, hNewToken; ::OpenThreadToken(GetCurrentThread(), TOKEN_ALL_ACCESS, TRUE, &hTok); ::DuplicateTokenEx(hTok ...Show All

  • Visual C++ Class View Properties adds wrong code for NM_CUSTOMDRAW

    A dialog contains a CListCtrl. To add a message map entry and handler for NM_CUSTOMDRAW, I selected the dialog in Class View, Properties, Events, chose the IDC for the list control, NM_CUSTOMDRAW, and "add code". This created a message map entry, function prototype, and function, with the line of code LPNMCUSTOMDRAW pNMCD = reinterpret_cast <LPNMCUSTOMDRAW>(pNMHDR); However, what you want is a pointer to NMLVCUSTOMDRAW, since that structure contains a number of fields needed for list controls. hello I would like to recommend you to discuss this issue in vc.mfc newsgroup since there are more qualified respondent that better understand the background knowledge related to your que ...Show All

  • Visual C++ Module tab says: the module did not load at the default load address

    I make a simple project using #define DLLEXPORT __declspec ( dllexport ) I've 3 projects in 1 solution, and 2 of them are .dll, 3rd instead uses first 2 libraries, is an application. When I build project i can read in Module Tab (bottom) the module did not load at the default load address width an exclamation (!) for 2nd project, instead 1st project loads correctlly. Infact if i try to use an Exception class that extends one defined in 1st project (.dll) i recive an error "unhandled exception". What does it mean How can i solve :( I don't know what the module tab is; I probably should but my memory is not helping me. I don't know where the message " the module did not load at the d ...Show All

  • Windows Forms Host Controls in Windows Forms DataGridView Cells

    Hi all, I'm trying to create a new cell within the new DataGridView (.NET 2 Beta). For example, I'm trying to create a cell which contain a RichTextBox, I succeed with the appearance of the rich text box controll but there is a lot of irregular behavior. Does someone did it already(not particular with RichTextBox) and can send an example. Unfortunately Microsoft example in the link below doesn't accessible. http://whidbey.msdn.microsoft.com/library/default.asp url=/library/en-us/dv_fxmclictl/html/e79a9d4e-64ec-41f5-93ec-f5492633cbb2.asp 10X in advance, Nir Oren I implemented the Calendar Column code as posted above by theBainster however, when I try to add rows to the DataGridView programmatically the Calendar Columns do not appea ...Show All

  • .NET Development Get signal strength in C#?

    Is there a way to retreive the wireless signal strength Thanks, theSignalStrength is not defined in your code. What is it supposed to be I tried changing it to theSignalString. Also, currentObject is not a method. Is it supposed to be currentObject.GetPropertyValue("*****") or another method in this variable ...Show All

©2008 Software Development Network