Maramil's Q&A profile
.NET Development Parser Error Message: Unrecognized configuration section 'runtime'
I am using .NET 1.1 and trying to make .NET CLR look for a certain assembly in a certain place - According to this article ( http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpgenref/html/gngrfCodeBase.asp ), I should place something like this in the machine.config file - <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="myAssembly" publicKeyToken="32ab4ba45e0a69a1" culture="neutral" /> <codeBase version="2.0.0.0" href=" http://www.litwareinc.com/myAssembly.dll"/ > </dependentAssembly> </a ...Show All
Smart Device Development Timer invoke between threads
Hi, In my previous thread in this forum I asked how to reach objects between different threads. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=638251&SiteID=1 Now I wonder how to run different timers in the same program, since they have no invoke() method. My first timer is polling different objects. On incoming answers I want to start a new timer for execution of the request a certain time. How do I do Pseudocode of how it is now, but does not work, is: timer1.Enabled = true; timer2.Enabled = false; private void timer1_Tick(object sender, EventArgs e) { if 1 poll1() if 2 poll2() } public void serialPort_DataReceived(object sender, SerialDataReceivedEventArgs e) { timer2.Enabled = True; if 1 execute1(); if 2 execute2(); } ...Show All
Windows Forms how can i set a column's backcolor of ListView control(c#)
i just know, private const int WM_PAINT =0x000F; protected override void WndProc(ref Message m) { base.WndProc (ref m); switch(m.Msg) { case WM_PAINT: //BackColor=Color.Red; if(this.Columns.Count!=0) { Graphics g=Graphics.FromHwnd(this.Handle); i=0; //index of columns g.FillRectangle(new SolidBrush(mycolor),0,0,this.Columns[ i ].Width,this.Height); //but initial,columns[0] is not exist } break; } } anyone can help me thanks, now i can paint the backcolor,but new problem appeared. the whole Rectangle is filled one color,my listviewitem.text is not visiabe, come on,go head ...Show All
Software Development for Windows Vista Lightweight transactions vs. Connection pooling
As I understand it, if you open a second SQL connection within a transaction it will automatically be promoted from a Lightweight Transaction (LT) to a full DTC version. However, normal advice with ADO is to utilise connection pooling by simply opening the connection and closing it ASAP. Therefore doesn't the adivce seem to clash since if you open the second connection (even if it is exactly the same connection details) you'll lose out on the LT Whithout seeing your code it is hard to make comments. In general when using transactions where you want the best performance and scalability you want your transactions to start as late as possible and to commit them as soon as possible. When using Distributed transactions you give up a lo ...Show All
Visual Basic WebBrowser control in vb.net.
Hi, How can a get the text from WebBrowser control in vb.net. Thread will be moved to the appropriate forum once the forums are back up and running again. You can use the DocumentText property: Dim theHtmlText as String = Me.theWebBrowserControl.DocumentText or you can go into the Document property itself, there you can go into say the Body property to get the body part of the Html page. I hope this link helps you/gives you more information about the control http://msdn2.microsoft.com/en-us/library/system.windows.forms.webbrowser.aspx http://msdn2.microsoft.com/en-us/library/system.windows.forms.webbrowser.document.aspx http://msdn2.microsoft.com/en-us/library/syst ...Show All
.NET Development DTS Execution and ASP.NET
I have 2 DTS jobs that I am firing through an ASP.NET (VB) web application. I'm using the interfaces available through the DTS class. The jobs are designed to restore a table that is being dropped and overwritten during the initial stages of the job, like this: - backup table - drop and recreate table - insert data into table - on failure, restore previous backup table The problem I'm running into here is when the backup step isnt needed (in other words, the first 3 steps work), an Exception is being thrown when the 4th restore step is not executed (and it shouldnt be). If I drop this restoration step, the packages execute normally. I cant seem to filter out the Exception type here, because the error seems very generic - i ...Show All
SQL Server Get path of SYSTEM32 directory
Hello all, i have a little problem... ...Is there any method for getting the path of the SYSTEM32 directory from a stored procedure I need it for register an assembly that is in this directory or the server. Thanks. Alejandro F. Thanks, but I need the path of system32 directory for registering my DLL with my CLR functions. It’s any way to register a DLL without specify the entire path of the DLL Sorry about my English… ...Show All
Visual Studio Namespace shared can not be found
We are trying to publish a site that uses crystal reports. and it gives an exception that crystalreports.shared can not be found. it works fine on our local dev machines. we have installed the crystal redist package on the webserver w/o any luck. also tried to manually use gacutil to install the shared dll but we get the same error. ...Show All
SQL Server Relative date ---'Rolling 3 months' --help please
Hi, I need to add special relative date categories in SSAS that similar to the functionality offered by Cognos/Powerplay. With Cognos, you can create relative time categories very easily-- like ‘Rolling 3 months’, ‘Prior Rolling 12 Months’ etc. I created Time Dimension with SSAS BI Studio, added a new named calculation ‘Rolling 3 Months’ to the Time Dimension. Below is calculation code: CREATE MEMBER CURRENTCUBE .[Time].[Rolling 3 Months].[Rolling 3] AS null , VISIBLE = 1 ; Scope ( { [Measures].[ORDERS] } ); // Rolling 3 Months ( [Time].[Rolling 3 Months].[Rolling 3], [Time].[M ...Show All
.NET Development Problem with 'Oracle client' and 'ODPnetOnly'
Hi all ! I have both Oracle Client and ODPnetonly on my system. They have their different homes. If the path of Oracle Client (D:\oracle\ora90\BIN) is before the path of ODPnetonly (D:\odpnetonly\bin), then I have a problem. In this case, my web applications (in C#.net) don’t work but my console applications (in C#.net) do. And if I change the path of ODPnetonly before the path of Oracle, then my web-applications work but my console applications don't. So please tell me what is wrong with my system. Is there any problem regarding installation of 'Oracle Client' or ODPnetonly (I installed 'Oracle Client' before the ODPnetonly) Thanks and Regards, Vikas Hmm...well I know it isn't a permissions issue with th ...Show All
Visual C++ executing a program
How can I execute a program with Visual C++ hello Re: executing a program I am going to mark this thread as answered since you have not followed up with any further information on your problem as requested for over a week - I assume you solved the problem yourself or one of the suggestions in this thread helped you solved the problem. If you have a solution you could post it so others can find it. If you do not have a solution then please submit further details and then mark the thread as unanswered. regards, rico ...Show All
Visual Studio Express Editions Building a textstring complex?
Hi, another issue I'm having. I need this textbox that only allows letters and the '-' character, single whitespaces between words and all words starting with an uppercase letter and no leading and ending whitespaces.. I've managed to get to the point where the input is trimmed and split in an array and buildup in a new string with single whitespaces in between.. Imports System.Text.RegularExpressions Public Class Form1 Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load End Sub Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim a() As String = Regex.Split(TextBox1 ...Show All
.NET Development system.net.mail problems
Hi everyone, I've trying to use the system.net.mail namespace to send emails with the follwing code: Private Sub Envio_Correo( ByVal ruta As String ) Dim correo As New MailMessage correo.From = New MailAddress( "b98123839@usmp.edu.pe" ) correo.To.Add( "amonasiq@usmp.edu.pe" ) correo.Subject = "Archivo de Confirmacion de matricula" correo.Body = "Se adjunto archivo de confirmacion de matricula de su respectiva facultad" correo.IsBodyHtml = False 'correo.Attachments.Add(New Attachment(ruta)) correo.Priority = MailPriority.Normal 'Crando la instancia del SMTP cliente Dim smtp As New SmtpClient smtp.Host = "mail.usmp.edu.pe" ...Show All
Software Development for Windows Vista VMR9 Renderless with YUV Mixer mode black screen issue
Hi all, I render video (TV or DVD) on Vista with VMR9 Renderless (Basic or D3D Scene) and with YUV Mixer mode, video display black; On XP, it works well. If I disable YUV Mixer mode, it will display normal, does Vista not support YUV Mixer mode Who can tell me the reason Thanks in advance! Regards, Zhiquan ZHiquan I suggest you post this in the Vista DirectShow Development forum. Link is below http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=129&SiteID=1 Thanks, Louis Shanks AppCompat. ...Show All
Windows Forms ToolStripManager LoadSettings Problem
I have an application which contains many ToolStrips inside a ToolStripContainer. I am trying to use ToolStripManager to load and save the settings, so I've set up a FormLoad and FormClosing event to call ToolStripManager.LoadSettings(this) and ToolStripManager.SaveSettings(this) respectively. I can see the file is being written, with the correct values, but when LoadSettings is called, the values are ignored, and the toolbars reset to the values not in the user.config file. Is there something that could cause this that I am overlooking Thank you Andrej, I have seen the thread you suggest me. When the form is loaded the first time I have workarounded the problem setting the location property ...Show All
