hrubesh's Q&A profile
Visual C++ Can't compile MessageBox() function.
I can't compile any program where a MessageBox() or AfxMessageBox() function is included. My syntax and the error is as below: Syntax: AfxMessageBox( "Hdnbhojki" ); Error: error C2665: 'AfxMessageBox' : none of the 2 overloads could convert all the argument types i:\vstudio\vc\atlmfc\include\afxwin.h(5025): could be 'int AfxMessageBox(LPCTSTR,UINT,UINT)' i:\vstudio\vc\atlmfc\include\afxwin.h(5027): or 'int AfxMessageBox(UINT,UINT,UINT)' while trying to match the argument list '(const char [10])' Syntax: MessageBox( "Hdnbhojki" ); Error: error C2664: 'CWnd::MessageBoxW' : cannot convert parameter 1 from 'const char [10]' to 'LPCTSTR' Types pointed to are u ...Show All
Visual C# Mixed languages in Visual Studio
Can I use mixed languages in Visual Studio i.e. some source files in C# (.cs), others in C++ (.cpp) You can have any number supported language projects in a solution. Each project is limited to one language, you can't mix languages in one project (other than C and C++ in a C++ project) ...Show All
Visual C++ VS .Net 2005, how to disable intellisense...
Hi I am really frustrated with the performance of VS .Net 2005. This is because I always see at the bottom "updating intellisense..." and it uses 60% to 70% of CPU. How to disable this updating of intellisense... Please this is making Visual studio unusable. Thanks Chandra Hi, The same problem, but with one advantage, I can share the code. It is actually the open-source library ITK (www.itk.org). The funny thing, I used it until today with no problem. It started happening now, and no way to stop it. I will try the radical way of deleting the dll. Hope it helps. And hope you fix the bug. ...Show All
Visual Studio Team System Error when trying to generate report rsItemNotFound
The item '/EA Current Version/Remaining Work' cannot be found. (rsItemNotFound) Get Online Help I checked the TFSwarehouse database and it Seems there are a few errors. A week ago I moved the Databases from our C: to our E: on our appServer01 because C was running out of space. That might`ve caused this - not sure. When I look at tables, say the Code Churn Table, I have the columns: __ID LInes Added Lines Modified LInes Deleted Net Lines Added __LastUpdateTime __LastUPdatedBy __TrackingID Chanset FileName Date Checked IN By Team Project I think the error is that i have `__` in the column names, but not sure. Any advice would rock. I went ahead and did all of this again: http://forums.microsoft.com/MSDN/AddPost.as ...Show All
SQL Server Pre-Generating snapshots not working
Hi I have setup my web synchronisation with very few problems until now. Initially I set the snapshots to generated by the subscriber when they first synchronise, this worked perfectly every time until a bottleneck occured after I reinitialised all the subscribers. When more than one subscriber then initialises the snapshot agent, the snapshot jobs fail because there is already a job running for user distributor_admin. The agent then retries etc, etc.. until all retries have failed. Ultimately only one of the snapshots is successfully created only after all other jobs have failed and run out of retries, it is then left alone to carry out its job. Following this I made the decision to run with pre-generated snapshots instead so that I can s ...Show All
SQL Server Setting up Client PC to access remote SQL Server
Hi, I am a VB6 programmer and I'm really new to SQL Express, I have always used ACCESS because it was so easy to deploy. I've now written a VB6 program which uses SQL Express and I want to know how to deploy it. Basically my PC will host the SQL database as it has SQL Express loaded onto it. I now want to install my EXE onto other Client's PC and have them read/write to the database on my machine. Besides the EXE program, what software do I need to load onto the Client's PC so they can access my SQLExpress database... (eg: Net Framework, SQLExpress, etc). Also, if my machine is called ABC123, in my connectionstring do I just put in ABC123\sqlexpress as the datasource.. . Will this be enough for the other PCs to connect to mine ...Show All
Windows Forms Problem while adding reference to the project
Hi, I have an api that is written in C which is complied into a dll. I try to add a reference to the dll but for some reason I get an error "Please make sure that the file is accessible, is a valid assesmbly or a com component". I have tried placing the dll in bin/debug, or the project folder. I can see the dll , so I can select it, but when I try to add it I get this error. I checked the privilages as well. Can anyone suggest what the error might be All help is very much appreciated. Thanks! Do I need to have the manifest file for the dll And do I need to put it in the same folder as the dll I think this may be the problem. ...Show All
Visual Studio Express Editions Error 80040154
I have this problem with a form that I created. FrmPrint.MdiParent = Me FrmPrint.Show() Everything worked fine, then suddenly I get this error System.InvalidOperationException was unhandled Message="An error occurred creating the form. See Exception.InnerException for details. The error is: Retrieving the COM class factory for component with CLSID {27CE30A0-91FF-101B-AF4E-00AA003F0F07} failed due to the following error: 80040154." I have never seen something like this. I didn't change anything to the frame for it to do this. The other 48 forms in this project still works fine. I tried to remove the form and redo it, but the I kep on getting the same error with the new form. I did this again and gave the ...Show All
SQL Server SQL Server 2005 Install fails on Vista
During the install, I get the following message: Setup has detected a problem with Microsoft .Net Framework installation and cannot proceed. Microsoft .Net Framework 2.0 is either not installed on this system or is corrupt. I cannot uninstall 2.0, as its part of the Vista. I have tried repairing it. I tried downloading 2.0 and installing it, but it says that its allready installed. I was able to install Visual Studio with Sql Server 2005 express. I am stuck. Is the case that Sql install dosent know about the latest version of 2.0 that came with vista Can you post the contents of two log files The ones we need are these: C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\LOG\Files\SQLSetup0021_JAZZ_Cor ...Show All
SQL Server List a city only once
Hi...I want one listbox showing cities but I dont want to list a city more than one time.... I know that DISTINCT maybe could work...But I dont get it to work correctly.... The code: < asp : ListBox ID ="ListBox1" runat ="server" AutoPostBack ="True" DataSourceID ="DataSource1" DataTextField ="City" DataValueField ="City"></ asp : ListBox > < asp : SqlDataSource ID ="DataSource1" runat ="server" ConnectionString =" <%$ ConnectionStrings:ConnectionString %> " SelectCommand ="SELECT DISTINCT [City] FROM [Location]"> </ asp : SqlDataSource > I got the message: The text data type cannot be selected as DISTINCT because it is not comparable &nbs ...Show All
Visual C# Clean Build
What is considered as a CLean Build and how do i do a Clean Build....I searched it on the net but to no avail...can any help me out on this topic Clean build: http://msdn2.microsoft.com/en-us/library/ms171480.aspx Clean Solution: http://msdn2.microsoft.com/en-us/library/5ak1w89s.aspx ...Show All
Visual Studio Team System How to publish (clickonce) a solution
Hi, I havent been able to find anything to help me to do this. I can do this manually thru the IDE, but not thru the Build Types. What do I have to place in the Build Type to get the program and its files published to our website I tried the following with no luck I just get an Entry Point error and I dont understand why. Please help. ======== < GenerateApplicationManifest AssemblyName = " AdminUtilGUI.exe " AssemblyVersion = " 1.28.1.0 " EntryPoint = " @(EntryPoint) " OutputManifest = " \\dalxpdss\DMDB_CODE\MARS Branch Project\DailyBuild2\Sources\daily build\MARS_Platform\Tools\MarsServerAdmin\SysAdminTools\obj\Release\AdminUtilGUI.exe.manifest " > < ...Show All
SQL Server datatype map - Native ODBC driver
Hi, Our software uses native ODBC driver and Visual C++ 2003 to communicate with SQL Server 2005. SELECT xml_schema_namespace(SCHEMA_NAME(schema_id) ,name) FROM sys.xml_schema_collections. SQLDescribeColW returns -152 as the datatype for the column in the above select statement. However, I’m unable to find a preprocessor definition for -152. The datatype looks like an nvarchar. Is it an nvarchar Where can I find the definition for this datatype I have discovered similar problems while bringing back SQL_VARIANT types. The returned subtype of a SQLVariant comes up with -16 and -25. I cannot find definitions for these sub types either. Any help is appreciated. Regards, Venkat ...Show All
Visual Studio Error message help
I began debugging one of my forms today and received a strange error message. Using: Visual Studio 2005 - Visual Basic SQLServer Express 2005 I was at a breakpoint where some writing to a table in the database was happening. All of the sudden this message came up and my only option was "OK". ContextSwitchDeadlock was detected Message: The CLR has been unable to transition from COM context 0x1a2008 to COM context 0x1a2178 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages. This situation generally has a negative performance impact and may even lead to the application becoming non responsive or memo ...Show All
Visual Basic Storing an Array
I want to store an array into a field of an Access Database, so that I can access the Array at a later date. I have create the database table using an OLE Object as the datatype for the field. I use the following code to store the array into the field named "array" Dim cnn As New Connection Dim rst As New Recordset Dim myArray() As Integer = {0, 1, 2, 3, 4, 5} rst.AddNew("array", myArray) rst.Update() This causes a {Type Mismatch} error on the rst.addnew line of the code. Any suggestions A couple of issues: 1. you should use ADO.NET 2. The OLE Object type requires that you read and write the bytes of the object: http://msdn.microsoft.com/library/default.asp url=/library/en-us ...Show All
