all groups > c# > september 2003 > threads for monday september 22
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
passing a struct by ref to unmanged code
Posted by codymanix at 9/22/2003 11:36:32 PM
i want to pass a struct by reference to a function in a c++ dll.
the problem is that the call causes an ArgumentException in the calling c#
code.
i already tried to use "out" instead of "ref" there was no exception
generated but i
saw in the unmanaged code all fields of the struct were uninit... more >>
Late Binding
Posted by Justin Starnes at 9/22/2003 11:29:05 PM
Is it possible to late bind to a dll written in C# from VB6? If so, does
anyone have an example.
... more >>
using dotnetmagic in C# projects
Posted by VM at 9/22/2003 11:11:44 PM
I downloaded some dotnetmagic classes from http://www.dotnetmagic.com/ and I
added them as reference to my project but I don't know what to do after
that. And their page doesn't have any documentation regarding their use.
How would I go about using their components in my windows forms? Are the... more >>
Question on inheritance
Posted by J.R at 9/22/2003 9:55:54 PM
I have class B that inherits class c:
B : C
I have client D the instantiates Class B
D.Obj = new B();
I get:
dll Referenced class 'b.b' has base class or interface 'c.c' defined in an
assembly that is not referenced. You must add a reference to assembly 'c'.
I don't want to expose c ... more >>
Swen Worm Zapper
Posted by zane NO[at]SPAM abderaware.com at 9/22/2003 9:55:17 PM
I have a c# console app that needs a bit of testing before I make it available
for free (with source) to everyone.
It's a simple program - at this time - which connects to your POP3 server,
downloads _only the headers_, and if you have specified the delete (/d) switch
it deletes messages mat... more >>
Property in UML?
Posted by Jeff Louie at 9/22/2003 9:35:43 PM
Aaarg. I can find no standard way to represent a Property in UML.
http://www.geocities.com/jeff_louie/OOP/twisted1.htm
Regards,
Jeff
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
access database using rdo
Posted by pcPirate at 9/22/2003 9:08:11 PM
Hi,
I'm currently writing an application using C#. However, to access and update
a database, I must only use rdo (due to a certain reason). I heard I can use
the VB6 to make the function of accessing and updating the database and
then, compile it into dll. After that, using the C#, adding the ... more >>
Interfaces design question
Posted by Learning SQL Server at 9/22/2003 9:04:48 PM
I have a base class (say, BaseUser) in my class library that 3 other classes
derive from:
UserTom
UserDick
UserHarry
Additionally, a fourth class that contains some administrative functions has
a method, SaveUser, that takes one of my derived classes as an argument.
Ideally, I would li... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Loading a file with other programs
Posted by Tomomichi Amano at 9/22/2003 8:55:48 PM
How do I load a file(folder) with notepad , internet explorer and explorer
in a C# program?
... more >>
Printing through the Excel Object Library
Posted by Shay Friedman at 9/22/2003 8:51:31 PM
Hi,
My target is quite clear:
1) Open an excel workbook.
2) Print it to a file
3) Copy the file to a new location
Pretty simple, huh? Well, I found it to be a bit tricky.
I am able to automatically do the workflow mentioned above but something is
missing...
In the MS-Word Object Librar... more >>
remoting
Posted by memememe at 9/22/2003 8:11:17 PM
I am trying to teach myself some .net remoting and I find most of the
examples lacking on depth or explanations.
are there any good tutorials on this stuff out there? maybe Im using the
wrong terms to search on google.
Is there a way to get the instance of an object when the object requires
par... more >>
Unable to create New Project
Posted by Pawan at 9/22/2003 7:02:59 PM
Hi,
I am unable to create New project in VS.Net which I installed last
night. During set up, in 4th cd, there was an error saying that, "Could not
register 'C......\VsWizard.dll". I continued with the set up. And after that
I open VS.Net IDE to create C# Windows Application. And it does not ... more >>
Escape Sequences in Strings
Posted by Ken at 9/22/2003 6:01:06 PM
HI:
I'm reading a string that will be displayed in a MessageBox from a resource
file. The string in the resource file contains escape sequences so they
will be broken up into multiple lines. e.g. This is line 1\n\nThis is line
2. When this string is read using a ResourceManager GetString m... more >>
Web DataGrid problem
Posted by Pete Davis at 9/22/2003 5:30:07 PM
I'm using a web form DataGrid. When I populate the grid, I set the
DataSource to a collection and then call DataGrid.DataBind(). When looking
at the DataGrid in the debugger, the DataSource is set properly. When I then
get to the SelectedIndexChanged() event, the DataSource is set to null. I
hav... more >>
What does it mean??
Posted by Przemek F±fara at 9/22/2003 5:29:54 PM
DataTableCollection dta = myDataSet.Tables;
DataRowCollection dra = myDataSet.Tables["Plyty"].Rows;
DataRow dr = dra[0];
textTytul.Text = dr[0].ToString; !!!!!!!!!!!!!! ( ERROR : Method
'int.ToString(string)' referenced without parentheses )
What shuld I do?? What is wrong...
... more >>
Custom Server controls
Posted by Prasanna at 9/22/2003 4:58:47 PM
Hi all,
Does anyone tell me how to set the width of a custom server control. Because
my server control comes in a small box forcing some of it's elements to jump
into new lines.
Thanks in advance.
Prasanna.
... more >>
Does rdo supported in C#?
Posted by pcPirate at 9/22/2003 3:56:08 PM
Hi,
I just wanna ask a very simple question.
i) Does rdo supported in C#?
ii) If not, is there any alternative way? I mean, I must use rdo no
matter how.
Thanks in advance
pcPirate
... more >>
Control.ControlForm.Menu
Posted by Roman S. Golubin1709176985 at 9/22/2003 3:51:40 PM
Hi, everybody!
I create a control inherited from System.Windows.Forms.Control and override
OnParentChanged method:
public class MyControl : System.Windows.Forms.Control
{
protected override void OnParentChanged(System.EventArgs e)
{
// I look for current parent form
Sys... more >>
How to print special character in C#?
Posted by Amuro at 9/22/2003 3:49:45 PM
I want to print a string value that represent temperature.
how to print the 'little superscript circle' in C#?
thx...
... more >>
Best Approach?
Posted by Darin at 9/22/2003 3:22:57 PM
Hi,
I have a winforms app that will need to save certain runtime values that
will need to be accessed by different classes throughout the life of the
app. Is the best approach to create a container class designed as a
singleton class? Any other ideas?
Thanks in advance
... more >>
Excel (orphan process)
Posted by charles at 9/22/2003 3:19:35 PM
has anyone been able to release Excel Object from process
stack.
// my sample cleanup code
oWB.Close(null,null,null);
oXL.Workbooks.Close();
oXL.Quit();
System.Runtime.InteropServices.Marshal.ReleaseComObject
(oRng);
System.Runtime.InteropServices.Marshal.ReleaseComObject
(oXL);
Syste... more >>
using DataViews to get a filtered result set back
Posted by bigmuldoon NO[at]SPAM yahoo.com at 9/22/2003 3:06:45 PM
I'm a creating a dataView in the following manner:
VW_PRODMAIN = new DataView(ProdMain,"product_id='" + this.PRODUCT_ID +
"'" ,"product_id",DataViewRowState.CurrentRows);
when I do it in this manner I do not get any records in my DataView.
If I hard code the product_id in
VW_PRODMAIN... more >>
CheckBox in a DataGrid
Posted by Randy at 9/22/2003 2:42:18 PM
Hello,
I'm creating a table on the fly that is used by a datagrid. I'm also
creating a tableStyle that is used for the datagrid to make it look like I
want.
I'm using the DataGridBoolColumn to make one column a CheckBox field. It
shows up fine...as a CheckBox. I looped through the table and sto... more >>
where's the vs.net command prompt?
Posted by walsha2000 NO[at]SPAM hotmail.com at 9/22/2003 2:22:02 PM
Didn't they used to have a bat file that combined
VCVARS32.BAT with launching a command prompt?
I can't find it in my DotNet directories or in
my Visual Studio tools menu.
thanks for any memory-jogging...... more >>
Access to form elements from a different class / file
Posted by Tobias Froehlich at 9/22/2003 2:18:12 PM
Hi,
I have a form called form1 on which there are a lot of checkBoxes
(they form a 8x6 field). I'd like to create a class in a seperate .cs
file which gives some control over these checkBoxes (for example to
make them all unchecked).
So I now created a .cs file for this class, but I can't a... more >>
disk space remaining?
Posted by New World Order Pigs at 9/22/2003 2:15:23 PM
Is there no way in .net to get disk space remaining for a given drive??? I
can't believe it and yet is seems to be so. If someone knows of a way to do
this in the .net libraries I'd be very much appreciative.
Thanks, LT.
... more >>
Very simple & short comboBox question
Posted by Tobias Froehlich at 9/22/2003 1:50:40 PM
Hi!
I have a very newbie-ish question:
When I have a comboBox on my form, how can I set it so that the user
cannot edit the elements that are selectable in that comboBox? By
standard the user can write in there himself, but I just want him to
select between the options I give him.
Thanks... more >>
Best way to divide a windows form into two separate forms
Posted by news.microsoft.com at 9/22/2003 1:47:59 PM
I have a form that shows my name on the top half and my address on the
bottom half. Is it possible to divide this form into two separate child
forms (inside MDI form)?
Thanks.
... more >>
running DOS Commands from C#
Posted by news.microsoft.com at 9/22/2003 1:44:26 PM
I have a DOS application that I want to run from within my Windows C#
application (eg. c:\> DOSApp "hello"). is it possible?
Thanks.
... more >>
Remoting object lifecicle and threads
Posted by Sunny at 9/22/2003 1:32:56 PM
Hi,
I have to implement client/server application. The client have to
instaniate an remoting object via http and pass some auth info. If the
auth is OK, the client should invoke a method (or sequence of methods)
which will do the actual work (prepare a binary file) and return it to
the clie... more >>
SendMail problem: Could not create 'CDONTS.NewMail'
Posted by Anthony Boudouvas at 9/22/2003 1:23:24 PM
Hi to all,
i am just try to send emails in a timer-loop fashion, using the code below
and
i get the following error message:
Could not create 'CDONTS.NewMail'
The problem is not happening all the time and i do not understand
why is happening at all.
The machine i run my app is an NT4 Wo... more >>
Converting C++ Console Program
Posted by Jerry chapman at 9/22/2003 1:23:14 PM
Several years ago I wrote a console program in Visual C++, which I am still
using. In converting this program to C#, I have encountered the following
problems:
1. I build my console display in a back ground buffer and use the function
"SetConsoleActiveScreenBuffer(hForegroundBuffer)" to switc... more >>
change text orientation
Posted by Peter Demeyer at 9/22/2003 1:20:45 PM
Does anyone know how to put text on a form (using DrawString or another
method) in a certain angle?
I can only find ways to orientate text vertically or horizontally, but I'd
like to display a string in an angle of 30 or 45 degrees...
... more >>
Rookie: How to run application with specific user account?
Posted by Dave Guenthner at 9/22/2003 1:04:25 PM
Hi. I have a c# console application that works fine when
it is executed under the context of a user account who is
Administrator of the local machine. However, my
production environment, no end user is a full
Administrator of their machine. Is there a best practice
or way out there to s... more >>
save a high color Image as 256 color or fewer.
Posted by Mohammad at 9/22/2003 1:04:23 PM
Hello.
How I can write a program that save a high color image
as 256 color or fewer with .BMP format , just like
Microsoft Paint.
I want to write this Program with C# .NET , NOT with MFC .
Thank you.... more >>
managed C# to unmanaged DLL void*
Posted by Mr.Tickle at 9/22/2003 12:44:48 PM
Hi,
I have a C function in a DLL that takes a void* that is passing back some
other type, what is the general way to do this with object rather than
declaring the actual type that its returning.
ATM I am using the function that has the following signiture
long someFn(long l, void* ... more >>
Dynamic load of type in non-referenced assembly?
Posted by John Smith at 9/22/2003 12:29:46 PM
I have created an assembly that needs to load types from other assemblies
on-the-fly. However, if I use the Assembly.Load() method it tells me it
cannot find the assembly that I requested. I assume this is because the
assembly is not referenced in the project. So how do I load assemblies that
ar... more >>
Design View
Posted by Joe Ochinero at 9/22/2003 12:07:14 PM
I've been trying to view my .aspx pages in Design View, but I'm unable to
find where to activate the tabs that allow you to toggle between HTML and
Design View. Please Help!
... more >>
archives
Posted by Laxmikant Rashinkar at 9/22/2003 11:58:13 AM
Hi,
Is there some way that I can look at messages which are about 2 or 3 months
old?
I had asked some questions on deployment over the internet and gotten some
wonderful replies which I need to refer to now.
thanks
LK
... more >>
R-Tree or R*Tree in C#
Posted by Ralph Mason at 9/22/2003 11:52:07 AM
Does anyone know of any R*tree implementations in C#?
There is alot around in Java but nothing good I have come across in C#.
Thanks
Ralph
... more >>
How do I put a Button into an EditBox?
Posted by Serdar YILMAZ at 9/22/2003 11:50:07 AM
C# / unmanaged C++ integration
Posted by Dave Theese at 9/22/2003 11:32:40 AM
A broad question:
To what extent is it possible to have C# code integrate with *unmanaged* C++
code?
... more >>
How to Query Database by applying where condition from another recordset.
Posted by Sreedhar Vankayala at 9/22/2003 11:28:28 AM
Hi,
I have a table IV00108wc which contains several thousand records in whcih
ITEMNMBR is the primary key.
I have a com+ object returning recordset which has ITEMNMBR and another
details related. [I do not have direct query to get the list]
I want to query another table based on Com+ obje... more >>
Writing into excel spreadsheet
Posted by bob at 9/22/2003 11:12:04 AM
My program copys things from a word document and puts=20
them into an excel spreadsheet. The problem I have=20
though is these annoying symbols that appear in place of=20
spaces in the text after Ive put them into the excel file.
here is an example. this is what it looks like in the=20
word... more >>
AOT compiler for C#
Posted by Rouslan Partyka at 9/22/2003 10:55:49 AM
Hello,
Has anyone ever heard about AOT compilers for C#?
Any info would be highly appreciated...
Regards,
RP
... more >>
Ho to inherit from a struct
Posted by Boaz Ben-Porat at 9/22/2003 10:54:07 AM
I Know, ... a struct can not be inherited.
** Is there any tricky way to extend a struct ? **
I have to implement a component that represent a date (without time) that
has a small number of functions over those of DataTime type. My first thougt
was : "Inherit from DateTime and implement those ... more >>
How to splitt a large class into two or more files ?
Posted by Heinz Zimmermann at 9/22/2003 10:20:40 AM
Hello,
is it (in c#) possible, to splitt a large class into two or more files ?
If yes, how can I do that ?
Thanks
Heinz
... more >>
.NET and C# error messages wishlist
Posted by Olaf.Baeyens NO[at]SPAM skyscan.be at 9/22/2003 10:12:52 AM
I love the .NET framwework. Compared to mfc this is a dream to work with.
I would love if the C# and maybe other languages too, somehow gives more
friendly messages when executed on a machine with not .NET framework
installed.
* Some unmanaged startup stub in the generated executable would b... more >>
Bug in Visual Studio Generating Forms
Posted by Dextor at 9/22/2003 9:43:33 AM
Has anyone else noticed that if you try to place a control on a form of the
same width, that the control does not completely show up on the form? i.e.
If you have a form with width = 300 and you place a button on the form with
the same width = 300 (and location = 0,0) that the right side of the ... more >>
Session error
Posted by Reena at 9/22/2003 8:55:05 AM
Hi,
I am working on .NET 2003, C#. I have created a class file and getting...
The name 'Session' does not exist in the class or namespace
'RADWebV5.RADAsp.Class.Connection'
Connection.cs code....
using System;
using System.Data.OracleClient;
using System.Web.SessionState;
namespace... more >>
enums
Posted by Charlie at 9/22/2003 8:54:45 AM
Below is code for testing whether an enum is part of
a "set" of enums. There must be some better way to do
this. How does one get a group of enums and test for
inclusion? I want to use sets. But maybe collections?
What is the right way to proceed?
enum Suit: int {spade=1, club=2, hear... more >>
Dynamic report - Crystal Report (C# .Net)
Posted by Climber at 9/22/2003 6:48:58 AM
Hello,
I want to now how to do a dynamic report with Crystal
Report (C# .Net), the number of colum and row are
different each time because they depend of my data base.
Thanks
Climber... more >>
http error 404 - Win 2000
Posted by Greg Anderson at 9/22/2003 6:24:07 AM
I submitted this Sat but all the email responses were
blocked. I will ask again and look here for a response.
Win 2000
When creating a new Web project I get the error
"Unable to create Web project The file path c:\inetpub\
wwroot\myproject does not correspond to the URL
hyyp://localhost/my... more >>
Message Queue
Posted by Mailstore at 9/22/2003 3:51:48 AM
Hi,
This is the first time im working with MSMQ, so a very
basic question. If I want to send a message to a queue
that already exists on a remote machine, do I need to have
message queuing installed on my machine.
Thanks.
M... more >>
How to deploy an upgrade
Posted by Fabrizio at 9/22/2003 2:37:50 AM
Hi.
I want to deploy an upgrade of a software that I made, so
I would like to create a setup project that will just
install the upgraded components and forms. There is a way
to do that?
Thanks,
Fabrizio
... more >>
Connect a DS to a textbox in ASP.net
Posted by Andrea Lodigro at 9/22/2003 2:08:46 AM
Hi,
I've got a listbox linked to a DataSet in this way:
// connetto la lista di clienti ai dati
this.lbClienti.DataSource =
GestoreClientiDistributori.caricaElencoClienti().Tables[0];
// imposto DENIMINAZIONEBREVE come valore visualizzato
this.lbClienti.DataTextField = "DENOMINAZIONEBREVE";
... more >>
Access Com Port
Posted by Stanley at 9/22/2003 12:52:24 AM
Hi all,
Can anyone tell me whether visual studio .net supports serial port
accessibility. I am now doing a project, an unspecified machine is pluged
into computer's serial port. GUI is necessary. After i searched the MSDN, I
cannot found any solution about how VS .net handles com port reading. I... more >>
|