all groups > c# > january 2007 > threads for thursday january 11
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
C# threading & events
Posted by Aidal at 1/11/2007 11:39:06 PM
Hi NG.
I'm creating a little app. that has to use a 3rd party API.
The functions in this API has no return value but trigger events like OK
or NOT OK with event args.
Where I need to use this API I must have a synchrone modul so I need to
force a synchrone look to this asynchrone model of... more >>
can't convert msoeapi.idl to .tlb
Posted by Vinz at 1/11/2007 11:37:16 PM
Hello folks,
After 1 evening of trying and reading a lot of (web)pages I have not
succeeded in creating a .tlb file from my msoeapi.idl file. Also I'm a bit
confused because some sources say MIDL.exe makes the type library and some
say TlbImp.exe creates it.
I tried using MIDL but it wil... more >>
Lockbits vs BitBlt
Posted by _DD at 1/11/2007 11:00:58 PM
I've heard that fast bitblt functions still need to resort to calling
older Bitblt vs interop. Has this changed? Will GDI+ Lockbits come
close to the speed of GDI BitBlt?... more >>
How to marshal managed array to DLL.
Posted by Ananas at 1/11/2007 10:34:38 PM
Hi,
I'm using C# and C++ DLL. I need to send an array of unknown size at
compilation time to C++ native code. How to do this.
Example;
C#:
byte[] Image = ImageLoadFromFile(FileName); // as like the dynamic
image in the C++, for example, image loads from the file at the run
time.
C++... more >>
need some explanation with referencing controls on other forms
Posted by Milsnips at 1/11/2007 6:45:39 PM
Hi there,
i have a test application with 2 forms - frmMain and frmDialog
the application starts with frmMain (which has a label on it called
lblStatus), and when i click a button, it opens the dialog where i can type
some text. What i cant figure out is while i'm in the dialog, i want to s... more >>
Is this normal
Posted by Robert Brown at 1/11/2007 6:33:03 PM
Hi there,
Is it normal for form-based events to fire in "InitializeComponent()". I've
got a "DataGridView" on a form and I set its "CellValueChanged" event using
the forms designer. Ok, VS initializes my event in "InitializeComponent()".
However, "InitializeComponent()" later calls
"Compo... more >>
Clickonce, Windows Installer, or something else?
Posted by Tim at 1/11/2007 6:30:29 PM
I am fairly new to VS 2005 and I have a unique situation that I would
like ask the group. I have some sensitive files and documents that I
want to deloy to authorized usres. In a nutshell, I want to package a
group of files and documents with an install package and have the user
install it on ... more >>
Newbie: use Csharp for web development
Posted by CK at 1/11/2007 6:24:22 PM
I have never written a single line of code in C# but I would like to begin
web development with on ASP.NET can we do that using C# ? I have a fair
knowledge of OOP and JAVA/J2EE. I have read at serveral places that C# is a
better programming language than Java in some ways. I would really like... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Recursive XML serialization? XML serialization of cyclic objects?
Posted by " at 1/11/2007 6:18:29 PM
Hello. I have this kind of object:
class classA
{
int x;
classA z;
public int X
{
get { return this.x; }
set { this.x = value; }
}
public classA Z
{
get { return this.z; ... more >>
thrown exception lists the line number of throw
Posted by Dan Holmes at 1/11/2007 4:55:22 PM
Server stack trace:
at IVS.Framework.ControlNumberService.InstallComponent(Identity id,
ControlNumberInfo ctrlNumber) in
C:\Sandbox\IAF.NET\IAF\trunk\src\BOs\ControlNumbers\Server\ControlNumberServer.cs:line
86
The line number 86 is the "throw" line:
catch (Exception ... more >>
Example asp.net and Flash Media Server
Posted by Rafael Tejera at 1/11/2007 3:55:40 PM
Somebody has an example of asp.net c# and Flash media server that can =
show me, or any article.
Sincerely,
Rafael... more >>
Gridview not sorting numeric or fomating because of datatype
Posted by Cindy Lee at 1/11/2007 3:51:58 PM
I get my data from a basic xml file and make a datatable, and then bind it
to the gridview. I think it's not sorting or dataformatString correctly
because it thinks it's a string and not a number. Is there a way to tell
the gridview the value is a int?
This is how I bind the data:
... more >>
NUnit tests will not load
Posted by j at 1/11/2007 2:51:39 PM
I've used NUnit before, but I've never had this problem.
I am trying to test a web service.
I've written my tests, decorated the fixture, and the tests and
everything compiles, but when I load the DLL into NUnit, none of the
tests load.
The console output :
NUnit version 2.2.9
Copyright (C... more >>
fire an event at midnight
Posted by Jac at 1/11/2007 1:50:41 PM
Hey,
I have a windows service and when the day change (so at midnight) I want
fire an event so I can execute some code.
Do someone has an idea to do that?
I don't see directly a solution with a timer and an interval. Because
the first time then interval can not be 24hours? Is there some... more >>
ConfigurationSettings.AppSettings["foo"]
Posted by Mark at 1/11/2007 1:32:44 PM
Could someone provide me with details or a link on how the line of code
executes underneath the hood? Assume it's executed in an ASP.NET
application.
string blah = ConfigurationSettings.AppSettings["foo"]
Once your application has called for the "foo" key once, how expensive is to
call ... more >>
Searching 18,000 strings of an average size of 10Kb
Posted by Allan Ebdrup at 1/11/2007 1:31:16 PM
What would be the fastest way to search 18,000 strings of an average size of
10Kb, I can have all the strings in memory, should I simply do a instr on
all of the strings? Or is there a faster way? I would like to have a kind of
search like google where you can enter several words to search for... more >>
Capture XML Response
Posted by Tom Bean at 1/11/2007 12:41:43 PM
I am writing a C# Windows service that calls methods on a remote web service
and would like to capture the XML returned by the web service. The reason I
need the raw XML is for back up to the sub-set of data I am saving to a
database.
All the posts I have found seem to assume one has acces... more >>
Can't access to any DataBase
Posted by alberto at 1/11/2007 11:43:43 AM
I'm working in a domain with C# 2005 and I can`t access to any data base.
The error is this:
Error de solicitud de permiso de tipo
'System.Data.SqlClient.SqlClientPermission,
System.Data, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089'.
Thank you very much in advance
... more >>
Multiple apps with multiple joysticks
Posted by schao416 NO[at]SPAM yahoo.com at 1/11/2007 11:17:59 AM
Hello all,
I have a 3rd party Windows app using an USB joystick running. If I
develop a C# app that uses a 2nd USB joystick, can both of those apps
running side by side receiving inputs from their respective joysticks
even though only one of those app has the focus?
Thanks,
Shane
... more >>
Generics Question
Posted by sloan at 1/11/2007 10:54:26 AM
I think someone posted about this before.
Outside of collection type stuff, what are possible uses of a Generic.
(Again, I'm cool with the collection type stuff).
Thanks.............
... more >>
Known problem with LinearGradientBrush?
Posted by _DD at 1/11/2007 10:43:01 AM
It seems that there is some odd interaction with LinearGradientBrush
that depends on positioning. A simple test:
---------
Rectangle Square = new Rectangle(.....);
in Paint:
LinearGradientBrush ShadeBrush = new LinearGradientBrush(
Square, Color.White, Color.Black, 90.0F,... more >>
Parameter Passing from C# to C++
Posted by Rich at 1/11/2007 8:56:16 AM
I need to build a managed DLL in C++ and call it from C#. I need this
to work with remoting as well.
In C#, class objects are reference types, so if an object is passed
directly to a C++ method it is considered a reference to the object.
C# call:
i = some_method( some_object );
C... more >>
C# 3.0: no additions to where clause? dang.
Posted by not_a_commie at 1/11/2007 8:52:12 AM
I was hoping for increased functionality with the where clause in C#
3.0. Using the new keyword 'var' would really allow us to take nice
advantage of these. Specifically:
1. I want to limit it to primitives: "where T : System.Type.Primitive"
or something like that.
2. I want to limit it to an... more >>
Start up directory for my dll
Posted by roto23 NO[at]SPAM earthlink.net at 1/11/2007 8:50:30 AM
I wrote a complied c# class (SpulClass). In that class I use this to
get the directory it resides in..
System.IO.Directory.GetCurrentDirectory();
When I call this this class (dll) from a c# windows application
this....
System.IO.Directory.GetCurrentDirectory(); returns the correct path
(C:... more >>
kerberos authentication
Posted by webrod at 1/11/2007 8:38:37 AM
Hi,
I am trying to secure a WS using WSE 3.0 and kerberos.
I used the "WSE 3.0 settings" from VS2005 with my own WS.
I have a console application which try to access a WS.
With the following configuration it works:
- WS/IIS and AD on the Windows 2003 server
- console application on a Win... more >>
how to convert logic operation stored as a string to bool ?
Posted by Jakub Bednarczuk at 1/11/2007 8:34:57 AM
Hi everybody
I am trying to find the solution for the problem stated in the topic,
but so far without any result.
Let's see the problem.
I have set of conditions and the description (logical sentence) how
should be these conditions connected with each other. See how does it
look in xml
... more >>
comunication between JScript and C#
Posted by bowser at 1/11/2007 7:45:40 AM
Hello,
I have a problem of communication between JScript and C#. I must say
that I'm new to both.
In a JS file I have to call a C# function.
In particular I have:
public function Eval(expr : String) : String
{
return eval(expr);
}
And I want to call:
Eval("MyNS.myFunction()");
w... more >>
using stored procedure
Posted by vncntj NO[at]SPAM hotmail.com at 1/11/2007 7:37:45 AM
I have this syntax working perfectly, but I'm trying to apply a stored
procedure instead using
the CommandText (Sql Statement).
// Open connection to the database
string ConnectionString =
@"server=localhost;uid=;pwd=;trusted_connection=true;database=PMAEvents";
... more >>
Globalization: using another than the default language
Posted by cyberco at 1/11/2007 6:51:04 AM
Using: WM5 PPC, .NetCF 2, C#, Visual Studio 2005
OK, I figured out how to add resources.resx files for different
languages/cultures for both my Frames and my project at large. But how
can I deploy a version of my application that uses the non-default
language? My application will run on Englis... more >>
hiding public methods in the DropdownList.
Posted by Lucky at 1/11/2007 5:36:56 AM
hi guys!
again with some interesting Question.
i've some public methods in class. i dont want to show this methods in
the dropdown list while you are typing the code in .net IDE (it long
story that why i dont need those methods in the list).
i guess there are some arrtibutes those can preve... more >>
More regex questions (sorry!)
Posted by Trev at 1/11/2007 5:16:50 AM
Hi,
If I had a string denoted by MyArray[5], how would I extract the number
in brackets for use in the programme later on? I've tried "\[(\d*)\]"
but all I get is a syntax error. What would be the usage for
using the number in the programme (so that I can check if the index is
within bounds)?
... more >>
Validate File Name (Not File Characters)
Posted by sheeeng NO[at]SPAM gmail.com at 1/11/2007 3:50:12 AM
Hi all,
I know that we can check for invalid file name characters as shown at
http://www.codeproject.com/useritems/reallyusefulpath.asp.
But how can we check a string for invalid file name such as CLOCK$,
AUX, CON, NUL, PRN, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8,
COM9, LPT1, LPT2, ... more >>
reading a label from an user control
Posted by Hans at 1/11/2007 3:27:12 AM
Hello,
It looks like my previous post was deleted. So here is again:
I have this user control called "encabezado" (I cut the code to make it
shorter):
public partial class Encabezado : System.Web.UI.UserControl {
private String n;
private String esta;
public Encabezad... more >>
Unable to run .exe application using C# code
Posted by kbhavesh NO[at]SPAM gmail.com at 1/11/2007 2:52:14 AM
Hi,
I have an exe that i need to call from my C# Program with two
arguments(filenames)
for example
Suppose if i have an application "test.exe" , whose functionality is to
convert a '.doc' file to '.txt' file
On cmd i would normally give the following command as:
test.exe abc.doc xyz.t... more >>
How to multiselect entries in drop down
Posted by Ajith Menon at 1/11/2007 2:38:46 AM
I need to select multiple entries in the drop down list.
E.g. Search a string in languages like C#, VB, Java etc. These entries
are in drop down. So i need to multi select to search in multiple
languages
1. One of the option could be to have a check box beside each entry in
drop down. Do an... more >>
Passing values to a property in C#?
Posted by johnj NO[at]SPAM twdo.com at 1/11/2007 2:31:34 AM
I am converting an application I wrote in VB.NET to C#. I am not a C#
guy, at all. I am having a problem passing values to a property in C#.
I understand that it is probably not the best way of achieving my
result, but it works in VB.NET, flawlessly.
Basically, I am storing a bunch of settings... more >>
Question about difference between text file and database
Posted by Gary at 1/11/2007 2:28:28 AM
Hi in a simple application that consists of a couple of user input
forms. I'm wondering what the difference is between using a database
technology and a plain text file?
I've been working on this program for a week or so now and its a hobby
project. I have never understood how to work with dat... more >>
Best way of implementing a multi-node tree in C++? (or C#, a close cousin)
Posted by raylopez99 at 1/11/2007 1:21:25 AM
What's the best way of implementing a multi-node tree in C++? What I'm
trying to do is traverse a tree of possible chess moves given an intial
position (at the root of the tree). Since every chess position has
around 30 moves, it would mean every node of the tree would have 30
branches (on ave... more >>
Marshal static array inside the structure from C++ to C#
Posted by Ananas at 1/11/2007 12:05:55 AM
Hi,
Please give me an idea how to send a static array from dll written on
C++ to C# application.
This is a C++ code:
const SIGNATURE_LENGTH = 50;
struct Info
{
unsigned int Signature[SIGNATURE_LENGTH];
}
This is a C# code:
[StructLayout( LayoutKind.Seq... more >>
|