Chris Dunaway's Q&A profile
Visual C++ msvcr80.dll Problem
Hi there, can someone possibly tell me why Noton WinDoctor is telling me that 10 executables in the .NET Framework 2.0 cannot access the necessary dll file msvcr80.dll I see that the dll exists in the WinSxS directory and I'm running XP pro. I didn't have this problem until I downloaded the 2.0 framework at windows update. Any advice appreciated. Thanks. Naolin Thanks much everyone for the feedback. Sounds to me like its an inconsequential error that Norton will need to address in a future update to look for it in the correct dir. I read on an msn blog somewhere (sorry I cant find it again) that one should not put the dll in the system32 dir but from other posts it seems that it's possibly needed ...Show All
Visual Basic Convert a stored value in a database to an object
I am storing the name of controls in a table and want to load the value of those controls with a value in the database. How can you access every control in a form (not "on" the form like Me.Controls because that doesn't see everything in group box ect.) ex. cbo as combobox cbo = AllControls .item(Row!ControlName) cbo.SelectedValue = Row!ControlValue Thanks. jeff357 wrote: How can you access every control in a form Private Sub Button1_Click ( ByVal sender As Object , ByVal e As System . EventArgs ) Handles Button1 . Click Dim AllControls As New List ( Of Control ) For Each c As Control In Me . Controls AllCo ...Show All
Visual Studio Tools for Office Excel.Validation in vb.net, check if data is valid
Private Function GetValidRange( ByVal validation As Excel.Validation, ByVal myrange As Excel.Range) As Boolean How to check if the data is ok, with the parameter validation Return "true or false" End Function Private Function GetValidText( ByVal validation As Excel.Validation, ByVal mystring As string) As Boolean How to check if the data is ok, with the parameter validation Return "true or false" End Function I found how add validation, remove, but i cant found how check if my data is valid, thank. This is not a VSTO-specific question. General Excel programming questions should be posted to the appropriate Excel program ...Show All
SQL Server Creating an Indexed View
I am trying to create an indexed view, on a date from a date dimension table...I am new to SQL, and I am at a loss of ideas on this one. Any help would be greatly appreciated! Here is the Error I am given "Msg 4513, Level 16, State 2, Procedure VEW_F_MZT_ORDER_HEADER_DAY, Line 3 Cannot schema bind view 'JJWHSE.VEW_F_MZT_ORDER_HEADER_DAY'. 'JJWHSE.VEW_F_INVC_SHIP_TO' is not schema bound. Msg 1939, Level 16, State 1, Line 1 Cannot create index on view 'VEW_F_MZT_ORDER_HEADER' because the view is not schema bound." Here is my code.. CREATE VIEW [JJWHSE] . [VEW_F_MZT_ORDER_HEADER_DAY] WITH SCHEMABINDING AS SELECT TEW_D_DT . DT_KEY AS DATE_KEY , VEW_F_MZT_ORDER_HEADER . LOCATION_KEY AS LOC_KE ...Show All
Smart Device Development Problems of testing number and decimal point input with Motorola Q emulator
Hi, we are testing our application for Smartphone and have problem of testing number input using Motorola Q emulator. Since the Motorola Q emulator doesn't support entering number on the emulator's keypad, we have to use number keys and F8 key on PC keyboward to test number and decimal point input, but we can't enter number and decimal point correctly on Q cell phone when testing the porgram on a real phone. Did anyone run into this porblem before and have any information how to solve this Thanks. ...Show All
Smart Device Development Windows Mobile 5.0 on PDA connecting to DB2
Hi All I have a Windows Mobile 5.0 Application, and I want to sync data between the SQL Mobile on PDA with AS400 Data. As there are no classes in .NET CF (Compact Framework) to directly connect to DB2, there is product from IBM called as Everyplace or Everywhere for connecting to DB2 from .NET CF. Which I am not interested in. I have a option to have a Webservice which will be called from the Mobile device and which will actually sync. the data between the DB2 server and the SQL Mobile. I want to know whether this is a good idea .. where we could be having 70 to 80000 records Thanks in Advance .... You're on a right track with WS though you might run into performance issues with 70-80K ...Show All
Visual Basic stringbuilder or string within structure to match a C++ struct..??
********************** C ++ 6.0 ******************************************* typedef struct sSegment { char szName[128]; } sSegment; int EXPORTED GetSegment(long lSegmentIndex, sSegment* pSegment) ********************** data marsaling in vb.net ******************************************* Public Declare Function GetSegment _ Lib "EVaRT40.dll" _ (ByVal lIndex As Integer, ByRef objSegment As Segment) As Integer ****************** ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Look@ my code, Moving Along an Angle
public Vector2 Position, Direction; public int Angle, Speed; public void Move() { Direction.X = ( float ) Math .Sin( MathHelper .ToRadians(Angle)); Direction.Y = ( float ) Math .Cos( MathHelper .ToRadians(Angle)); Position += Direction * Speed; } Ignoring the fact this code would make calls to Math in every game loop, is this a reasonable way to make a projectile move along a given angle in degrees Thanks, Dave Reasonable enough if you really want to model the motion as an angle and speed. But it would be cleaner if the Model just contained Position and Velocity vectors, and you used a separate method to handle converting from other formats (angle/speed). public class Model { public Vector2 ...Show All
Visual Studio Unable to debug web application remotely using VS2005 debugger
Hello, I have been trying for two weeks now to find an answer to this problem. I have a web application that was built in ASP.NET 1.1. I migrated the project to the .NET 2.0 Framework using Visual Studio 2005, by opening the project and converting it using the Conversion Wizard. When I debug the application locally, it works just fine. I deployed the application using the Copy Web Site option. When I attempt to open the remote version of the application in VS2005 and build it, I get the following error: Could not load file or assembly 'VocabDBEdit, Version=1.0.2174.28224, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417) As far as I c ...Show All
Visual Studio Express Editions SQL Express, C# Express, and Web Dev Express...
Hey, Here's what I would like to do. Have an installation of Visual C# Express, an installation of Visual Web Developer express, and SQL Server express. Here's the problem: 1) If I install SQL Express first, I get SQL to work with no problem... But neither C# nor Web Dev has any options for utilizing it. 2) If I install c# then install Web Dev (opting for the SQL Express install within the C# installer) then Web Dev has options for SQL server, but C# does not. Furthermore, the SQL installation doesn't allow me to login with either windows authentication or Login authentication. So, nothing works as I want it to at that point. So the question would be, can I install all three (four if you count the SQL management tool) separa ...Show All
Windows Forms How to Wrap text in a text box column of datagrid in windows application.
I have a datagrid column in which I want to wrap the text in one column. private DataGridTextBoxColumn dgcComments dgcComments = new DataGridTextBoxColumn() dgcComments.TextBox.Multiline = true dgcComments.TextBox.AcceptsReturn = true dgcComments.TextBox.WordWrap = true I have set the WordWrap property to True and Multiline property to True, but it doesn't seem to work. I am able to see the wraped text only when I manually increase the size of the row and click in the cell containing value. Anybody has any idea how to wrap text in a text box column of datagrid Regards Hemant If you set the datagridview's AutoSizeRowsMode to AllCells and the columns WrapMode to DatagridViewTriState.True the rows will autosize and wrap ...Show All
Visual Studio Tools for Office Cached data is destroyed upon compilation
Hi there, This may not be a normal scenario and so I expect this functionality isn't available. I create a new Word project in Visual Studio. I have an application that adds cached data to Word documents. I add some data to the document cache. I open the document and write on it, and I add custom properties. I compile in Visual Studio, the resulting Word document in Release directory contains the text I typed, contains the custom properties, but the cache has been corrupted. The main cache title is there but the entries are not which means the document crashes when it opens complaining about the following ------------ Value cannot be null. Parameter name: type ************** Exception Text ************** System.ArgumentNu ...Show All
SQL Server Filter Parameters to exclude empty members
How does one only provide a list of potential parameters that contain values... Let's say I want to show a report of product sales by Employee, yet only certain employees actually sell products. In the parameter dropdown I want to just have a list of those employees with a product sales value as opposed to a list of all current employees. I'm guessing it has something to do with NONEMPTY but I can't quite get my head around it Can anyone help with the relevant sample MDX for the parameter dataset Deepak, Thanks for the help & advice. In the end I created three datasets as follows, using your steer from the last post so thanks. 1. The main Dataset SELECT NON EMPTY { [Measures].[Fact Account Balances Count], [M ...Show All
Visual C# StackOverFlow Exception with large input. Please help me analyse.
I need to send a long string to print through printer driver. below is the code. If the string is short, it is OK. But if the string is long (e.g., 1433 characters), the program will crash with StackOverflow Exception). Not sure if it got something to do with the IntPtr. It crashed at SendBytesToPrinter(szPrinterName, docname, pBytes, encodedBytes.Length); By putting Console.Writeline() to check, I found it didn't even enter the method above but the following code is completed and I could print out the value of encodedBytes.Length. Marshal . Copy(encodedBytes, 0, pBytes, encodedBytes.Length); Please share me your insight and experience. I will reward you with the good answer. Please help. public static boo ...Show All
Visual C++ Extended Ascii / Codepage
I have got an urgent problem of comprehension of way of using codepages and how ( by changing regional settings on the OS, only by programmation ) with application in ascii. In europe even America ( east and west ) i don't see why an application in Ascii is not enough as the extended range of the Ascii (128-155) is quite enough to get all the accentuated or special characters of each countries. Thank you for all cause i found many document on ISO...and codepage but i do not find my solution inside this document (i do not want to save my datas for the moment in utf8 cause to many modifications of code...) Hi, Thank you for the answer. What do you mean by "you'd better force them to do t ...Show All
