all groups > c# > january 2005 > threads for tuesday january 18
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
when the session code gets called ????
Posted by genc ymeri at 1/18/2005 10:39:48 PM
Hi
I have placed an encounter code in the session_end as well in the
session_start. I'm decreasing the number with 1 everytime a session ends. I
open several IE-s and I closed some of them but the number of sessions only
increase. When really the session_end code get called ? I thought that ... more >>
Calling unmanaged C++ dll from C# app
Posted by Chris at 1/18/2005 9:05:02 PM
Background:
We have developed an C# MDI (Multi-Document Interface) application which
loads different assemblies/forms, so that the user can have many "application
windows" running within the same container. Some of these child forms need
to use legacy code from a mature product written in ... more >>
Irritating C# / SQL problem..
Posted by Brian Basquille at 1/18/2005 8:46:47 PM
Hello all.
A very irritating problem i have right now. I'm writing some search
functions into my Photo Album.
One of the searches is to find all photos for a particular date.
You might need to take a long at my Access file to understand more:
http://homepage.eircom.net/~basquille/photo... more >>
Change windows user account password
Posted by Srikanth at 1/18/2005 7:43:22 PM
Hi All,
Can any one tell me how to change windows user account password
by programmatically using C#? I don't have administrator privileges and I
want to change my account password by programmatically.
I will be thankful if you can provide a sample program.
Thanks ... more >>
Crystal Rerports and W98
Posted by Alberto at 1/18/2005 6:58:30 PM
After install an application with a Crystal reports included when the user
tries to see a report, an error message appears on screen saying "load
report failed". The web page of crystal says that I have to register a dll
called crqe.dll but, when I try to do it, I see a error saying
"loadli... more >>
Learning C#: about event
Posted by Luke at 1/18/2005 6:07:14 PM
class TestNoEventKeyword
{
public static void Test()
{
Student s1=new Student();
Student s2=new Student();
s1.RegisterOK +=new
Student.DelegateRegisterOkEvent(Student_RegisterOK);
s2.RegisterOK ... more >>
Enum 'aliasing' and ToString()
Posted by Jon Shemitz at 1/18/2005 5:53:58 PM
Let's say I have an enum like
public enum Aliased {A = 0, B, C, Lowest = A, Highest = C};
and a variable
Aliased Variable = Aliased.C;
When I do Variable.ToString() in simple test code, I get "C". Yet, in
a real app, in similar code, I get the equivalent of "Highest" - ie, I
get t... more >>
obtaining volume
Posted by timm.wong NO[at]SPAM gmail.com at 1/18/2005 5:48:30 PM
Hi,
I'm trying to determine whether or not the volume is mute. I've been
using the waveOutGetVolume API to determine volume levels, but I can't
seem to determine whether the volume has been muted or not
Any ideas would be greatly appreciated
Thanks,
Tim... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Problem when accessing Oracle Procedure with varchar2
Posted by Mullin Yu at 1/18/2005 4:46:37 PM
hi,
i'm using System.Data.OracleClient; but it seems not having Varchar2 and i
use Varchar instead. Then when i call a Oracle Procedure update a table with
varchar2, i got the following error:
==============
Error Message
==============
System.Data.OracleClient.OracleException: ORA-0655... more >>
postfix increment acts different then in C# and C/C++
Posted by alex at 1/18/2005 4:39:15 PM
BlankThis maybe a known issue, but I stepped on it just now.
Basically it boils down to: in C#
int x = 0;
Console.Write("{0}", x++ + x++);
gives 1, when in C/C++
int x = 0;
printf("%d\n", x++ + x++);
gives 0, which I think is correct.
What goes the group think abo... more >>
Problem running a .NET application on Windows 2003 Server
Posted by Björn Hallin at 1/18/2005 4:36:13 PM
Hi!
I have a problem, when installing our Application on a Windows 2003 machine.
The Application runs fine when logged on as Administrator, but not even the
first row in the
code runs when logged on as an ordinary user.
"Application has generated an exception that could not be handled
P... more >>
Getting a pointer to a method (as IntPtr)
Posted by Rik Hemsley at 1/18/2005 4:32:34 PM
How does one go about getting a pointer to method as an IntPtr?
Example:
public class A
{
public void X()
{
Y(Z);
}
public void Y(IntPtr z)
{
}
public void Z()
{
}
}
This won't compile, because the compiler thinks I meant Y(Z()).
I'm guessi... more >>
Serializing a class on a remote machine
Posted by Bredal Jensen at 1/18/2005 4:01:49 PM
Hello,
Iwas wondering if it is possible to serialize a class into xml on a remote
machine .
If yes, then how can this be done? we will assume we have the right to write
a file to
the remote folder.
Many thanks in advance
JB
... more >>
How can i drop a file a file on a folder accros internet from within C# code?
Posted by Bredal Jensen at 1/18/2005 3:51:32 PM
I need to send an xml file to biztalk to trigger an orchestration.
I know the folder and i have write acces to it. how can i write the file
this folder from within my program?
Many thanks in advance
JB
... more >>
howto send shortcut on page in IE to app?
Posted by Angelo at 1/18/2005 3:09:07 PM
I would like to create some kind of downloadmanager in c#.
When right-click on a link on a website I would like to have an extra option
with:
"Download with custom program"
I already found this key in the registry: (found it by looking at other
download accelerators)
HCU\Software\Microsoft... more >>
winmail.dat
Posted by Jason at 1/18/2005 3:03:02 PM
Hi all
would appreciate any help on decoding winmail.dat files from within C# code?
i am getting winmail.dat files in emails and would like to write something
to decode the file and save the attachments to a folder.
Thanks
Jason
... more >>
replace \\ with \ in c#
Posted by mp at 1/18/2005 2:27:06 PM
when I write this in c# :
strFileToLoad = strFileToLoad.Substring(0, 2) +
strFileToLoad.Substring(2).Replace("\\", "\");
it doesnt like the last "\", and I want to replace \\ with \
what should I do?
Thanks
... more >>
'XXX' is not accessible due to its access level
Posted by Paul Hatcher at 1/18/2005 2:14:48 PM
I'm porting a Java app and re-structuring it slightly to put the test cases
into a separate assembly from the actual code. The conversion wizard creates
a file with a class called SupportClass which has public visibility and also
some public inner classes.
If I move this class into another pro... more >>
Inherited TreeView control: Trouble/bug when removing TreeNode at index 0.
Posted by Kenneth Myhra at 1/18/2005 1:14:14 PM
Hi,
I have a .NET control that inherits from a System::Windows::Forms::TreeView
control. From inside this control I populate the Nodes collection, but when
I try to remove one of the root nodes at index 0, using Remove or RemoveAt,
my TreeView control shows no nodes at all, even though
Tree... more >>
Mouse Position
Posted by newbie_csharp at 1/18/2005 1:05:50 PM
Hi,
I'd like to know how to find the mouse position. I can use MouseMove
event of a form or pictureBox but the problem is when I move the mouse
over pictureBox, form_MouseMove event doesn't occur. I need to know how
to find the mouse position regardless the object.
thanks
*** Sent via De... more >>
Pattern for distributed transaction?
Posted by Julia at 1/18/2005 1:03:36 PM
Hi,
I have a list of addresses in a data base
each address row contain a column name 'SENT' which indicate if a message
was sent to this address
a component is sending email messages to all addresses which contains
'FALSE' in the 'SENT' column
The email component is not transacted of cour... more >>
List groups that a user belong using AD
Posted by Gonçalo Boléo at 1/18/2005 12:41:38 PM
How do i list the groups a user belong using AD?
thanks,
Gonçalo Boléo
... more >>
Cannot terminate the application
Posted by Aaron at 1/18/2005 12:31:19 PM
Hello,
I have an application that has several threads and non-blocking
client sockets.
When I try to terminate the program, although the application window
disappear, but the program instance is still here. When I run it in debug
mode, "Stop debugging" button is still enable... more >>
String formats
Posted by Jac at 1/18/2005 12:21:05 PM
Hey,
Can someone help me to find a short and effective way to do the follow.
I have
Number1 as integer = 234
Number2 as integer = 5645
I want to create a string as follows (it is an obligatoire format for the
banks):
+++123/4567/89012+++
My example :
Number1 I want to present ... more >>
Permissions
Posted by Alvin Bruney [MVP] at 1/18/2005 11:24:49 AM
Hi group, its been a while...
I encountered a nasty permissions error that I was unable to solve and
eventually had a workaround but it has been at the back of my mind for a
while. Any takers?
Webpage fires a thread. Thread invokes a perl script via process.Start().
The script queries th... more >>
Thread class member access from thread function
Posted by MuZZy at 1/18/2005 11:03:51 AM
Hi,
I just wonder if someone can help me with this:
Consider this simple piece of code:
// ============ START CODE ==============================
internal class EncThread: Thread
{
public string WaveFileName;
}
void EncThreadFunction()
{
<...>
}
void SomeOtherFunction()
{
... more >>
VS 2003 IDE Slowing down
Posted by Jack Addington at 1/18/2005 10:45:57 AM
I have a C# app that isn't terribly big but the entire IDE seems to be
getting slower and slower. Windows take longer to open and close. The
actually application and compile time is still extremely quick.
Any ideas?
thx
jack
... more >>
Whidbey newsgroup?
Posted by Mark at 1/18/2005 10:45:31 AM
Is there a .NET 2.0 newsgroup? I'd like to get an answer to the question
below.
Thanks in advance. - mark
********************************
I'm looking at the CodeDom namespace in .NET 2.0 class library online
(http://msdn2.microsoft.com/library/za6cc751.aspx). I'm not seeing any
class ... more >>
Automatically detect proxy settings
Posted by Sunny at 1/18/2005 10:27:02 AM
Sorry for the double post. I posted in m.o.dotnet.framework a few days
ago, but no response, so I'm trying again.
Hi,
I need my application (C#, .Net framework 1.1 SP1) to be able to detect
the automatic proxy configuration for the user. I can get the settings
if they are manually entere... more >>
Visible underscore in menus
Posted by ORC at 1/18/2005 10:15:07 AM
In a mainmenu I have added underscores to the menu items like e.g. &File
which will show an underscore under "F" ... but only when the "Alt" key is
pressed?
Is there a way to have the underscore shown always like in normal window
programs?
Thanks
Ole
... more >>
How can we know if the delete process is finished ?
Posted by Pujo Aji at 1/18/2005 9:58:58 AM
Hello
I would like to know when my deleting process finished.For example:
public static void Main(){
myDeleteMethod();
//NextMove...
}
public static void myDeleteMethod(){
//delete something
}
Question:
How can I assure that when it goes to the NextMove the deleting process =
=
... more >>
NTLM authentication against an NT 4.0 Domain
Posted by Zeno Lee at 1/18/2005 9:49:18 AM
I'm trying to authenticate username/passwords against an NT 4.0 Domain. My
client is still using NT 4.0 even with Windows XP clients running Framework
1.1 SP1
I've looked through the 1.1 Framework System.Security namespaces, and
there's nothing I can find that will do this.
How can I au... more >>
FileSystemWatcher :files still open
Posted by Sagaert Johan at 1/18/2005 9:44:38 AM
Hi
I use the FileSystemWatcher to detect creation of files.
As soon as the event fires i do something with the file, but i sometimes get
a sharing error.
I noticed that when the event fires the watched file is still open (written
to ).
How can i detect if the file has been closed so my app c... more >>
Delete all file using * symbol
Posted by Pujo Aji at 1/18/2005 9:36:41 AM
Hello,
I would like to create program which delete files using * symbol. I trie=
d =
to use this code but it is not working:
File.Delete(@"d:\example.*");//filename example, directory everthing, i=
t =
stop here : file not found
Any idea?
Thanks
Pujo
-- =
Baby Step, One S... more >>
Create COM object / Marshal.GetActiveObject
Posted by thomas at 1/18/2005 9:08:29 AM
I want to get an active Word.Application, via
using System.Runtime.InteropServices;
using Word;
...
object obj = Marshal.GetActiveObject("Word.Application");
_Application wordApp = obj as _Application;
It works fine at my developer computer. At an other computer the application
... more >>
Problem accessing string resources
Posted by Sreekanth at 1/18/2005 8:59:40 AM
Hi,
I am trying to globalize my application by separating out all the strings
into resource files. For testing purpose, I have created two resource files.
MyApp.resx, MyApp.en-US.resx. These resx files are built into binary
resource files(.resources) and embedded into MyApp.exe by my make script... more >>
Click properties for buttons
Posted by Chris at 1/18/2005 8:40:05 AM
Hi,
I added a button to my window form, and in my code I added a
method to be activated as soon as the button has been
pressed. ("event")
So, if I visit the properties window of my just added
button, and click on the Click prop I expect to see a list
of methods to be associated with the bu... more >>
Help with CGI interpreter
Posted by Nurchi BECHED at 1/18/2005 7:54:59 AM
Hello, ALL
These days, we see a lot of sites that use
and EXE or a DLL as a CGI application
(eg. http://domain.com/cgi-bin/program.exe?param1=value1¶m2=value2...)
I found a lot of examples on how to do that with C#, but they all use
Apache server.
I want to go with IIS. I tried so ma... more >>
how to: encapsulate code via classes
Posted by charliewest at 1/18/2005 7:51:12 AM
this is a very newbie question re: oop - pls excuse my ignorance:
i have inserted in each of my asp.net web forms written using C# error
handing code that i would like to encapsulate in one, centralized class.
However, all of the examples i find regarding the usage of classes deal w/
inher... more >>
Changing access modifier levels in a derived class
Posted by Edward Diener at 1/18/2005 7:24:05 AM
In C++ one can change the access level in a derived class by the "using"
keyword. So, for instance, a public method in a base class can be made
private in a derived class. Is there any way of doing this in C# ?
... more >>
basic XML question (read & write)
Posted by Stijn Goris at 1/18/2005 7:21:01 AM
Hi all,
I have created a XML structure with XSD and want to write and read data from
the elements in the XML structure. Ik have for example an element called
server and want to read the server data from the xml file. Is this possible?
regards
Stijn... more >>
Extended ASCII Characters - StreamWriter
Posted by ASP Yaboh at 1/18/2005 6:51:03 AM
I am using StreamWriter's .Writeline() method to create a simple text file. I
found that ASCII characters 255 & 254 are being inserted as the first two
characters of the file which causes a 3rd-party users' parser to fail. It is
not being inserted by my data as the first line starts with "LOGI... more >>
Project in CSharp
Posted by Sabari at 1/18/2005 5:33:06 AM
Hi,
Im looking for an object oriented project in CSharp.All the
projects that i come across use the old coding style where in they use
asp style coding.If any one have a project entirely oops based and can
post it, wud help us a lot.
Thanks and Regards
Sabari
... more >>
delegate error
Posted by jima80 NO[at]SPAM gmail.com at 1/18/2005 5:30:21 AM
Hello,
I have a listener class which deals with events .
There I have a function:
private void tChart1_Click(object
sender,System.Windows.Forms.MouseEventArgs e)
{
System.Console.WriteLine("aaa");
System.Console.WriteLine(this.line3.CalcXPos(1));
}
This function suppose... more >>
Debugging StoredProcedure Param in CSharp
Posted by Sabari at 1/18/2005 5:09:17 AM
Hi,
I have a SQL Stored Procedure that has 20 to 25 parameters to be
passed.I run into problems when i assign wrong valuse to parameters.I
have heard that it is possible to debug SQL StoredProcedures in VS.Net
and im using VS.Net 2003.Can anyone explain that.
Thanks and Regards
R.Sabari
... more >>
Math.Round error?
Posted by ng_mr NO[at]SPAM hotmail.com at 1/18/2005 4:37:11 AM
No, not a question about "banker's rounding" or whatever it's called.
I want to round a double to the nearest 100th, so I perform the
following:
// original is a double
double result = Math.Round( original, 2 );
But I'm not happy with the results. E.g. if original is
-2533.85009765625 ... more >>
Converting vb code to C#
Posted by svanrees NO[at]SPAM hotmail.com at 1/18/2005 4:31:36 AM
Hi
I am trying to duplicate the functionality of a vb function in a c#
function, but I am having no luck. I have never worked with vb, so it
is all new to me. My main problem seems to be duplicating the FileGet
call.
Thanks heaps for any help you can give me on this problem
Stephen
FileO... more >>
Controlling Visual Studio .NET
Posted by Daniele at 1/18/2005 2:41:06 AM
Hi,
how is it possible to create a project with a specific template, compile it
and close it? All with a c# script.
Thanks,
Daniele... more >>
Win Form Datagrid & NullReferenceObject & Threads
Posted by Ed West at 1/18/2005 2:05:43 AM
Hello,
I am getting a very weird error (below) on my datagrid, it pops up the
error (unhandled by any error handler) and if i click continue, the
datagrid has a red X through it! (see attached)
Basically what I am doing is this:
I have a datagrid whose datasource is Data Table in a c... more >>
An unhandled exception of type 'System.NullReferenceException' occurred
Posted by jima80 NO[at]SPAM gmail.com at 1/18/2005 1:55:29 AM
Hello!
I keep getting this error:
An unhandled exception of type 'System.NullReferenceException' occurred
Additional information: Object reference not set to an instance of an object.
I am declaring with this code(class member):
private Steema.TeeChart.Styles.Series ASeries;
and than tr... more >>
SQL Server full-text index table
Posted by Daniele at 1/18/2005 1:51:12 AM
Hi,
how is it possible to create a full-text index table?
Thanks,
Daniele... more >>
Proper use of inner exceptions
Posted by staff NO[at]SPAM cncsimulator.com at 1/18/2005 1:24:56 AM
Hi group,
I am quite new to exceptions in .NET and I am a bit confused of how to
use the inner exceptions. Could anyone explain? Let's say I have a
function that takes a double (X) that is not supposed to be less or
equal to zero. Let's call this function DoSomething.
Also let's say that th... more >>
User and Web Controls
Posted by Josema at 1/18/2005 1:17:04 AM
Hi,
Im starting to do the navigation of a portal, and for it, im using
usercontrols....
Actually i have a user control in the top of the page that has some menus
(contact, register, etc...)
Depending of the menu that the user will clik i make a LoadControl to the
specific user contro... more >>
Macro-Operator / Runtim-Compiling
Posted by pRumpf NO[at]SPAM procom-gmbh.com at 1/18/2005 12:49:33 AM
Hi
in Clipper and VisualObjects is a Macro Operator available.
This opeartor evaluate Code stored in a String by the runtime-system.
e.g
....
cTest as string
cTest := "2+3"
? cTest // 2+3 type = String
? &cTest // 5 type = Numeric !
It is also possible to eva... more >>
|