Brian Schwarz's Q&A profile
Visual C++ OracleConnection Not Found
I am new to Visual C++ and .NET. I am trying to connect to an Oracle DB. When I try to compile the code, OracleCOnnection can not be found. I have included System::Data:OracleClient in the namespace. Is there something I need to set in the project Are you using VC++ 2005 Then use the new C++/CLI syntax OracleConnection^ myCon = gcnew OracleConnection(ConnString); Did you put a using namespace System::Data::OracleClient; in your code Otherwise you will need to use a fully qualified name System::Data::OracleClient::OracleConnection -- SvenC ...Show All
.NET Development Comvisible object, config files, and classic ASP
We are developing a comvisible object that will be called from an asp page. This object in turn will load other .net assemblies, E.G. Entlib, other in house items, WSE3.0 imp, etc… Most if not all of the assemblies require settings in a configuration file. The issue is I am unsure of how to get my comvisible assembly and the others that it loads to read a config file. 1) Where does the configuration need to be placed 2) Does it need to be named web.config or assembly.dll.config 3) Curiosity question here a. Can it be placed in such a place that each site/vdir calling the com object can have a different configuration file Thanks Wayne There is an ...Show All
Visual Studio Team System Avg.Response time deatail
Hi, In our load test result we have avg.response time max = 9.38 and we would like to find out what request or test scenrio happened during that time which caused peak time. Is is possilbe to find out Yes, in the Load Test results viewer, if you click on "Tables" and then select either "Pages" or "Requests", you should be able to see the average and max response times for each of the different pages or requests. The page response times include the time to load all of the dependent requests (such as images and style sheet) that are included with the page, whereas the request response time is just the response time for an individual reqeust (either for the primary web page or a dependent request). ...Show All
.NET Development Looking for information on IO Completion Port model based on UDP and not TCP
Dear All, I am writing a RADIUS network application that uses UDP transport protocol by using native C++ (win32) with microsoft Visla C++ 2005 express edition. I have chosen the IO Completion Port Model to implement this network application because I am expecting more that 64 requests with a length data processing for each request at a single time. However, I have gone through many examples on IO Completion Port model but unfortunately all of them talk about TCP protocol and I did not found a single example on how to implement this model with UDP. This application has to listen to two ports at the same time; port 1812 for radius and port 1813 for accounting, which means that I need to creat two listening sockets in my application ...Show All
Smart Device Development Massive Update
Hi, I'm doing a massive update into a table (more than 100), it's taking a lot of time is there a way to optimize this processe in CF2 Regards Mario Ola Mario, I really don’t know if CF2 has functions to optimize your update query but even if it has, you should consider a way of telling the user if your App is working and is not stopped. You should create a thread for each N rows and display the progress in a progress bar, this way the user can still use you App and will be able to see the progress of the operation. Hope it helps. ...Show All
Visual Basic problem adding to a menu strip
im trying to setup my application so that a user can add a menu strip item, and it store that menu item to a DB or a text file, XML or something and then adds the item automatically everytime application runs. can someone point me in the right direction, thanks in advance!! Look at how the Windows Forms designer does it, then just duplicate that code. Add a menu item with the designer. Click the Show All Files icon in Solution Explorer. Open the node next to Form1 and double-click the Form1.Designer.vb file. ...Show All
Windows Forms HOWTO: Handle Enter Key in TextBox When Default Button is in Effect
VS2003 I'm trying to handle the enter key in the KeyPress event of a text and setting the e.Handled to TRUE; however, the default button is fired instead. Any Ideas I did set the Multiline to TRUE which allows the textbox to handle the ENTER key properly; however the default accept button is still fired. ...Show All
Visual Studio Express Editions Stopping After 2 Decimal Places
This is probably a very easy, and very noob question. In one project we are required to except the input of numbers in the dollar amount form: xx.xx I can easily do this and also make sure that user only inputs numbers a period and can use the back space within the text box. The problem I am not able to get around is only allowing the user to input two numbers after the decimal point. Currently I am using the following: lblChange1.Text = FormatNumber(Change.ToString, 2) Is there an easy to understand, non-existing code destroying way to fix that issue I have tried using masked textbox and no better results. Thanks See my posts at http://forums.microsoft.com/MSDN/ShowPos ...Show All
SQL Server How to Deploy .mdf Files
Hi Guys, I have a problam. I wanna deploy my application that it has data.mdf file. When I install and test it I get this message: --------------------------- Microsoft SQL Server Login --------------------------- Connection failed: SQLState: '42000' SQL Server Error: 5133 [Microsoft][SQL Native Client][SQL Server]Directory lookup for the file "C:\Program Files\MyDic\Database\Data.mdf" failed with the operating system error 5(Access is denied.). Connection failed: SQLState: '42000' SQL Server Error: 1832 [Microsoft][SQL Native Client][SQL Server]Could not attach file 'C:\Program Files\MyDic\Database\Data.mdf' as database 'MyDic'. --------------------------- OK --------------------------- I have to mention that: ...Show All
Visual FoxPro Grid class
I have made my own grid base class with 9 columns. When I create a grid based on this class, and I try to reduce the number of columns, I get an error message saying "Member COLUMN# is a class member" (# being the umber just above the one to which I want to change; if I want to go from 9 to 7, # = 8). What am I missing, believing this would work Hans L PS. I wanted to make every column heading centered vertically/horizontally and bold. With column # = -1, this cannot be done, as far as I understand (no columns in Propoerties). > 1) You can decrease columncount to 8,7 ... in code. >> Okay, but I need it when designing (e.g. in Project manager) As I told you, you cannot do this - ...Show All
Visual Studio Visual Studio 2003 help very slow
I have Visual Studio 2003 with the MSDN library installed locally. When I search in the help the topics are found instantly, but when I click on the topic the help goes off to the web and downloads the help topic. This would be all well and good but it sometimes takes up to 5 minutes to do this during which time Visual Studio and all other running programs are unusable. I have ensured that ALL the help is installed locally, but I cannot find any options to specify 'Load help locally', not from the web! Has anybody else experienced the same problem More importantly does anybody know a solution! Thanks in advance. I gained access rights to our virus scanner (Sophos) and excluded the following folder from 'o ...Show All
.NET Development Connection Pooling randomly throwing COM exceptions
We randomly get the following exceptions: [COMException (0x80070006): The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE))] System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) +0 System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode) +34 System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +636 System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82 System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105 System.Data.SqlClient.SqlConnection.Open() +111 System.Data.Common.DbDataAdapter.FillInternal ...Show All
SQL Server How to add calculated Facts in Measure Group
hi, I am new to SSAS. i am working up on cube. I want to add calculated fact in the cube. like... Suppose we have fact table in which we have fields like (ID, Status) and status can have 3 values (1,2 ,3) . My requirement is Count of rows having Status 1 + Count of rows having status 2. How to accomplish this task. Additionally if dimension is required suppose i have Status(statusID) dimension also. Please provide me urgent solution! Thanks in advance. Mandip In the situation you describe, status should be implemented as a dimension. As a rule of thumb any time you want to report amounts "by" something, it is a good indicator that you should implement it as a dimension. ...Show All
Visual C++ How to hide tasks bar (start panel) of desktop by API function ?
Hi I placed shortcut of my application in autostart. My application starts working after then windows is loaded. I have problem with start panel (tasks bar) because it is still visible. I manually selected autohide of tasks bar but when my application starts working tasks bar is visible. How to hide tasks bar by programming (visual studio C++) Please help me ! What you're trying to do is something related to the communication between OS, I think, it's not a pure Windows Form application. However, I found this link: http://www.codeguru.com/Cpp/W-P/system/taskbar/article.php/c5747/ . It's not written in .net, but the basic idea is the same, you have to find the handler of the taskbar, and then set ...Show All
SQL Server Creating a Dynamic YTD calculation in MDX
I have a YTD calculation that I want to make dynamic based on the real current date. This is the regular YTD formula: Sum ( YTD ([Date].[Calendar Hierarchy]. CurrentMember ),[Measures].[Planned Orders]) This is the YTD formula hard coded with the current date: Sum ( YTD ([Date].[Calendar Hierarchy].[Calendar Year].&[2007].&[2007Q1].&[2007-01].&[2007-01-30T00:00:00]),[Measures].[Planned Orders]) The hard coded date works but I need the date to be dynamic. I’m not sure how to get it to be based from the current date. I’ve been experimenting with using the NOW() function to return the date but I can’t get the syntax correct. Thank you. David ...Show All
