all groups > c# > september 2003 > threads for tuesday september 2
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
Getting error while accessing Object
Posted by Ramesh at 9/2/2003 11:45:35 PM
hi,
I have created COM when i try to use that instance in
C#.net Wep application i am getting following error
message. DBUsingCom is my Component name and
BusinessObject as a Class name.can anybody help to solve
this problem
Error message:
"Access to the registry key
HKEY_CLASSES... more >>
Error Accessing Data from Access Database
Posted by Shayer at 9/2/2003 11:39:42 PM
Hello All,
I write the following code to access Data from a table
But i get the exception "Syntax Error in From Clause"
when i write the code in SQL then it works perfectly.
OleDbConnection Myconnection = null;
OleDbDataReader dbReader = null;
Myconnection = new OleDbConnection (@"Pro... more >>
Method not found in the Com Object
Posted by Ramesh at 9/2/2003 10:05:12 PM
hi,
I have created one Component using C#. it have once
class name is BusinessObject. In this class i have one
method "CreatedRecords". When i make the build it created
ComponentName.dll file in the obj\Debug and bi\Debug
directory.
Then i have executed gacutil /i ComponentName.dll
It... more >>
can I convert an object/struct to raw data (byte array) and back again?
Posted by Chris LaJoie at 9/2/2003 9:25:20 PM
I am wondering if it's possible to convert an object or a struct to a byte
array of the raw data. It's been a long time, but I seem to remember doing
this in C++ at one point, and with very little code. What I'd like to be
able to do is save a struct into a registry binary value.
Thanks in a... more >>
Good Site for using Com in C#.Web
Posted by Ramesh at 9/2/2003 8:58:32 PM
hi,
I like to use COM in my application. I would like to
know the following information.
1. How to create COM in C#.Net Web ( i know litter bit).
2. How to change assembly info to use this COM.
3. How to Register using regsvs, Global Assembly
Cache, creating Strong name and etc... more >>
getting camera picture
Posted by Saso Zagoranski at 9/2/2003 8:33:47 PM
Hi!
Are the any classes I could use to get the picture from a USB camera?
Thanks,
Saso
... more >>
A listViewItemCollection question
Posted by Patrick De Ridder at 9/2/2003 8:29:53 PM
If I double click a header in a list view, I get
....SelectedIndexChanged(...)
My question:
With which code do I determine which column headers in a list view the
users has pressed?
I found plenty of references in MDSN, but I'm afraid I couldn't put
together an answer to my query from it... more >>
Comparing strings
Posted by Dennieku at 9/2/2003 8:28:26 PM
Does anybody have an idea how to compare two strings?
What I want to know is the percentage of the differences between the strings
Thx,
Dennieku
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
[OT] printing from IE
Posted by Abhishek Srivastava at 9/2/2003 7:17:00 PM
Hello All,
This is very offtopic. It is related to printing a document from IE.
nothing to do with .net. I am desperate to find an answer to this but
didn't receive any reply anywhere so I have to try this trusted
newsgroup. Please pardon.
I have created a web based application which cre... more >>
COM Interop - exposing properties
Posted by Luke Briner at 9/2/2003 7:10:15 PM
My ActiveX Container requires certain properties to be exposed by
components - properties that appear under the properties section in the
IDL/type library file.
C# properties are exposed as methods and the interfaces that my c# class
implements cannot contain fields in order to expose these... more >>
Asc equivalent?
Posted by Peter Z at 9/2/2003 6:48:39 PM
Hello folks,
Does anyone know the equivalent VB Asc function for C#?
Or ways around it?
Thanks in advance
Pete
... more >>
.net framework 1.1 and .net framework 1.0
Posted by atul at 9/2/2003 6:42:39 PM
I just wanted to know , is it possible to have framework
1.1 and 1.0 installed on the same machine and can be used
simultanously.
cheers
atul... more >>
Dispose / Destructor Guidance (long)
Posted by creepiecrawlies NO[at]SPAM hotmail.com at 9/2/2003 6:14:02 PM
I am in search of a comprehensive methodology of using these two
object cleanup approaches to get rid of a number of bugs,
unpleasantries, and cleanup-ordering issues we currently have in our
4-month old C#/MC++ .NET project project.
I'd like to thank in advance anyone who takes the time to re... more >>
off topic - new computer
Posted by John J. Hughes II at 9/2/2003 5:45:04 PM
With WinXP Pro, the .Net framework, and the MS Visual complier. Does
anybody have an opinions on which is better two processors or the new hyper
threading thingy? Sort of want things to go a little faster then they are
now.
Thanks,
John
... more >>
C# and VB.NET code in the same EXE
Posted by nathan_j NO[at]SPAM yahoo.com at 9/2/2003 5:04:38 PM
I am working with a fellow developer on a small project. I started in
VB6, but after her C# training we decided to build the application in
..NET. Rather than rewrite the VB6 code, I continued in VB6 then
converted it to VB.NET using the upgrade wizard, while she started in
C#. The VB.NET projec... more >>
Is VSLive! worth it?
Posted by Daniel Billingsley at 9/2/2003 4:43:35 PM
My company is interested in a "jumpstart" for me in going from VB6 to C#
(.NET of course). I just came across an old mailer for VSLive in Orlando,
which starts next week.
Can anyone give some feedback on this. Obviously, it would be a bit of a
pain to get down there next week out of the blue... more >>
C# - DataGrid on Windowsform.
Posted by Wayne Gibson at 9/2/2003 4:31:41 PM
Hi all,
Was wondering if somebody could help me or at least point me in the right
direction...
I have a System.Windows.Forms.DataGrid, which is bound to a dataset. I
would like to hide certain columns, so that the user can't see them..
Also was wondering if it was possible if when a cell... more >>
listBox1_SelectedIndexChanged
Posted by Kun at 9/2/2003 4:26:07 PM
Dear all,
Can we avoid listBox1_SelectedIndexChanged from fire?
My problem is during form load I fill listbox with employee name.
In listBox1_SelectedIndexChanged event detail information of the employee
will fill in bind to other textbox.
I think when form load the listBox1_SelectedInd... more >>
how to find and object using a variable that conatins the name of the object???
Posted by Lucas Sain at 9/2/2003 3:24:46 PM
Hi,
I think thta for this I have to use reflection... but I'm not shure.
How can I find/get an object at runtime by looking for its name that is
stored in a variable.
For example:
I have a DataTable called dtPersons that loads all the data of the
persons.
I have a string var... more >>
VBCRLF in C#
Posted by Murali Inguva at 9/2/2003 3:21:36 PM
How do i convert VBCRFL in Csharp?
thanks
... more >>
What Can I Expect From This Union?
Posted by Mike at 9/2/2003 3:15:17 PM
Within the following structure, TopStruct, I'd like to create 3 other
structures, 2 of which make up a union. The first structure will always
contain some data that I need and should never be overwritten, i.e. should
not be part of the union. The remaining 2, UnionData1 and UnionData2, make
up... more >>
Partial Match with a .NET regular expression
Posted by Christian Staffe at 9/2/2003 3:13:19 PM
Hi,
I would like to check for a partial match between an input string and a
regular expression using the Regex class in .NET. By partial match, I mean
that the input string could not yet be complete but I want to know if a
match is possible so far.
For instance I want to design a text box t... more >>
How to code this, want to use 2 separate classes
Posted by Reinier Beeckman at 9/2/2003 3:08:21 PM
Hi,
I have a program which opens a textfile. Now i have this code in the =
main void like this
public static void Main(string[] args)=20
{
StreamReader s =3D File.OpenText(".\\textfile.txt");=20
string read =3D null;=20
while ((read =3D s.ReadLine()) !=3D null)=20
{ =2... more >>
Retrieving information about a field in a class.
Posted by nathan_kent_bullock NO[at]SPAM yahoo.ca at 9/2/2003 2:52:03 PM
Hello Everyone,
Is there anyway to get the fieldinfo object for a specified field in a
class. Something better than telling what its name is, since this
isn't checked by the compiler.
Something maybe like this:
class Foo
{
public int foo;
public Foo()
{
FieldInfo fi = Fie... more >>
Unit Testing Tools
Posted by dnlwhite NO[at]SPAM dtgnet.com at 9/2/2003 2:44:20 PM
Hello,
I was wondering if someone had an idea of good unit testing
tools out there. I have looked at NUnit and HarnessIt and they both
have good and bad sides to them, but mainly we are looking for one
that can:
A) Create and/or load data (in SQL Server and hopefully in DB2).
... more >>
Can't list files in Temporary Internet Files
Posted by cs at 9/2/2003 12:19:27 PM
foreach (string file in Directory.GetFiles(
System.Environment.GetFolderPath
(System.Environment.SpecialFolder.InternetCache)) )
{
Console.WriteLine(file.ToString());
}
I can only get the code above to list desktop.ini and no
other files. What's going on with this folder?
... more >>
hardware
Posted by Norvin Laudon at 9/2/2003 12:03:34 PM
Does .Net have any classes to communicate directly with the hardware? (i.e.:
writing directly to I/O addresses)
Thanks,
Norvin
... more >>
How many threads to create?
Posted by SamIAm at 9/2/2003 12:03:31 PM
Hi am creating a email application that needs to mail out a very large
amount of emails. I have created a multithreaded c# application that using
message queuing. I have created a threadpool of 5 threads and each thread
checks the queue, receives the message and sends an email. How do I
determin... more >>
Using a C# Class Library .dll in VB 6
Posted by Jay Douglas at 9/2/2003 11:31:12 AM
Hello all,
I've wrote a .dll in c#. The .dll needs to be used by a VB 6
application. At first, I couldn't set a reference from the VB app, but then
I found the register for COM Interop in the build configuration in the
VS.net IDE. The VB 6 IDE now lists my class library as a reference. B... more >>
Dynamic Multidimensional Arrays
Posted by Pete Z at 9/2/2003 11:09:12 AM
Hello folks,
How do I achieve this:
redim preserve iaCount(2, iIndex)
with C# please?
Regards
Pete
... more >>
How to clean all itens in a Combobox list???
Posted by Thomaz at 9/2/2003 10:10:48 AM
Hi i need some help to solve a problem with the DataSource
in a COMBOBOX.
The question is "How can i clear all the itens in a
Combobox if i use the DataSource to browse data in a
database????".
I use the code below to fill a combobox:
this.cboSubfamilia.DataSource = thisDataSet.Tables
[... more >>
FrontPage Author Permissions
Posted by peteZ at 9/2/2003 9:55:35 AM
I'm trying to create a new Web App on my Web Server but I am getting a logon
dialog shown to me when I try and create the project. The message is
telling me that I need author permissions for the Web Site
Where on Win 2k3 can I find the Front Page Administrator ?
Or are the permissions set ... more >>
Excecuting a statment that is in a string
Posted by brunie at 9/2/2003 9:15:19 AM
Hello,
I have following :
string ClassName = "Client";
string Command = ClassName + ".GetType()";
Now I have a statement in a string.
How can I excecute the statement that is in that string?
Is something like this possible in C# and how?
Type t = Excecute(Command);
Thanks... more >>
How load icon from embeded resource into imageList?
Posted by Ed Sutton at 9/2/2003 9:01:55 AM
I have been searching for how to get an icon resource and load it into an
ImageList. I added an *.ico file to my project and set the files "Build
Action" to "Embedded Resource". Is there any easy way to do this? This was
easy to do in the old MFC. I can not find the answer in C#.
I also ne... more >>
Formatting DateTime Values
Posted by Bruce Vander Werf at 9/2/2003 8:58:01 AM
I need to format a DateTime in the following format:
"Mmm dd hh:mm:ss"
Where Mmm is the three-letter abbreviation for the month.
What's the best way to do this in C#?
--Bruce
... more >>
Duwamish Online Default Page gets Error Page
Posted by Srinivasan at 9/2/2003 8:50:09 AM
When I try to run the following URL :
http://localhost/Duwamish7/default.aspx
of Duwamish Online application, an error page
appears with the following message :
http://localhost/Duwamish7/errorpage.aspx?
aspxerrorpath=/Duwamish7/default.aspx
All appropriate permissions have been given... more >>
creating a dynamic ODBC connection in C#
Posted by Mike at 9/2/2003 8:20:10 AM
I am writing a .NET application in C# that uses Crystal
Reports. I want the crystal reports to grab information
from a database no matter where the database is
located. To do this, I want to create an ODBC connection
to the database at runtime in order for the report to
grab data from th... more >>
Changing control enabled color
Posted by AllenF at 9/2/2003 7:57:13 AM
When one sets the "Enabled" property of a control such as a text box or
combo box to "false", the field will change color to a dark gray. I would
like to change this color to something else, such as a light blue to make
the contents easier to read.
Is this Possible????
Thanx, Allen
... more >>
What to use for file contents....
Posted by denis_briel NO[at]SPAM bat.com at 9/2/2003 7:32:51 AM
hi everyone,
i have a minor prob and am not sure how to solve this.
What are we coming from?
Well, there are several template files inside a folder. these template
files have different names, like "DBCommonManager.cs" or
"%TABLE%EntityTable.cs", where "%TABLE%" is replaced during the work
... more >>
API Call
Posted by Mauricio Streisky at 9/2/2003 6:51:02 AM
I=B4m trying to map and use the winmm.dll functions to build=20
an audio assistant but I have a particular problem when I=20
try to use mixerGetLineControls function.
The function every return "Invalid Parameter" probably=20
related with the structures MIXERCONTROL and=20
MIXERLINECONTROLS (s... more >>
SyncRoot implementation for an IList
Posted by ktrvnbq02 NO[at]SPAM sneakemail.com at 9/2/2003 6:36:25 AM
Hello all,
I have written a collection class that implements IList. The class
currently uses an ArrayList for its internal storage.
I am somewhat confused as to how I should implement the SyncRoot
property on my class. The MSDN documentation seems quite evasive on
the subject:
For coll... more >>
SSL Socket in C#
Posted by Aung at 9/2/2003 5:02:11 AM
Any way to do SSL Socket in C#?
Aung
... more >>
Good Com and Com+
Posted by Ramesh at 9/2/2003 4:52:36 AM
hi,
I would like to use COM or COM+ concept in one of my
C#.web application. Since i am new to COM and COM+, I
would like to see step by step sample code. Anybody knows
good site for COM and COM+ using in C#.Net web application.
Thanks in advance.
Thanks,
Ramesh... more >>
Frustrated about ((IHTMLFormElement)eform).submit(); Please Help Me!!
Posted by andrlage NO[at]SPAM yahoo.se at 9/2/2003 3:08:30 AM
Hi!
I thought that using axWebBrowser control would be the same as using
Internet Explorer. All that IE can do i can do with this COM control.
It seams that this isn't the case. I'm trying to automate the login
sequence in different forums to make life easier. On some forums
simulating the .s... more >>
Test
Posted by Mike Crumby at 9/2/2003 2:50:21 AM
Writing ACL dont work
Posted by sebastian.sosna NO[at]SPAM dregis.com at 9/2/2003 1:28:51 AM
Hello NG!
Iam trying to write Access Control Settings for Users in Active Dir.
First what i do is to delegate a Trustee in a Container, with
permissions. This works fine. Lets take Guests as Trustee. Setting
rights like "Full Control" or "Read" or "Write" is not the issue, my
problem ar the S... more >>
Plugin/Api in C#
Posted by Roger Boesch at 9/2/2003 12:18:37 AM
Im currently working on a plugin architectur for a software product written
in c# and have found the following problem:
Project a) Application, Application with all classes used in this app
Project b) Plugin which will access to objects in the application (callback)
Project c) Interface: D... more >>
Unsafe pointer
Posted by Sona at 9/2/2003 12:14:21 AM
Hi,
please could someone show me how to access a two dimensional array using
unsafe pointers? My C code won't work in C# :-( I used:
arr[2][1] is equivalent to:
*(*(arr+2)+1);
what am I doing wrong?
... more >>
|