Willy,
We were trying your sample in ASP .Net which didn't
work .Whereas the same code works as a console
application. I guess even if we give our username and
password explicitly it takes the ASP Net Identity for
authentication.We had set the mode of authentication
as Windows in the Webconfig fil
D'uh! Wasn't thinking about looping through them at run time. Seems that
would work just fine.
Thanks to you both:)
-Original Message-
From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of
Bill Schmidt
Sent: Wednesday, April 24, 2002 12:09 AM
To: [EMAIL PROTECTED]
Subject: Re:
Dan,
Keep in mind that in VB.NET, all controls are dynamically created.
Therefore there is nothing unusual or inefficient about looping through the
Form's Controls collection at run-time. For each textbox, you may either
apply Shawn's solution (best) or dynamically attach your KeyPress event
han
> Caught one... :)
Well, don't share it with anyone!?
Morty
-Original Message-
From: Kirill 'Big K' Katsnelson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 6:46 AM
To: [EMAIL PROTECTED]
Subject: [DOTNET] Reporting .NET framework bugs
What is the best way to report bugs
Terribly sorry... look at Control.DoDragDrop. You need to set the
effects as Ethan suggests. Something like:
private void MyDraggableButton_MouseDown(object sender,
MouseEventArgs e) {
this.DoDragDrop(myInfoObj, DragDropEffects.Move);
}
or
priva
Because that would require touching and maintaining multiple controls on
every data entry form. I suppose I could create my own control to do
this and inherit it, but I'd rather do code KeyPress in the base form
and get it for free in every form control.
Hard to make a case for .NET increasing de
Why not just set the CharacterCasing property of your TextBox's? You
can set it in the Property window or with code:
textBox1.CharacterCasing = CharacterCasing.Upper
Thanks,
Shawn Wildermuth
[EMAIL PROTECTED]
> -Original Message-
> From: dotnet discussion [mailto:[EMAIL PROTECTED]]
>
What is the best way to report bugs in .NET framework? Caught one... :)
-kkm
You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.
I have one computer where .NET exceptions cannot be caught in the
debugger, and not constructed correctly. All system exceptions are
reported as "System.Interop.SEHException - an external component has
thrown an exception". Have not tried throwing exceptions derived from
ApplicatinoException yet
I need to ensure that all characters are forced to upper case for nearly
all data entry forms in a VB.NET app. Thought I'd try to do it via the
KeyPress event, but since arguments are passed by value, not reference,
I'm stuck.
In VB6, the ASCII keycode is passed by ref as an integer, and it was
e
I had this problem... Did you run IISLockdown by chance? In
particular, have you installed URLScan to make IIS more secure? That
was my problem, which I fixed by uninstalling URLScan via the control
panel >> add/remove. Then I could debug ASP.NET once again. Cheers,
- joe
=-=-=-=-=-=-=-=-
System.Text.Encoding.GetEncoding () returns an encoding given its name
or code page. Is there a way to enumerate available encodings, to display
them in the UI?
This works, but way too slow :)
for (int i = -100; i < 65535; i++)
{
try
{
System.Text.Encoding e = System.Text.Enc
Are you trying to set the cursor in the source or the target? I can't
tell from your original question. If it's the source, I believe the
event you want to handle is GiveFeedback. In the dragEnter event, the
target should set the Effect property of the DragEventArgs to indicate
which operations ar
You wouldn't care showing us how you got it to work. On the
dragenter/dragmove and draleave I'm setting the cursor to no avail.
-Original Message-
From: Jason Sellers [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 24 April 2002 2:25
To: [EMAIL PROTECTED]
Subject: Re: [DOTNET] Changing cursor
Hi Sean:
As it turns out, the strategy of deleting the bin directory of the
offending project was the only thing that worked for me.
Thanks for the tip.
thanks, Greg
On Tue, 23 Apr 2002 11:49:07 -0700, Sean Greer (SBI-Chico) wrote:
>You can search the archives, this was discussed not too long
Does anyone know of any keyboard class to be used to enter data with
pen/mouse?
Thanks a lot,
Cameron
_
Chat with friends online, try MSN Messenger: http://messenger.msn.com
You can read messages from the DOTNET archive, unsubscri
Nope I wasn't. That did it. Many thanks Sean and Urs.
For the archives, here's the working code:
Dim strNS as string
Dim strFormName as string
strFormName = "YourFormName"
strNS = "YourNamespaceName"
'Need the fully qualified class name in the form
'NamespaceName.ClassName'
Dim typ As Type =
S
Make sure Internet Explorer isn't Offline in the file menu.
joe
-Original Message-
From: Joseph J. Sarna Jr. [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 3:39 PM
To: [EMAIL PROTECTED]
Subject: [DOTNET] Unable to debug ASP.NET
I have just recently become unable to debug A
Huahh! Don't do that (No offense Mattias;-) - I strongly recommend the
use of interfaces for COM callbacks. That's quite easy to do with .NET's
[ComVisible] attribute and friends.
Passing plain function pointers looks like a good idea, but I can tell
you: It isn't! I've been the one to debug such
You are using the namespace-qualified name, correct?
If you have code like this (sorry, don't sprechen sie VB)
namespace Accounts
{
public class AccountForm : Form
{
//
}
}
Then this code will create an instance of it:
string sFormName = "Accounts.A
It's your code:)
01 Dim ty As Type =
System.Reflection.Assembly.GetExecutingAssembly.GetType(strFormName)
02 Dim frm As System.Windows.Forms.Form = Activator.CreateInstance(ty)
The exception raised is System.ArgumentNullException, raised on line 02
above. The variable ty is Nothing.
Other notes
Try changing this:
Dim decryptedBytes(Convert.ToInt32(reader.Length)) As Byte
to this:
Dim decryptedBytes(Convert.ToInt32(reader.Length)-1) As Byte
I've seen this happen in VB.Net because when you create the byte array, the
value you pass is the upper bound, not the capacity. So, you get a by
I think, in data stores that support this, the transactions are usually multiplexed
(each transaction is separate and associated with different commands, same
"connection"). I'm not sure which databases support this now, certainly "middle tier
providers, JDBC type 3" (providers that are servers
I have just recently become unable to debug ASP.NET application (just
noticed it today). I get the:
---
Microsoft Development Environment
---
Error while trying to run project: Unable to start debugging on the web
server. The project is not configu
Hi Casey:
I changed the Active Solution Configuration to Release in the Configuration
Manager. Solution builds fine this way!
However, if I flip the configuration back to debug for all but TypedDataSet
classLib I still get build errors.
Could you please tell me exactly what you are doing to fix
The Windows Forms team has created a community portal to help developers
create great client applications & controls. The site provides a central
place to consolidate and link to the many great Windows Forms resources
available on the internet. It is available at http://windowsforms.net. We
have m
You think *that's* bad... A while back there was a code sample I needed to
download from MSDN, and the URL had a folder "C#" in it. Needless to say the
link didn't work...
Glad you solved your problem, anyway :)
G.
--
Graeme Foster ([EMAIL PROTECTED])
Principal Software Engineer
Aston Broadcast
From: Richard A Morningstar
Thanks! Got it working!
Adam Nathan <[EMAIL PROTECTED]>@DISCUSS.DEVELOP.COM> on 04/23/2002
03:44:30 PM
Please respond to dotnet discussion <[EMAIL PROTECTED]>
Sent by: dotnet discussion <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc:
Subject: Re: [DOTNET] I
Patrick,
>I know VB.NET has at least one other case-sensitive bug (something about
>the naming of "sub Main").
FWIW, the bug is in the Windows Forms Application class, it's not really
related to VB.NET.
Mattias
===
Mattias Sjögren
[EMAIL PROTECTED]
You can read messages from the DOTNET arc
No, if the input type library says:
HRESULT MethodA([in] VARIANT saUnks);
then the output assembly should contain (in IL Assembler syntax):
instance void MethodA([in] object marshal(struct) saUnks)
runtime managed internalcall
Adam
-Original Message-
From: Rick Morning
So i went and revisited this problem,
and read the article about the assembly being over 64K :)
Which makes perfect sense that I always get the error with TypedDataSet classLibs
since they gen so much code.
Flipped all project to Release and it built fine!
Then went back to Debug mode for all pro
Hi all,
Here is the scenario. I have an asp.net page, that uses remoting to invoke a COM+
object elsewhere. The remote object it invokes, is actually a wrapper for the COM+
object, and is hosted in IIS. Here is some code that it executes:
Dim reader As System.IO.FileStream
Dim decryptorStream
okI thought that. Thanks Mattias and Ray.
-Original Message-
From: Mattias Sjögren [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 2:15 PM
To: [EMAIL PROTECTED]
Subject: Re: [DOTNET] inheriting an object
Franklin,
>If I inherit an object that has a new sub and I don't cre
Tomas,
Try something like this
typedef int (__stdcall *TheCallbackType) (int);
DECLARE_INTERFACE_(umIDataSink, IUnknown)
{
STDMETHOD(SetCallback) (THIS_ TheCallbackType Callback) PURE;
};
and on the managed side
delegate int TheCallBackType(int i);
But why are you using a function
Sorry it's C# (not VB), but is this what you mean?
Both constructors are called.
- Ray
using System;
namespace ConsoleApplication
{
class Application
{
public class baseClass
{
public baseClass()
{
Console.WriteLine("base class constructor called");
}
}
public class derive
Franklin,
>If I inherit an object that has a new sub and I don't create a new sub to
>call mybase.new, does it get called anyway?
Yes. Unless there's no parameterless constructor in the base class, then
you get a compile error.
Mattias
===
Mattias Sjögren
[EMAIL PROTECTED]
You can read mes
If I inherit an object that has a new sub and I don't create a new sub to call
mybase.new, does it get called anyway?
You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.
Use WMI (namespace System.Management). Win32_DiskDrive
has the information (I think) that you are looking for.
Pradeep
http://www.tapadiya.net/pradeep
- Original Message -
From: "Shishir Kumar Mishra" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 23, 2002 8:48 AM
Subje
Right, somehow VS.NET locks it :(
You dont have to close VS.NET, just close the solution,
and then you can delete the TypedDataSet.dll.
Then open the solution, rebuild just that assembly,
and set that project not build anymore;
because if you try to build immediately after, it will be locked again
You can search the archives, this was discussed not too long ago.
The method that I've used is to close Visual Studio and delete the bin
directories of all projects.
Seang
-Original Message-
From: Greg Gates [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 11:43 AM
To: [EMAIL PR
Bob,
Thanks for the response (Jim Arnold, as well). I hadn't considered multiple
transactions per connection. Would the transaction be nested and would an
inner need to be committed/rolled back prior to an outer? Are there any
data stores that currently support multiple transactions? I'd like
Hello everyone:
All of a sudden I am unable to build my project.
I receive the following error message:
Cannot copy assembly 'PayLive.Faculty.TypedDataSet' to
file 'D:\PayLive\PayLive.Faculty\PayLive.Faculty.BLL\bin\Debug\
PayLive.Faculty.TypedDataSet.dll'. The process cannot access the file
b
Having the transaction be associated with a Connection class rather than having a
separate Transaction class enforces the semantic that each Connection can only have a
single associated Transaction. Although this is the way most relational databases
(including SQL Server) work today, that is no
I also have the first edition of Professional C#. While it definitely
has its share of typos, I still use the book frequently as a reference.
It certainly is not the best technical book I've read, but it has been
useful. It certainly helped me learn some of the nuances of OOP, as I
had only a basi
I hate to advertise, but in answer to your direct question, Adam,
DevelopMentor will be offering it's inaugural run of Essential Windows
Forms [1] on 6/26 in Torrance, CA.
Chris Sells
http://www.sellsbrothers.com/
[1] http://www.develop.com/dm/course.asp?id=131
> -Original Message-
> Fr
AFAIK, this is because multiple transactions-per-connection may be possible
in the future. This is also why the Transaction and Connection properties
have to be set separately on a Command object.
Jim
> -Original Message-
> From: Sean Greer (SBI-Chico) [mailto:[EMAIL PROTECTED]]
> Sent:
Why did they not make the current transaction available through the
OleDbConnection class? It is truly a pain in the a%# to be forced to pass
the transaction to every object that is going to do a database operation
when they could of made it available via a public property on the connection
objec
I had the same reaction after I bought "Profession C#". Of course the 2nd
edition is now out.
Mark Potter
-Original Message-
From: Paul Janssen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 11:38 AM
To: [EMAIL PROTECTED]
Subject: Re: [DOTNET] Wrox
A few typos here or there
I am trying to get a web form to accept large files via http uploading.
It currently works for 30MB+ files, but only if the file can be uploaded
in less than 8 minutes.
I am able to upload any size file (tried up to 100MB) if it is done on
the same LAN as the webserver.
Howvere, if done from a s
From: Richard A Morningstar
The imported interop code was:
MethodA([in] Object marshal(SafeArray Variant) saUnks) ...;
This is correct?
Adam Nathan <[EMAIL PROTECTED]>@DISCUSS.DEVELOP.COM> on 04/23/2002
01:28:57 PM
Please respond to dotnet discussion <[EMAIL PROTECTED]>
Sent by: dotne
You shouldn't be modifying the signature in this case because you're
treating a single VARIANT (that should contain an array of VARIANTs) as
an array of VARIANTs. You should be able to leave the imported Interop
assembly alone and still use the C# code you have below.
-Original Message-
Thomas Tomiczek says
>Well, the original question was getting all the IP addresses a computer
>posesses.
>IMHO I am back to reading the registry information for the TCP Stack :-(
no no no. I was just scaring you with the details of determining whether an
an IP addr was valid or not, which is
Also you may want to try www.develop.com I know Developmentor is working
on a Windows Forms class
-Original Message-
From: Duncan Smart [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 11:15 AM
To: [EMAIL PROTECTED]
Subject: Re: [DOTNET] Advanced WinForms class
Adam,
Not necessa
From: Richard A Morningstar
I have a legacy COM Object with a signature like te following:
HRESULT MethodA([in] VARIANT saUnks);
Where this variant is a SafeArray of Variants (where each variant in the
SafeArray is of type VT_IUNKOWN).
I have modified the generated Interop assemblyas follows
I won't speak to the specifics of the Wrox book, but I will give you this
insight into how hard it is to avoid typos. I wrote my book, Programming C#
over the course of eight months. We then edited for five months. We edited
it again and again, with multiple editors reviewing it. I know that at l
Try something like this:
Type myType = myAssembly.GetType("MyForm");
Form myForm = (Form) Activator.CreateInstance(myType);
You have to cast the object to a form when using CreateInstance.
Brian
-Original Message-
From: Dan Souk [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 200
Just antoher pipe is IPipeByte - the SDk documentation says "not
supported on Win98", but a proxy could work.
You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.
Er, not really... ;-)
* Char.GetNumericValue(char) is more like VB's Val() (and I'd use
int.Parse or similar instead)
and
* Char.Parse() doesn't much other than convert string to a char
Edward -- be careful of ASCII stuff anyway because ASCII is limited to
English characters. You should con
Hmm... Looks like a bug. VB.NET is not case-sensitive so I don't know why
it let you define a private THISTYPE. I know VB.NET has at least one other
case-sensitive bug (something about the naming of "sub Main").
---
Patrick Steele ([EMAIL PROTECTED])
Lead Software Architect
Image Process Desig
Cursor.Current = Cursors.WhicheverYoudLike;
jason
-Original Message-
From: Alex Lehmberg [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 7:40 AM
To: [EMAIL PROTECTED]
Subject: [DOTNET] Changing cursor in Drag And drop operations
When writing a Windows Forms app I want to do a
Adam,
Not necessarily advanced (although quite how you define this is a personl
thing I guess) -- but the official 3-day MS courses should be available in
June/July apparently:
"2555Developing Microsoft .NET Applications for Windows (C#)"
http://www.microsoft.com/TRAINCERT/SYLLABI/2555APREL
The reason is obvious; user "NTTestdomain\Administrator" with password "intelligroup"
is - or invalid or unknown or has
no privileges.
I'm afraid there is something wrong with you domain structure and/or your trust
relationships between doamins.
Can you access a Fileshare using the same credenti
I am trying to run two different versions of an assembly that contain
servicedComponents. I built two different versions, registered then in the
gac ( with two DIFFERENT keyfiles ), and registered them in COM+.
At this point I can compile my DOTNET app, referencing the correct version
of my assem
Hi gurus!
How can i get the Hard disk number from my C# program.
TIA
Shishir Kumar Mishra
Agni Software (P) Ltd.,
Bangalore-560055, India
www.agnisoft.com
You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.
This takes the form of major/minor/build/revision
The build number based on the number of days since Feb 2000, so this
will increment daily.
The revision number is the number of seconds since midnight.
Hence, by default .NET guarantees you a unique build number (1.0.*), but
you can of c
A few typos here or there is no big deal. But the first edition
of "Profession C#" didn't seem like it was even looked at by an editor. I
stopped reading after a few chapters because the typos and grammatical
errors were so irrating. Makes me wonder about the validity of the code
samples. I've
Hehehe
Okay now the default it was set to was:
("1.0.*")
which gave me version #'s of something like
1.0.843.18662
So now my question to you iswhere is the 843.18662 derived from? Does .Net no
longer have the ability to do versioning by incrementation? Or do you have to manually
chang
I've created a VS.Net macro for automating generation of unit test shells[1].
Basically, this macro takes some of the drudge work out of creating unit tests for a
class. You open up the file you want to create tests for, run this macro, and you'll
end up with a file containing the boilerplate
I belive the following call:
FormsAuthentication.RedirectFromLoginPage(txtUserId.Text,false,"/");
Is resetting the cookie after you ahve set it. You might want to use some
other means to redirect them to the page you want.
HTH,
Matt
-Original Message-
From: PrashanthG
To: [EMAIL PROTE
Ditto the lament that named pipes still aren't supported on non-NT systems.
Unfortunately, anonymous pipes can't easily be substituted for named pipes
in something like the remoting channel sample. The API for named pipes
supports a traditional client/server approach ("server" creates a named pi
Greetings everybody,
(I apologize for the 2nd try, but first time it was
5h28 p.m. CST so maybe I'll have more success now)
I have a dll written in C# (managed code). This dll
executes calls to the remote server (hosted in aspnet_wp
process). When the dll is hosted in the managed exe
(ex: C# con
This is the link
http://www.aspalliance.com/aldotnet/examples/translate.aspx
-Original Message-
From: Bob Edwards [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 4:53 PM
To: [EMAIL PROTECTED]
Subject: [DOTNET] c# to vb.net translation
Did i read somewhere that there is a C# to
Did i read somewhere that there is a C# to vbnet translator web site?
Thanks.
You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.
I wish I could help. My COM knowledge is non-existent. Good luck!
Chris
-Original Message-
From: Thomas Tomiczek [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 9:33 AM
To: [EMAIL PROTECTED]
Subject: Re: [DOTNET] Callback? Possibble from C#?
Chris,
Thanks for the help - works
Hi All,
Is there a way to enumerate the windows of a particular process or of an
AppDomain? I have looked in the documentation and the only functions I can
find are those that given a control already you can walk the parents and
children. My question is there a way to enumerate the windows with
When writing a Windows Forms app I want to do a drag and drop operation.
Is there any way I can change the cursor to one of my own choice while
dragging the mouse?
You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.d
As an addendum so I don't look like I complete dolt
I know it is getting A versionit gets the assembly, File and Product
version if you check the file properties but where is that all
controlled from and how do you manually do it?
=Blain
-Original Message-
From: dotnet discu
(gotta love OWA)
Let's try this again...
Look for the attribute in the AssemblyInfo.vb
source file.
-Mitch
-Original Message-
From: Mitch Walker
Sent: Tue 4/23/2002 10:29 AM
To: [EMAIL PROTECTED]
Cc:
Subject: Re:
-Original Message-
From: Blain Timberlake [mailto:[EMAIL PROTECTED]]
Sent: Tue 4/23/2002 10:26 AM
To: [EMAIL PROTECTED]
Cc:
Subject: [DOTNET] Super stupid version question...
Okay, now I feel like
Okay, now I feel like an idiot, but I simply cannot find where you set
the version # for a project in VB.Net. I'm looking for the graphical
way to set it in the IDE, as per VB6. What am I missing here? Can you
still set a version? Can you still set auto-increment? I might just be
blind here,
Hi Peter
Sorry I haven't been more responsive to the list lately, I've been doing a lot of
traveling and teaching (ADO.NET ;-). I did write to my editor and received the
following reply: If (when) I hear more I'll let you know. The book is due out May 27,
last I heard, won't be long now
Tim,
There is a good document on MSDN that I think covers what you are looking
for. You can find it at:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/tdlg_rm.asp
There are some complications with compiling web services, but other than that its not
bad.
To hopeful
Sorry Tomas, I'm not sure if I follow you're requirements, but have you
looked at the IntPtr class?
Jim
> -Original Message-
> From: Thomas Tomiczek [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 23, 2002 7:45 AM
> To: [EMAIL PROTECTED]
> Subject: [DOTNET] Marshalling HANDLE - how?
>
Chris,
Thanks for the help - works on a simple sample.
NOW I need to get oit more complicated. I need to register the
callbackthrough a com object.
Can you help there, too?
DECLARE_INTERFACE_(umIDataSink, IUnknown)
{
STDMETHOD(SetCallback) (THIS ??? Callback) PURE;
};
I basically need
You could reference Microsoft.VisualBasic.DLL and look in the
Microsoft.VisualBasic namespace for the functions. e.g. look at the static
methods on the Microsoft.VisualBasic.Strings class...
...or you could do things the .NET way: look at System.Text.Encoding classes
e.g.
Asc equivalent:
byte
Chr -> System.Char.GetNumericValue(char)
Asc -> System.Char.Parse(String)
-Original Message-
From: Edward Ferron [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 7:01 AM
To: [EMAIL PROTECTED]
Subject: [DOTNET] C# Ascii, Asc, Char, Chr functions?
How do I get Asc, Ascii, Char C
Thought you might be interested in the approach I had come through from the Java guy
on the Green threads.
It us quite interesting, he considers AppDomains as the equivalent.
Interesting concept, I personally am concerned without running any tests at the side
effects of running lots of App Domai
How do I get Asc, Ascii, Char Chr functions in C#? Is there another class
for them? They are available in VB.NET but I can not find the namespace
from which they come from?
Thanks,
Ed
You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor l
Cool.
Now, how would you turn this delegate over to a COM object? How would
you actually make the interface in a COM object to turn over a delegate?
Regards
Thomas Tomiczek
THONA Consulting Ltd.
(Microsoft MVP C#/.NET)
-Original Message-
From: Chris M. Szurgot [mailto:[EMAIL PROTECT
Yes, it is possible (and quite easy too...)
Create the delegate callback to be as close to the expected function,
and then put that delegate into the [DllImport] for the unmanaged code.
Then, when you call it, it should work fine. Below is the pertinent code
for using CopyFileEx, since that's the
It throws a COMException which says "Access is denied"
Exception is raised when we try to get the members
collection. The code below:
**
DirectoryEntry groupEntry = new
DirectoryEntry("WinNT://nttest/Administrators,group",@"NTTestdomain\Administrato
After rereading, it sounds like you could be right. Sorry, Adam, but I
don't know of any? Sorry for the misread.
-Original Message-
From: dotnet discussion [mailto:[EMAIL PROTECTED]]On Behalf Of
Graeme Foster
Sent: Tuesday, April 23, 2002 3:35 AM
To: [EMAIL PROTECTED]
Subject: Re: [DO
Hello,
I have an API (C style, DLL based) that requires me to register a
callback. The DLL has a function where as one parameter it either gets
a pointer to the function to call or NULL.
Can I somehow pass a delegate in there? Any samples around?
Regards
Thomas Tomiczek
THONA Consulting Ltd.
Hi,
I have a small problem in Form based authentication.
I have custom roles defined in the database. I get the roles from DB and then store in
the Cookie as shown in the code below for assigning it later to the current context
user.
private void Submit_Click(object sender, System.EventArgs
Hi all,
does anybody know what's the correctly use of the WM_COPYDATA
message?
And does also anybody how can I use this in C#??
Regards
Jan Dropczynski
Software-Engineer
THONA Consulting Ltd.
You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other Develop
Still exists in 98 and ME according to my documentation.
CreateNamedPipe is only available on NT.
Shame on them.
Regards
Thomas Tomiczek
THONA Consulting Ltd.
(Microsoft MVP C#/.NET)
-Original Message-
From: Brad Wilson [mailto:[EMAIL PROTECTED]]
Sent: Dienstag, 23. April 2002 14:
Sorry, that's about all I know about pipes :-)
Merak
> -Original Message-
> From: Thomas Tomiczek [mailto:[EMAIL PROTECTED]]
> Sent: 23 April 2002 12:31
> To: [EMAIL PROTECTED]
> Subject: Re: [DOTNET] Named Pipes for Remoting - thanks you
> (and a questio n about named pipes)
>
>
> I
Tom Archer wrote:
> Yep. I came from OS/2 years ago and with NP being the IPC of choice on OS/2
> hated those early versions of Windows. I think you can use anon pipes though
IIRC, you can access a named pipe that already exists if you're on 9x, but
you can't create a new one. It's a ludicrous l
Yes - it is installed
You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.
Hello,
How do I "cover up" a handle in C# for interop through COM?
I basically have to come up with a way to return a handle from a COM
object to C# in order then to use it in another managed C++ object.
Anyone ever done this?
Regards
Thomas Tomiczek
THONA Consulting Ltd.
(Microsoft MVP C#/.N
1 - 100 of 122 matches
Mail list logo