-
- Whats in delegates?
by Saravana Muthu
- 2 Replies
- Last post
by Soe Moe
- Hai, I am just now start learning Visual C# language through Visual Studio 2005 I want to now about delegates. and Also how can i able to implement a Binary tree and finding its shortest path from root node to leaf node.
-
- Some of the properties could not be read.
by Mike19
- 1 Replies
- Last post
by TaylorMichaelL
- Hi. Has anyone gotten this when trying to use the Visual studio .NET 2005 conversion wizard on a Visual Studio .NET 2003 project
"Some of the properties could not be read."
Thanks!
-
- standard MSO icons list not found
by Niku
- 1 Replies
- Last post
by Figo Fei - MSFT
- Hi, Please anybody know the MSO icons with faceid values. URL is not valid in msdn link http://msdn2.microsoft.com/en-us/library/aa290364(VS.71).aspx#tchdefaulttostandardanchor2 link provide http://msdn.microsoft.com/library/default.asp url=/library/en-us/dno97ta/html/faceid.asp can anyone knows the updated link for MSO icons and its corresponding id. Thanks, Nik
-
- Global Hook for WM_NCHITTEST
by jtackabury
- 14 Replies
- Last post
by just.a.nerd
- I am trying to globally catch all the WM_NCHITTEST messages (not just ones for my application), but I'm having some problems. I know that I will probably need a C++ DLL to handle all the messages and send them to my application, no problem, I've got that setup. But what hook do I use I've tried WH_MOUSE and WH_MOUSE_LL and the callbacks never seem to catch the "WM_NCHITTEST" message. Am
-
- c# code parsing
by Karthikeyan
- 4 Replies
- Last post
by Karthikeyan
- Hi all,
I need a help from you regarding code parsing technique. Basically I need to parse c# code (which is a User interface class)
and check for any business validation/rules written there and copy them into the corresponding business layer class. So, in order to parse the c# code do I have any readymade c# code parser (in object oriented model) so that I can make use of them to find
-
- Confused about creating new objects in C#
by mshvw
- 2 Replies
- Last post
by Peter Ritchie
- Hello, In C++ it is normal practise to re-use once declared pointers (or references) and manage the freeing of associated memory of the object where that pointer/reference was pointing/referring to. In C# the user needs not to concern about freeing memory as the garbagecollector does so when a reference is set to null. What is good practise in C# or what's behind the concept of it Should I each t
-
- COM Communication with Microsoft Exchange
by Andrew Mercer
- 1 Replies
- Last post
by Karthikeya Pavan Kumar .B
- Hi,
My client is considering migrating to Microsoft exchange to more easily manage staff mail-boxes calenders etc.
They have a separate administration system that records users daily appointments. This data needs to be added to each users individual calender to ensure the information is the most upto date. Can anyone confirm whether it is possible programmatically read and/or update
-
- save as dialog box
by airin
- 1 Replies
- Last post
by Mark Dawson
- Hello. I am making a web application and am using this code:
Response.ContentType = "application/x-excel"; Response.AddHeader("Content-Disposition", "attachment;filename=" + HttpUtility.UrlEncode(" ") + ".csv"); Encoding encoding = Encoding.GetEncoding("Shift-JIS"); Response.BinaryWrite(encoding.GetBytes(csvStr)); Response.End();
-
- Is descendant of "Open" generic class
by Brian Rogers
- 13 Replies
- Last post
by Brian Rogers
- Hi Everyone,
Does anyone know how to determine if an instance is a descendant of an "open" generic class
e.g.
MyOpenClass<TData> : object
where TData : object
{
}
And
MyChildClass<TData> : MyOpenClass<TData>
where TData : object
{
}
And then I have an instand and want to know if it is a descendant:
myObject.
-
- Help with Remote Control of Program
by JRSweets
- 2 Replies
- Last post
by JRSweets
- Hi,
I want to create a client program that I can install on a remote PC that will be able to connect to the main application, that is on another PC, using a username and password. The remote client needs to be able to send commands and receive data from the main program.
Could someone point me in the right direction of what I would need to do or learn to accomplish this task.
Thank you.
-
- Same Problem
by Bassam Basamad
- 3 Replies
- Last post
by Bassam Basamad
- I noticed when using NetShareAdd from an XP machine. If I run it on a Win2K machine it works perfectly. So what is the diference with XP and can I get it to work, please
I am using the api NetShareAdd to add a share on XP that is not on a domain. The share is created and looks correct when examined using popup menu, but it is not accessible from other computers. If I redo the share using explo
-
- Float format ?
by Gohalien
- 7 Replies
- Last post
by Peter Ritchie
- Hi, I am trying to parse to float a string, but with 2+ numbers after the . . example: string a = "1" string b = "2.234" string c = "3.1" float f1 = float.parse(a); float f2 = float.parse(b); float f3 = float.parse(c); results: f1 = 1.0 f2 = 2.234 f3 = 3.1 in case of f1 and f3, I want to format them to f1 = 1.00 and f3 = 3.10 without "checking" if it have 1
-
- Web Based Application
by Elie Sidawi
- 2 Replies
- Last post
by Elie Sidawi
- Dear all,
I need to write a simple program but i need it accessible on the intranet site of the company.
does anybody can help in advising if we are able to write the code in C# and then upload it into our intranet site.
kindly advise.
-
- C# Remoting and throwing exceptions to the client
by Wiggly
- 8 Replies
- Last post
by Wiggly
- Hi all, I am rather new to remoting in general and have got the BASIC client server chatting away, but how do I pass an exception back to the client. I.e. if a client calls method public int addTwoNumbers(int one, int two) but for some reason instead of returning an int it throws an applicationException, how do i get that to go back to the client I tried just having it throw an exception in a m
-
- a doubt about performance of KeyDown event
by MikeTrejo
- 3 Replies
- Last post
by Matthew Watson
- Hello
I doubting about the performance of my app because of this
I use the a KeyDown event and then inside I deluse what key
is being peressed but because in my app the user writes a lot
the event is being called a lot do you know a better way to do that
private void onKeyDown( object sender, KeyEventArgs e)
{
if (e.Key == Key .x){....}
if (....
if (e.Ke
-
- How to define and use structure pointers in structure
by VimalBhatia
- 5 Replies
- Last post
by TaylorMichaelL
- Hi,
I have two queries on passing a structure pointer inside a structure to a dll. This is a direct translation of the C code
typedef struct
{
int p;
char x;
char *x[4];
InStruct *i;
}OutStruct;
typedef struct
{
int k;
}InStruct;
The C# translation that I have done so far is
[ StructLayout ( LayoutKind .Sequential)]
s
-
- Debugging into C# Libs
by WilWest
- 5 Replies
- Last post
by ChunSheng Tang - MSFT
- Can any tell me if it is possible to debug into the C# native librarys and how to do it. I am trying to step into
FolderBrowserDialog.ShowDialog() and place break points inside a couple of the classes methods.
-
- Activator.CreateInstance Fails!
by Bluehunter
- 6 Replies
- Last post
by Matthew Watson
- Hi,
I added a reference to a dll in my C# project. I try to create instance of a class which is stored inside this dll. I added "using MyDLL;" to the top of my code of course. I use Activator.CreateInstance(Type type) like this:
object myInstance = Activator.CreateInstance(Type.GetType("MyDLL.MyClass"));
Car car = object as Car;
car.StartEngine();
but
-
- ERROR: Interface cannot declare types
by Scionwest
- 4 Replies
- Last post
by Scionwest
- Greetings my fellow MSDN developers, I am working on an EventManager that I found over at Ziggy.com and I recieve that error when I use the following code.
Code Snippet
public interface IEventFilter
{
void Subscribe( Enum eventName);
void Subscribe( string eventName);
void Subscibe( Enum eventName, float throttle);
void Subscribe( string ev
-
- Programatically reading User Rights Assignment/Security Policy
by matthewbz
- 1 Replies
- Last post
by uncle hammy
- I'm trying to programatically read the current User Rights Assignment using C#. I haven't found any .Net class, registry location, or file system location that would allow me to extract the information. One possible solution was to use secedit /export and extract the data from the .inf output, but due to KB897327 that option doesn't work (Aside: would be nice if that hotfix was released). secedit
-
- Translate UNC path to local mounted driveletter.
by pnp
- 2 Replies
- Last post
by pnp
- Hi Are there any way in C# to translate a UNC path to a drive letter used on the local machine. E.g.if my drive s:\ is mounted to \\server\Shared, then i would like to be able to feed a method with \\server\Shared\lib\file.ext and get in return s:\lib\file.ext. My first idea was to use DriveInfo.GetDrives, iterate through each and see if they had some information. It doesn't seem like they hold
-
- Difficult one, using methods in switch statements...
by PeteDemotedIn6Months
- 5 Replies
- Last post
by Matthew Watson
- Could anyone help me with this please ...
I have the condition...
if (compareString.IndexOf( "<USERID>" ) != -1) //if USERID is contained within 'comparestring'...
{
}
and i want to use a switch statement instead but cant use a method within the variable that im switching (hope this makes sense....) this is what I have tried....
swit
-
- Problem loading DLL in some machines
by msdn_user2
- 6 Replies
- Last post
by msdn_user2
- Hi, I'm writing a C# windows form application using VS2005 in a windows XP environment. I'm adding a reference to a DLL that comes from an unmanaged code written in MFC. I got to make it work in my development machine and also run fine in a windows 2000 platform. The problem is when I try to run the application in a third machine that doesn't have .NET on it; it gives me an exception saying that o
-
- Decompiler to make assembly to project file?
by Check0r
- 1 Replies
- Last post
by sthotakura
- I am looking for a .NET Decompiler with the following features: - normal .NET Decompiler function - extract the all source files to a project file - maybe merge different .exe and .dll to a hole solution "Just" convert an assembly to a hole solution I can view in visual studio, not just a lightweight source code browser. I am sure I had such a decompiler as a trial but I don`t remember t
-
- ArrayList Out parameter in recursive function
by thief_1
- 7 Replies
- Last post
by Mark Dawson
- Hi everyone...
I'm having trouble with a recursive method that uses an ArrayList as its output parameter, the thing is that I continously get the following compilation error: "The out parameter 'arr' must be assigned to before control leaves the current method" where arr is, of course, the ArrayList object. The code looks something like this...
public void func1(int[] a)