EwenTweedie's Q&A profile
Visual C++ PSDK/calc-sample, please.
Below is error when I try to build sample project: Calculator. I have VC++ express edition and sample is for that version of C++. I also have PSDK which I wanted to integrate with VC++ express edition by following instructions; but wanted to be sure VC++ express edition is working (which it is not) by using simple sample projects. Thank you very much for any assistance to get this sample project to run/compile. I plan to use VC++ instead of fortran for my research so I and other students/scientists may have a graphical user interface and ease of entering code. Assembly language was no fun but I got thru that. I would be grateful if anyone could point me to sample code to use in VC++ express edition (with PSDK integrated ...Show All
Windows Forms Related Question
I played with this a little myself. In VS2005 the ability to have two message loops on two seperate threads is no longer available "out of the box". There probably weren't many folks who needed this -- and that's your primary issue here. I'd run the two windows in two seperate processes. Interprocess communication used to be horribly difficult but in .net it's pretty easy and really fast too. Of course you'll need two instances of the IDE to debug it but it sounds like you are already setup for that. As dual monitor systems are becoming extremely common do we get better support in Vista or .net 3.0 I love my dual monitors... But they can be really irritating. Every morning I have to reset screen settings because XP can ...Show All
Smart Device Development Application terminated unexpectedly, and no any message
Hello I'm creating an application on Windows Mobile 5 using c#. This application uses the WebBrowser control to show a specific website. The problem that i am having occurs when the app runs on the device. (Motorola Q). For some strange reason the application shuts down as soon as it gets to the line : this.webBrowser1 = new System.Windows.Forms.WebBrowser(); which is in the InitializeComponent() method. It does this without an exception. When i connect the device and debug from VS.net 2005. The app shut off and i get a cannot connect to this device message. Hi all~ I wrote an application on Pocket PC 2003 SE and .NET Compact Framework 2.0 (with SP1). This application will consume a Web Service ...Show All
Microsoft ISV Community Center Forums Help with Excel VBA Code
I am trying to format different spreadsheets. I need the data to be in the same cells for each worksheet. This data is in column A. I need to check to see if DBCS# ( ) is above Tour, and if so insert rows until Tour is in row 175, column A. The problem is that the number after DBCS# is never the same. How can I use an IF statement to make sure that the cell above Tour says DBCS# (whatever the number is) This is the If statement that I tried. If I put DBCS#46 in my IF statement, it will not work because the number after # isn't always 46. If (Range("A174:A174") = "DBCS#") And (Range("A175:A175") = "TOUR") Then GoTo label_177: Else: Do While (Range("A174:A174") <> "DBCS#") And (Range("A175:A175") <> "TOUR") Select ...Show All
Visual Basic Problem whit publishing
When publishing program to a computer thet don't have internet access and framework i found thet i have to include prerequisites. Becose prerquisites can't be downloaded from web in properties i specify thet prerequisites download from the same location as my application. When publishing start i got three errors: Error 1 The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX\instmsia.exe' in item '.NET Framework 2.0' can not be located on disk. Error 2 The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX\WindowsInstaller-KB893803-v2-x86.exe' in item '.NET Framework 2.0' can not be located on disk. See Help for more info ...Show All
SQL Server AMO: Enumerate Calculated Members?
Hi, Apologies if I'm missing something obvious here. I'm trying to enumerate the calculated members in a cube using AMO (as part of programmatically building perspectives), however I can't see an easy way to do this. The collection of CalculationProperty objects on the cube's MdxScript object(s) would seem perfect (and indeed works for Adventure Works), but for my own hand-built cubes this collection is empty; CalculationProperty settings don't seem to be exposed anywhere in the BIDS UI so I assume they can only be set programmatically, which is of no particular use to me in the general case when operating on potentially manually-produced cubes. Aside from using CalculationProperty the only way I can see to do this within AMO would be to p ...Show All
.NET Development ASP.NET Multiple connections to SQL Server 2000
Hi. I am using the below method to retrieve data from a database table, but have noticed that sometimes I have 50+ connections to the sql server. Which causes it to crash, Any Ideas ConnectionString is packet size=4096;user id=user;data source=10.0.1.75;persist security info=True;initial catalog=Stock;password=myPassword static public DataTable GetDataTableFromSQLStatement( string sqlStatement) { DataTable returnTable= new DataTable (); try { //SqlConnection myConnection = new SqlConnection(new DataForce()._ConnectionString); SqlDataAdapter sqlDataAdapter = new SqlDataAdapter (); System.Data.SqlClient. SqlCommand sqlSelectCommand = new System.Data.SqlClient. SqlCommand (); ...Show All
SQL Server Performance issue on SQL 2000
Queries are performing much slower on production server - configuration 8 GB RAM 4 CPU and database size 500 MB Same database and application works much faster on development server - 4 GB RAM 2 CPU and copy of production. Compared one of the most important query and found - both servers are using different query plans - cleard the cache - Compared all settings of sp_Configure - they are all same. Same version of patches. Same edition. Production it takes 18 seconds and dev/test it takes 1 second. Production has awe enabled - thats only enviorment difference. Can someone tell me what else to look about this slowness Thanks for all help in advance Manoj Production server with maxdop = 1 Table 'SRM_PROJECTS'. S ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Question about Transfering the game.
I am totally new at XNA and pretty new at programming in C, and i was wondering; How do you transfer the game over to the 360 Do you upload to the internet, or do you just transfer over an ethernet cable Thanks. ...Show All
Visual Basic I need help on how to store recently visited websites in a combo box
I want to know how to save recent web pages visited in my combobox. My webbrowser is called WebBrowser1 and my combo box is called combobox1 everytime they visit, just add the url into the combobox. So if they pressed the go button and this navigates to the site they specified in a textbox, add this value (Textbox) to the combobox items collection. private sub BtnGo_Click(byval sender as object, byval e as eventargs) handles BtnGo.Click if Me.txtUrl.Text.Length > 0 then Me.theWebBrowser.Naviate(Me.txtUrl.Text) Me.combobox1.Items.Add(Me.txtUrl.Text) end if end sub you may also wish to perhaps know how to save favourites to a file and reload them, take a look at this ( ...Show All
Visual Studio Export Template Wizard - empty drop-downs
I'm trying to use the Export Template Wizard, but the drop-down list for selecting the project is empty. Am I doing something wrong I have a solution open, with multiple projects. But I'm getting nothing on the drop-down. Thank you for your answer. How very disappointing. It would be rather more helpful if VisualStudio simply said as much when I tried to use the Wizard for a C++ project. Could just pop up a dialog saying you can't do it. There's a day of my life I won't get back. ...Show All
Software Development for Windows Vista CreateEvent Fails with Access Denied when Events with the Same Name from Different Applications.
CreateEvent Fails with Access Denied when Events with the Same Name from Different Applications. So I tried to use my CreateEvent functions without name and it works. So why should I even bother to use a name I will Create Events without name from now on not to come across with this annoying problem again. CreateEvent(NULL, FALSE , FALSE, NULL );//auto reset event Baris ERGUN wrote: CreateEvent Fails with Access Denied when Events with the Same Name from Different Applications. So I tried to use my CreateEvent functions without name and it works. So why should I even bother to use a name I will Create Events without name from now on not to come across with this annoying problem again. CreateEvent(NULL, FAL ...Show All
SQL Server Slow Response Within Enterprise Manager
I'm running Microspoft SQL 2000 sp3. Within Enterprise Manager, Local Database (I'm running about 30 databases, .5 - 1.5 GB each). Whenever I right click on a database, select All Task, select (either Backup or Restore) It takes over 10 minutes to bring up the Window. Any ideas as to why its taking so long to do this. And better yet, how can I fix this Do you have 'auto close' turned on for the database select databasepropertyex('dbname','isautoclose') Do you have ODBC tracing turned on Run odbcad32 and check the tracing tab. ...Show All
SQL Server Directly editing data in results pane with SQL 2005 Management Studio
In SQL 2000 Enterprise Manager, one was able to edit and commit data on-the-fly directly from the results pane. Action->Open Table->Query with the SQL Pane shown gives you an interface similar to Query Analyzer. One could write a complex select statement with where clauses and joins, and the results pane would show the resulting data. The data is editable and instantly updated. We are now planning to migrate to SQL 2005 , and so will need the same capabilities that were availiable from its predecessor. I believe there to be an option/configuration setting or panel in Management Studio that would expose this functionality. I have SQL 2005 Standard Client Tools installed with the SQL 2005 Express Eng ...Show All
.NET Development With TableAdapters can I get the connection string from a custom method instead of using the app.config file?
Hello, Is there a way to have the TableAdapter get the connection string from a custom method instead of using the app.config file (and still have the QueryBuilder in the XSD designer work) We are using Typed DataSets and TableAdapters in .NET 2.0. Instead of using the App.Config file we have our own method which returns the connection string. So, I can programmatically say something like: myAdapter.Connection = new SqlConnection(Config.GetConnectionString()); And the code will work just fine (but not the XSD designer). So, there are 2 issues. 1) We have to set the connection every time we create an adapter or we will get a runtime error (I could live with a compile time error, but ...Show All
