Software Development Network Logo
  • IE Development
  • Visual Basic
  • SharePoint Products
  • Visual FoxPro
  • Windows Forms
  • Microsoft ISV
  • Visual Studio
  • SQL Server
  • Windows Vista
  • Audio and Video
  • Visual C++
  • VS Team System
  • Game Technologies
  • Smart Devicet
  • .NET Development

Software Development Network >> svid's Q&A profile

svid

Member List

JCJCJC
sej
Vipul123
MovieFan
ahmedilyas
cosminb
littleflsh
John Oliver (UK)MSP, VSIP
RJBriscoe
cdmsarathy
dustinto
thechristopher
AnthoDesigns
r prasanna vignesh
AJ Software
Phantom208
Dan Miser
Mutola
Auris
Barrios
Only Title

svid's Q&A profile

  • .NET Development Calling managed function from unmanaged DLL

    Hi there ! I need your help. I'm trying to write program, that is doing something in unmanaged part and sometimes it updates progressbar. First calls are ok, but after third i've exception: Callback with value 1 Callback with value 2 Callback with value 3 Callback with value 1648628252 Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at DelegateForUnmanaged.MainClass.DelegateTest(IntPtr callbackFunction) at DelegateForUnmanaged.MainClass.Main(String[] args) in g:\Eksperymenty\Dele gateForUnmanaged\Main.cs:line 32 What is wrong C# Code (.NET 2.0): using System; using System.Collections.Generic; using System.Runtime.InteropServi ...Show All

  • Visual Studio Express Editions How to add the text from a textbox into the printdocument

    I am trying to take the text from a TextBox or label and put it into the PrintDocument so that I can use PrintPreview. Keep in mind, the name 'printdocument' confuses a lot of people. 'PrintDocument' is not what is printed. A printdocument is a collection of printer settings. 'PrintDocument' does have an event associated with it called 'PrintPage'. The 'PrintDocument.PrintPage' event handler is a sub that is called when PrintDocument.Print() is called or when a PrintPreviewDialog.ShowDialog with it's 'document' set to a printdocument is called. (Example print preview calls the PrintDocument.PrintPage event: PrintPreviewDialog1.Document = PrintDocument1 PrintPreviewDialog1.ShowDialog() ) See example at ...Show All

  • Visual Basic How can I simplify this For loop?

    Hello, How can I simplify the For loop code below For i = 0 To myLocalDataSet.Tables( "tblCustomer" ).Rows.Count - 1 myDataRow = myLocalDataSet.Tables( "tblCustomer" ).NewRow() myDataRow( "ID" ) = myLocalDataSet.Tables( "tblCustomer" ).Rows(i).Item( "ID" ) myDataRow( "Cust_Number1" ) = myLocalDataSet.Tables( "tblCustomer" ).Rows(i).Item( "Cust_Number1" ) myDataRow( "Cust_Name" ) = myLocalDataSet.Tables( "tblCustomer" ).Rows(i).Item( "Cust_Name" ) myDataRow( "Cust_Address1" ) = myLocalDataSet.Tables( "tblCustomer" ).Rows(i).Item( "Cust_Address1" ) myDataRow( "Cust_Addres ...Show All

  • Software Development for Windows Vista How to generate workflow code file

    Hi all,     I'm developping workflow designer.I have found System.Workflow.ComponentModel.Serialization.ActivityCodeDomSerializer  class can get CodeDom object,how but am I not too clear generate workflow code file(.cs and .designer.cs and .vb and .designer.vb file).Who can give me the detailed explanation how to make or  provide some sample code     thanks. there is a nice article about designer rehosting at ( http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnlong/html/WFDsgnRehst.asp ) that should have that working. take a look at MemberCreationService and EventBindingService services for more details. Sergey ...Show All

  • SQL Server Loop through connections

    Hi: I need to connect to 3 different networks through 3 different dialup connections (yes, I have to...:-( ). Basically, all 3 servers have a version of TableA_Source, and all 3 essentially get "UNIONed" into TablaA_Dest on SQL Server 2005. Is there anything that can be done on this from the SSIS side My thinking is that the best way would be to set a flag at the beginning of each required conneciton (either writing a file or setting a database value) from within SSIS and then have a developer use this set off an automatic dialer program, and then his program would spit back a flag that SSIS would acknowledge and then go ahead and do its thing. Questions: 1. Using this method, how do I get SSIS to wait for the dialer to go ...Show All

  • .NET Development How to unregister a COM wrapped .NET assembly?

    Hi All, I created a COM exposed .NET 2.0 dll and registered with my Windows 2000 operating system using 'regasm' and 'gacutil' Then I tried to call this component from my classic ASP page. It worked fine. But, I need to change the functionality of my assembly. I unregistered it again using  'regasm' and 'gacutil'  utilities and copied my new .NET DLL and registered again.  But for some reason, i still have a pointer to my old assembly and new calls to the DLL from ASP page are not working. Any Ideas   I appreciate any help. Thanks     A common issue is that people don't explicitly assemblyversion. Then what happens is that every build produces a differ ...Show All

  • Visual Basic :: Serial Receive :: Helpp

    Hey all.. i could be called a novice in VB.NET.. ive used it for two big projects with serial comms with no problems, but im getting a problem with the serial communications this time.. when data is received , the function takes the received byte and should store it, but it doesnt let me write it to a text box, i get an error in debugger... Error: Cross-thread operation not valid: Control 'TextBox22' accessed from a thread other than the thread it was created on.   Code: Private Sub myport_DataReceived( ByVal sender As Object , ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) Handles myport.DataReceived Rxint = myport.ReadByte TextBox22.Text = Rxint End Sub P.S. - Rxint is an integ ...Show All

  • Windows Forms .NET platform

    Hi everybody, what should i do to make the .exe a GUI that i have designed work on a pc where the .net platform is not installed thanks in advance for ur help danych wrote: i am new to this stuff and my internet connection is really slow thats y i am asking for the link instead of looking for it One can go to Microsoft (Windows) Update (IE Tools->Windows Update) and select to do a custom install. The .Net packages and updates are optional installs and have to be selected by the user. Once selected it will be downloaded and installed. ...Show All

  • SQL Server Say if one file exist?

    I tried File System Task component, it seems can not perform this task any ideas thanks Variety of ways to check for file existence. Two that come to mind 1. Use a WMI Data Reader Task with a WQL Query similar to the following the below. select name from cim_datafile where name='c:\\temp\\I_expect_this_file_to_be_here' 2. Use of File connection manager with a File Usage Type of "Existing File", set DelayValidation on the connection manager to true, and validate through a script task. Public Class ScriptMain Public Sub Main() Dts.TaskResult = Dts.Results.Success ' Use the File Connection Manager with delayed validation to get the expected filename Dim fileLocation ...Show All

  • Visual Studio 2008 (Pre-release) How To: Attach event handler to element in DataTemplate?

    This question/problem is a little bit esoteric, but hopefully someone has seen it before... I need to attach an event handler to the Loaded event of Image elements within a DataTemplate. The Loaded event handling method is in a utility class, so I can't use XAML to attach the handler. In a Window's Loaded event handling method I call this method in the utility class : FrameworkElementFactory factory = listBox.ItemTemplate.VisualTree; while ( factory != null ) { if ( factory.Type == typeof ( Image ) ) { factory.AddHandler( Image .LoadedEvent, new RoutedEventHandler ( OnImageLoaded ) ); break ; } factory = factory.FirstChild; } There are two problems, one is not too bad (just odd) and t ...Show All

  • SQL Server OUTER JOIN plus split? - how to?

    Hi, I have two tables.. one has a list of the UK postcodes.. well..it's actually the districts.. so it's the first two three or four characters (basically all UK postcodes are one or two letters.. then one or two numbers.. then a gap.. and then some more info) So my first table has everything "before the gap" in seperate records. My second table is full of exact postcodes.. so everything before and after the gap. What I need to do is.. for each "full" postcode I have... strip it down so I get it formatted to everything before the gap.. and then find out how many of those I have... This is also complicated because many of the "full postcodes" don't have the gap. so if I have ...Show All

  • Visual Studio 2008 (Pre-release) How to validate multiple controls as a combined entity?

    My application often has a situation in which validation must take into account the combined values of a more than one control. Not just validating more than one control in sequence, but actually considering the combined value of the 2 controls. I've hacked together some code to use the new validation primitive to validate the individual controls, but need a clean way to consider them as a combined entity. Really, I need to pass multiple values into the "Validate" logic. For Example: Control A) contains a value. - let's say 95.300 Control B) contains a unit of measure (let's say mm, cm, m). Obviously the meaning (and by extension the valid range) of the value in control A) is affected by the value in control B), th ...Show All

  • .NET Development Can we pass 2D arrays to webservices?

    Can we pass 2D arrays to webservices ...Show All

  • Visual C# Ctrl+Space has stopped working

    I am using Visual Studio 2005 Professional and C# (this happens in all other languages, though), and Ctrl+Space seems to have stopped working. I have never messed around with the keyboard bindings before, so this is a mystery to me. In the text editor, normally I would get a list of variables, etc. by pressing Ctrl+Space and could select from them. If I just start typing on a blank line, or type a period after an object, the Intellisense still pops up, but Ctrl+Space has stopped doing anything. I have tried going to Tools->Options->Environment->Keyboard to see what that key configuration was mapped to. In the box that says Press Shortcut Keys, I can press ANY other key combination and it will tell me what it maps to, but pressing ...Show All

  • Visual Studio 2008 (Pre-release) Exceptions thrown in Interceptor never reaches the sender

    Hey, a thread relating to my old thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=704885&SiteID=1 I'm working on a custom transportation application and am implementing an Interceptor, similar to the one in the samples that come with WCF. The stack on my server looks something like <Service> <Interceptor> <Reliable Messaging> <Security> <Encoding> <Transport> When an error occurs in the Intercepor, I want it to return a SOAP fault to the sender. When throwing a FaultException in my service a message is returned to the transport layer and sent to the client. When throwing a FaultException in the interceptor, however, the exception doesn't seem to be propagated correctly and the exce ...Show All

©2008 Software Development Network