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

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

RichHamilton

Member List

AndyPham
bill_csharper
ssharma
vansloopernooper
Oliwa
Dietz
Simone1
Leon Zandman
Jegant
Joe Pickering
Deldy
mathewk_03
ahmedilyas
abowman
James Boman
SP534
HendrikG
Worf
Tom_Liu
Johannes Hansen
Only Title

RichHamilton's Q&A profile

  • Visual C++ Why can I create an object to ref class on the stack in CLI?

    Hello! I got a little confused with the creation of ref classes. I have a ref class e.g.: public ref class A{ public :A(); public : virtual ~A(); } Why can I create in another object an A object on the stack but not a String object : public ref class B{ A myAObj; // compiles String myString; // does not compile, should be: String^ myString } What is the difference here. I thought it is only possible to create value types on the stack with the C++/CLI Is the myAObj really created on the stack or is it created on the managed heap too And what is about passing that "stack"-object to a function - is a copy created Thanks for any help... Maik Wiege ...Show All

  • Windows Forms Text to Screen

    Hello, I need help figuring out how to write text directly to the screen. I've looked at the forums and the online help but still no luck. Any help would be appriciated. Hi, if you want to write the the screen device context you can use GetDC with a value of null to get the desktop device context, then you can draw onto that directly. The following code is an example of how to draw some red text directly onto the screen: using System; using System.Drawing; using System.Runtime.InteropServices; namespace ConsoleApplication1 { class Program { [DllImport("user32.dll")] static extern IntPtr GetDC(IntPtr hWnd); [DllImport("user32.dll")] static extern int ReleaseDC(IntPtr hWnd, IntPtr hDC); st ...Show All

  • Visual Basic How does one Integrate MySQL with Visual Basic 2005?

    I want to make a simple test using My SQL and the following tables: 1-Client 2-Invoice 3-Invoice Detail Then I want to be able to using these methods: Add Edit Delete Print Print Preview The Client Table and the Invoice table will be in Form View The Invoice Detail will be in GridView Is there Any Sample that I can get somewhere on how to emplement this There are two main methods of connecting and communicating with MySQL, via ODBC or using the MySQLConnector for .Net, using either method is similar to accessing other databases, DataAdapters etc. For more information and examples see http://www.mysql.com. For either method you will need to download the connector from the MySQL website. I use it a lot and pre ...Show All

  • SQL Server Error using Execute Package Task

    I'm trying to run a package from another package using Execute package task - I'm getting the error: Error: Error 0xC0012050 while preparing to load the package. Package failed validation from the ExecutePackage task. The package cannot run. . I have Delay validation on the child package. Any other suggestions Thanks Then I can only think that one of your tasks is failing validation when it comes to execute. If this is the case you should have more details in the package log if you have one. And if you don't, you probably should. -Jamie ...Show All

  • Visual Studio Express Editions invalid breakpoint on line number over than 65535 in c++

    Using Visual c++ 2005 , we can set breakpoint on line number over than 65535 But when running, break point over 65535 become invalid with this message "The breakpoint will not be currently hit", invalid file line : 102183 Breakpoint under 65535 are ok. Documentation say we can set breakpoint up to 2^24 - 1  line number At compile time, we did not get the c4049 warning as in Visual C++ 6.0 said. Steps to reproduce : Compile a large c++ file ( over than  65535 line ) set first breakpoint on low line number set second breakpoint on high line number Start debug Results: First breakpoint is checked ( valid ) Second breakpoint become unchecked ( invalid ) Expected: Can debug up to 2^24 -1 line number We di ...Show All

  • Windows Forms Scroll Wheel Problem

    I have a form with a panel. The panel is filled with controls at run-time. The panel's scroll bars appear properly when the panel height exceeds form height. Scrolling the scroll wheel does not move the scroll bars - the scroll symbol appears appears at the cursor for up/down scroll. Opening another form and closing somehow makes the scroll wheel work properly. Any ideas on how to fix this Hi, May be the focus is not being set properly on this form. Or some other control is getting focus in the meantime. Did you try setting the focus back on to the form and tried it Thank you, Bhanu. ...Show All

  • Visual Basic Beginners question

    Hi, when I use the HelloWorld example from the interop forms toolkit, everything is fine except if I try to add a new Public Sub. 1) E.g. I add the following code (while VB6 IDE is closed): in class HelloWorldForm after # Region "Public Methods" : <InteropFormMethod()> _ Public Sub newPosition( ByVal x As Integer , ByVal y As Integer ) Me .Left = x Me .Top = y End Sub 2) I open the vb6 IDE and start the main app. I press the "launch .NET form" button and see a modified .NET form, because I modified the form earlier in the .NET environment. 3) But if I edit the vb6 code re browse the objects in the object browser, I can not see the new Public Sub. What is the reason that ...Show All

  • Visual Studio Express Editions Linker error relating to RegCloseKey

    I am attempting to set up my machine to run Visual C++ Express Edition 2005. I have d/l the SDK (Microsoft Platform SDK for Windows Server 2003 R2). I have a basic application that includes windows.h and winreg.h. I am attempting to read the registry. However, every time I build, I get the following linker errors: test2.obj : error LNK2028: unresolved token (0A000010) "extern "C" long __stdcall RegCloseKey(struct test2::HKEY__ *)" ( RegCloseKey@@$$J14YGJPAUHKEY__@test2@@@Z) referenced in function "private: void __clrcall test2::Form1::anotherMethod(void)" ( anotherMethod@Form1@test2@@$$FA$AAMXXZ) test2.obj : error LNK2028: unresolved token (0A000012) "extern "C" long __stdcall RegQueryValueExW(s ...Show All

  • Connected Services Framework HelloWorld Sample problem

    Hi, I dont seem to be able to get the Helloworld sample working, whenever I press the createsession button i get a SoapFaultException. Checking the Application log gives the following Failure Audit error: Login failed for user 'Session-service'[Client: <local machine>] from the source MSSQL$SQLEXPRESS. A second error whose source is session gives: Error detail - System.Data.SqlClient.SqlException: Login failed for user 'Session-Service'. Do I need to give Session-Service an account on the SQL Server Looking at another thread from this forum I noticed that this worked for another user after they changed the authentication mode to mixed authentication mode, this didnt work for me. I then noticed that I c ...Show All

  • Visual Studio Express Editions how do i make this work?...

    I've used sounds and pictures in a project by using the My.Resources.Xyz way, but when I compile it and send it to my friend it doesn't work because these files are not in the .exe itself. How can I make it compile the program with these files so that it will work on her pc Ah, there's a question...She had it installed before,but that was last year; she might have made some system changes since then, e.g. reinstalling xp. OK, well I'll ask her and get back to you on that. cheers so far. ...Show All

  • Windows Forms DataGridView wont show new entry..until i run it again

    Guys..i'm new here...and new with VB2005..im having this problem..that my datagridview wont show the new entry(i have a reg page) until i rerun the program...can anyone please look it up..tnx very much..could really use some help.. Form1.vb: Imports System.Data.OleDb Public Class Form1 Private AccountsDataSource As New BindingSource(My.Application.DAL.dbDataService, "Accounts") Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.dg.DataSource = Me.AccountsDataSource End Sub Private Sub dg_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles dg.CellContentClick End Sub Private Sub Fill_Click(ByVal s ...Show All

  • Software Development for Windows Vista How does UAC impact admin Privilege?

    Vista RC2, I am using WMI EnableDHCP to switch netowrk from static to DHCP, the login account has admin privilege, and the program works fine when UAC trun off ,the program does not work with UAC,there is no error code returned from the WMI API, just nothing changed( I asked the question here and got a sugguestion to disable UAC, thanks for the help). I am confused with further testing, with UAC turn on, I right click the program and choice "run as administrator", the program still fail, Is it a UAC bug or "Run as Administrator" is using a downgraded admin privilege when UAC on Any comment will be welcome xuding After further study, I agree what Kenny said "If you right-c ...Show All

  • Windows Forms Tricking the Designer/PropertyGrid/Serializer

    Hey Guys. We have the following classes: public class Class1 : Component { private Class2 _class2; public Class2 MyClass2 { get { return _class2; } } } public class Class2 { public event EventHandler MyEvent; } I want to show MyEvent in the PropertyGrid when it's selected item it an instance of Class1. I managed to get it to show this using a custom designer and this code: public class Component1Designer : ComponentDesigner { protected override void PreFilterEvents(System.Collections. IDictionary events) { base .PreFilterEvents(events); ...Show All

  • Visual Basic A program is trying to send e-mail on your behalf. Stop this message.

    Hi Does any one know how to disable this option ( A program is trying to send e-mail on your behalf. Stop this message .) I'm trying to send an auto e-mail with Marco from MS Access. I am executing this macro from VB.Net... Dim objAccess As New Access.Application objAccess.OpenCurrentDatabase( "D:\TestMacro.mdb" , False ) ' Add the Access File Path objAccess.DoCmd.RunMacro( "Macro1" ) ' Replace Macro1 with the name of your macro objAccess.CloseCurrentDatabase() objAccess.Quit(Access.AcQuitOption.acQuitSaveNone) objAccess = Nothing But every time that my script trying to send the auto e-mail, a security popup and saing "A program is trying to send automatically ...Show All

  • .NET Development serialize the recordset to xml

    hi, i have created a recordset in asp and now i want to serialize it to XML. how can i serialize the recordset to xml so that i can pass it to report server of reporting services as parameter. Pls suggest me. ...Show All

©2008 Software Development Network