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

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

DrLectEr

Member List

Acco1953
AShukri
Tian
FannwongCindy
Kunk
Richard114
tun
LogoTron8000
Saurabh G
scott gallimore
Colin Lee
Muzammil Baig
hellomahesh
KenHerman
bobby_macnair
Ross B.
_Quimbly_
George2
r3n
goh6613
Only Title

DrLectEr's Q&A profile

  • Visual C++ VisualStudio2005 C++ Templates, Void*, class initialisation, use of ^ when it should be *, u know norm oop operations

    Hello. I have been taught at uni how to program in C++ using a txt editor and compiler to create .h and .cpp files.   I am at a work placement where they insist on using Visual Studio 2005, as the other employees are used to this. My task is to create a GUI program that will read a seismic data file (Segy) and allow the user to customise the data locations within the file and their type (int16 with gain, IBM flt -the 1960 defined one not the recent 754, ieee flt, etc).   Problem 1: .CPP and .h files I have been told to create a CLR Windows Form application. I have created the user interface in this and am now adding the code. All the functional code is placed in the .h file which seems a little strange to me Why ...Show All

  • SQL Server Problem connecting from other PC in network

    Hello all I am new with SQL server express 2005 and i dont know what i am doing wrong. I have an MS access database want to migrate to the SQL server. Wizard upsize looks okay so it works on my local machine in the network. The application stays in MS Access but the data goes to the SQL server. On my server i enabled tcp/ip and pipes and i opened the firewall for SQLSERV and SQLBROWSER. I installed the SQL Native Client and not SDK on the other computer in the network. When i try to make a connection with the native client in the ODBC manager it goes wrong. I dont know what i do wrong. Patrick When you are creating an ODBC data source, under the SQL server to connect to do you see the server\SQLEXPRESS ...Show All

  • Visual Basic Small questions (vb2005)

    Can someone tell me how to do the following: Minimize all application apart from my own Hide the desktop icons Hide the start bar. Its not for a virus. I am trying to create a screen locker program so that there is just the desktop wall paper and the password promopt. If you have read my other post about my question on key hooking it was make sense. But then again you may still think of it as a virus. I have already tried looking on sites like www.pscode.com but the only thing that comes close is someone elses dll, but that is in compiled format not source code. ...Show All

  • Visual Studio Express Editions Delegate, Invoke/beginInvoke. How it works.

    Could anybody please tell me exactly what is going on with delegates and Invoke/BeginInvoke. It is easy to make these functions work, but the explanations in the help files are so cryptically, that you may question whether the author of the help files actually knows what is going on! According to the help files, BeginInvoke executes a delegate asynchronously on the thread that the control's underlying handle was created on! I have been working with microcomputers since Intel 4004 and used multitasking when Microsoft was still in the DOS days, but this explanation is simply too cryptically. First of all, as I understand it, a delegate is a type-safe pointer, but a pointer is not executed - at least not in my terms. Subroutines are execut ...Show All

  • Software Development for Windows Vista Setting zorder doesn't work while OS setting "Activate a window by hovering..." is checked

    Hello, I have a problem with SetWindowPos, which I am using for setting the zorder for a popup window. The problem only exists, if the OS setting "Activate a window by hovering over it with the mouse" is checked. (You find the setting under "ease of use"). In my application I have a window (WS_POPUP) which looks like docked, but it's not WS_CHILD. It is to be that all dialogs must overlap this window, even if the window is active. So if the user clicks into my "docked" window while a dialog is open, I have to change the zorder, so that the dialog keeps overlapping the activated "docked" window. This works fine under Windows XP and under Vista, if the setting described above is not checked. Under Vist ...Show All

  • Visual Basic how to add user to builtin group in active directory?

    I have used this code (modified) to add users to groups within their OU. On Error Resume Next If Request.Form("Submit") <> "" Then strGroupPath = "LDAP://" & Request.Form("group") _ & ",cn=Users,dc=mycorp,dc=com" strUserPath = "LDAP://" & Request.Form("user") _ & ",cn=Users,dc=mycorp,dc=com" Set objNamespace = GetObject("LDAP: ") Err.Clear Set objGroup = objNamespace.OpenDSObject(strGroupPath, _ CStr(Request.Form("Name")), _ CStr(Request.Form("Password")),0) If Err=0 Then If objGroup.IsMember(strUserPath) Then Response.Write "User is already a member of the group" Else Err.C ...Show All

  • Windows Forms Disabling TextBox fires Leave event

    Hi, i have a winform designed using Visual Studio 2005 Express Edition. There is one textBox with Leave event for validation purpose. When i programmatically disable the textBox, the textBox's Leave event is fired which is very surprising and not desirable. However, when the textBox is enabled programmatically, the textBox's Leave event isn't fired. Why does textBox's Leave is fired on disabling this control and is there a way to make these two independant Thanks, -srinivas yelamanchili The levae event is firing beacuse when you click on the button ,it tries to get focus which will be currently on the text box.as a result the system fires WM_KILLFOCUS message as per which the text box loses its focus.Tha ...Show All

  • Visual Studio Team System How to answer some user questions

    Hi, Not being sure where to post this question, I decided to post it here and maybe if it's not appropriate I will move it to another thread. So here goes. I'm the administrator for the Team Foundation Server at my company. I installed it as a single server (Xeon 2.8 GHz, Nocona, 1 GB ram ecc, 2 sata disks in raid 1 config) and it works fine. However, there are times when the users (i.e. the developers) complain that they can't check-in items. There are no traces of the event in the event logs and there don't seem to be any other signs of a malfunction. After they try again, once or twice it usually works. My question really is: what do I tell them when they ask me "why can't I check in this file " (doesn't happen with chec ...Show All

  • Visual C# ignore mouse down event

    I'm new to C# programming, learning it for pleasure on my own time. As an exercise, I'm creating a simple Windows program that 1) takes the mouse-down event as an 'anchor' point, 2) while dragging the mouse around continually draw a line from that anchor point to the current mouse position, 3) once the mouse-up occurs, shrink the resulting line down automatically until it disappears. Not too hard, and it works perfectly fine. My problem is that I do not want the Form to accept any mouse-down's while the shrinking logic is occurring. Currently, while the line is shrinking, I can do some more click-and-drags, and once the shrinking completes, those subsequent lines are drawn/shrunk in like fashion. I want to effectively ignore any mouse- ...Show All

  • Visual Basic My.Computer.FileSystem object ???????

    I am trying to use the following expresience in VB .Net 2003: My.Computer.FileSystem.RenameDirectory("C:MyDocuments\Test", "SecondTest") But I am getting the following error: Name 'My' is not declared. eventhough I did include: Microsoft.VisualBasic namespace in the import option of the project properties. Any Idea, Thanks. Also, to rename directory, you can try something like: System.IO. Directory .Move(oldPath, newPath) Andrej ...Show All

  • Visual Studio Express Editions How to read a text document in a ftp host???

    Hello, I am un able to work out how i can read a file which is placed in my ftp server. I am trying to read a .txt file which is placed in my ftp server into a richTextBox and it does not like me using a internet source i have tryed using the.net and .web files but nothing seems to work. I am trying to read in the file like i normally would do TextReader tu = new StreamReader("ftp:////2908180212@freeftp.bravehost.com//web//pcclan.bravehost.com//UserCheck.txt"); does any one know what i am doing wrong or how else i can do this Thankyou in advance for your help! take a look at this: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=933461&SiteID=1 this will read the file via httpwebresponse. would this ...Show All

  • Windows Forms Spurious failure of relation between two tables

    We have general-purpose code to populate master & detail datagridviews from a DataSet named dsGrid (populated from SQL Server 2005 Northwind db), and set the relation between them: dr = new DataRelation(sMasTbl + sDetTbl, masKeyColumns, detKeyColumns); dsGrid.Relations.Clear(); With one pair of related tables _only_, northwind.[orders] and northwind.[order details], setting the relation with dsGrid.Relations.Add( dr ); fails with this error: This constraint cannot be enabled as not all values have corresponding parent values. at System.Data.Constraint.Add(Constraint constraint,Boolean AddUniqueWhenAddingForeign) at System.Data.DataRelationCollection.DataSet.RelationCollection.AddCore(DataRelation relation) at System.Data.Data ...Show All

  • SQL Server Unable to reinstall or uninstall SQL reporting

    I have VS 2005 and SQL 2005 Developer ed (OS Vista) installed on my pc. When I uninstall SQL 2005, I encounter an error for SQL Reporting (someting to do with unable to read some file). Since then I am unable to reinstall SQL Reporting or uninstall SQL Reporting. I removed all the files from the directory but still I have not been able to do....Please advice... Thanks Malik Maybe you need to take a look at this kb: http://support.microsoft.com/kb/909967 . ...Show All

  • Visual Basic COM Interop Exception: Type Mismatch

    Hello, I was accessing a property named "Equality" of an ActiveX component through VB 2005 interop. In the object browser, the property was displayed as: Property Equality(ByVal index As Integer) As Integer I tried to access "Equality" with the following statement: 'Assuming pRenderer is a valid reference. Dim retVal As aims.imsEquality = pRenderer.Equality(1) The statement execution resulted in Type Mismatch exception. I looked around MSDN and the closest thing I could find was http://support.microsoft.com/ kbid=316138 . Does anyone have any idea how to properly access a property of an ActiveX component that takes an argument Thanks. Hi Stephen, It appears that t ...Show All

  • Visual Studio Express Editions From *.vb to *.exe, how?

    I have tried to search google and the forums here on how to make your program an exe but to no avail. I have the 2005 Express version and would like to make my test program into a .exe that I can install. Any assistance on this or how to do it I would apreciate :) I posted on another forum with a similar problem. My VB 6.0 tutorial tells me to create an .exe file like this: 9. Now that we have saved our project, let's compile the code into an executable file. Choose File, Make Activity2.exe to display the Make Project dialog box. However, when I pull down the File menu in VB Express, that doesn't appear. I am having trouble reconciling the two versions, and I am worried about re-learning everything ...Show All

©2008 Software Development Network