all groups > c# > december 2004 > threads for wednesday december 8
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
Sorry, the question remains
Posted by Zach at 12/8/2004 11:57:40 PM
The code below was taken from an MSDN example.
The example contains explantory lines. Nevertheless
I do not understand the use of the while loop. Because
of the Pulse within the loop, I would expect the loop
to end after the dequeue. If that is correct this would
be one off situation, I therefo... more >>
Cannot generate dataset
Posted by Skip at 12/8/2004 11:55:56 PM
When I select 'Generate Dataset' on the oleDbDataAdapter I get the message:
'Visual Studio could not create an instance of xxx.DataSet1. Confirm the
class name is a valid DataSet class.'
I haven't been able to find an answer to this exact problem in any
discussion groups, but I read somewh... more >>
calling methods of components running in windows service
Posted by Jasleen at 12/8/2004 10:47:08 PM
I have written one Widows Service in ATL, having a ATL component running.
Now it is very easy to create the VC client by calling CoCreateINstanceEx to
create the component running in the service and giving the appropriate
machine where the service runs..
How shud I got about doing the same thi... more >>
Calling a method in a object running in windows service
Posted by Jasleen at 12/8/2004 10:35:03 PM
I have a windows service written using ATL having a component inside it.Now
if I want to write a C# client for that ..I wanna know whether it is possible
using Remoting or Service controller class etc.
IF I write a COM based application for client I can use CoCreateInstanceEx
and instantiate ... more >>
Graphics solution sought
Posted by newsgroupie at 12/8/2004 10:25:39 PM
Hello Newsgroupies,
I want to develop an item similar to a custom/user control but which is
purely graphics.
For example; I wish to just draw a simple graph on it based on two or
three parameters passed to it via 'session state'.
All solutions, suggestions or even code samples gratefull... more >>
Help with WeekDay Enum
Posted by Stuart Shay at 12/8/2004 9:12:59 PM
Hello All:
I have some old ASP Code where it use the WeekdayName Function
How Can I get the following values in C#
wday = 1; => Sunday
wday = 4; => Wednesday
I see VB.NET has the Microsoft.VisualBasic.DateAndTime.WeekdayName, but not
in C#
Thanks
Stuart
... more >>
Coding Convention
Posted by Ejaz ul Haq at 12/8/2004 8:57:01 PM
Hi, m a newbie to C# programming, please tell me coding convention or
notation followed professionally by the programmers. If possible send me
some web page link elaborating the idea.
--
Ejaz ul Haq... more >>
Doing I/O to the Printer port and legacy IO space in C# ?
Posted by Bradley1234 at 12/8/2004 8:09:47 PM
What is the way to send/read bits to the printer port at the hex 3F8-3FF or
any other legacy io space??
Does C# include the methods to drive the printer or other ports?
tia
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Smart phones
Posted by Adrian at 12/8/2004 8:05:13 PM
How do I tell if my phone is "smart enough" to run C# apps?... more >>
ArrayList C-C#
Posted by GeRmIc at 12/8/2004 7:33:03 PM
Hi,
How do i pass an ArrayList from C# to C?
I am accessing a fn in C# which takes an ref ArrayList as a parameter, how
do i pass this datastruct from C?
Thanks!
(i know i will post in the interop also.. just looking for various psble
solutions)... more >>
C#.net call command prompt
Posted by jam at 12/8/2004 7:21:54 PM
hi all,
I am calling some command from cmd.exe and doing it in server side, while it
is executing, i only see the white page and it''s loading now, can I have
something on the page like: loading.... and then once it finish, change to :
"finished"??? is it possible??
My code example:
p.Standa... more >>
CWnd::RunModalLoop in C#
Posted by Girish at 12/8/2004 7:14:26 PM
I was wondering if anybody has the implementation of CWnd::RunModalLoop/
CWnd::EndModalLoop in C#
Mine is a single threaded application... what I want is, the application
to wait at one point (and continue processing the messages) until some
event sets a flag, which will let the waiting code t... more >>
Console application
Posted by jam at 12/8/2004 7:14:25 PM
Hello all,
how can I stop the current process when I am write a console application??
Also, can i run command prompt command in the console application??
the programme I am writing is to get data from data base and then generate
some txt file, I wanna stop it when it reaches some error/special... more >>
Playing WMA files on smartphone
Posted by MEGASILVER at 12/8/2004 7:09:01 PM
Hi, I am very new to this, but is there anyway I can play a wma file on the
smartphone from my application? I need this urgently, any help would be
greatly appreciated. Thank you!!! ... more >>
Thread Object Help
Posted by Dave at 12/8/2004 6:15:21 PM
I want to create a thread object to find any duplicate characters within a
string and get rid of all the duplicate characters within the string, such
as str="abbecdffet". After the thread object runs, the string would become
"abecdfet"
Any help with this would be appreciated.
Thank-you,
Dave... more >>
Dynamic report creation - Crystal Reports
Posted by Rutko at 12/8/2004 6:11:57 PM
Is it possible to dynamically create report and save it in rpt file?
For example I want to add an text object in report on x,y position in page
header. I need that dynamically, because I have a lot of reports made in
Visual FoxPro. It would be nice if I could make a converter. I read VFP
Re... more >>
Newbie-passing variable between MDI child forms
Posted by Jeffrey at 12/8/2004 6:05:47 PM
Hello,
I am devoloping a MDI windows form app. using c#. I had two child form-
frmChild1 and frmChild2. Now I put a textbox(txtUserID) on frmChild1,
after user input text into the textbox, I want a label on frmChild2 can
show the UserID as soon as frmChild2 started.
Could anybody help me on... more >>
GAC confusion
Posted by Gisle Vanem at 12/8/2004 5:59:46 PM
I'm trying to understand the search algorithm done when the CLR (?) is
looking for DLLs. At first I've put the DLL(s) in the cache by "gacutil -i foo.dll"
and the program using foo.dll works fine.
But then I became aware of "program.exe.config" could also define a path to
foo.dll {*]. So in... more >>
VB6 code migration to C# - Window on top
Posted by billb at 12/8/2004 5:53:10 PM
Hello all,
Does anyone have any C# code to replace this working VB6 code ... when i
move it to VB.NET is does not work as illustrated below. Ineed to keep the
form or web form window on top until a button is clicked?
Thanks in advance... :)
Public Class Form1
Inherits System.Windo... more >>
Closing a Non-Modal Dialog
Posted by Andrew at 12/8/2004 5:37:02 PM
I get a Null Reference Exception if I close a non-modal dialog (that is, a
form opened with Show()) when a selection is made from a ComboBox. The error
message refers to Unsafe Native Methods, but the code is 100% managed. The
exception is not thrown if the dialog was modal (opened with ShowDi... more >>
Unicode Character
Posted by Ryu at 12/8/2004 5:36:39 PM
Is there a way to get the convert a unicode character such as chinese
characters to byes? Everytime when I use Convert.toByte I will always get a
System.OverflowException "Value was either too big ot too small". Is it
because unicode characters require 16 bits? In that case how to I convert
... more >>
How to get TreeNode from a Handle
Posted by Harshad at 12/8/2004 5:15:02 PM
If I have a "Handle" of a TreeNode, how can I refer to the treenode?
For example, if the treenode is tn then I want to get tn.Text or tn.Index.
In other words, TreeNode has its pointer property as Handle, how do I
crossreference?
--
Thanks for your help.
Harshad Rathod
... more >>
concat not found
Posted by Bryan Valencia at 12/8/2004 5:13:14 PM
Ok, I tried to use the concat function. It's in the Help, but it claims it
can't find the namespace that contains 'concat'. You'd think there'd be a
note in the help system if I have to use some library...
Can anyone guide me?
(I told you all I was new.)
... more >>
how can I convert strcat to c#
Posted by Steve at 12/8/2004 4:59:11 PM
How can I convert strcat and strcpy to c#
#include <string.h>
#include <stdio.h>
void main( void )
{
char string[80];
strcpy( string, "Hello world from " );
strcat( string, "strcpy " );
}... more >>
How to display a message from a .NET dll when it is loaded into a program written by another developer.
Posted by David T. at 12/8/2004 4:54:00 PM
When a library user runs their exe I want the dll to display a message. How
can this be done?
Thanks in advance.
... more >>
Placing assemble in Add Reference Dialog
Posted by David T. at 12/8/2004 4:47:04 PM
How to make .NET dll appear in the Add Reference dialog. What in general is
the Add Reference dialog for?
... more >>
Creating a dialog box
Posted by Greg Horwood at 12/8/2004 4:39:02 PM
Dear Anyone,
While most of you will laugh at the fundamental nature of my question, I am
a bit stuck.
I am a reasonable VC++ programmer trying to make the switch to C#. I am
trying to create a simple app in which the user selects a list item,
double-clicks it and then a dialog box is creat... more >>
Redistributing .Net framework
Posted by Lidström at 12/8/2004 4:14:42 PM
Hi,
can somebody explain in simple terms what is necessary to redistribute the
..Net framework (dotnetfx.exe)?
--
Daniel
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on us... more >>
Component for managing .doc and .rtf files
Posted by Igor Vrdoljak at 12/8/2004 3:46:36 PM
Hi.
I am currently serching for component which could be used for handling
..doc and .rtf files. Component should be able to:
* insert custom text into files
* insert images into files
* insert HTML formatted text into files
* print files to TIFF documents
* export files to HTML
* find/... more >>
Exception firing at design time - how to avoid?
Posted by Jack Addington at 12/8/2004 3:46:16 PM
1) I have created a visual control that relies on a logic class to do much
of its work.
2) The logic class will be assigned on the form through a register method.
3) I have a public property for accessing the control defined.
4) To avoid other people calling the control before it is initialized... more >>
drawing on bitmap question
Posted by Abubakar at 12/8/2004 3:36:02 PM
Hi,
i'm programmatically writing some text on the picture box. Every thing goes
fine. Now for some reason I want to first write that text onto a bitmap and
the set it as a source (picture property) of the picturebox. As soon as I
use this bitmap approach the text quality is badly effected, speci... more >>
asynchronous delegates and events question
Posted by Natalia DeBow at 12/8/2004 3:17:24 PM
Hi,
I am working on a Windows-based client-server application. I am involved in
the development of the remote client modules. I am using asynchronous
delegates to obtain information from remote server and display this info on
the UI.
From doing some research, I know that the way my implem... more >>
c# event handler fires an event
Posted by Dan Bass at 12/8/2004 3:08:03 PM
I'm writing a scanner application (C# / .Net CF) where I have one scanner
object (singleton) that hooks into the scan engine drivers.
There is scanner event for a successful scan, that passes through the
scanned data to an event handler. From here I need to pass this information
back to m... more >>
In desperate need of COM interop help
Posted by Andrew S. Giles at 12/8/2004 2:35:31 PM
OK, Ive run my head into this wall for too long. I need help.
I am developing an applicaiton in C# to present a user with a GUI to specify
a configurable list of machines that he wants to listen to the output of.
Specify a filename to shove all of the data (into Excel), and start the whole ... more >>
Bug in .NET Tab Control? Help!
Posted by slylos at 12/8/2004 2:23:01 PM
I have an app written in C# (obviously). Here is my dilemma:
The form loads, instantiates a bunch of worker threads that execute one at a
time. When one finishes, it starts the next one in line. I have about 5
datagrids on 5 different tab pages in a tab control. What I'm using the
Threa... more >>
DropDownList and ListItem
Posted by Fabio Negri Cicotti [MCP] at 12/8/2004 1:44:08 PM
Sorry for my silly question...
in the same way we can define in a DropDownList the "ValueMember" and
"Display Member" when we bind a DatasSource, how could I do it using a
hard-code fixed datasource (without neither access the DB or create a
DataTable)?
To be as clear as possible, if I w... more >>
Anonymous classes
Posted by No One at 12/8/2004 12:52:51 PM
Does anyone know if or when anonymous class support will be added to C#?
... more >>
Help (Ax)WebBrowser
Posted by Marko at 12/8/2004 12:30:48 PM
Hi there,
i'm using (Ax)WebBrowser object in a c# application, to show a preview of
web contents.
Into theese pages there are same js functions calls, that raise many and
many errors (by alert message) because in this phase the runtime enviroment
is not present.
How can i filter theese mess... more >>
From VB to Csharp
Posted by cfyam at 12/8/2004 12:05:31 PM
How can I convert the VB 6 statement below to C#?
MSComm1.Output = Chr(&H1B) + "I" & Chr(13)
... more >>
C# and garbage collection
Posted by Kyle Kaitan at 12/8/2004 11:43:47 AM
I have got two classes, one is Device and the other is Buffer. Every Buffer
instance has an associated Device instance, since all Buffers have to be
created with Device.CreateBuffer(). Now i want to be able to notify an event
to all Buffer instances associated with a certain Device. At the same t... more >>
Registration Confirmation Page
Posted by Greg Collins [InfoPath MVP] at 12/8/2004 11:11:40 AM
I couldn't find what I was looking for doing a search through the =
newsgroup, so here goes...
I'm have a Web site user registration confirmation page that I want to =
show a set of random numbers (images) which the user has to look at and =
type into a field for verification that this is real... more >>
Overloading properties?
Posted by ORC at 12/8/2004 11:03:34 AM
Is it possible to overload properties - and if so - how?
Mayby there is another and better way to do what I'm trying to do so if you
have any suggestion I would be happy:
I have a number of properties to set and get values, but I want my
properties to be able to return a type that is corresp... more >>
Please explain
Posted by Zach at 12/8/2004 10:40:05 AM
Could someone please explain what the
consequence of this //****** line is?
public void SecondThread()
{
lock(m_smplQueue)
{
Monitor.Pulse(m_smplQueue);
while(Monitor.Wait(m_smplQueue,1000))//******
{
int counter = (int)m_smplQueue.Dequeue();
... more >>
csc.exe - return values.
Posted by Gemma M at 12/8/2004 10:08:02 AM
Hi,
I am trying to automate our build process using NMAKE. However, CSC.EXE,
C#'s command line compiler, does not appear to set ERRORLEVEL when an error
occurs.
Does anyone know how it can be determined that a compilation error has
occurred in CSC.EXE?
Thanks
Gem
... more >>
Service not working in Network?
Posted by Chakkaradeep at 12/8/2004 9:41:05 AM
hi all,
I have written a C# Service which is a Server accepting Clients,It is
working fine when i connect from localhost but when i connect from any other
machine to my machine , the service is not working, the Service is in
"Network Service".....i even tried "Local System" and also "Local ... more >>
Need a list of benefits of .Net over PHP/ASP and JavaScript
Posted by news NO[at]SPAM celticbear.com at 12/8/2004 9:20:45 AM
I need some concise, easy to grok examples of what .Net (preferably
C#.Net) has over just using old ASP or PHP with JavaScript.
See, I'm a PHP guy, and while I started server-side scripting with ASP,
I hate it. But last year I had the opportunity to work with a company
that was developing site... more >>
Outlook logon from a Windows Service
Posted by W Akthar at 12/8/2004 8:15:58 AM
Hi All,
I have written a windows service which runs a small
windows application. This windows application queries a
sql server database and depending on these results, sets
appointments in outlook.
When I run the windows application outside the service it
works fine as designed, but wh... more >>
destructors,closing connections
Posted by jima80 NO[at]SPAM gmail.com at 12/8/2004 8:15:44 AM
Hello ppl!
How exactly do I close all the database connections that was open in
the config file and how do I use the destructor in C#.
Thanks a lot!... more >>
object vs System.Object
Posted by Gaemic at 12/8/2004 7:37:01 AM
Some argues that you should not use the C# keyword "object" instead of the
real type System.Object.
What would be the general rule of thumb for choosing one over the other?
Thanks in advanced.
--
Gaemic!... more >>
Responding to user password change
Posted by Aviv at 12/8/2004 7:01:22 AM
Hello,
I was wondering if there was a way, using C# and .NET, to create a
function that is called when the user changes his\her password.
Thanks,
Aviv.
... more >>
Encyption of file
Posted by HateBSOD at 12/8/2004 6:35:06 AM
All,
How can I use this code to encrypt and decrypt a file? Can I use the
filestream or does anyone have any examples of encypting a file with
3DES or AES. Any help is appreciated.
using System;
using CodeProject.Chidi.Cryptography;
namespace CodeProject.Chidi.TestConsole
{
/// <s... more >>
Programatically setting Group or local computer policy
Posted by Honey at 12/8/2004 5:47:05 AM
I want to programatically set the group security policy . How do i do this.
Thank you... more >>
please help me understand ref and out
Posted by Bradley1234 at 12/8/2004 5:21:27 AM
Typically when passing by reference you point to the location of the
variable, and can modify the original
When passing by value, you include a disposable copy of the variable, but it
protects the original.
The "ref" keyword lets you write as if passing by value, but it does the
work of pas... more >>
TcpListener problem
Posted by Reshma Prabhu at 12/8/2004 5:15:04 AM
Hello,
I have created a client-server application using TcpListener and TcpClient.
But the TcpListener stops listening after some amount of time if the client
does not send any data.
What is the default timeout of TcpListener?
How can we change it?
Thanks... more >>
Making User Control visible
Posted by Tarscher at 12/8/2004 5:09:03 AM
Hi all,
I have a user control and a form. I want the user control to be visible when
the form is shown. I haven't found a good webtutorial on this so maybee
someone can help me out?
regards
Stijn... more >>
Access DS TextBox - wrong value
Posted by Steve B. at 12/8/2004 4:49:03 AM
How do I format a DataSet (DS), generated from Access, which loads a Textbox
(TB) to only show the date in the TB instead of the date and the time?
Details:
My TB is filled by a DS containing the Date column from an Access file (i.e.
DS - TableName.DateIn). Access file only shows date (no ... more >>
socket programming
Posted by AtherMurtuzapurwala at 12/8/2004 4:07:03 AM
Hi All,
I am doing socket programming.
Client is in C#.Net 2003 and Server is in VC++ 6.0
When Server uses csoc class than it connect & communicate to client without
any problem....
while it uses api on server side so it is not able to connect it throws an
error no 10061...
Syste... more >>
>= and <=
Posted by Mike P at 12/8/2004 4:04:40 AM
I am trying to test if a number is between and certain range. Is there
a clever C# way to do it that is better than this?
if (((Convert.ToInt64(strRequestSpecific)) >=
(Convert.ToInt64(strStartRangeLessZero))) &&
((Convert.ToInt64(strRequestSpecific)) <=
(Convert.ToInt64(strEndRange... more >>
debugger stops at application.Run on unhandled error
Posted by tolisss NO[at]SPAM otenet-dot-gr.no-spam.invalid at 12/8/2004 3:55:50 AM
when i get an unhadled error the dubbuger stops at the main procedure
at -->"Application.Run(new Form1())" and the stack is empty. But
if i run the application without the debuger a must more informative
window pops up giving all the error info i want. How can i get the
same behaviour when worki... more >>
Create Access, Excel and .dbf output file from DataSet using C#
Posted by tkaleb at 12/8/2004 2:25:02 AM
I have to create output file in a text, MS Access, MS Excel and .dbf format
from C# Win/ADO.NET application. Data are collected in DataSet and there is
no problem to make text file. However, I have to create a new output files
(tables with defined fields) in other 3 formats, and to fill them w... more >>
starting program
Posted by Tarscher at 12/8/2004 1:43:01 AM
Hi all,
My application starts in a class Controller (contaning the Main()). When the
program starts the Main is called but is the the Main() called before or
after the constructor of Controller?
regards
Stijn... more >>
|