microsoft.public.dotnet.languages.csharp Archive - October 2001
Post a message to this list
Messages
Page: 12345678910111213
Migrating from Soap Toolkit 2.0 to C#/.NET? (2 replies, VIP)
microsoft.public.dotnet.languages.csharp
I've developed a project in VS 6.0 that has two components (Server and Client) talking with each other via Soap. (I used Soap toolkit 2.0 to implement it) I rewrited the client module in VS .NET/C#. (the server will remain the same it's the COM object .dll) In my C# client module I still use the old Soap Toolkit .dll to communicate with the sever. Could I do this communication (calling server func...
GetPrivateProfileXXX equivalent in .NET? (3 replies, VIP)
microsoft.public.dotnet.languages.csharp
I need an equivalent of Win32 GetPrivateProfileXXX functions (for read/writing ini files) in .NET. Is there any built in class or 3rd party library for that?
How to create a Datagrid... (2 replies)
microsoft.public.dotnet.languages.csharp
hi, I have to create a DataGrid or something like that, to show some fields returned by ADODB Recordsets. There is no other way to get the recods from the database, I realy have to use those recodsets (returned by a COM). In the datagrid I have to put some dropdownlists or comboboxs and textbox. The final look of the grid as to be something like the one in the file datagrid.jpg. If someone has a c...
Connect in http on a server (2 replies, VIP)
microsoft.public.dotnet.languages.csharp
hello!!!! I would like to know how to create a "component" in c# able to connect in HTTP on a server.Futhermore, How i can upload in c# ? Thanks very much !!!!
Hardisk size (2 replies, VIP)
microsoft.public.dotnet.languages.csharp
How can i get things like Harddisk size Bytes used Bytes availlable Thanks in advance... :) Henrik
Converting C# System.Object to VB6 Variant problems (3 replies)
microsoft.public.dotnet.languages.csharp
Okay here is the code from a DLL written in VB6. Public Function GetPatientSchedule(oSchedule As adodb.Recordset, PatientID As Variant, Optional EventDate As Variant) As Boolean Dim sCmd As String Dim oRs As adodb.Recordset If IsMissing(EventDate) Then sCmd scExec & scGET PATIENTSCHEDULE & scSQ & PatientID & scSQ ElseIf IsDate(EventDate) Then sCmd scExec & scGET PATIENTAPPDATA & scSQ & PatientID &...
design patterns in c# (3 replies, VIP)
microsoft.public.dotnet.languages.csharp
I find lots of sites explaining design patterns like Factory, MVC (MVP) are explained using java. Are there any sites doing the same but in c# ? tia. J.
Windows App Configuration (6 replies, VIP)
microsoft.public.dotnet.languages.csharp
Hello guys. I'm wondering if there is any configuration file equivalent to web.config for Windows app. Should I still use registry? Or create my own XML file? Thanks for your help in advance. *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
XML how-to (2 replies, VIP)
microsoft.public.dotnet.languages.csharp
I need to create an XML document programatically that has this structure: documentname node x1 "yes" x2 "no" Info here /node node x1 "yes" x2 "no" Info here /node node x1 "yes" x2 "no" Info here /node /documentname I'm an XML newbie, and would appreciate a bit of guidance on creating and adding nodes and attributes to produce a document like this. I then need to convert it to a string variable... ...
native dll calling with structs containing arrays of nested structs (4 replies)
microsoft.public.dotnet.languages.csharp
Ok guys, I posted a message a few days ago about my inability to pass a structure that contained a nested structure to a native dll, and the response that I received was helpful, but I was wrong with my first question. I cannot pass a structure that contains a nested array of other structures to a native dll; I get a run time exception during the dll call stating that the field whatever cannot be ...
Problems calling Excel from c# (2 replies)
microsoft.public.dotnet.languages.csharp
Hello, I have created a interoplibrary to call excel methods (done via references to Microsoft Excel 9.0, which created also the office and vbide interoplibraries) and proceed then to create a Excel sheet. My problem is that this works on two machines but on a third machine I get the error 'Old format or invalid type library' when I execute the line 'app.SheetsInNewWorkbook' (for the code see belo...
Where find C#-projects to join (2 replies)
microsoft.public.dotnet.languages.csharp
Hello everyone! This is the scenario: In school (swedish school) we have a class where we should learn how to work in a project. It doesn't matter what kind of project it is and we can chose it by ourself. I have worked with c# for a couple of months now, and I really like it. So I thought, why not work with a programming project with c# as language. But there are not so many companys that works w...
Win32 API (5 replies)
microsoft.public.dotnet.languages.csharp
Anyone know if there is an equivlant to OpenProcessToken, GetCurrentProcess, LookupPrivilege, and AdjustTokenPrivilege in C#. If not how can I dllimport() these functions. I've tried but does not work, maybe I am defining them wrong in the dllimport().
Asynchronous calls samples needed (2 replies)
microsoft.public.dotnet.languages.csharp
Hi, I'm trying to code a asynchronous call, and I've looked into MSDN for samples, but it looks like their documentation is way outdated. One of the samples doesn't compile because it tries to access the AsyncResult.AsyncDelegate method to get the delegate... but the AsyncResult class does not exist. The other sample tries using IAsyncResult.AsyncObject to do the same thing, but AsyncObject is not...
Programmatically rebooting the PC using C#? (4 replies)
microsoft.public.dotnet.languages.csharp
Anyone have code to do that? Is there a .NET framework call that can do it or do I have to wrap a Win32 call? Thanks.
AssemblyInfoVersion (2 replies)
microsoft.public.dotnet.languages.csharp
Hi, how can I get the version information of a used assembly during runtime? I want to display all used versions during startup of my application (including own version), which should be provided via the AssemblyInfoVersion class, but how do I get an instance of this class for every loaded assembly? THNX Jürgen
Launch an Exe from a C# WinForm (3 replies)
microsoft.public.dotnet.languages.csharp
Hi all, I have a C# WinForm (oops, I guess that's officially "Windows Form" now), and I have a button which on click should launch a Windows application. For simplicity, say I wish to launch "C:\winnt\system32 \notepad.exe" and have it come up on the screen. Any ideas on how to make this happen in C# (I tried a few MFC/COM tricks and did not have any luck)? Now I'm stuck. Thanks in advance for any...
GetObject (3 replies)
microsoft.public.dotnet.languages.csharp
What's the equivalent to GetObject from VB in C# ? I want to get the running instance of a COM object. Regards /Frederik Wehlin
Passing nested structures into native dll .. (2 replies, VIP)
microsoft.public.dotnet.languages.csharp
Hey Guys, With the help of all the past posts, I was able to correctly create a dll function declaration and struct layouts. Now, I have some issues. I have a simple dll function that expects two structures, and both structures contain embedded structures. Here's an example: [StructLayout(LayoutKind.Sequential)] public struct TMemDef{ public int handle; public int address; } [StructLayout(LayoutKi...
I lost the URL,anybody help me!!! (2 replies)
microsoft.public.dotnet.languages.csharp
Hi, I got a URL from this news group before, regarding the InvalidCastException caused by directx8.0, and how to fix it, but I lost it now. can anybody tell me again. thanks
Some questions about making connections to SQL Server 2000 (4 replies)
microsoft.public.dotnet.languages.csharp
I am working my way through the Wrox book, "Professional C#". In the examples of Ch. 11 ("Data Access with .NET"), they give a connection string like this: "server (local)\\NetSDK;uid QSUser;pwd QSpassword;database northwind" I've got a couple of questions: 1) I understand the "(local)", which is just the local machine. I also understand "\\NetSDK", which should be a node on a Windows network. I d...
RequiredFieldValidator on MultiLine TextBox (2 replies)
microsoft.public.dotnet.languages.csharp
I'm placing a asp:TextBox ID "TextBox1" TextMode "MultiLine" ... along with a corresponding asp:RequiredFieldValidator ControlToValidate "TextBox1" ... on an aspx page. The problem: Validation works if I: Leave Field Blank; Type in field without using Enter key (no manual line breaks); Type in field, Hit Enter key and don't type anything else Validation fails if I: Type in field, Hit Enter key and...
Using type "string" as type "VerticalAlign" (3 replies)
microsoft.public.dotnet.languages.csharp
I'm trying to set the vertical alignment of a TableCell object by passing the variable "sVAlign" The system expects type "VerticalAlign" I have tried to cast the string like: string sVAlign "Left"; TableCell oCel new TableCell(); oCel.VerticalAlign VerticalAlign.Left // This works oCel.VerticalAlign (VerticalAlign)sVAlign; // This doesn't Any thoughts of how to convert the string to VerticalAlign?...
Type Casting between Base and Derived Type (Serialization of objects with Type members) (4 replies)
microsoft.public.dotnet.languages.csharp
To all: I started with the problem of trying to serialize an object that contained a member of type Type. After finding out that a Type object can not be serialized, I tried another approach to simplifying the class object to be serialized. My solution was to create a base class with Type descriptive information, and a derived class containing the actual Type member. The thought being that I can s...
SqlCommand object (3 replies)
microsoft.public.dotnet.languages.csharp
In .Net Beta 1, there was an object called SqlDataSetCommand, which had a function called filldataset, and this was very useful. Now, however, the SqlDataSetCommand no longer exists, and all the is left for me to execute a stored procedure and pass it parameters is a SqlCommand. However, the SqlCommand does not contain a filldataset function, nor can I find any way to get the results from the stor...
Ad
Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification