all groups > c# > march 2004 > threads for wednesday march 17
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
Alignment of first column in a ListView
Posted by Mark Rae at 3/17/2004 11:50:23 PM
Hi,
Can anyone please tell me if it's possible to change the text alignment in
column[0] of a ListView control? If I try to change it in design view, it
won't move from left align. I can "change" it in code but, although it
doesn't raise an error, it doesn't change the actual alignment of the ... more >>
c# questions
Posted by news.microsoft.com at 3/17/2004 11:06:19 PM
have anyone tried generics? I heard it's not anywhere near C++ templates.
Thanks.
... more >>
MoveTo and renaming
Posted by Massimiliano Alberti at 3/17/2004 10:55:37 PM
If I try to rename a file with the MoveTo (the only function usable to
rename files) and I use as dest name the original name with different case,
the MoveTo fails (example: test.txt -> Test.txt). How can I rename files?
--- bye
... more >>
What is the C# equivalent of calling CoInitializeSecurity?
Posted by acusdev NO[at]SPAM acus.com at 3/17/2004 10:46:06 PM
Hi there
We have a complicated security set up using a COM+ scenario and all our client programs call CoInitializeSecurity at the beginning of the process to get everything working correctly
However we have a requirement to use .NET client apps as well and cant find the C# way of initialising th... more >>
minimize
Posted by anonymous NO[at]SPAM coolgroups.com at 3/17/2004 10:23:45 PM
how do i minimize a window in csharp? i used to use
showwindow in c++, but it seems like that's not a choice... more >>
EMERGENCY: Problem with COM port (RS232) communication
Posted by AlliXSenoS at 3/17/2004 9:45:38 PM
hi to everybody
I have a small but urgent problem... seems me and my friend got ourselves
in a project a bit out of our league, and now we're stuck. and the delivery
date was... um. last month :)
the program is supposed to communicate with a COM port-based device that is
actually a reade... more >>
Accessing assembly attributes?
Posted by Harry J. Smith at 3/17/2004 8:28:59 PM
The following set of attributes is always included in file AssemblyInfo.cs:
[assembly: AssemblyTitle("")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("")]
[assembly: AssemblyCopyright("")]
[assembly: As... more >>
Session End when browser closed?
Posted by Andrew Banks at 3/17/2004 6:56:35 PM
I'm wanting to track the number of users using an application.
I'm using App variables and incrementing an int value by 1 everytime a new
session is started. I'm having a problem decrementing this int once they
close their browser.
I assumed that putting some code in Session_End in Global.as... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
typeof equivalent in MC++
Posted by 011 at 3/17/2004 6:43:34 PM
SGVsbG8sIEFsbCENCg0KSXMgdGhlcmUgYW55IGVxdWl2YWxlbnQgdG8gQyMncyB0eXBlb2YoKSBp
biBNYW5hZ2VkIEMrKz8NCg0KUmVnYXJkcywNCjAxMS4NCg0KV2luYW1wIDUuMCAocGxheWluZyk6
IFN0cmF0b3Zhcml1cyAtIDR0aCBSZWljaA==
... more >>
Error in C# file
Posted by Reshma Prabhu at 3/17/2004 6:39:57 PM
hello,
I am getting errors in the line
BindableAttribute myAttribute =
(BindableAttribute)attributes[typeof("Assembly text name, Version, Culture,
PublicKeyToken")];
The errors are
Type expected
Invalid expression term ']'
Invalid expression term ')'
... more >>
executable path...
Posted by David at 3/17/2004 6:35:00 PM
hello...
i've another question! ;)
how can i know from user control i writen, in wich directory user program,
wich uses my control, sits..?
thnx...
... more >>
user control properties
Posted by David at 3/17/2004 6:33:16 PM
hello...
i writen my user control, but how can i make it to remember its properties,
assigned during design time whru real time...
lets say i have property, BackColor, user set's it in a design time...
i want it to be the same in the real time...
tnx...
... more >>
Inline String Replace, there has to be a better way
Posted by Mike at 3/17/2004 6:18:15 PM
The code below does not seem very efficient if you have a very long string
and are doing many replace functions, there has to be a better way to do
this without reassigning the value type string over and over, any
suggestions? Thanks
string s = "ABCD";
s = s.Replace("AB", "12");
s = s.Replac... more >>
Setting thread priority.
Posted by Frank Rizzo at 3/17/2004 5:49:05 PM
I set the thread priority via the following statement.
System.Threading.Thread.CurrentThread.Priority =
Threading.ThreadPriority.AboveNormal;
However, when I look at the thread priority in the Task Manager, it
reports it as Normal.
What am I missing here?
... more >>
Displaying class methods in a list
Posted by Eric at 3/17/2004 5:33:56 PM
Is there a way I can provide an attribute(s) to methods of a class such that
all methods with a certain attribute
could be bindable and used as a datasource in a dropdownlist?
public class MyClass
{
public MyClass()
{
}
[Description("Method 1"), Category("User Methods")]
[Browsable(t... more >>
Debug option vs release ..
Posted by genc ymeri at 3/17/2004 5:08:50 PM
Hi over there,
What is the difference between the debug option and release one when we run
our projects in VS ? Both of them produce a exe file.
thanks in advance.
... more >>
Setting a checkmark to the system menu item.
Posted by Frank Rizzo at 3/17/2004 5:05:54 PM
Ok, I've managed to add a new menu item to the system menu.
intRet = AppendMenu(this.Handle.ToInt32, MF_STRING, ID_ON_TOP, "Always
On Top");
How can I now add or remove a checkmark to this menu item.
Thanks.... more >>
Deployment question...//Newbie in C#
Posted by genc ymeri at 3/17/2004 5:05:36 PM
Hi,
I'm a newbie in C#. I have a "Hello World" application which all it does
loads a text file. The filename and its path (which is suppose to be loaded
in the form) may vary and its path is written in app.config file.
If I want to install my new app in another PC what should I do ? Should I
... more >>
Ctrl+Z
Posted by genc ymeri at 3/17/2004 4:51:40 PM
Hi,
I'm doing a C# app which embbeds an ActiveX. If I press Ctrl+Z the ActiveX
performs an "Undo". How can I send the "Ctrl+Z" keypress into the system
through C# code for instance from a menu ????
Thank You in advance.
... more >>
Windows Form Threading
Posted by Fred Strauss at 3/17/2004 4:50:12 PM
I have a question regarding multi-threading in a Windows Forms
application.
I am writing a simple application to merge together a group of
files. I have created a class that holds the list of files and
contains a method to actually merge the files together.
The list is built and manipulated... more >>
Week of Year
Posted by Pascal at 3/17/2004 4:40:49 PM
Hi,
does anybody know how i can get the actual week of the year
with the datetime object? Is there an other way?
thanks
pascal
... more >>
DataSet versus DataTable
Posted by tim at 3/17/2004 4:38:30 PM
Hi,
I recently created a generic data access layer so I can use it in many
applications. It is designed to return datasets, datareaders, scalar
values... I recently have come across in an application that uses the data
access layer needing a datatable instead of a dataset. What I have been
... more >>
C# Windows Form - Panel populated dynamically with button controls, Windows.Closing() becomes disabled.
Posted by Bruce at 3/17/2004 4:21:13 PM
The form has a panel that is populated in c# code. Panels containing button controls and label controls are added to the main panel. The first time the form is displayed it works fine. When the user initiates an activity, I execute code as follows
pnlPlots.Controls.Clear()
Then pnlPlots is populat... more >>
CreateMHTMLBody Interface not supported.
Posted by Von Shean at 3/17/2004 4:09:34 PM
I use the following code to save pages as MHT
1 CDO.Message message = new CDO.MessageClass();
2 message.CreateMHTMLBody("http://www.google.com/", 0, "", "");
3 ADODB.Stream stream = message.GetStream();
4 stream.SaveToFile("fanms.mht",
ADODB.SaveOptionsEnum.adSaveCreateOverWrite... more >>
Singleton .NET Remoting -- How to Shut Down
Posted by Sue at 3/17/2004 3:46:13 PM
I need to share a single socket among many clients so I am thinking that a singleton .NET remoting project would work well. I do need to be able to stop it though. If I override as recommended
public class MyClass : MarshalByRefObjec
public override Object InitializeLifetimeService(
... more >>
How do .NET applications talk (in the same pc)
Posted by aherzallah at 3/17/2004 3:30:13 PM
Hi every one, I am about to write two applications in .NET using C#, my
challenge is how do I make them communicate (both being running in the same
PC)
this is what I was trying
1- using sockets, it appears to be too much for two application running in
the same pc
2- using remoting, again it a... more >>
*.chm files
Posted by RF at 3/17/2004 3:27:58 PM
Hi All,
Is there a tool in .NET that I can use to create my own *.chm help files? If
not, is there a free tool somewhere?
Thanks,
RF
... more >>
Efficiency
Posted by A.M at 3/17/2004 3:15:39 PM
I wrote following finction to exttract items from AD.NET connection string.
For example:
SplitCommaAssignments(cn.ConnectionString,";","=")
return a hash table contains all items in connection string.
I have suspission about the way that i create string array and leave it to
garbage colle... more >>
Include XML in XML comments?
Posted by Marty McDonald at 3/17/2004 2:57:02 PM
In my C# code, I'm using the <code> ... </code> tags. Within those tags,
I'm trying to show what the app's config file should look like. That means
I'm trying to put XML into those tags! But of course I don't want them
processed by any documentation generators. Is there a way to specify
comm... more >>
How I can sysnchronize changes in DataTable with my Database?
Posted by mp at 3/17/2004 2:40:30 PM
I am working with OleDB Access DB and CSharp.
How I can sysnchronize changes in DataTable with my Database???
What is wrong here ???
============================================================================
public static void AddRow(DataTable myDataTable)
{
Console.WriteLine("\nAddin... more >>
Comments
Posted by Gav at 3/17/2004 2:26:20 PM
Hi all,
In visual studio if you hover the mouse over a method of a object it will
tell you what it belongs to what it is and underneath it gives a brief
description i.e.. if you hover over DataSet.Tables this pops up:
System.Data.DataTableCollection DataSet.Tables
Get the collection of tabl... more >>
Passing optional parameters in C#, out Object
Posted by skrishnan NO[at]SPAM snet.net at 3/17/2004 1:34:58 PM
I have a method who signature looks like :
void methodName(Object security, int cookie, object Fields, object
OverrrideFlds,object Overrides, out object resut, object Monitor)
So far I have used Type.Missing if the parameter is optional, In the
signature
above there is "out object result"... more >>
Turn off case sensitivity?
Posted by gregory_may at 3/17/2004 1:27:34 PM
Hi
I am new to C#. I have done a good deal with VB.Net.
I am noticing how difficult case sensitivity is for me in C#. Is there a
way to turn it off or make it smarter about what I am trying to
auto-complete with Ctrl-Space?
Thanks!
... more >>
Sending a string as a message
Posted by Odd Magne Hågensen at 3/17/2004 1:26:06 PM
How can I send a string from one application to another?
I want to send debug messages from any applicaton to a debug application,
whose only task is to receive strings and show them in a list box.
Odd Magne Hågensen
... more >>
Clear Dataset
Posted by Ryan Miller at 3/17/2004 1:18:47 PM
I have a temporary dataset that I can't seem to throw away. I've tried clear
and dispose, but the GC never seems to reclaim the memory.
I have a windows form with a DataGrid on it with datasource set to this
temporary dataset. I have buttons that fill the dataset, manipulate it, and
clear it. ... more >>
Serilisation error when loading assembly
Posted by Spike at 3/17/2004 12:26:22 PM
I have an app which recieves assemblies from a network stream as byte [] and then loads them, however they are loaded as local code so they have full privlagies, so to limit this i created an app domain at runtime and used the domain.load(byte[]) method to load the assembly however it throws an exce... more >>
Format String
Posted by PawelR at 3/17/2004 12:26:19 PM
Hello Group,
In my apps I formating string:
String.Format("{0,-15}{1,-10}{2,-25}{3,-25}",myTable)
How change width column in code.
Column width must be more that length string in table.
I know how is max length string in myTable.
this code is incorect
int a = -15;
String.Format("{0,-a}... more >>
Use existing C code in C# application
Posted by ron-rohrssen NO[at]SPAM yahoo-dot-com.no-spam.invalid at 3/17/2004 12:21:06 PM
I have a bit of existing C code that I would like to use in a C#
application. Can anyone direct me to some instructions on how to make
use of this?
I'd also like to find some step-by-step instructions to make a DLL
from this C program using Visual Studio .NET. I haven't been able to
find any ... more >>
Use existing C code in C# application
Posted by ron-rohrssen NO[at]SPAM yahoo-dot-com.no-spam.invalid at 3/17/2004 12:21:06 PM
I have a bit of existing C code that I would like to use in a C#
application. Can anyone direct me to some instructions on how to make
use of this?
I'd also like to find some step-by-step instructions to make a DLL
from this C program using Visual Studio .NET. I haven't been able to
find any ... more >>
Using property accessors with a collection or array
Posted by gary.evans NO[at]SPAM comcast-dot-net.no-spam.invalid at 3/17/2004 12:21:05 PM
I know that I can use an indexer to pull data from an array.
data = SomeClass[0];
But what I want to see as the interface is:
data = SomeClass[0].Data
Specifically what I'm trying is this:
struct MyStruct {
string name;
int value;
}
public class MyClass()
{
MyStruct s = n... more >>
default parameter
Posted by news.microsoft.com at 3/17/2004 12:00:53 PM
I used to assign a default value to a parameter in C++. How do you do in
C#?
When I try, it gives an error, "default parameter specifier is not allowed
...."
Thanks.
... more >>
hrlp with custom marshaling of struct
Posted by Vaughn at 3/17/2004 11:50:12 AM
What code would I need to write to this struct? The following code
deserializes the struct so the function runs correctly. But in order to
write to the struct before doing the function call, I need to add code in
System.IntPtr ICustomMarshaler.MarshalManagedToNative(object ManagedObj) and
void I... more >>
.Net System.Management
Posted by Rene at 3/17/2004 11:24:18 AM
Please help!
The following C# code retrieves the MAC address. The code works great in a
regular windows XP system but it does not work on an XP Embedded OS image
running the embedded version of .Net. I am probably missing one or two files
but I am not sure which ones, Could someone help me???
... more >>
Missing constructor for SqlParameter (?)
Posted by marc NO[at]SPAM yanoo.net at 3/17/2004 11:14:24 AM
It surprises me that there is no constructor for SqlParameter
with parameters for name, the SqlDbType, size AND VALUE (?).
There's of course this constructor :
SqlParameter pm01 = new SqlParameter("@fieldname", SqlDbType.Int, 4);
But then you will always have to set the value separtly... more >>
Hints to solve name conflicts between params & fields
Posted by Javier Venero at 3/17/2004 11:12:01 AM
I would like to know from the experienced C# programmers witch is the best
approach to solve name conflicts between function parameters & fields.
Option A (using this):
class Foo
{
string name;
public Foo(string name)
{
this.name = name;
}
}
Option B: (usin... more >>
C# dll export
Posted by Klaus at 3/17/2004 11:02:44 AM
Hi there,
I have a C# project which export into a class library (with a multilevel
namespace) then I would like to use this library in a ansi c file - if
neccessary via a cpp file.
I would like to link it explicit using the function LoadLibrary and then
using the function GetProcAddress. The ... more >>
IE hosted .NET control as webservice client
Posted by Igor Kramaric at 3/17/2004 11:00:45 AM
Hi all,
here is my story:
WHAT I HAVE
I'v got a web aplication (many aspx and html pages), some of this (html)
pages host .Net windows controls (derived from
System.Windows.Forms.UserControl) inside HTML page. These controls are web
service clients on same web server, in the same web applic... more >>
Build an enterprise application for a customer with aprox. 100 Clients ???
Posted by gicio NO[at]SPAM gmx.de at 3/17/2004 10:56:16 AM
HI!!!
If you would happen to get the chance to build an enterprise application
for a customer with aprox. 100 Clients (.and increasing) which technology
and architecture would you choose. The security policy is pretty strong
so we would have actually only port 80 available. Besides that no dep... more >>
Workbooks.Open parameters in XL2000 and XL2002
Posted by SC at 3/17/2004 10:56:06 AM
Hi,
I'm using C# and creating a wrapper class for Excel. On my laptop, I have Office 2000 installed and on my "normal" computer, I use Office 2002 (XP).
Now, the Workbooks.Open method takes a different number of parameters in both versions. In XL2000, it takes 1 necessary parameter and 12 op... more >>
recursive without pointer ?
Posted by tony at 3/17/2004 10:49:02 AM
here are C++ Codes
class Row
{
//something...
}
Row MyRows[5];
void NextNum(Row * PointOfRows)
{
//do something...
if(something)
{ //do something...
PointOfRows++;
NextNum(PointOfRows);
}
}
Main()
{
NextNum(MyRows);
}
... more >>
Console Progress Bar
Posted by Ryan Rogers at 3/17/2004 10:45:43 AM
I want to create a progress bar in the console
[# ]
[## ]
etc etc but overwrite itself=20
how would i go about doing this.. with System.Console.Writeline or Write =
methods I dont see anyway to reloate the cursor or clear the screen and =
reprint I would rather just overwrite... more >>
creating file-links
Posted by Stefan Berger at 3/17/2004 10:43:42 AM
hello,
i need to create file-links (.lnk-file). does anybody know a .Net-component
with this functionality?
thx
... more >>
XmlSerializer - suppression
Posted by Raghu at 3/17/2004 10:27:48 AM
XmlSerializer object in .net framework allows serialization of objec type to
xml. However it also inputs the xml declaration string (<?xml version="1.0"
encoding="utf-8"?> into the output when serializing. Is there a way to
suppress this string?
Thanks.
Raghu/..
... more >>
Naming Advice Required (Re-Worded)
Posted by C# Learner at 3/17/2004 9:56:19 AM
In a class containing only public constants - a class which will never
be instantiated or subclassed - should the class name be pluralized?
e.g.:
sealed class ErrorMessages
{
private ErrorMessages()
{
}
public const string UnableToWrite = "Unable to write to output file.";... more >>
How to initate a new object when...
Posted by Cepheus at 3/17/2004 9:53:20 AM
Hi,
I want to initate a new object. The Type of the object is only known during
runtime and saved in a variable as System.Type. How do I create and initiate
that object?
Thanks, Rainer.
... more >>
Return multiple values from method
Posted by YoYo Pa at 3/17/2004 9:46:36 AM
I'm new to C#, and wondering how to return multiple values from a method. I
need to have a method return 3 int and 1 string.
thanks
... more >>
how to use dl file in C# ,and show a example to it ,thanks!!
Posted by jebelsea at 3/17/2004 9:23:14 AM
how to use dl file in C# ,and show a example to it ,thanks!!
... more >>
Can ServiceController control remote domain service?
Posted by azhitlenok NO[at]SPAM nanoink.net at 3/17/2004 9:16:17 AM
Hi,
Can ServiceController control a windows service on a machine that is
in other domain?
What is the proper syntax for machine name, that case?
I tried "domainname\machinename" and "machinename@domainname", both
doesn't work?
If ServiceController does not work with machine in remote domain, i... more >>
Catch Doubleclick in a Win Datagrid cell...
Posted by Bernardo at 3/17/2004 9:06:09 AM
Hi
I want to catch the event DoubleClick or Keypress from a windows datagrid cell
Is this possible
I only find datagrid events, they dont work in cells..
Thanks for your hel
Bernardo... more >>
Internet Communication / Windows Service
Posted by Doug Handler at 3/17/2004 8:54:25 AM
Hello,
I'm hoping someone can help / provide me direction to support what I'm
trying to do. I'm interested in how Symantec's Norton Antivirus background
application runs. They have a separate application that runs (Windows
Service) that downloads from their website automatically (if set) the... more >>
Detecting dropped socket connections
Posted by Mike Ruane-Torr at 3/17/2004 8:50:41 AM
I have a server with an open socket, and I'm doing this:
if (sock.Available > 0)
{
sock.BeginReceive(...)
}
else
{
Thread.Sleep(...)
}
....in a loop, so that I only run BeginReceive() when there is data present
to be received.
Problem: How can I introduce an extra bit of code be... more >>
How to get Mouse input from unmanaged DLL
Posted by sonofdaedalus NO[at]SPAM hotmail.com at 3/17/2004 8:26:23 AM
Hi all. My question is simple. How can I get mouse information from an
unmanaged DLL called from a C# windows application.
I have a very very simple C# windows application that simply overrides
the OnPaint command like so:
protected override void OnPaint(PaintEventArgs e)
{
Wrapper.... more >>
Data Load Question
Posted by AllenF at 3/17/2004 7:47:28 AM
I have a process built which load records from a text file (not delimited).
The record length is usually 400 characters, but in some instances can
exceed 800 and each file can contain anywhere from 2,000 to well over 50,000
records. The process breaks down each record into approximately 32 field... more >>
MessageBox in ClassLibrary
Posted by Dan at 3/17/2004 7:33:42 AM
I've created a ClassLibrary and need to show a messagebox at a certain point
in the code. The MessageBox class is in System.Windows.Forms, but when I
try to use that namespace, it isn't recognized. Are you allowed to use the
MessageBox class in a ClassLibrary. If not, how do you display messag... more >>
DataView.Sort Problem
Posted by BuddyWork at 3/17/2004 7:17:13 AM
Is this a bug with DataView.Sort
Data
Row0= ""
Row1= "T"
Row2= "S"
Sort Ascending
Returns data as
Row0, Row2, Row1.
Surely it should be Row2, Row1, Row0, this is how Excel
does it.
... more >>
Namimg convention
Posted by Mark Goldin at 3/17/2004 5:29:44 AM
Where can I learn about naming convention in C#?
... more >>
Naming Advice Required
Posted by C# Learner at 3/17/2004 5:17:05 AM
In a class containing only constant data, should the class name be
pluralized?
e.g.:
class SecretCodes
{
public const string Alpha = "asfasfdfsadf";
public const string Beta = "sadfsfdsasfdasfad";
}
Should this be called "SecretCodes" or "SecretCode"? I instinctively
think that ... more >>
Application.Blocks Updater Question
Posted by BuddyWork at 3/17/2004 4:57:00 AM
Hello,
Could you please advise me on the following.
We have a product that will be installed on a network.
Each client machine will have access to the network share
and will be given the correct trust to run the
application.
The current problem we have is that when we start the
appli... more >>
Insert val from other form to dataGrid
Posted by Bernardo at 3/17/2004 4:56:07 AM
Hi
I have a question..
In a windows datagrid and when I make a DoubleClick in a cell another form opens, and then I want to chose a value and return' it to the cell where I did the DoubleClick..
How can I receive the value and put it in the cell
Thaks for your help
Bernardo ... more >>
String compression
Posted by skg at 3/17/2004 4:11:06 AM
Can someone point me to some code (that functions) on how to compress strings in C#. We need this to speed up out WebServices/MessageQueue applications and so far what little code we found has not worked. A URL would do nicely. Thanks.... more >>
selecting text in a textbox
Posted by John Baro at 3/17/2004 2:04:52 AM
I have a textbox where I wish the text to be selected when the user clicks
on the textbox.
Textbox.SelectAll();
or
Textbox.SelectionStart = 0;
Textbox.SelectionLength = Textbox.Text.Length;
Neither work if the user clicks.
Both work if the user tabs
or I set focus in code.
:(
J... more >>
inheritance question
Posted by Mike P at 3/17/2004 1:38:59 AM
I'm trying to write my first project using inheritance, and I'm not sure
whether I'm going about it the right way (excuse me if my terminology
isn't quite right).
If I have a class called Person which is used to set variables DOB,
Address, MaritalStatus, and then Employee which inherits the ... more >>
Overload constructor
Posted by MuZZy at 3/17/2004 1:38:16 AM
Hello,
I have a class with two constructors:
public MyClass {
public MyClass(int i) {...}
public MyClass(char c) {...}
}
If i use second constructor while creating an object, compiler gives an
error:
'The best overloaded method match for 'MyClass(int i)' has some invalid
a... more >>
'using' directive to alias namespaces and classes
Posted by emma_middlebrook NO[at]SPAM fastmail.fm at 3/17/2004 1:27:12 AM
Hi
Am very curious. How, if at all, do people make use of the 'using'
directive to alias namespaces or classes to make their code more
readable (or otherwise e.g. more flexible/maintainable)? Are there any
guidelines/rules?
Is it bad to have a load of using directives at the top of a source... more >>
Enumerations
Posted by C# Learner at 3/17/2004 1:06:44 AM
Imagine the following:
class MyClass
{
public enum ErrorCode
{
InvalidCommand,
NotEnoughParameters,
None
}
//...
}
Should ErrorCode be declared as part of MyClass, as above, or should it
be declared outside of it?... more >>
help on creating C or C++ wrapper
Posted by Vaughn at 3/17/2004 12:32:00 AM
Where can I find information on writing a C/C++ wrapper in Dot Net? I have
good experience in C (not so much in C++) so I'm thinking of writing it in
C. The wrapper's going to be used for some dll functions (also written in
C) that we need for our C# application. It's really going to be really
... more >>
2D graphics library c#
Posted by Gawelek at 3/17/2004 12:24:57 AM
It means not for image processing but for 2D transformation. For example:
Union, intersect of two polygons, checking if point is inside polygon etc.
Thanks in advance
--
Gawel
-------------------------------
Pierwszy ³yk z pucharu nauk przyrodniczych czyni ateist±, ale na dnie
pucharu cze... more >>
Calling destructor
Posted by MuZZy at 3/17/2004 12:14:11 AM
Hello,
I just wonder how can i destroy an object?
C# doesn't have a 'delete' keyword.
I know about garbage collection, but my program generates a large graph of
objects, which will ocuppy a lot of memory space, and i want to be able to
clar the mess manually, i don't want to depend on garbage... more >>
|