[ADVANCED-DOTNET] RE: [ADVANCED-DOTNET] Converting from VB to C#

2006-05-23 Thread Jeff Ferguson
> I moved companies again and I have to use C# here. Here's > some code that I can't seem to be able to convert to C#. > Would someone be able to assist? > > > Public Sub New() > Me.New(Nothing) > End Sub > > Public Sub New(ByVal pParent As Object) > ... > End Sub Constructors call other const

Re: [ADVANCED-DOTNET] Read and Write data from/to a serial port (such as COM1)

2005-11-29 Thread Jeff Ferguson
> Has anyone here ever attempted to send/read data to/from a > serial port? If so, what objects from the FCL have you used? > A short code sample would be much appreciated. The .NET 2.0 code is pretty straightforward. The write case will be something like this: private SerialPor

Re: [ADVANCED-DOTNET] Business logic

2005-09-13 Thread Jeff Ferguson
o one *right* place for that business logic. Just some things to consider ... Magenic Technologies Jeff Ferguson Consulting Manager === This list is hosted by DevelopMentorĀ® http://ww

Re: [ADVANCED-DOTNET] .NET ExitWindows() or InitiateSystemShutdown() methods

2005-05-23 Thread Jeff Ferguson
> Is there a way to do an ExitWindows() or InitiateSystemShutdown() using > all managed C# code? Have you tried P/Invoke? [DllImport("user32")] public static extern int ExitWindows(int dwReserved, int uReturnCode) === This list is hosted by DevelopMentorĀ® http://

Re: [ADVANCED-DOTNET] Get document out of sql database

2004-09-28 Thread Jeff Ferguson
> What is Windows SharePoint Services? Well, before we go there, tell us a little about deployment. Is this a solution to be used only within your company or department, or is this something anyone in the world should be able to use? Magenic Technologies

Re: [ADVANCED-DOTNET] Get document out of sql database

2004-09-28 Thread Jeff Ferguson
ocument get back into the database? If this is indeed what you want, have you considered Windows SharePoint Services? Jeff Ferguson Magenic Technologies === This list is hosted by DevelopMentorĀ® http://www.develop.com Some .NET courses you may be interested in:

Re: [ADVANCED-DOTNET] MSMQ

2004-05-12 Thread Jeff Ferguson
> I have no clue what WMI is ??? Could you give more detail on that ??? http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/ wmi/wmi_start_page.asp Windows Management Instrumentation (WMI) is a component of the Microsoft Windows operating system and is the Microsoft implementa

Re: [ADVANCED-DOTNET] How to read MVID and assembly hash?

2003-10-02 Thread Jeff Ferguson
If that doesn't work, let me know. I've got a good start at a "metadata object model" assembly that should be able to get it for you. > -Original Message- > From: Jason Whittington [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 30, 2003 7:30 PM > To: [EMAIL PROTECTED] > Subject: Re:

Re: [ADVANCED-DOTNET] System.Inptr problem

2003-09-02 Thread Jeff Ferguson
> Now the problem is .How to call this Double pointer.in Dotnet..Any > idea? Would it not need to be an out parameter? I'm confused. You say that the wrapper generated the following: > void Decode ( string bstrData , int nSize , System.IntPtr ppData ) but you're making the call as: >

Re: [ADVANCED-DOTNET] GAC'd assemblies cannot access application .config settings

2003-08-14 Thread Jeff Ferguson
> I > think GAC classes can only load assemblies with strong names. Correct. As I understand it, assemblies referenced by a strongly named assembly must also be strongly named.

Re: [ADVANCED-DOTNET] command object

2003-06-17 Thread Jeff Ferguson
What is the exact text of the exception that you catch when you execute the delete operation? Peer code review time: > connectionString = "Provider=SQLOLEDB;Data > Source=Ravi;Initial Catalog=Master;" + > "Integrated Security=SSPI;"; >} > >OleDbConnection connection = new OleDbC