all groups > c# > august 2003 > threads for tuesday august 5
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
compile problems
Posted by Mike at 8/5/2003 11:37:20 PM
I have created a solution with 3 projects, P1, P2, P3.
Project P1 has my main method and it also relies on
objects/classes from P2 and P3. Two Questions:
1.
P2 and P3 don't have main methods. Do they need main
methods even though some of their objects are only being
created in P1? Th... more >>
Dispose pattern improvement?
Posted by Andreas Huber at 8/5/2003 6:12:39 PM
Hi there
Is there a reason why .NET framework base classes implementing IDisposable
(like e.g. System.ComponentModel.Component) do not prevent multiple calls to
the protected virtual void Dispose( bool disposing ) function?
Derived classes would then no longer need to check whether they have... more >>
ASP.Net Web Application ...
Posted by Pawan at 8/5/2003 5:38:17 PM
Hi Mates,
I had installed VS.Net on Win 2003 Server last month on FAT32 drive. Now
I am tring to create ASP.Net Web Application, and it is unable to create
one. I think that the problem is with Front Page Server Extension which is
not installed on my system and I think it cannot be installed... more >>
Using RTC with C#
Posted by gal.tamir NO[at]SPAM idc.ac.il at 8/5/2003 4:56:59 PM
Hi,
I was looking for info on how to use RTC in my C# application.
I searched on Google groups but all threads led me to an RTC C#
example on
this URL:
http://msdn.microsoft.com/downloads/sample.asp?url=/MSDN-FILES/027/001/778/msdncompositedoc.xml
However, the URL doesn't work anymore...... more >>
newbie: Loading XML and storing values of attributes in a String
Posted by ahakim99 NO[at]SPAM yahoo.com at 8/5/2003 4:39:01 PM
Hi
How do I load the following XML and store the values of the attributes
of the childnodes in String variables.
<?xml version="1.0" standalone="yes" ?>
- <DeviceProfile>
Profile of Device
<DeviceName>Kettle</DeviceName>
<DeviceIP>127.0.0.1</DeviceIP>
<InterfaceID... more >>
C# with delphi dll
Posted by coder5811 NO[at]SPAM yahoo.com at 8/5/2003 4:33:58 PM
Hi,
I have written a very simple, dll in delphi which just returns a
string.
When i try use Add Reference in VS.net 2003, it gives me an error
saying that this is not a valid dll.
Is there anything I can do?
- Thanks... more >>
Learn object programming
Posted by Boniek at 8/5/2003 4:31:40 PM
Hi
Where I can find links or any documentations about objects programming. I
mean, I'm programmig and I have professional applications but I still feel
that I'm not good programmer. I want to learn about building application
with full object programming and I'm not happy of my sources. I want t... more >>
ActiveX control
Posted by Sunny at 8/5/2003 3:49:40 PM
Hi all,
My dev platform: VS .net 2003, win2000pro, office 2000, MOD 2000, C#.
Bellow you may read my posting in other group. According that issue, I have
dig around and I'm wondering ...
My code for creating the ActiveX control in C# is:
[GuidAttribute("0E887A3F-D8BA-4d0e-8781-EBFAE5820844"... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
c# windows forms -> web forms
Posted by Ahmet AKGUN at 8/5/2003 3:48:58 PM
Hi;
I will have lots of (150+) windows forms designed using c#, and some
cutsomers
wants these forms' functionality also on web browser.
What would you do if you were obliged to write applications using c# that
are expected to run
on both windows and internet browser ?
Is there a cha... more >>
Working in Exchange 2000 with C#
Posted by ferg at 8/5/2003 3:23:24 PM
Hey folks,
I'm only beginning to understand the ins and outs of programming, let alone
C# and thing like ADO/CDO etc etc, but I'm on my way to trying to develop a
User Help Desk solution on Exchange 2000/2003 using C#.
I understand that E2K doesn't support ADO.Net (despite being a ".Net
Ent... more >>
How best to display content produced by web-service?
Posted by anthonysmales at 8/5/2003 3:21:48 PM
I have created a web-service which returns a line of HTML.
I have created a web-application which calls the web-service and then sets
the Label1.Text property to the output of the web-service, in order to
display the HTML.
This works, but seems very simplistic, so I was wondering if the humble... more >>
MessageBox
Posted by Patrick De Ridder at 8/5/2003 3:20:33 PM
I have two forms: Form1 and Form2.
In Form2 I have an OK/Cancel MessageBox.
I have coded
if(result==DialogResult.Cancel) Close();
That returns the user to Form1.
I want to return to Form2 instead of to Form1.
Please help me by giving the statement with which to replace Close().
... more >>
C# XML -> MSSQL Database
Posted by Pratik Parikh at 8/5/2003 3:13:38 PM
Hi eveyone,
Hi EveryOne,
I am having a real problem, which i am unable to resolve.
The problem is that i am tring to convert the datset using
XmlDataDocument, following is the code. My Problem is that
the while assigning the InnerXml to string variable
stream. it add escape character ... more >>
export dll function
Posted by An Ony at 8/5/2003 2:17:20 PM
Hello,
I'm trying to write a program (dll) to use with mIRC.
mIRC wants me to use these kind of functions:
int __stdcall procname(HWND mWnd, HWND aWnd, char *data, char *parms, BOOL
show, BOOL nopause)
translated into C# code, I think it's this:
int function(int mWnd,int aWnd, char [] ... more >>
Tab page select programmatically
Posted by jon at 8/5/2003 2:16:33 PM
Hi,
How can I from a program 'click' on a tabPage. I would
like to dynamically be able display another tabpage
nested in a tab control without the user have to click on
it.
Is it possible. I've tried around wiht some focus() and
show() but I can't get it to work.
Thanks.... more >>
crystal report promt for database login => Why?
Posted by Michael S at 8/5/2003 2:10:10 PM
only my server get the report whitout the dialogue database login.
I think it is where the database is localhost and the crystal report know
not the connection string.
how I can crystal reports say where the database is?
Have anywhere a idee how a can fix this?
thank you
michael schi... more >>
multilanguage in c#
Posted by Ahmet AKGUN at 8/5/2003 1:52:06 PM
Hi;
How can I create multylanguage windows forms in c# ?
I mean is it possible to change all resource language (button text, menus
etc.) from english to spanish
with a small change ?
any help will be appreciated..
Ahmet
... more >>
TabPage disabling
Posted by Tony at 8/5/2003 1:43:29 PM
Hi
I'm using a TabControl and need to disable a tabpage such that, although it
is visible, it cannot be selected or viewed in anyway. The text of the tab i
guess should be "greyed out".
Any suggestions?
TIA
Tony
... more >>
DirectoryInfo.GetFiles Method
Posted by Demetri at 8/5/2003 1:37:41 PM
Using the GetFiles method of the DirectoryInfo instance
one can pass in a search pattern of string type.
For example:
DirectoryInfo di = new DirectoryInfo("C:\temp");
FileInfo[] fi = di.GetFiles("*.doc");
That code would return all the files with the doc
extension in the C:\temp folder.... more >>
C# and API - newbie question
Posted by JSM at 8/5/2003 1:35:55 PM
Hi,
I am a VB programmer who is just starting to look at C#. Reading through
Microsoft's documentation they say how much more powerful .NET is and that
you don't have to reply as heavily on Win32 API calls as you did in VB.
One of the reasons for using API in VB was because it was a lot quic... more >>
Calculating Age
Posted by Ron Vecchi at 8/5/2003 1:35:23 PM
I need to calculate the age of a person based on a DateTime BirthDate
I was thinking
TimeSpan ts = DateTime.Now - BirthDate;
//I can get the days but not years.
// I could check each year from their year of birth, count the days in the
year and compare with the days returned from times... more >>
How to call Win32 Native API GetTokenInformation() using C#?
Posted by Vincent Nguyen at 8/5/2003 1:27:14 PM
Hi,
Does anyone know how call Win32 native API GetTokenInformation() by using
C#? Any sample code would be helpful. Thanks!
Vincent
... more >>
Parsing Custom DateTimes
Posted by Alan Gilmour at 8/5/2003 1:20:05 PM
Hi All,
Does anyone know how to parse a custom datetime string.
i.e. say I had a date time string in this format
string thedate = "Tue, 5 AUG 2003 13:29:00"
string theformat = "ddd, d mmm yyyy hh:mm:ss"
Could I then call DateTime.Parse(thedate,theformat), for example.
... more >>
C# to JAVA converter?
Posted by asj at 8/5/2003 1:19:18 PM
just read about a person who did work in C# then decided to switch to
java (because he wanted to run his apps in multiple platforms, inc
linux). he mentioned that someone should market a c# to Java converter.
is there any such thing today?
there is almost surely no market for it right now (... more >>
PgSqlClient 1.0 Alpha 3 released
Posted by Carlos_Guzmán_Álvarez at 8/5/2003 12:07:30 PM
Hello:
A new Alpha version of PgSqlClient an ADO.NET Data Provider for
PostgreSQL 7.4+ has been released.
You can found the release notes here and links for download here:
http://pgsqlclient.sourceforge.net/?q=node/view/3
--
Best regards
Carlos Guzmán Álvarez
Vifo-Spai... more >>
Problem with AcceptCallback closing server socket
Posted by David at 8/5/2003 11:46:55 AM
Having:Socket mysocket = new Socket
(AddressFamily.InterNetwork, SocketType.Stream,
ProtocolType.Tcp);
I cannot execute mysocket.Close() after executing
mysocket.BeginAccept(new AsyncCallback(ServerAcceptConn)..
The system complains giving a hint "AcceptCallback"
What should I execute ... more >>
silly newbie question - application with more than one form
Posted by Christian Stüben at 8/5/2003 11:33:43 AM
Hi all,
please forgive my silly newbie question. Using visual studio .net 2003,
i want do do some application that uses more than one winform, both in
c++ and c#.
Creating the second, third, and so on form with the designer is no
problem.
But how can i check if form2, form3 etc. are alr... more >>
GetManifestResourceStream returns NULL!!!
Posted by Arthur Roodenburg at 8/5/2003 11:20:22 AM
Hello,
I have an Assembly containing the resource "MyResource.xml" in folder
"MyFolder".
I compiled my Assembly and, according to ILDASM and
GetManifestResourceNames(), the assembly contains
"MyNameSpace.MyFolder.MyResource.xml"
When I call
GetManifestResourceStream("MyNameSpace.MyFolder.... more >>
help with VC# and SQL2000
Posted by S Saha at 8/5/2003 11:15:15 AM
Hello All,
I have developed a Visual C# Windows form Application to
update/add/view data in SQL2000. I copied the Excutable
file, some requried DLL and installed DotNetframe work
for the other users. But when I try to run the application
on the user's machine, I get the following error ... more >>
constructor overloading
Posted by Rude Dog at 8/5/2003 10:37:03 AM
The question below was probably asked, but I couldn't find
it.
If you have a class with an overloaded constructor, how do
you have one constructor call another? In Java the this
operator does the trick. What about C# ?... more >>
Attn: Intelligent lifeforms... responseDeadlockInterval
Posted by alien2_51 at 8/5/2003 10:20:37 AM
What are the possible repercussions to setting this to infinite..?
... more >>
Comparing types.
Posted by Chris Blanco at 8/5/2003 10:09:07 AM
I am building a Dynamic assembly loader which will scan and monitor a
directory, when a new assembly gets placed in that directory it will examine
the directory to see if there is a class that is derived from a certain base
class, if so it will create a n instance of that class and add it to a
c... more >>
VS.NET 2003 Solution
Posted by Rob Tillie at 8/5/2003 10:01:34 AM
Can it be openened in VS.NET 2002?
Greetz,
-- Rob.
... more >>
javascript-confirm via C# code?
Posted by Daniel Gustafsson at 8/5/2003 9:56:19 AM
Hmm, when a user presses a button in my web-form I want a javascript alert
to popup and asking the user to confirm if he wants to perform the action or
not... I want to be able to do this via C# code (the proper way) instead if
hacking the html-code.
I'm guessing this is really simple but I'm ... more >>
Deployment of Dependencies
Posted by Troy Murphy at 8/5/2003 9:33:27 AM
How do I add componants to the installation package so they will be
installed with the installer?
I have some COM DLL's that have dependencies (late bound) and I wish to
include those dependencies in the deployment project. If I add them to the
project directly, .NET wants to build an interop... more >>
System.Array and IList - language/framework design question
Posted by emma_middlebrook NO[at]SPAM fastmail.fm at 8/5/2003 9:16:59 AM
Hi
Straight to the point - I don't understand why System.Array derives
from IList (given the methods/properties actually on IList).
When designing an interface you specify a contract. Deriving from an
interface and only implementing some of it means something is wrong:
either the interface ... more >>
How to exit console application
Posted by ron at 8/5/2003 8:11:13 AM
Hi,
I am looking for an example on how to exit a console
application when the user type's "exit".
What is the proper way to handle this?
Thanks Ron... more >>
Best practice? Managing concurrent access to Business Objects on the middle-tier
Posted by Robert Zurer at 8/5/2003 8:06:01 AM
My architecture is, (ala Fowler PoEAA)
Presentation Layer
|
Service Layer
|
Problem Domain
(My Business Objects are held in memory)
|
Persistence Layer
|
Physical Storag... more >>
"Union" struct type
Posted by Yair at 8/5/2003 7:52:35 AM
Hi,
I need to shift the bits of a float type.
In order to do so, I declared the following struct:
[StructLayout(LayoutKind.Explicit, Size=4)]
private struct unionIntFloatType
{
[FieldOffset(0)]
public float m_asFloat;
[FieldOffset(0)]
public int m_asInt;
}
Problem is: If I ini... more >>
Capturing Screenshot in 256 colors in C#
Posted by mlbl NO[at]SPAM tm.net.my at 8/5/2003 6:51:24 AM
I'd like to know how to capture a screenshot of the desktop in 256
colors (8 bits) instead of the default 32 bits. If possible, please
include some sample source codes as i have tried searching high and
low for a solution but can't seem to find one.... more >>
Does .Netframework have a way to add a network printer
Posted by Ken at 8/5/2003 6:33:04 AM
Hello Everyone,
I think that there is no way to add a network printer
in .Net. I have tried ,as an alternative, using windows
API AddPrinter. This was not successful. Does anybody have
a possible solution in .NET?
Thank You in Advance for Your Help,
Ken... more >>
c# volatile and wince (.net cf?)
Posted by hwc at 8/5/2003 6:20:38 AM
I have some code that use volatile
for destop and pocketpc use,
it's ok on desktop,
but got error msg
"CS0518: The predefined type
'System.Runtime.CompilerServices.IsVolatile'
is not defined or imported"
what should I do?
Thanks.
(
VS 2003 Ver 7.1.3088,
.Net Framewark 1.1 ... more >>
Run anywhere - but how?
Posted by Jesper. at 8/5/2003 4:44:10 AM
I've made a .net app. I would like to run it on a machine
where visual studio is not installed. Which files must I
install on this machine to set up the .net environment
necessary for this task.
best regards Jesper.... more >>
where is my Add-in...?
Posted by Andre W B Furtado at 8/5/2003 2:02:17 AM
I'm having a very strange problem when trying to create an Add-In in Visual
Studio .NET 2002:
1) I create a new Add-In application in a new instance of VS.NET, checking
the option "create a tools menu item" (OK, as expected)
2) I build and install the Add-In (OK, as expected)
3) I open a new ... more >>
Re: Logon Windows using .NET
Posted by LongRunner at 8/5/2003 12:22:28 AM
It seem cannot let me pass username and password to logon the windows. It
just let me use
GetCurrent() to get the current user for the WindowsIdentity. Other
constructors also need the userToken.
Or I miss anything to do it?
"Chris Hornberger" <chris@chornbe.com> ¦b¶l¥ó
news:53ec8913.0308040... more >>
|