ashish12345's Q&A profile
Visual C++ Errors with an ordinals function ... :(
I'm using an ordinals function for my current program, I found the code written in javascript so I decided to translate it into C++, but I have a whole lot of errors that are coming up now... System::String^ getOrdinal(int number) { System::String^ ord = 'th'; if((number % 10) = 1 && (number % 100) != 11) { ord = 'st'; } if((number % 10) = 2 && (number % 100) != 12) { ord = 'nd'; } if((number % 10) = 3 && (number % 100) != 13) { ord = 'rd'; } return ord; } The errors are: Everytime I have used the varaible 'ord' including the initialization I get an error saying that the computer can't convert string to int type. I think this is being caused by the int default return type rule. Bu ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Setting a Clipping region
I need to make a clipping region like the mini-map on need for speed. What I plan on doing is this. Draw the map on a texture, then creat a clipping region and just show whats in the map circle, clipping off whats on the outside. Does anyone know how to do this or links to achieve this Thanks, Nick nick5454 wrote: Is there any plan to simply this at all It seems overly complicated to do something so simple. Yes and no. No because there is no simple way to say "Render this here in this shape" in XNA/C#/DirectX. You have to build that functionality, or grab someone else's component that does. Yes it is easy because you could just render a RenderTar ...Show All
SQL Server An error has occered while establishing a connection to the server.
I downloaded the AdventureWorks sample from the msft website and installed the sql exp. with advanced services and the toolkit. but an error occured while i opened the solution file "AdventureWorks Sample Reports.sln" and tried to test the connection. It said that it was prossibly caused by the default settings denying remote connections. But the fact is that I have already enable the remote connection, both for TCP/IP and named pipes in the surface configuration and restarted afterwards. How can I solve the problem What does the connection string look like Is the server running (sqlservr.exe Try sqlcmd -S .\SQLEXPRESS to test the connection on the local machine or sqlcmd -S <computer name ...Show All
SharePoint Products and Technologies WSS Events list missing VSTF Portal
Hello, I posted this in the VSTF forum but was refered here when we hit a dead end. Here is a link to that forum ( https://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1194351&SiteID=1&mode=1 ) Basically, I want to extent my Team Portals to have a calendar. I was told to use the Events web part and configure it to display as a calendar. Easy enough, right, well the trouble is I don't have access to the Events list object. The WSS has it b/c when I create a team project against a different process template (MSF agile) that team portal has the Events list. It is only in my Conchango Scrum for TFS team portals that I do not have access to the Events list. Is there a way I can import the Events list into my Scrum portals ...Show All
.NET Development System::Resources::MissingManifestResourceException
I recently changed computers, and the first program i write with my new VCPP turns up with this error when i run it: [error] An unhandled exception of type 'System.Resources.MissingManifestResourceException' occurred in mscorlib.dll Additional information: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "form.main.resources" was correctly embedded or linked into assembly "main" at compile time, or that all the satellite assemblies required are loadable and fully signed. [/error] on the line [code] this->newToolStripMenuItem->Image=(cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"newToolStripMenuItem.Image"))); [/code] (g ...Show All
Visual Basic How to stop vs 2005 publishing vssver2.scc!
How does one stop vs 2005 publishing the hidden system file vssver2.scc! Is this just broken, or is there a work around to stop vs 2005 spublishing this unwanted file.. Thanks. Background.. An existing installation of Vs 2005.. Added vss 2005, which created problem.. The vss 2005 instaltion si side-by-side the default for vss 2005. When vss 2005 is run it creates hidden vssver2.scc file in \bin These are then published, which creates overwrite problems as they are hidden files.. Vss 2005 is desigend to work side by side when installed with vs 2005 right But will try and delte all the vssver.scc files, but this is not going to work as woill be a maintaince nightmare.. ...Show All
SQL Server How to populate a Date/Time dimension?
In SSAS, it seems that it's an option to populate a Date / Time dimension. Is there any tutorial for this In my application, I need the cube rollup by year, month and weekday. Moreover, I also need to rollup by specific time frame, like hourly, per 2 hours or 15 mins. How can I populate the dimension Here is a link to a TSQL script that might help you with building a time dimension: http://sqljunkies.com/WebLog/enigma/archive/2004/02/04/940.aspx Else I recommend testing TSQL Datepart(), DateName(), GetDate(), Year(). Have a look under time functions in Books Online. Your can used them i named calculations in the data source view to create new columns. Be aware that SQL Servers way of rolling up weeks over years is not correc ...Show All
Visual Studio Team System Team Project Creation Failed
Hi I have just installed and configured the VSTS foundation Server 180 Day Trial Edition. When I create a new team project with my user credntials (which have been added to the TFS Admin group and SQL Reporting and Sharepoint) I get the error below. When I create a new team project using the TFSSetup user the project creation is successul, however I am unable to retrieve work items from the Project from Excel or Project. I get the following error "TF80066: You are not authorized to porform this operation. Please contact your Team Foundation administrator." I am not sure if the problems are related. Any help would be greately appreciated. Cheers Jock Error TF30004: The New Team Project Wizard encountered an unexpected erro ...Show All
Visual C++ C++/CLI problems/issues
I have some questions on C++/CLI issue. Let me explain my situation: I have an existing native COM dll that contains my logic. It has been tested and works fine with native C++ client using CoCreateInstance. I would like to add a new logic and notice that BCL has a class that I can use. So I add a new source file and header which I compile with /clr since I need to use one of BCL classes (actually, at this point, it is just an empty shell). When I tried to CoCreateInstance in my native client, it couldn’t create. But if I go back to my COM dll project and take out the /clr in my new source file, it works fine. After some debugging, I found out the problem and have been able to fix the issue. However, I would like to get more detai ...Show All
Visual Basic computing a mean and standard deviation
hi guys firstly i am new to all this as i am currently a student and i am studying visual basic.net so here is my problem i have to write a application in visual basic that computes the mean and standard deviation how do i write the code for this and how do i set up the sullotion explorer window please could some one help me i have been stuckon this for a week now. thanx The point was, you should be doing the homework, not asking someone else to do the homework for you. The howework you have been given should be relatively easily completed with what you have already been taught in class. To calculate standard deviation and mean, again, you should have already been taught. If not, Wikipedia has ...Show All
Gadgets Pass array between Settings page and main gadget window
Here is the situation: on the settings page, I dynamically create checkboxes to display some options to the users. When saving, I loop through these controls, to check which ones are actually checked. This works OK. Now, to pass the information on which ones are checked, I can write a setting for each one (works ok), but it would be handy if I can pass an array of objects from the settings window to the main gadget window. Here's some code to make it clear: In the settings window, I have created a "custom object" with "some properties": var keys= new Array(); function aFeed(_feedKey, _show, _link) { this .feedKey = _feedKey; this .show = _show; this .link = _link; } Now, when saving, I use the following code ...Show All
SQL Server Calculated Dimension Member destoys date-hierarchy structure
Hi, I have a problem if I add a Calculated Dimension Member to a Date Hierarchy, first I thought - I would set attribute relationship of my date-dimension not properly, but then I tried to apply this to AW-DataBase. Here's a script of creating Calculated Member in AW (Date.Calendar): CREATE MEMBER CURRENTCUBE.[Date].[Calendar].[All Periods].[DateCalcMember_CopyOf2004] AS [Date].[Calendar].[Calendar Year].&[2004], VISIBLE = 1 ; After adding it, try to expand the years-nodes in browser: you won't find any semesters behind, except CY2001 - he got all semesters of other as childs. It is possible to configure this behaviour somewhere or it is a bug of OWC 11 PivotTable that is used in Cube Browser Thank you in adv ...Show All
Smart Device Development WSAAsyncselect() function on winCE
Hi e'one Could anyone help me how to implement the above mentioned function winCE.its not supported in winCE. I realized we can create a thread listening for any msges with select() ... can anyone elaborate a bit more... -aak Hi, Look at the implementation of CAsyncSocket::AsyncSelect for device. We have substituted the implementation of WSAAsyncSelect with some equivalent implementation. You can take a clue or two from there. Ideas - Create an event with WSACreateEvent. - Use WSAEventSelect to install the event with appropriate options for the socket. - Have another thread that waits for events on these objects using ::WaitForMultipleObjects and dispatch the message to the windows associat ...Show All
SharePoint Products and Technologies users can t open documents that re more than 400 k byte in wss3
do u know what might be the cause pls Hi, It could be that your web server stops responding after a certain point. Have a look at the event viewer and see if there is anything there that might clue you in. Is this problem occuring across all of your sites in WSS or just one site in particular If you only have one site collection I would suggest creating a new one and try to reproduce this issue. Post back here your findings so we can help you solve this issue Thanks, Jason Medero WSS MVP www.sharepointblogs.com/jasonmedero ...Show All
Visual Studio Capturing "Load Report Failed" details
Hello, I have a set of Crystal Reports displayed in .Net 2.0 WinForms. I've had numerous reports run with relatively little difficulty across numerous machines. However, I now have two reports that get a "Load Report Failed" error on PCs other than my development box. I verified that the Crystal versions match, file permissions are correct, etc..., but I'm unable to debug it. So is there actually a way to determine what the error is Does Crystal log these errors anywhere Is it possible through some round-about means in code to capture the error I have this same exact problem and after 2 days of searching I am still nowhere... I have confimed that this must be a bug in the Crystal ...Show All
