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

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

AfCo

Member List

Allan Huang
mabxsi
killerbambam
Sam Jost
m#
LegendRey
ekkapop
Hervens
Rich A
Jh2007
esafari68
Ohio Mike
Zubair Masoodi
MunishGupta
hrubesh
Queen of the desert
rebeccat
Brian Kramer
cfoks
JeffSE
Only Title

AfCo's Q&A profile

  • Visual Basic Problems in using unmanaged VB6 API in VB.net~~

    Hi, experts Currently I am working on a client-server application which I need to implement a 3rd party unmanaged VB6 API dll into a .net project. The only thing I know about this API is the functions it has and I know it doesn't wrap up by a class. Therefore, I am trying to write a wrapper class in .net so I can put it on the server for my application. Can anyone show me some hints for how to do it If it is possible, may you give me a simple example >_< Moreover, the parameter the function is passing is VB6 type, so I believe I have to define a structure in VB.NET. But I am having difficulty when I am trying to rewrite the following code. Type Record Name As String * 60 Sls(1 To 4) As String * ...Show All

  • Visual C# Validation

    Sorry if this question is a dumb one, but I'm new in C# so.. How can I validate text that the user writes in a maskedTextBox with the OK button E.g. The user enters the program and needs to enter a password to have access. If the password is correct, he has access and the main window apppears. + Enters "Sample" into maskedTextBox 1. Your question seems to be skirting two areas. 1. I'm not sure why you're using a MaskedTextBox control. Typically, such a control is used when the input needs to conform to some pattern, such as a number or a date. It is pretty rare to see a MaskedTextBox control used to handle password input. Instead, a TextBox is used with the password character set to an asterisk so that the cha ...Show All

  • Visual Studio Express Editions How to know all ctls and extract Data from running exe program?

    Any VB Express edition example , how to "know" all controls on a window (I mean: any running program that have a form). If I know the program using controls like MSflexGrid, textbox, and labels. I just wanted to extract screen value from the running program. Any solution. So far I only can come out with the following codes, which only can return title of exe program I try to use Microsoft spy++ to know all the running instance names and its properties. I manage to get the class name for the program which I wanted to extract the form data. Following is the progress I can come out. Any other idea please help. Class Name: ThunderRT6FormDC Dim lHwnd As Long Dim sTitle As String, sIncidentNo As String Dim lRet As Long Do   ...Show All

  • Visual Basic Application attacking other users

    I have been writing an application which will control the amount of time a user has on the internet. Here is how it works...   It consists of 2 major components 1) USER INTERFACE, a completely separate application which allows the user to start and stop the program "access" (the second major component). 2) Access, another independent application which runs undetected but every .4 seconds kills any instance of all web browsers on the computer.   When the timer is on Access is not killing all internet browsers, when timer is off, Access kills every browser. If that user's time is paused and they switch users, If the other person is not an administrator, they can't use the internet because Access is on ...Show All

  • Microsoft ISV Community Center Forums SQL within a VBA Module

    Hi, I'm new to VBA and have only been using it for 3 months, so please don't laugh! I have a VBA routine in Excel, which connects to a SQL Server database, and I need to know how to incorporate an IF expression into the SQL statement. The SQL looks like this in the MS Access query I am trying to re-create: SELECT IIf(IsNumeric([PromoSource]),"REC",IIf(IsNull([PromoSource]),"OTHER",IIf([PromoSource]="WWW","Web",[PromoSource]))) AS [Promo Source], Count(dbo_tblCustomers.CustomerID) AS CountOfCustomerID FROM dbo_tblCustomers WHERE (((dbo_tblCustomers.DateEntered)>=#1/1/2006#)) GROUP BY IIf(IsNumeric([PromoSource]),"REC",IIf(IsNull([PromoSource]),"OTHER",IIf([PromoSource]= ...Show All

  • Visual C++ Dll can only be loaded when not moved from original output location

    I have a solution which consists of a c# project and a c++ project. The c++ generates a dll which the c# loads through a class with external methods declared as " [ DllImport ( "VideoCard.dll" )]". It works fine... except... if my output path for the c++ dll is for example c:\long path\solutionname\projectname\bin\debug then the dll can _only_ be located and loaded if it is at that exact path. If I build the dll to the path in the example and then move it to for example c:\videoCard.dll and change my dllimport in the c# program to "[ DllImport ( "c:\\VideoCard.dll" )]" then it fails with an error stating that the dll could not be found. If the dll is moved to a directory on path, then it can st ...Show All

  • Visual Studio 2008 (Pre-release) Bubbling an Event from WPF to Winform

    Hello All, I have a WPF canvas which is hosted in an ElementHost (I am using this WPF canvas in a .NET 2.0 application using System.Windows.Forms.Integration). I want to bubble the occurence of the MouseDown/MouseMove/Drag/Drop events of the WPF canvas to its superbase control which is basically a C# .NET 2.0 class (which is hosting the ElementHost). This superbase control is winform user control that inherits from System.Windows.Forms.UserControl. So the hierarchy is WPF Canvas is the Child of ElementHost which is added to superbase control (using this.Controls.Add(ElementHost)). Firstly, can I bubble up the event from WPFCanvas to the winform based superbase user control If yes, How will I handle the change in eventargs declaration ...Show All

  • Windows Forms data binding: has data changed?

    hey guys, I was wondering if there was some kind of property that I could check to see if the data in one of the controls that is bound to the binding source had changed I basically wanna have a save button that if the data has changed will ask if you would like to save the data and if it hasn't then do nothing. Any ideas Hi, One way would be to call EndEdit() on the BindingSource within the Validated event handler on the Control. If the data has changed, the BindingSource will raise the CurrentItemChanged event. Of course, having to add such an handler to all your controls on a form can be a pain, but you could iterate through the Controls collection of the form to do so. Hope this helps. ...Show All

  • SQL Server Principal 64Bit- Member on 32Bit

    Hi all, I've got two VLDBs on 64bit hardware platform + 64Bit-W2003K Std R2 + 64Bit SQL2005 Std Edition. If I set this guy up as the Principal, can I have the standby/member on 32Bit HW + 32Bit W2003 Std + 32Bit SQL2005 Will this actually work Regards, Uday Shivamurthy Theoritically I don't see any difference or issue in setting up this way, http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1015569&SiteID=1 fyi. ...Show All

  • SQL Server What SSIS components must be loaded onto the server?

    What SSIS components must be loaded onto the server To run an SSIS ETL program, exactly what executable, components, programs, etc. must reside on the server that will be running the program. Our developers write an test their ETL programs locally, on their desktops or laptops, but must upload the scripts to the production server for execution. Obviously, they are not going load Visual Studio and SQL 2005, etc. up to the server just to run the scripts (tho SQL 2005 may be on the same box as one of the DB engines used for ETL). Any info would be appreciated. Yes, I think Phil is correct on needing a more advanced edition. see the following link which compares the editions. The BI section is at the bottom. http://w ...Show All

  • Software Development for Windows Vista Is there a link or Microsoft contact for getting the Vista Security API

    I have a program in the process of vista certification and the vista certification contacts I have do not know where to find the Vista Security API. So I am looking for a link for the Vista Sercurity API, a Microsoft contact that knows about it or if anyone knows about this. Thanks, Mike ...Show All

  • Visual Studio 2008 (Pre-release) How does one express a many-to-many 3-table arrangement as an entity model?

    Take this schema: Authors (ID, First Name, Last Name, etc) Books (ID, Title, ISBN, etc) BookAuthors (BookID, AuthorID, IsPrimary) So, this is a representation of your standard "mapping" scenario where you map many rows of one table to many rows of another table via an interim "mapping" table that supplies the many-to-many relationship. In my experience, I encounter this table structure all the time and is considered extremely common and still satisfies 3NF. As a rule, using ADO EF, I should not have to modify my schema to de-normalize to produce a better relational model - the model should be object/relational and the schema should be 3NF - that's the whole point of an abstracted entity model in the first place. So, I w ...Show All

  • SQL Server Unrecognized Oracle Functions in SMAA for Oracle

    Hi everyone, I'm using SSMA for Oracle v2.0 to migrate an Oracle schema. In some of the procedures and triggers the Assessment Report is showing errors on some of the basic Oracle functions not being recognized. While I can see using %TYPE variables and values from packages outside of the current schema in a function unrecognizable to the converter, some I'm not sure why it's not being recognized. For example, TO_CHAR(date, 'DD-MON-YY HH24MI') is reported as unrecognized, when the documentations seems to say that it is supported. (" Formats currently not supported: E, EE, TZD, TZH, TZR") Is there a way to look further into why such function is not recognized, or do I need to add different SYS packages TIA, Makoto ...Show All

  • .NET Development little help with converting WSE 3.0 from WSE 2.0

    I have this code part from a WSE 2.0 example: SampleWSE.Service1Wse proxy = new SecureWSClient.SampleWSE.Service1Wse(); proxy.RequestSoapContext.Security.Tokens.Add(new UsernameToken(name, password, PasswordOption.SendHashed)); proxy.RequestSoapContext.Security.Timestamp.TtlInSeconds = 300; Console.WriteLine(proxy.Hello(name)); im using WSE 3.0 and im getting an error message saying: Error 2 'Messenger.SampleWSE.Service1Wse' does not contain a definition for 'RequestSoapContext' any ideas what should I use for WSE 3.0 Snippet taken from this tutorial:http://www.thecodeproject.com/soap/wssecurity_usernametokens.asp Thanks for your time. http://msdn.mi ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. DrawIndexedPrimitives Problem

    Hi.. I try to use vertexbuffer und indexbuffer to create a terrain. I use just the same Code in this link (please look at the bottom of the page): http://www.riemers.net/Tutorials/DirectX/Csharp/tut7.php Then I try to change the width and the height of the terrain (instead 4x3 I make for example 40x30). When I start my application, then my computer freeze. Can you please check the code and samy me what do I make false Thanks.. Have you changed the LoadHighData method too It need to create and initializes an array of the same size as your terrain. ...Show All

©2008 Software Development Network