Masoud Farahani's Q&A profile
Visual Studio Unable to install extracted IMG for VS.NET 2005
I downloaded the 90 day trial for Visual Studio 2005 last night. After seeing the image file I decided to extract the .img into the full contents for the fastest install. This did take some time on my computer but after the extraction of the files were complete I did not see any error. I went into the 'vs' directory and tried the following: 1) autorun.exe - black cmd prompt box pops up then quickly goes away 2) setup.exe - I get the cmd box that displays 'program is too big to fit into memory' 3) vs_setup.exe - A popup dialog box that says 'the installation package cannot be opened'. http://s18.photobucket.com/albums/b116/dtdono0/DOTNET/install_error.jpg I do not understand why I would be getting something that says I ...Show All
.NET Development Want to use transaction in normal process
Hi All, I am not using any database things. But I want to use transaction for my process (two process should be done simultaneously or not). I want to know is there any facility in .net for this In fact, there is an entire namespace in .NET 2.0 for this purpose: System.Transactions. However, to use this system in memory, you have to write the code that performs the commits and rollbacks on your objects. ...Show All
SQL Server Export Wizard disturb order of data during exporting Data to Acess 2003 from SQL server 2005
I am using the following query to export data from sql server to ms access in export data wizard: SELECT * FROM myView where myID = 123 Order by varcharColumnName1,varcharColumnName2 ,intColumnName3 This query will fetch about 7, 00,000 records. SQL server 2005 shows the correct order, but Data in access table shows Incorrect order of data. Please give me the solutions. Speaking logically, sets and tables don’t have order. Order can be specified in a SELECT. Order can be the result of a clustered index but typically there is no guarantee of order without an explicit ORDER BY. This is generally true of all Relational Databases. Did you try placing an index on the Access table ...Show All
Visual Basic How Do I read a Word Document in a VB.net application?
Hi as I am a new member to the Microsoft forums, I was wondering if anybody can help me. I am needing to read in a Word document, and strip out certain header styles, numbering etc etc...once this done then I need to add the data stripped out of document and populate a DataGridView with this data. I am currently using VB.net as part of Visual Studio 2005 suite, can anybody help me Thanks Paul. Many thanks DMan1, I will give them a shot and see which one works best, I will keep you updated to let you know how I get on. Cheers Paul. ...Show All
Software Development for Windows Vista VMR9 GDI leak???!!!!
The problem is that after I created and Released the VMR9 instance, the number of GDI objects increase one. This is the VMR9 bug !!!! My source code below: HRESULT hResult = E_FAIL; IBaseFilter *pIBaseFilter = NULL; IUnknown * pUnknown = NULL; hResult = ::CoCreateInstance( CLSID_VideoMixingRenderer9 , NULL, CLSCTX_INPROC_SERVER , IID_IUnknown, (void **)&pUnknown); if (FAILED(hResult) || (pUnknown == NULL)) { throw hResult; } hResult = pUnknown->QueryInterface(IID_IBaseFilter, (void **)&pIBaseFilter); if (FAILED(hResult) || (pIBaseFilter == NULL)) { throw hResult; } pUnknown->Release(); pUnknown = NULL; pIBaseFilter->Release(); pIBaseFilter = NULL; I use GDIndicator to fin ...Show All
Visual C++ Size of the dialog box changes with resolution of the system running it.
Hello! Application that i am working on has an interface dialog box. The problem is that , when the same application is run on a different system with lower resolution, the dialog box's extends out of the viewing area, hiding away important controls. I ve heard of a property called 'Dockable' which results in the application resizing itself according to the system's resolution. Please suggest a better alternative. That's an inherent limitation of Windows dialogs. Dialog dimensions are based on dialog units: which is a function of font type and size. You can try using a smaller font; but, in most cases your dialog is simply too big to handle the smallest Windows resolution (640x480 or 800x600). Docking a dialog ...Show All
Visual Basic Splitting a string
I have a textbox as and input field for a SQL database search. If the user inputs a full name (first, "space", last name) I want to split this string into two values. Is there an easy way to do this I have a string.isindex searching for a space and if there is then I need to split the two values into two different variables. Thanks for the information. You can use string's Split() method, like in: Dim parts() As String = TextBox1.Text.Split( New Char () {" "c}) If there isn't any spaces in the textbox's text, the returned array will only contain one item. And if you need to split the string at the first space only, use: Dim parts() As String = TextBox1.Text.Split( ...Show All
Visual C# Declaration of Function
Hi, I want to give you some informastion before I will continue to my question...Let's say that I have 2 Classes in my project... public class Cclass1 : System.Windows.Forms.Form{.......} public class Cclass2 : System.Windows.Forms.Form{.......} inCclass1 I want to create a function (e.g public void CallOtherFunctions() ) which includes some other functions of the same class...The others classes which I want to call are exact these : private EReturnType ClosePorts() { ..... ..... return eRetVal; } ...Now I want to call these function "CallOtherFunction" but from the other Class..."Cclass2"..How must I write the syntax for declaring "CallOtherFunction" and how can I call it form the other class. I mean I want to do sth like that ...Show All
Visual Studio Cross-Tab Columns to span multiple rows
Hello delevopers A quick question for those well experimented report makers... I would like a cross-tab object in a report to wrap its columns to a second row... My Corss-tab report may be form 7 to 30 days, one day in each column. But, when it is 30 columns long, its width doesn't fit in a sheet of paper, even if its landscape, so, I would see if it is possible to make the crosstab that when it reaches a specific lenght (either by number of columns or by total width of the control) it continue to print the columns in a second row. Do you think it's possible what would I need to do Thanks in Advance MarkX ...Show All
SQL Server No row delimiter for Fixed Length Flat File destination?
When I use SQL 2000 DTS Export to create a fixed length flat file, the data rows are delimited by carriage return-line. Which means that when I open the flat file in a text editor like UltraEdit or WordPad, the data rows are broken out nicely (row ends at the max row length position and new row starts at position 0). But when I use SSIS to create the file, the whole file is displayed as one line in WordPad. The data rows don't end at the max row lenght position in ultraEdit neither. From Flat File Connection Manager's Preview page, I can see the data rows are displayed properly. Now I wonder if the flat file destination is a true fixed length file. MS in their infinite wisdom renamed what wa ...Show All
.NET Development Reading any file format with FileStream
I want to be able to send ANY type of file (Text, .Doc, .Zip,. Etc.) with sockets. Everything seems to be going as planned, except when I read the file, the bytes are little bit different. How can I correctly read (ANY) file, for transferring over sockets Real Line 1 of File: +o[C€‥46( § cgZ C)E xn[y"QO Cp After reading with code below: +o[C (46( ,' cgZ6C)K xn["QS Cp It seems I am reading the file wrong. Only a few characters are not being read correctly. Here is the basic code for reading the file: fs = File.OpenRead(@"c:\mailroot\MENU.pdf"); br = new BinaryReader(fs); byte [] currentBuffer = new byte [1019]; currentBuffer = br.ReadBytes(currentBuffer.Length-5); Logger.Log(Encoding.ASCII.GetS ...Show All
Software Development for Windows Vista Vista Beta 2 - Missing theme parts?
Hi, I'm currently developing under Vista and maintaining apps written for Windows XP which use custom drawn theme elements quite extensively and have noticed that various parts of the default Vista theme are not defined - for example: "startpanel" no longer has "SPP_USERPANE" defined for DrawThemeBackground() Obviously, I realise that Vista doesn't make use of the top/bottom elements of the startpanel like WindowsXP does but am wondering if I am to expect themes to be 'partially' defined like this in the final version Ok, I can check the OS i'm running on and whether the result of DrawThemeBackground() is S_OK (or checking if the part is defined) but i'm unsure as to whether start making adaptations now based ...Show All
Visual C# Plugin events C#
I hope this is the correct place to post this Q. I am also going to write a tutorial/blog/experience report on this as I cannot find the correct resources on the net, believe it or not (ok so my search keywords are not great!)..... I am writing my very first plugin for my application in C# I have created an interface. I have implemented this interface in the plugin. I have also created a IPluginHost interface, which sets the host (application) in the plugin. I can load/create/instantiate the plugin. Now, I have made a delegate/event in the interface. The plugin implements this. //delegate example: public delegate void DoSomething(string text); //event in interface and plugin: public event DoSomething OnEventDoSomethi ...Show All
.NET Development An error has occurred while establishing a connection to the server
We have a couple environments in our company, Local, Dev, Stage and Production. And we are running different technologies on all of them (from ASP to .Net 2.0 and SQL2000 to SQL2005). And only in our .Net 2.0 we get the following exception (only in our production environment) when establishing connections to SQL 2005 without connection pooling: "An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)" All our other application is able to connect to SQL2005 (64-bit) withou ...Show All
Windows Forms how to identify which button was clicked
assume that I want to create 100 buttons layed out in a table of 10x10. When any of them is clicked, I want to know which button was clicked (in which row and column). If I use the same event handler for all the buttons, how can I know which one was clicked I do have a "sender" parameter, but this doesn't help me understand which button (which row/column) was clicked. What is the best solution for this Hi yaron-ct, If you feel the issue is resolved to your liking...mark the post as the answer so when others search the forums, they might be more inclined to look at a successful post than a non successful one... in the search results the Answered posts are bubbled to the top before the unanswered . ...Show All
