all groups > dotnet framework > march 2005 > threads for thursday march 3
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
Marshal.GetLastWin32Error errors
Posted by Alex at 3/3/2005 11:46:49 PM
Hello,
I have a problem with Marshal.GetLastWin32Error()
Every call returns 127 (ERROR_PROC_NOT_FOUND) even if the previous call =
was successful.
For example, given:
namespace Utils
{
public class Win32
{
[DllImport("user32.dll", SetLastError =3D true)]
publi... more >>
Passing xml between components
Posted by PJChan at 3/3/2005 11:39:02 PM
I'm trying to pass info between two components using xml. To produce the xml
I'm using an xmltextwriter, and in the receiving end I use an xmldocument and
its Load method to load the output of the writer.
If I use an intermedary file I have no problem, but if I use a MemoryStream
(one of it... more >>
Close my application already, but its instance still active in Tas
Posted by Newbie at 3/3/2005 10:29:06 PM
I have an Exit button for my application. Within button_click event, I have
the following code.
me.dispose()
me.close()
After I click the button and the application is closed, but I still see an
active instance of the application on TaskManager. What else am I missing
from my co... more >>
Why I cannot find the way to build .exe file for my window app?
Posted by Newbie at 3/3/2005 9:41:03 PM
I have just finished my first windows application throught VB.NET. Doesn't
VB.NET allow us to create .exe file? If not, how can I deploy my application
to a user? Enlighten me, please. Thank you.... more >>
SystemEvents TimeChanged in Windows Service
Posted by post.messages NO[at]SPAM gmail.com at 3/3/2005 9:13:00 PM
I've been doing some googling without success.
Does anyone have any ideas of detecting if the time was changed from a
Windows Service that cannot interact with the desktop? This elminates
using the SystemEvent.TimeChanged event.
I need react when daylight saving time kicks in or someone chan... more >>
Import into Word
Posted by Charles A. Lackman at 3/3/2005 4:45:24 PM
Hello,
How do I send data from a textbox into a word document, ie,
You type a paragraph into a textbox or RichTextBox.
You click a send button and word opens and the text from the RichTextBox is
imported into the document?
Thanks,
Chuck
... more >>
FaxComLib on Win 2k
Posted by Bob at 3/3/2005 4:34:22 PM
Hi,
Has anyone succeeded iin getting Faxing to work on FrameWork 1.1 running on
a Win 2k box.
The example code in the help fails.
I adapted it to the sniippet below but FaxDoc.send is returning invalid
data.
This is a cross post from dotnet.languages.vb because I saw in that in the
archives o... more >>
Rockford Lhotka and his idea
Posted by Hawix at 3/3/2005 4:18:31 PM
Hello,
Does anybody use his idea and components (CSLA) to build a 3-tired system
with central database for about 150 online users.
http://www.lhotka.net
Greeattings,
Hawix
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Is it possible to make the UserControl derived class run in another AppDomain?
Posted by ZhangZQ at 3/3/2005 3:54:22 PM
Supposing I have a class "UserControl1 : System.Windows.Forms.UserControl"
in an Assembly "UI.dll", now I create an Application project and want to use
the "UserControl1" in another AppDomain,
private void CreateUIInAnotherDomain()
{
UI.UserControl1 ui =
(UI.Cls)domain.CreateInstan... more >>
Mutux - blocking multiple apps accesing the same file
Posted by Phil Jones at 3/3/2005 3:36:13 PM
Is there a way to use a Mutex (or something) to block access to a file
between different running applications.
The situation is this - I have more than one application running, and they
all share the same XML file. What I want to do is block other apps from
writing to the file when one app... more >>
COMException and Multiple Threads
Posted by Michael E. Pouliot at 3/3/2005 3:18:32 PM
My VB.NET application spins up a secondary GUI thread. This thread hosts a
Custom User Control (which owns the window handle) and some COM objects
which interact with a Third Party Application. When a method call to one of
the COM objects results in an error, the .NET Interop throws a
System.... more >>
MSComm control
Posted by Joshua Ellul at 3/3/2005 3:14:14 PM
Hi,
Is a .net mscomm control available?
Josh
... more >>
can I replace a pressed key by another in a control
Posted by jean-dot-paul-at-opelwilly-dot-com at 3/3/2005 2:25:29 PM
Hello,
Is there a known way to replace a pressed key by an other.
KeyPressEventArgs.KeyChar is read-only so is there a work arround.
I want to change the decimal point of the numeric keypad into
CultureInfo.CurrentCulture.NumberFormat.CurrencyDecimalSeparator
at anny time.
Greet... more >>
Determining authenticated type user is logged onto NT4 domain or Active Directory
Posted by Zeno Lee at 3/3/2005 1:34:45 PM
Right now I'm checking the presence of the USERDNSDOMAIN environment
variable.
Is there a better way to see which windows network, NT 4, Mixed ADS, Pure
ADS a user is logged into?
... more >>
Passing XMLSchema object using Remoting.
Posted by sijo at 3/3/2005 12:25:09 PM
Hi,
I am using .NET Remoting in a client server environment, and I have
to pass an XmlSchema object to the client using remoting. As this
class (XmlSchema) doesn't extend MarshalByRefObject and not
even serializable, what could be a work around for the same ?
best regards
sijo
... more >>
Opinions on .NET Framework?
Posted by roy.anderson NO[at]SPAM gmail.com at 3/3/2005 12:16:12 PM
Question: Is there a site that lists (or share your opinions, please)
the relative strength/weakness of programming in C# or VB?
Question: Is there a site (or share your opinions) that lists the
relative strength/weakness of a PC app vs a Web app? The assumption
here is that the app will be fo... more >>
HttpWebRequest and headers with only newline
Posted by Mikael Svenson at 3/3/2005 11:33:50 AM
Is there any way I can get the HttpWebRequest object to accept headers
with only \n in them?
When I go towards a particular url I get a ProtocolViolation error when
the headers in the received data only has \n to separate the fields.
If I make me a proxy and intercept the packets and change ... more >>
Computer Unique Identifier
Posted by tni NO[at]SPAM nc.rr.com at 3/3/2005 10:05:23 AM
Hi,
I want to get a unique ID of a computer instance. This ID has to be
unique across domains, sites, and remain the same after OS, domain and
hardware upgrades. Any ideas how to get this or how to compose it?
Thomas
... more >>
C++ Linker error with Dispose
Posted by dugalh at 3/3/2005 8:59:02 AM
Hello
In a C++ class library project, the following code:
public __gc class A
{
public:
~A(){}
};
public __gc class B: public A
{
public:
~B(){}
};
gives me:
error LNK2001: unresolved external symbol "void __cdecl
__CxxCallUnwindDtor(void (__thiscall*)(void *),void *)"
(?_... more >>
Will MFC be used to encapsulate future versions of Windows API?
Posted by achtungcol at 3/3/2005 6:37:07 AM
Same question as the subject and that is will MFC be used to 'wrap' future
versions of Windows API or will the .NET framework 1.1 be the replacement?... more >>
events and threading
Posted by EnerPeter at 3/3/2005 4:41:06 AM
Hi there,
i have an object O1 in a thread context C1. This object BeginInvokes() a
loop-oriented method M2 on a second object O2 thereby creating a new thread
context C2 for O2.M2. O1 has before registered on an event eventually fired
by O2.M2. This eventually results in executing the handler... more >>
connect to a remote SQLServer (CompactFramework)
Posted by David at 3/3/2005 1:19:02 AM
Hello, I'm going to try to explain my problem. Excuse my English. There are
a DB stored at a server that is placed at another city. I've the external IP,
the ID and the Password. If I do a ping with my pocket I obtain response.
I've an object connection (SqlClient.SqlConnection) whose propert... more >>
|