all groups > c# > july 2003 > threads for tuesday july 29
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
Problem in calling native DLL functions in C# in PocketPC 2002 environment
Posted by Pawan Aggarwal at 7/29/2003 11:54:33 PM
I'm having trouble with calling an exported function in a
native DLL compiled with eMbedded Visual C++ in C#
application in PocketPC 2002 OS.
Problem Description follows:
I have one exported function in the DLL:
I am making an application for pocket Pc in C# using this
DLL Function.
when... more >>
Double conversion problem
Posted by Matt at 7/29/2003 10:43:56 PM
Hi there,
I'm having a weird situation when converting strings to double.
Normally, the following code would work right?
double MyDouble = double.Parse("20.50"); // Error at runtime
Well, it gives me an error at run time, telling me that the format of
the input string is incorrect. Then, ... more >>
CSharp project open and build
Posted by Nagesh at 7/29/2003 10:28:14 PM
Hi All,
I have a C# solution that is really big with more than 50
projects, it takes more time for opening the projectas
well as when I do a small change and build, it takes more
time, is there any way I can reduce the time taken?
Thanks
Nagesh.... more >>
Get DataSet's table with TypeDescriptor
Posted by Etienne Charland at 7/29/2003 10:05:12 PM
Hi, I want to get a table from a DataSet using TypeDescriptor. Why doesn't
this work? What would be the correct way of doing it?
DataSet ds = new DataSet();
ds.Tables.Add("Table1");
PropertyDescriptor Prop = TypeDescriptor.GetProperties(ds)["Table1"];
// Prop is null
Thanks!
Etienne
... more >>
ArrayList
Posted by Thomas Bock at 7/29/2003 9:03:34 PM
Hi NG
How can I load and save a ArrayList with Strings with best Performance. Wich
Methods are the best? In wich Format must I save the ArrayList for best
Performance. I will handle a very large ArrayList of Strings and than search
with BinarySearch in it.
Thomas Bock
... more >>
Socket.Available : possible bug ?
Posted by dream machine at 7/29/2003 5:52:29 PM
Hi all,
I'm try to check if the one client socket is really connected at my SocketServer .
I build Client Socket with BeginAccept() ,
and I want to receive data with BegenReceive() call !
The BeginReceive and BeginAccept work very nice .
<Code type="C#">
try
{
int byte_available ... more >>
How to call a form-Parent function that does not even yet to develop
Posted by David N at 7/29/2003 5:48:06 PM
Hi All,
I just wonder if in C#, I can develop a user defined control that can call
its parent function which is not yet developed. For example, how do I make
my user control call a to-be-developed-function cmdOkay_Click() function as
described below.
1. Create an user control that conta... more >>
SetValue using reflection
Posted by samlee at 7/29/2003 5:21:57 PM
Hi, all
I must apologise if these questions had been asked before.
1)
Why Assembly.Load("System.Windows.Forms") ?
2)
How can I set/get property of an object using reflection.
More specfically, how to acomplish the effect of
this.Text = "Hello World";
in the following program
Thank in ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How to kill a particular thread
Posted by RickDee at 7/29/2003 4:08:21 PM
Understand that when I start a thread, a number will be generated and is
able to get from GetHashCode method. But I would like to use this number
when I want to kill certain thread, anybody know how ??
Thanks
Regards
... more >>
How can I get current line number, function name, etc. like in C++?
Posted by Ken Varn at 7/29/2003 4:02:50 PM
I want to be able to determine my current line, file, and function in my C#
application. I know that C++ has the __LINE__, __FUNCTION__, and __FILE___
macros for getting this, but I cannot find a C# equivalent. Any ideas?
--
-----------------------------------
Ken Varn
Senior Software Eng... more >>
Connection Status with TCPClient
Posted by Patrick at 7/29/2003 3:42:59 PM
Hi...
I've written a small client, that uses the TCPClient for connecting to a
server and receives data from the server. When the connection is idle, after
5 minutes I get disconnected from the server. When this happens, I want to
reconnect to the server, but my problem is, I don't know how to... more >>
MailMessage.From - how to set the address?
Posted by Richard Bogle at 7/29/2003 2:58:11 PM
Hi,
MailMessage.From allows me to set the email address that the message comes
from but not the "covering address" (sorry, no idea what the correct
terminology might be).
The email message should have the To: field appear as "Joe Bloggs" rather
than the plain e-mail address.
Any ideas?
... more >>
Stop executing events
Posted by Kuba Florczyk at 7/29/2003 2:51:26 PM
Hi
In my application one of class got event. But after calling EventHandlers i
want to stop execute rest if one of them set e.Handled = true.
How to do it?
kuba florczyk
... more >>
RegistryKey GetValue?
Posted by R Agam at 7/29/2003 2:44:14 PM
Hi
How can I tell what type of value (string, int, ...) is returned from a call
to RegistryKey.GetValue?
Thanks,
Ronen
... more >>
Cast and Activator.CreateInstance
Posted by Vincent Lascaux at 7/29/2003 2:41:49 PM
Hello,
I have two assemblies A and B and an IFoo empty interface
In the assembly B there is the following code :
namespace B
{
public class Foo : IFoo { }
}
In the assembly A there is :
namespace A
{
public class Bar
{
Assembly a = Assembly.LoadFrom("B.dll");
... more >>
Rendering a DataSet - Client side
Posted by Son Matt at 7/29/2003 2:35:25 PM
This is new territory for me so I don't know where to start with a
design. I have to render a client side Dataset (5 cols x 20 or more
rows) to a canvas.
I know I can use Dataset.WriteXML("myfile.xml") but not sure what
producing an XML file does for me. I know that if I rename
"myfile.XML" to... more >>
MSDN and VStudio.NET
Posted by Christoph at 7/29/2003 2:33:18 PM
I had a subscription to MSDN and I installed the VStudio.NET
that was part of the MSDN to do some C# and VB development.
That subscription has since expired. Does that mean that I will
need to uninstall the VStudio.NET?
thnx,
Christoph
... more >>
What the sigmnificance of the # in <%# %>
Posted by SamIAm at 7/29/2003 2:29:57 PM
I.e.
<%# ((DataRowView)Container.DataItem)["Description"] %>
Thanks,
S
... more >>
coordinates in panel and image
Posted by Asaf Dan at 7/29/2003 1:58:41 PM
Hi,
I'm using a panel to show an image.
The Image could be bigger or smaller than the panel.
I want to show the pixel coordinates of the image on a label next to the
panel.
I'm using an event but i cant get to show the real image pixel's
coordinates.
I would appreciate any kind of help.
... more >>
Button FlatStyle.System spacebar behavior
Posted by nx-2000 NO[at]SPAM winvoice.com at 7/29/2003 1:34:12 PM
Here's a little test app to demonstrate a problem I'm having.
It creates four buttons, each one with the different FlatStyle types
available. Three of them behave exactly the same way(and the way I'd
anticipate), but the FlatStyle.System one does not.
If you click on any of the buttons, use... more >>
Application Recycling
Posted by Marios at 7/29/2003 1:28:05 PM
Hi,
I want to have in a application i have created the feature of application
recycling,
similar to the aspnet_wp, and the new COM+ service.
The reason i want to do this is because of being able to set limits to the
memory usage my app
can consume, and recycling it when it exceeds this limit.
... more >>
dynamic array
Posted by majiofpersia at 7/29/2003 1:23:53 PM
Hi all,
I am wondering whether any of you knows how to initialize a dynamically
sized multi-dimensional array? I can't use arrayLists, hashtables, or
anything that is key value pair set-up... I need multi-dimensional array in
C#...it is asking me to initialize it with size when I write :
str... more >>
lock statement
Posted by Jon Davis at 7/29/2003 1:10:50 PM
Does anyone know if there is any kind of known / published overhead with
using the lock statement (to lock an object to the current thread)? I am
preparing to use it in several object property gets, but I don't want to use
it if it will take a hit on performance.
Thanks,
Jon
... more >>
HOWTO? float to 4 Bytes, 4 Bytes to float
Posted by Michael at 7/29/2003 12:46:19 PM
Hallo NG,
a few jears ago i made myself in c++ a funktion to convert 4 Byte to one
float variable:
//###########################################################
// Make from 4 Bytes one float variable wich is 4 bytes long
//###########################################################
float ... more >>
retreive array
Posted by Srinivasa Reddy K Ganji at 7/29/2003 12:39:27 PM
I have a function written in vb 6 which returns an array of results within a
collection.
In asp i get the array with this type of code
arList = objGetRecords("cdrecords")
I generated wsdl file for this function using soap toolkit and the dll. Then
added web reference to asp.net(c#) project ... more >>
C# Roadmap
Posted by Chris Geer at 7/29/2003 12:15:17 PM
After reading the new Roadmap on the .NET homepage
(http://msdn.microsoft.com/vstudio/productinfo/roadmap.aspx
) I was wondering how all of the changes proposed to the
C# language are going to be handled through the ECMA. Is
Microsoft going back to the ECMA to try and change the
standard or... more >>
Empty strings
Posted by Chris Capel at 7/29/2003 11:23:48 AM
Is there any way to express this more concisely?
if (someString == null || someString == "")
throw new ArgumentException("String must have something in it."); // or
something
What would be perfect would be someString.IsEmpty(), but MS didn't see fit
to include that particular one. Maybe... more >>
ExecCommand and DHTMLEDLib.DEInsertTableParamClass
Posted by dd at 7/29/2003 11:23:02 AM
Cannot figure it out. If somebody can help, I'd appreciate it.
I am using DHTML Edit control from C# for editing HTML pages. I am trying to
insert a table into an HTML page and I keep getting an error. Here is the
code:
DHTMLEDLib.DEInsertTableParamClass oTableParam = new
DHTMLEDLib.DEInsertTab... more >>
Strange behavior of my program
Posted by Abhishek Srivastava at 7/29/2003 10:44:58 AM
Hello All,
I wrote a program in which I have a OleDbConnection which I open in the
contructor and close in the Destructor. When I run the program I get the
following error
Unhandled Exception: System.InvalidOperationException: Handle is not
initialized
..
at System.WeakReference.get_T... more >>
newbie: asp page templatess
Posted by suzy at 7/29/2003 10:28:42 AM
hi i am quite new to .net and am trying to implement page templates but i
just cant seem to get it to work, and i dont quite follow the examples on
the net.
all i want to do is create a template where i have a header (user control),
left column, and footer on every page. the remainder of the ... more >>
TabPage / TabControl (can't close tabs)
Posted by Benne at 7/29/2003 10:08:51 AM
Hi,
Does anybody know if it's possible to have the small "x" on the tabpages in
a tabcontrol ? I need a nice way to close them, without a big, ugly buttom
on the tabpage itself. It would be cool if the "x" was on the tab "header"
(the one you click on when you want to switch to a tab).
Than... more >>
Beginner Questions
Posted by Robert L. Wells at 7/29/2003 9:16:10 AM
Dear Sir or Madam,
Why did the designers of C# remove the ability to use static local
variables? What are the alternatives?
What books are the best for someone of intermediate skill level that is
migrating from MFC/C++ into C#?
I have MS VS.Net 2002 Enterprise Edition and am not able ... more >>
upgrade from 1.0 to 1.1
Posted by Mark at 7/29/2003 9:04:22 AM
I am preparing to upgrade a VS.NET ASP.NET project from version 1 to version
1.1.
1. Is it as simple as opening the project in VS.NET 2003?
2. Are there any issues to be aware of aside from not being able to open it
in VS.NET 2002 after the upgrade?
Thanks in advance!
Mark
... more >>
How to execute a program from C# console application
Posted by Marek Suski at 7/29/2003 8:56:30 AM
Please help
How to execute a program from C# console application?
Where I can find a class which will do that?
Marek Suski
... more >>
I want to control axWebBrower, but I need its hwin handle
Posted by MikeFrye at 7/29/2003 8:01:24 AM
the axWebBrowser.Handle is the handle to the parent window.
i.e. This.handle is the same as this.axWebBrowser1.Handle
Is there code I can do to get the handle?
Thanks in advance...
Mike... more >>
Why real OBJECT compared to NULL returns TRUE?
Posted by Sly at 7/29/2003 2:58:14 AM
Hi!
I am facing an unbreakable wall.
I have a class 'x' with one array in it called arr;
in Equals(x arg) routine I compare the elements of the
array.
But first I check whether
if( arg.arr == null )
{
return( false ) ;
}
DEBUGGER shows 3 elements in the array - so it is not
NULL!... more >>
problem in using exported function in a native DLL
Posted by vijay at 7/29/2003 2:16:19 AM
I'm having trouble with calling an exported function in a
native DLL compiled with eMbedded Visual C++ using C#.
Basicly, I have one exported function in the DLL:
whenever i execute this exe to Pocket pc it returns
MissingMethod Exception.
Code for DLL is
NativeFunctions.h
#ifdef NATI... more >>
Why C# app build by vs.net 2003 can resize itself?
Posted by Thomas Wang at 7/29/2003 12:11:36 AM
It's really funny,take a look at your app build by
vs.net 2003.
I have a app that is 36KB just after been build. But when
I run it by double click it and close it. It's size
expand to 56KB. And then I run it again,it's size shrink
to 36KB,and I close it,well it's size expand to 56K... more >>
c# newbie with windows events
Posted by Carlos at 7/29/2003 12:08:29 AM
please help..
I just wanted to write a very simple c# app, but the
event seems not to be handled (i.e. no messagebox is displayed) can you tell
what is wrong? Thanks!
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.F... more >>
|