new2SQLRpt's Q&A profile
Visual C# An unhandled exception of type 'System.DllNotFoundException' occurred
hi all am using a library for image processing. i have built a seperate application to compare images. this application is working sucessfully and when i try to integrate this application with some other application then i am facing the error like this An unhandled exception of type 'System.DllNotFoundException' occurred Additional information: Unable to load DLL (VICTW32.DLL) but am following the same steps as i did in that application the dll gets loaded without any error in that project. but i face some problems with loading it here. i have also given the references that are needed for the project now am stuck up at this point with nothing to do.. as i dont have much idea about working with ...Show All
SQL Server Function call to Progress linked server
I have a Progress DB set up as a linked server. To get the data through to SQL Server 2005 in a useable format i need to use the progress PRO_ELEMENT function call. How do I delimit this so it gets passed to the progress DB. I've tried SELECT {fn PRO_ELEMENT(fldarr1,1,1)} as fld1 from ls1..pub.tab This just returns an unknown function message which I believe is on the SQL Server end of the call. This statement works fine through Business Objects. Any help greatfully received. ...Show All
.NET Development Error: Too many parameters were provided in this RPC request. The maximum is 2100.
I am trying to call a web service (part of an ASP.Net website that I am designing); and I get the following error: Server was unable to process request. ---> The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect. Too many parameters were provided in this RPC request. The maximum is 2100. Does anyone knows how to solve this issue Is-it possible to raise the limit above 2100 (note: I have also posted this question in the ASP.Net forum ) Thanks in advance, Joannes ...Show All
.NET Development Convert string to int
Is there anyway to convert a String to Int say if I have String width ="640"; I want it to assign to int dimension=width I don't want some conversion like String char="A" to integer which become 10. Just a straight conversion Is it possible A quicker way is: Convert.ToInt32(string value); Convert.ToInt16(string value); Convert.ToInt64(string value); ...Show All
Visual C# Did I find a VS 2005 C# Compiler bug?
internal class TestC1 {....} public class TestC2 { //The following method will give you a compliation error internal protected void SetTest( TestC1 c) {...} //The following can compile internal void SetTest( TestC1 c) {...} } The compilation error I got from the internal protected method: Error 53 Inconsistent accessibility: parameter type 'TestC1' is less accessible than method 'TestC2.SetTest(TestC1)' As we all know, "by combining the protected and internal keywords, a class member can be marked protected internal — only derived types or types within the same assembly can access tha ...Show All
.NET Development Library or source files
Hello, I've created a webservice. What brings more performance If I put the whole service in a compiled library or can I let the source files in the app_code folder Procompiles the IIS the source files or are they compiled for each request thanks ...Show All
Visual C++ The "missing type specifier - int assumed" compiler error (C4430)
Trying to migrate a VC++ 6.0 project to Visual C++ 2005 express. I think things are going okay but this one compiler error is something that I've just got hung up on, does this mean that I HAVE to declare return type for all my functions in this version - that the compiler wont make the return type int if I dont specify one Im guessing this is some new part of the ISO C++ that I have just missed. It's not a difficult error to fix - but it is annoying and stupid, is there no way to work around this Cant I change some option on the compiler to make it work like my old one does /Jimmie If implicit return types have been deprecated for such a long time, why are they used even in the current version of the samples for the MS Plat ...Show All
Visual C# PropertySheetExtension for Active Directory and MMC 3.0
Hi, I'm trying to program a property sheet extension with C# and MMC 3.0. I want an additional sheet for User details (General, Adress, etc.). I already tried the example of the SDK to extend the properties of "Computer Management" and it worked fine. But how do I access the User Properties of Active Directory. With "ExtendsNodeType" What would the ID be Thanks in advance! Patrick PS: Is it even possible to add an additional Textbox to an existing property sheet ...Show All
SQL Server Retrieving Hierarchy Captions from a Cellset
I'm trying to retrieve the hierarchy caption(s) for a given axis in a cellset, but whenever I try to retrieve this: cellset.Axes(0).Set.Hierarchies(0).Name I get an exception like this: System.ArgumentException was unhandled Message="The '[Date].[Calendar Quarter]' object was not found.\r\nParameter name: uniqueName" Source="Microsoft.AnalysisServices.AdomdClient" ParamName="uniqueName" StackTrace: at Microsoft.AnalysisServices.AdomdClient.CubeDef.InternalGetSchemaObject(SchemaObjectType schemaObjectType, String uniqueName, Boolean retryUniqueName) at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.GetObjectData(SchemaObjectType schemaObjectType, String cubeName, String uniqueName) ...Show All
Windows Forms DataGridView Events Between Forms
How do you handle events (if possible) between two DGV's that are on separate forms DGV1 is on Form1, DGV2 is on Form2 Code fragment "DGV2.GiveFeedback" produces an error as does using "Form2.DGV2.GiveFeedback" [code langauage="VB"] Public Sub DGVs_GiveFeedback(ByVal sender As System.Object, _ ByVal e As System.Windows.Forms.GiveFeedbackEventArgs) _ Handles DGV1.GiveFeedback, DGV2.GiveFeedback e.UseDefaultCursors = False System.Windows.Forms.Cursor.Current = textcursor End Sub [/code] Public Class Form1 'Example: 'Form1 is like a menu that 'where form2 and form3 are instantiated(they both have a datagridview). 'then the event feedback is handled for both datag ...Show All
Visual Basic HELP! ~ How do I Trim a Path?
I need the code to trim this path to just get the filename Example: "C:\My Documents\Book.doc" How do i return just "Book.doc" An answer or code would be appreciated. Thank you perfect sample, that's what I was looking for. I use it in my project like this: Dim myFile As String If OpenFileAttach.ShowDialog = Windows.Forms.DialogResult.OK Then myFile = My .Computer.FileSystem.GetName(OpenFileAttach.FileName.ToString) Me .StatusLabel.Text = "Open file: " & myFile End If ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Can't deploy to Xbox 360 from GSE
All Apologies but this is a repeat post from 31-Jan buried inside another thread that appears to have died. I can't push code to my Xbox 360 from GSE. This issue has been reported by other people and their problems boil down to either having entered the 25-digit code incorrectly or, in one case, that their router didn't properly support UPnP. I've regenerated, accepted and reconfigured the key *many* times, making sure I don't have any 0's, 1's, 5's or 8's in the generated key to avoid confusion. I understand this is a one-time key so I'm not reusing an old key. I am most definitely getting the key right and choosing accept, not cancel. I have downloaded and installed Windows Media Connect (I'm running Windows ...Show All
SQL Server Problems on Inserting Values in Trad. Chinese into database
Dear all, I'm currently learning to use Visual Web Developer 2005 Express Edition w/ SQL Express to create a website in C#.Net. However I encounter a problem as status in my subject. I've set the collation of the fields to Chinese_Hong_Kong_Stroke_90_CI_AS in the database & I can manually input chinese charaters to it. In the code side i do like this: Command.CommandText = "UPDATE loginhistory SET Status = '(some chinese words)' WHERE User_id = 1; But I found is inserted into the record. How can I solve this problem Many thanks. Tim You must be sure that the field is NVARCHAR and prefix the string by a N to tell the engine that a UTF-16 string is coming: UPDATE loginhis ...Show All
.NET Development VbCode Why doesn't it work.2
Catching excetion will not make your code work, but posting the exception to the thread will allow us to understand what's wrong with your code. Not shure that this is the issue but you have a space in XML declaration: < xml. This is not valid in XML. ...Show All
.NET Development Parameter within WITH-Clause in MDX
Hi, I need a parameter within the WITH part of an MDX Statement in Reporting Services. I tried several types, but all will bring an error. I will do it like: WITH MEMBER [Measures].[Amount] AS STRTOMEMBER(@MyMeasure) SELECT { [Measures].[Amount] } on columns, ...... The @MyMeasures should be a combobox with the values like Name: Sales Volume (kg) Value: [Measures].[Sales Volume KG] Name: Sales Volume (m2) Value: [Measures].[Sales Volume KG] ... and so on. What's my failure Thanks Hans Hi Sarah, I saw it too late that my post goes in the wrong forum. So pardon me. I have post it in the right one. Thanks Hans ...Show All
