Gage's Q&A profile
Visual C++ error C2665: 'operator new' : none of the 5 overloads can convert parameter 1 from type 'const char [71]'
When I try to compile the programe in VC7, I got some errors mensioned below, how to resolve them, suggest me. c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xmemory(34) : error C2665: 'operator new' : none of the 5 overloads can convert parameter 1 from type 'const char [71]' c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\new.h(100): could be 'void *operator new(size_t,const std::nothrow_t &) throw()' c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\new.h(108): or 'void *operator new(size_t,void *)' while trying to match the argument list '(const char [71], int)' c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xmemory(137) : see reference to function te ...Show All
Visual Studio Express Editions Webbrowser.Document - Click handler keeps multiplying
Hi There, I'm trying to record web page navigation so I can play it back like in an automated test tool. I've dragged a webrowser tool onto the form (webbrowser1) and set the url to the starting webpage. I then created the following code which adds the id of the element you have clicked on into a listbox(listbox1). The first page works fine but when you navigate to the second page you get two entries per element in the list box. Then when you navigate to the third page you get three entries per element in the list box. I think it is being caused by the AddHandler which is called every time you navigate to a new page and so it keeps adding more and more event handlers to the click event but I don't know how to stop this happening. If ...Show All
Windows Live Developer Forums Image Search
The Image Search in live.com is very interesting. How can I search images in my computer hard drive using live.com Is there a SDK for Image Search I believe the "smart scroll" is "just" a virtualization of the scrollbar metaphor. When you start to get towards the end of the list, the control asks the server for more data. The downside is you don't know how much data is really in the entire set - the scrollbar thumbnail position no longer represents the view's relative position in the dataset. For finite data sets, this is annoying (seen it lots of times in SQL result set data grids, because it's usually difficult/expensive to get the total number of rows in the result set from the SQL server). But for virtually in ...Show All
Smart Device Development Debugging ATL Project ...
Hi There, I'm writing and SIP ... so i use ATL .. as u know the output will be an .DLL file ... When i run the project in VC++ 2005 and in debug mode VC++ 2005 will register my dll in Emulator successfully but show me this warning: "non-executable project cannot be started directly. please set a command to start debugging this project." what kind of command do i need that make me able to debug the project ! Regards, Normally you debug an ATL project by launching or attaching to an executable that instantiates a COM object contained in your project. E.g. for ActiveX projects Pocket IE is often used as a debug vehicle. Unfortunately in case of SIP ...Show All
Smart Device Development Display data on datagrid without selecting data in database
Hi, I am using VB.net and Visual Studio 2005 to compile a program for a Pocket PC with MicrosoftR Windows Mobile 2003 Second Edition. What I want to do is to display data on datagrid without selecting data from a database. I know that one way to display data on datagrid is to first select data from database using "sqlCeDataAdapter" and then fill the data into a dataTable of a DataSet. Finally this DataSet is assigned to the DataSource property of this datagrid. However, now I have three ArrayLists: AL1, AL2 and AL3. In these ArrayLists: AL1(0) = 3; AL1(1) = 2; AL1(2) =1; AL2(0) = a; AL2(1) = b; AL2(2) =c; AL3(0) = x; AL3(1) = y; AL3(2) =z; The result that I am expecting is: on a datagrid, these data can be displ ...Show All
Visual Studio Team System deploy/schema compare scripts - Option for checking IF EXISTS
My scripts need to check for existence of tables, columns, etc. before creating or altering. My procs and functions need to check existence and drop if they do already exist then create. Is there any way to control script preferences to accomplish this Hi, just an idea (not sure of the feasability). I am assuming that your customers that you can not "connect" to are NOT manually modifying their copies of the DB schema themselves. Couldn't you deploy copies of the DB Schema for each customer DB (without data ) in your environment Then the build would have access to the customer schema and you could have the different status reflected each of the build scripts. Of course you would have to ...Show All
Windows Forms unselectable DataGridView
Hi, I need to make a DataGridView unselectable by neither mouse nor keyboard. However I want to be able to select any row from my code. I was looking for some simple property that would say something like "selectable", which I would set to false, but I could not find anything like that. Another solution I tried was wiring an event handler to CurrentCellChanged event and setting CurrentSell.Selected to false, it kinda works, you can't select the cells with keyboard however you can click on the same cell twice (two seperate clicks) and it gets selected. --- DataGridView grid = new DataGridView() grid.CurrentCellChanged += new EventHandler(this.gridCurrentCellChanged); private void gridCurrentCellChanged(object sender, EventArgs e) ...Show All
.NET Development Getting to Sybase Stored Procedures
Hi: I'm developing a C# mobile web application that needs to access a Sybase ASE database (12.5) on the back end. I'm going through OleDB. Here's the problem, although my stored procedures run fine on Sybase, I cannot get my ASP.NET objects to populate from them. I've got 2 objectlists that I'm trying to populate. A code snippet is below. It looks pretty vanilla to me, but I just cannot get it to work. Is there even a way to test data access in VS 2005 without running the app All advice greatly appreciated! -Dave // Create the Connection OleDbConnection cnOLEDB = new OleDbConnection (); cnOLEDB.ConnectionString = "Provider=Sybase.ASEOLEDBP ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Problems with rendering
Hello, I've already wrote about this problem earlier but now I attaching simplified source code - [here] . Problem is (as you can see on this screenshot ) with alphablending and rendering on RenderTarget2D. How can I fix how that text on right look like Remark: It have to work even with colored font or pictures, not only with white font. Thanks for every help! And sorry for my English. Here's code from that zip file: Imports Microsoft.Xna.Framework Imports Microsoft.Xna.Framework.Audio Imports Microsoft.Xna.Framework.Content Imports Microsoft.Xna.Framework.Graphics Imports Microsoft.Xna.Framework.Input Imports Microsoft.Xna.Framework.Storage Namespace Project Module Program   ...Show All
Software Development for Windows Vista reference assemblies not found on clicking interface type
hi everybody I am working with vihag's Designer Rehosting sample. i want to use external dataexchange service from workflow designer but i am not able to see the reference assemblies in my project when clicking on interfacetype in properties window of callexternalmethod activity. can any body help me for this problem thanks in advance ! rajendra: Check to make sure that the interface you are trying to reference has the <ExternalDataExchange()> _ decoration above the interface declaration. ...Show All
.NET Development Insert a DataSet
Hi all, If I have a manually created DataSet, how do I insert its data into a specific table in an SQL DB Thanks, Stephen. Thanks! Had to have a bit of a mess around but we got it working. We also ended up using the SqlCommandBuilder for the INSERT statement. Thanks again! Stephen. ...Show All
SQL Server Why should we sample nested table separetely for data mining model trainings?
Hi, all here, Thank you very much for your kind attention. I dont think we should sample any nested tables for data mining model training Since I think any nested tables are bound to the case table. Therefore whenever we sample the case table, the nested tables are like any other input attributes within the case table to be rectrieved as inputs accordingly Thank you very much for any guidance to clear my confusion. With best regards, Yours sincerely, You are correct, you do not "need" to sample the nested tables seperately, and, in fact, you cannot sample nested tables independently of the case tables. What you really need to do is to sample "cases". If you do not keep the neste ...Show All
Visual Studio 2008 (Pre-release) DLinq not working
I have installed the may linq ctp but i can't get running the designer and i don't have on project files items the DLinqObjects Item templates, i have tried to rename 1 txt file but the visual studio don't recognize the file type. I have vs 2005 pro and C# express , i have already tried to uninstall and rienstall it ...Show All
Visual Studio 2008 (Pre-release) where can i find binary of wpf samples?
i have downloaded wpf samples from microsoft site. there are hundreds of project available. problem is, none of them is compiled. and compiling every one of them is tedious. i suspect the samples in binary form are already in my hardisk(when i try to download the samples from local msdn). but where is it What if a user does not have Visual Studio 2005 + WPF extensions installed Then binaries are handy. I wanted to view WPF samples here at work in a virtual machine, that way I did not have to modify my current working VS 2005. ...Show All
Visual Studio Tools for Office VBA to SQL Server database
Hi Appologies up front if the terminology in this question is not correct - I am very much a VB beginner - with grandious ideas. I am floundering around trying to figure out how to run a parameter query using VBA. I have already defined the query in Excel - Data > Import External Data > New Database Query) from Excel VBA The query accesses a SQL Server database It is working up to that point and uses a parameter from the workbook, and 2 parameters that it needs to ask the user for - I have this in the macro (VBA) I need to run the query from a macro attached to a button in Excel as I have some other work to do before it runs. Is there anyway that I can run this query from VBA or do I have to define the SQL et ...Show All
