Noldona's Q&A profile
Visual C# Which type in C# is equivalent to C++ HResult?
Hi, everyone. I have this kind of problem. On faculty i got to make an example of OPC HDA server with async reading. Also, only thing i got is specification of OPC standards. Now, i have trouble. I have OPC Core components exe file, which i instaled. When i create my file which implement, let say, IOPCCommon interface, i imported required dll file, which provide necessary interface. For one of methods i got next thing. public void GetErrorString(int dwError, out string ppString) { throw new Exception("The method or operation is not implemented."); } In specification is said that this method returns HResult HRESULT GetErrorString( [in] HRESULT dwError, [out, string] LPWSTR *ppString ); How should i implement ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Saving model to .x file
Because XNA doesn't yet support mesh saving functionality, I'm using MDX to save a model to a .x file. This is the code I'm using: meshTerrain = new Mesh((WIDTH - 1) * (HEIGHT - 1) * 2, WIDTH * HEIGHT, MeshFlags.Managed, CustomVertex.PositionTextured.Format, device); meshTerrain.SetVertexBufferData(vertices, LockFlags.None); meshTerrain.SetIndexBufferData(indices, LockFlags.None); int[] adjac = new int[meshTerrain.NumberFaces * 3]; ...Show All
Visual Studio Express Editions Connecting to *.ndf database file
Hi! I'am totally novice in Visual Studio Express... On the begining I have big problem with my project... If someone can help me I would be VERY glad. I'v installed the SQL Server 2005 Express Edition and the Visual C++ 2005 Express Edition . I have also the TOAD for SQL Server application for my purpose. In that tool I'v created new database file in the location e:\MY_DATABASE. I'v created the 50 tables structure and I'v migrated the data from the Oracle database to my MS Sql Express database named "infos". Now I have 3GB file named "infos.ndf" on the location e:\MY_DATABASE. I can operate on the tables in "infos.ndf" database by sql queries in TOAD apliccation. The "infos" database is visible on the SQL Server Management Studi ...Show All
SQL Server new to sql, don't understand "text filegroup" PRIMARY
Thanks for any help in advance. I'm new to MS SQL and I'm having trouble adding a table with the property, "Text filegroup" = PRIMARY. Frankly, I haven't done much reading (I've done lots of googling though, but to no avail) about the subject, but nevertheless it seems that I can't add data to my table unless the 'text filegroup' is set to PRIMARY. However, I can't figure how to set it to primary. Even when I create a new table the default (I think ) seems to not set it to PRIMARY. By the way, I'm using Microsoft SQL Server Management Studio Express. Did you read Books ONline I bet it says the default is primary. You can always script out the table to see what the default is (if it's available ...Show All
Visual C# Deploy Crystal Reports
Hello I have developed a windows application in VS.NET 2005. I have added some Crystal Reports.I made a setup project for deployment, and added the merge modules required for Crystal Reports. It is working properly. The problem is , I have to edit the App.config file during installation of my project.It is working properly in machines having VS.NET 2005 installed. But in machines having only .Net Framework, some error occures during installation and it rolls back. If I remove the Custom Action of editing the config file it is working properly. The erro message is "Unable to get installer types in the <project_name.exe> assembly. -->Unable to load one or more of the requsted types.Retrieve the LoaderEx ...Show All
Visual C# P/Invoke call to external DLL
I am stuck trying to get a P/Invoke correctly done to a 3rd party DLL. The DLL is called DNA.DLL. I have other P/Invoke calls working to it, but this one just doesn't want to. The problem is that it returns a string via a buffer. Whatever I try to declare as buffer (ref string, out string, ref StringBuilder, out StringBuilder) ends up causing a System.AccessViolationException in .NET 2 (C#, VS 2005). Here is the info I have about this call: Delphi: function DNA_Param(param,value:pChar; value_size:integer):integer; stdcall; VBasic6: Public Function DNA_Param(ByVal param As String, ByRef value As String, ByVal value_size As Integer) As Integer C++: int __stdcall DNA_Param(char *param,char *value,int value_size); Request to the DNA Clie ...Show All
SQL Server Custom Connection Manager or SSIS Provided one?
Hi, I have been working with a client on a legacy application migration to SSIS and I found SSIS to be very helpful, as this is my first project using integration services I found myself in a situation where multiple solutions can work but I cannot assess the risk of using one or the other and the effort required for the implementation. The situation is as following, we cannot touch the input files that come from the other legacy systems so I need to get information that is packaged following the next multipart schema: &Header with context information from the source &BatchHeader with context information from the batch (including format N) - Data in format N &BatchHeader with context information from the batch (includi ...Show All
Visual Studio Express Editions save in Excel
Hello! How can i set the size of the textboxes in my code excel 2003 Imports Microsoft.Office.Interop Dim xlApp As Microsoft.Office.Interop.Excel.Application Dim xlBook As Microsoft.Office.Interop.Excel.Workbook Dim xlSheet As Microsoft.Office.Interop.Excel.Worksheet xlApp = CType (CreateObject( "Excel.Application" ), _ Microsoft.Office.Interop.Excel.Application) xlBook = CType (xlApp.Workbooks.Add, _ Microsoft.Office.Interop.Excel.Workbook) xlSheet = CType (xlBook.Worksheets(1), _ Microsoft.Office.Interop.Excel.Worksheet) xlSheet.Cells(1, 1) = TextBox1.Text xlSheet.Cells(2, 2) = TextBox2.Text . xlSheet.Application.Visible = True ...Show All
SQL Server Conditional statement with a cast from string to date
My source file is showing column 10 as string. My destination table is datetime. I am using the derived transformation with a conditional statement. How do I convert the value from string to date. Everywhere I try the ( DT_DATE ) I get an error. [Column 10] == "01/01/0001" " 01/01/1801" : [Column 10] <= "12/31/1801" "12/31/1801" : [Column 10] Where do I check that I only see the input defined in the derived column transformation which is dt_string 50. The column is defined as datetime in the table. ...Show All
.NET Development DataTable doesn't have a simple sort method??
Let me see, .NET framework 2.0 has a host of other very rarely used features (and I do mean rarely), yet something as basic as a DataTable.Sort is NO WHERE to be found. So once again I jump into the help files and start the Google search and find a few solutions, none simple and with the usual posts of "...why would you want to do that..." 1. DataTable.DefaultView.Sort returns DataView - Crystal Reports can't use this as a datasource 2. DataTable.Select() - returns DataRows - again can't bind to this I want to sort the DataTable itself, this should be easy, this should be a part of .NET Framework, this is clearly a feature many expected be part of .NET Framework (judging by the number of people asking the same questio ...Show All
SQL Server Problem while exporting OLAP data to Excel
Hello all, I have Analysis Services installed on one machine (dedicated server) . Other machnines have OLAP application installed (Pivot Table is used). When client machine tries to export olap data to excel , it takes a long time to load and sometimes it hangs. Is it related to analysis server settings Regards, Deepti Deepti, can your provide some more information What version of Excel are you using What version of Analysis Services Are you trying to export an Office Web Component Pivot connected to Olap data to Excel If so, what version is the Office Web Component Pivot ...Show All
Visual Studio Express Editions how to set a thread to run at specific core
1. is it possible to set a thread to run at specific core. 2. to find number of core using vb.net Peter Ritchie wrote: So, you'd rather cut the speed of the OS in half and have one core sit there idle Sure, it's great to say I want a process to use more processor, but by doing what you've suggested you'll make EVERYTHING slower. The OS will schedule a thread for a particular CPU/core, if it finds another that's better at a certain point of time it will switch it. If you tell the OS that only one processor/cpu can be used for a particular thread/process (OS/service/driver/etc.) then it can't automatically switch it for you and therefore everything runs slower. I don't think that how the OS ( ...Show All
Software Development for Windows Vista HandleExternalEvent fires but blocked field of instancestate table is not updated
Hi, I have a workflow with a ListenActivity, two eventdrivenactivities. The first is a handleexternalevent activity and the second is a delay activity. The host start the runtime (with SqlWorkflowPersistenceService, SharedConnectionWorkflowCommitWorkBachService defined in the app.config file), start the workflow. The workflow becomes idle, so the instance is inserted in the instancestate table with Status=0 and Blocked=1. After workflow started, the host check if there are less than 3 workflows of the same type running. If yes, the host send the external event to the workflow to execute activities after the HandleExternalEventActivity. This works fine, but the instancestate table is not updated with blocked=0. So, if the hos ...Show All
.NET Development Problem with Reading Multi Page Tiff File
Hi I am trying to read a multi page Tif file containing 20 pages from one place and storing it in to different location. But only one page of the tif file is saving to the destination location... while saving remaining pages not creating. I have tried both WebRequest Class & File Stream Class . Code WebRequest request = WebRequest.Create(" http://localhost/TiffSamples/temp128.tif "); request.Credentials = CredentialCache.DefaultCredentials; HttpWebResponse response = (HttpWebResponse)request.GetResponse(); Stream dataStream = response.GetResponseStream(); System.Drawing.Image img = System.Drawing.Image.FromStream(dataStream); img.Save(@"d:/temp.tif&q ...Show All
Visual Studio Team System Is CTP7 able to use projects created in CTP6?
I am curious if we will be able to use projects we created in CTP6 with CTP7 or will we have to recreate these projects ...Show All
