all groups > dotnet framework > december 2004 > threads for december 22 - 28, 2004
Filter by week: 1 2 3 4 5
String Manipulation - Problems??
Posted by GTDriver at 12/28/2004 9:25:02 PM
I would like to interate through each character in textboxcontrol.text.
However, I'm having trouble accomplishing this.
If I assign the value of a text property to a string variable and then do
strVar.Length I'm not getting the value I expect for the length. When I try
for strVar(1), it say... more >>
Encryption String From PHP, Decryption String From ASP Big Problem, Urgent !!!
Posted by kelvinweb NO[at]SPAM gmail.com at 12/28/2004 6:17:09 PM
Hi All,
I have still problem on Encryption string using, decryption string
using ASP/VB/C#.. I don't know why have different results and using
same algorithm.
Please advise.
PHP Sources Code
<?php
$key = "pg";
$random_number = kelvintai;
$encrypted=encrypt($key,$random_number);
$decryp... more >>
Is it possible to install multiple locales of the .NET Framework?
Posted by Greg at 12/28/2004 3:47:03 PM
I have a C# Windows Forms application that must be capable of switching the
UI between English-Canadian and French-Canadian at runtime. I am told that
when installing the Framework on a client computer, only one language may be
selected. Is there a way to install support for more than one la... more >>
simple math problem?
Posted by Param R. at 12/28/2004 3:13:42 PM
Hi all, take a look at the following code:-
Dim val1, val2, val3 as single
val1 = 134410.10
val2 = 28494.11
val3 = (val1+val2)
If you end up echoing val3 it will have a value of 162,904.20. That is
wrong. It should be .21. Why is this happening??? We are having all kinds of
issues and... more >>
CJK problem in the PDF format
Posted by James at 12/28/2004 2:38:23 PM
Dear all,
I cannot understand how to work with CJK in the PDF format.
Can anybody provide me a PDF file with Chinese or Japanese characters and
file description.
Any your help will be appreciated.
James.
... more >>
Getting byte[] representation of .NET primitive types
Posted by Smugsboy at 12/28/2004 10:28:26 AM
Hi,
Is there a way to get byte[] representation of primitive types ?
Meaning:
for "ushort val = 6"
to get the following "byte[2] { 0, 6 }"
and for "byte val = 6"
to get the following "byte[1] { 6 }"
Thanks,
... more >>
Generic and Inheritance of "Type"
Posted by Aquila Deus at 12/28/2004 1:08:09 AM
Hi all!
I just thought of that the "Type" should be made as a generic class:
Type<T>, and a typeof(DerivedClass) should inherit typeof(BaseClass)
and typeof(SomeInterface), so that you may do this:
interface CarFactory {
Type<ICar> GetCarType();
}
and enforce this method to return a t... more >>
[C#]Transparented menus
Posted by maxvizel NO[at]SPAM bezeqint-dot-net.no-spam.invalid at 12/27/2004 7:55:36 PM
Hello,
I like this forum - it seems like there are really helpful people in
here :D
I would like to know how to change the transparency level of any menu
in Windows using C#.NET. Can you please tell me how to do it?
Thanks in advance :lol:
*-----------------------*
Posted at:... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
What is the typeof() an array of a Type?
Posted by Jon Shemitz at 12/27/2004 7:43:57 PM
Suppose you have a dynamically loaded assembly, Assembly. Suppose you
enumerate all the types in Assembly with Assembly.GetExportedTypes().
Suppose you are working with
Type ExportedType;
which you got from Assembly.GetExportedTypes(). What is the type of an
array of elements of the type... more >>
Dynamic Properties
Posted by Demetri at 12/27/2004 6:49:04 PM
I would like to know if anyone can suggest how to implement the following:
We need to have classes who's properties are defined by a database. The
properties can not be hard coded. In addition properties datatype will also
be defined by the database and are subject to change in the future. So... more >>
assemblies...
Posted by Azerty123 at 12/27/2004 6:18:00 PM
Hi,
I understand that adding an assembly to the GAC, will make that assembly
available to other applications.
Is it possible to configure a global assembly only to be available for
software from the same vendor? I don't want others to reference my
assemblies, but I have assemblies used b... more >>
String Manipulation
Posted by Brian Hammer at 12/27/2004 2:11:14 PM
All, if I had a string that looked like:
"This user has a username of - brian hammer"
or
"This user has a username of - Any Number Of Characters"
How can I get the string that is right of the "- " for example, return just
brian hammer?
Thanks,
Brian
... more >>
install prob .net framework error1304
Posted by Blaze406 at 12/27/2004 1:19:04 PM
Hi am am desperatly trying to install this program but during setup i get an
error message that says error writing to file, make sure you have acsess to
it the error number is 1304 somebody please help me.... more >>
Updating a windows forms control from a thread
Posted by DW at 12/27/2004 1:07:24 PM
I've gotten this question a couple of times in interviews and I don't know
what they are looking for:
How do you update a control's property, such as a textbox.text property,
from a thread, in .NET? It seems to me you just update it normally. What
are the interviewers looking for here? T... more >>
WeakReference/GC/multithread question
Posted by Thibaud Bouquely at 12/27/2004 11:51:51 AM
Hello !
I just read source code witch use WeakReference object to implements some
Cache system.
I can read the classic code like this
// point A
if (myWeakReference.IsAlive)
// point B
((MyClass)myWeakReference.Target).DoSomething();
// point C
I am trouble with theses code Lines ... more >>
Retreving function structures from DLL's (PInvoke)
Posted by Prasad Dannani at 12/27/2004 10:51:15 AM
Hi,
I am a c# programmer. New to PInvoke. From MSDN i came to know using link
or dumpbin exe's we can retreive all the functions in dll's.
Can any one help me on how to retreive the api function names including
there structures ( Ex: public static extern int MessageBox(int hWnd, String
text... more >>
Trace question
Posted by Spyros at 12/27/2004 9:15:34 AM
I am using Trace in order to log information about the behavior of a web
application. In web.config I have defined my Application Listener as
following:
<trace autoflush="true" indentsize="4">
<listeners>
<add name="AppListener"
type="System.Diagnostics.TextWriterTraceListener"
... more >>
.exe started by a service crashes when sound card or USB device ac
Posted by Landon Kelsey at 12/27/2004 9:14:45 AM
When the process aft.exe is started normally (double click on .exe file),
everything works OK!
When I start aft.exe from a service using Process.Start(), aft.exe crashes
when the sound card or a USB device is accessed.
I thought the problem could be permissions. There is only one hardware ... more >>
aspx in virtual directory
Posted by Ricardo Machado at 12/27/2004 9:13:40 AM
Hi,
I’m trying to run an aspx page on a virtual directory, and I’m getting the
error “Server cannot access application directory†(my previous post).
Using a file monitor, I found that the problem should be as follow:
“12:43:41 w3wp.exe:1756
OPEN E:\Documents and Settings\Ricardo\... more >>
Asynchronous Execution and Thread Pool in a Server Scenario
Posted by dsitton NO[at]SPAM pansw.com at 12/27/2004 7:29:40 AM
I've read several posts about his issue but could not understand what
exactly going on under the hood.
In a server scenario, a Thread Pool thread is processing a request. At
some point it needs to do an IO call (database, web service, file
system etc). Basically, I have two choices:
1. Synchr... more >>
Transaction Problem with ODBC over xp SP2
Posted by Rafael Vieira at 12/27/2004 5:33:12 AM
I´ve got a problem with my component I developed a Serviced Component with .net
Ever this component access the database and start the transaction with my
Database(INFORMIX) show a error message
[25000] [Microsoft][ODBC Driver Manager] Failed to enlist on calling
object's transaction
[IM0... more >>
Transaction Problem with SP2 XP and ODBC
Posted by Rafael Vieira at 12/27/2004 5:33:08 AM
I´ve got a problem with my component I developed a Serviced Component with .net
Ever this component access the database and start the transaction with my
Database(INFORMIX) show a error message
[25000] [Microsoft][ODBC Driver Manager] Failed to enlist on calling
object's transaction
[IM0... more >>
aspx in virtual directory
Posted by Ricardo Machado at 12/27/2004 3:29:06 AM
Hi,
I’m trying to run an aspx page in a virtual directory in my IIS, and getting
the error below.
Please, where I should fix to make it run? I’ve tried many security changes
in directories, without success. The html and asp pages are running fine.
Thanks in advance.
Ricardo
Aspx E... more >>
â€
Posted by e_zverev at 12/27/2004 3:07:03 AM
the related MSDN article link is
"ms-help://MS.MSDNQTR.2004OCT.1033/cpguide/html/cpconEnablingRuntimeToSearchForAssembliesInOtherLocations.htm"
Hi
I post information conserning the DEVPATH thing “unexpected†and
“undocumented†behavior.
Having in mind all that is said below I ha... more >>
.net Framework installation prob. error 1304
Posted by Blaze406 at 12/27/2004 12:33:02 AM
hey I need to install the framework because another program i am installing
rrequires it. the download went fine but the problem occurs when i am
installing the framework. I get and error message (#1304) and it says that it
cannot be written to file, so-and-so, then it says make sure u have ac... more >>
System.Runtime.Serialization.SerializationException
Posted by Dan at 12/26/2004 2:39:02 PM
I am trying to write an app that uses serialization however I'm getting an
error 'System.Runtime.Serialization.SerializationException occurred in
mscorlib.dll
Additional information: BinaryFormatter Version incompatibility. Expected
Version 1.0 Received Version 1008738336.1684104552.
... more >>
Huge Memory Usage
Posted by Haim at 12/26/2004 6:07:07 AM
Hello all,
I am writing an application in C#, VB.NET which basicaly
has a form with a few pictureBoxes on it and a TabControl
with 3 tab pages - in each one a treeView and a ListView.
In addition it loads a few other dll's as a reference
which should not be memory consuming since each have a... more >>
"run as" possibility
Posted by Timo at 12/26/2004 3:55:01 AM
Hi there,
I wrote an application which use WMI and get infos from Active Directory.
Now we wan't to implement a that the programm can run with "run as"
possibility. When we tried it was not possible to run the programm correctly.
With an administrative privileg there is no trouble.
How can... more >>
[C#] Application Verifier
Posted by gerry.74 at 12/26/2004 1:11:02 AM
Hey,
My first program is close to finshing, but when I download Application
Verifier from MS, it come up with 5 errors and 3 warnings and some of them I
can't seem to fix, can anyone help me out or give me the meaning of the
errors?
The full log: http://www.lblueplanet.com/lbc.log
Th... more >>
Simple Net Framework Question /User name
Posted by Jeff at 12/25/2004 10:08:33 PM
Hi,
I installed Net Framework because my new graphics card said it would be a
good idea.
I am the sole user of my computer and up to now, turning on my system was
starighforward as it would go straight to my desktop.
Now, however, there is a window that appears before my desktop is show... more >>
Framework 2.0 SDK Beta problems & questions...
Posted by Kingherc at 12/25/2004 4:17:02 PM
Hi to all!
Well, I just noticed the new Framework 2.0 Beta and its SDK. I downloaded
ans installed the framework redistributable and then downloaded its SDK for
WinXP. Well, although I've downloaded about 3 times, it fails decompression
on file netfxsd1.cab. I suspect it's not a Beta proble... more >>
richTextBox string coloring
Posted by pyrojoe at 12/25/2004 3:17:06 PM
(I'm assuming this forum is for c# ?) how do I have a richTextBox highlight
everything inside the "<" and ">" tags, including the tags themselves, in
blue? I've searched and posted on another site, but I haven't found anything
that really answeres my question. thanks for your help,
Stephen... more >>
.Net or Browser issue?
Posted by mterzich at 12/24/2004 1:19:04 PM
I suspect that this problem is a browser issue but just want to get some
opinions. I have an iframe with a submit button. If I click the submit
button, I get an event for the button and at the end of the event, I
Response.Redirect(parent). The parent then get !Page.IsPostBack and I
recreate ... more >>
Submitting iframe problem.
Posted by mterzich at 12/24/2004 1:49:02 AM
I'm trying to submit an iframe from the parent window using javascript. It
works correctly the first time but after that the submit doesn't work.
I call the javascript code {parent.framename.document.forms[0].submit();}
when I click the button on the parent.
On the first click of the butt... more >>
Problem in developing oulook addin
Posted by baluveer_mukkamala NO[at]SPAM yahoo.com at 12/23/2004 4:27:27 PM
hello,
I am developing a outlook COM addin which adds two command bars
and some buttons to that command bars. I wrote the code to add command
bars and command buttons in the ONConnection Event. But command bars and
command buttons are adding to outlook after outlook splash disappea... more >>
Getting an assembly's version
Posted by Phil Jones at 12/23/2004 3:38:06 PM
I think I'm missing something obvioius here - but I can't figure out where
to get the version details of an assembly.
I'm looking at the [Assembly] object, and I can't see anything (other than
ImageRuntimeVersion, which is the Runtime, not the actual assembly version).
Is there hidden somewh... more >>
How to get the ServiceName
Posted by Jan Nielsen at 12/23/2004 3:36:42 PM
I'm implementing a windows service using C# and dotnet. This service must be
able to be registered multiple times, and based on it's servicename I would
like to lookup parameters for the current instance in registry.
I think
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\myService\Param... more >>
How can I raise WinForm from WinService ?
Posted by bnaya at 12/23/2004 9:42:24 AM
How can I raise WinForm from WinService ?
I cannot use remoting because i need the WinForm on the same process as the
Win Service.
I tried the followings:
MyForm m_frmDetails = new MyForm();
m_frmDetails.Show();
and
MyForm m_frmDetails = new MyForm();
Application.Run(m_frmDetails);... more >>
Will Java Replace .NET?
Posted by news at 12/23/2004 9:41:41 AM
I have learned .NET since January this year (04) and now used it to build
redburg.co.uk. I have used the XML/XSLT methods to build the HTML from a MS
SQL database and this has meant I can build large sites very quickly showing
images, text etc. It was a relief to dump ASP.
I have seen technolo... more >>
acess denied!
Posted by Ricardo Machado at 12/23/2004 9:33:02 AM
Hi,
I have my IIS installed, with framework 1.1, and in localhost (identifier
1), and one of the IP's (identifier 133...852) , when a run the aspx file,
everything goes ok.
In other web, with other ip (identifier 85....32), with the same file I'm
getting this error. Despite that all look... more >>
Win Service GUI
Posted by bnaya at 12/23/2004 8:51:18 AM
How can I open WinForm from Windows Service
I was tring the following options but it didn't work for me:
MyForm m_frmDetails = new MyForm();
m_frmDetails.Show();
or
MyForm m_frmDetails = new MyForm();
Application.Run(m_frmDetails);
does anyone know how to do it?
(I cannot use... more >>
How can I get all the window handlers that belongs to a process?
Posted by Tarh ik at 12/23/2004 6:49:08 AM
Hi!!!
By any chance, do you know how can I get all the window handlers that
belongs to a process?
I'm trying to send some messages to the winproc that has focus, so I
can automate a data capture process. So far, I can access the Process by
using the Process class, and I... more >>
Pre-compile a dll in memory
Posted by sunil NO[at]SPAM volcanomail.com at 12/23/2004 6:01:55 AM
Dear All,
I assume that merely loading a .net dll in memory via
Assembly.LoadForm does not compile the dll into machine code...does it
make sense to loop through the classes defined in the dll and create
them...will this ensure that the classes are JITed...please help...
TALIA
Many Regard... more >>
First time loading after machine restart
Posted by sunil NO[at]SPAM volcanomail.com at 12/23/2004 5:54:53 AM
Dear All,
I have developed a client .net application...that takes 3 seconds
to load after the machine has been booted...now after the user closes
this exe and lauches it again, it takes less than a second to lauch...
Is MS storing something in memory? Does this mean that after I
re-lauch my ... more >>
My Application don´t run out my Pc ?
Posted by Mario Reiley at 12/22/2004 5:36:40 PM
Hi, Group
The application run OK in my local machine but don't run in other machine. I
am Install The Framework and the Framework Redistributable Package in all
the PCs. I get the following error Message: Just - In - Time debugging
Handler and Remote Host
I Working with C# and the .NET Fram... more >>
Help converting struct w/function pointers to .NET
Posted by Thomas Connolly at 12/22/2004 4:05:00 PM
Hello list,
No one seems to be replying to my request on the interop group so I thought I would try here.
Can someone please help me with this? I have a C struct containing function pointers like so:
typedef struct _tagLiffeResponseHandlerList
{
void (*OnAccessTransfer) (LiffeStatus eStatus... more >>
how to access frame's src attribute in javascript
Posted by Pampati Nagavani via .NET 247 at 12/22/2004 4:00:46 PM
Hi,
i have 2 frames in one page. On the click of a link placed in first frame, iwant to change the src attribute of the second frame through java script. How to access the src attribute of the frame in javascript?
--------------------------------
From: Pampati Nagavani
----------------------... more >>
XML Reader saying Root Element is Missing
Posted by vito corleone via .NET 247 at 12/22/2004 3:56:56 PM
I have to mention is that i moved the code from Windows 2000 to=
Windows 2003=2EI am using XSD's to create a class and from which i=
am getting my assembly=2EThe application works fine till it=
reaches the BusinessAction and also executes the Businesss=
Logic,not only that the request and re... more >>
Can you have too many assemblies in an application?
Posted by n33470 at 12/22/2004 12:57:30 PM
Is there any guidance, or best practice, with respect to deciding how
to package classes into assemblies? I guess what I'm wondering is if
anyone has noticed a difference in application performance when the
same application is packaged between fewer large assemblies (with many
classes in each... more >>
process started by Process.Start crashes when USB device accessed
Posted by Landon Kelsey at 12/22/2004 11:23:04 AM
When the process aft.exe is started normally (double click on .exe file),
everything works OK!
When I start aft.exe from a service using Process.Start(), aft.exe crashes
when the sound card or a USB device is accessed.
I thought the problem could be permissions. There is only one hardware ... more >>
Data Serialization
Posted by Constanza at 12/22/2004 10:06:54 AM
Hi.
I am interested in know how work the data serialization in .Net Framework
with C#.
Thanks,
Constanza.
... more >>
How to do SetEvent/CreateEvent in VB .Net
Posted by M K at 12/22/2004 9:27:04 AM
I have this C++ code I'm trying to port to VB .Net:
HANDLE g_hImageReady = NULL; // Event for when image is ready to transfer
//
// Initialize the globals
//
g_hImageReady = CreateEvent(NULL, TRUE, FALSE, NULL);
if(g_hImageReady == NULL)
{
printf("Unable to create image read... more >>
Disable Hardware Acceleration programmatically
Posted by Massimo Necchi at 12/22/2004 3:51:02 AM
Hi everybody,
I think my question is quite clear from the subject...but let me explain you
what I'm trying to do: I use one computer as both a "general purpose" (email,
word processing, web surfing, development, etc.) and "digital audio
workstation". Since audio applications are very demandin... more >>
ERROR: General failure building bootstrapper
Posted by sheena at 12/22/2004 12:58:07 AM
Hi,
I have a problem when building a release version of my dot net
solution. I need to include the windows installer bootstrapper and do
so via the properties of my setup project.
This had been working correctly but then, when attempting to build a
release version that was actually required... more >>
|