|
Well i think i found it "Reflector for .NET" from Lutz Roeder... Or maybe you are using other tool?
|
|
|
|
|
No that's the tool, you havn't come across it before?
It's a godsend
Ed
|
|
|
|
|
I am seeking information about developing a "Virtual Network Adapter" for Windows Machines.
Any technical development info.
Any possible open source developments.
Etc.
Think Hamichi, but customized for my usage.
Thanks in Advance,
ATM
|
|
|
|
|
Not C# but this is open source.
You want the bits relating to TAP Win32 Virtual Network adapter thingy-ma-bob.
Ed
|
|
|
|
|
wow, thank you... I was needing that direction.
Let me see what i can make of TAP Win32.
Thanks Again
|
|
|
|
|
Hope it's not overly complicated for what you need.
Have fun
Ed
|
|
|
|
|
Hi, I`m working with visual studio 2005 C#.
When I run my code the picture is displayed in pixels, but I need to display it in millimeters?
string path;
Bitmap image1;
path = OpenFile();
if (path != null)
{
image1 = new Bitmap(@path, true);
...
Valiovalio
|
|
|
|
|
Hi.
I recently made an account at brinkster.com (free educational package) and was assigned some free space to store files etc. My site address became www40.brinkster.com/mySite, where mySite is my username and folder i have manually uploaded files into. Now i want to upload file in this same directory using a simple winform c# application. I wrote this simple code:
WebProxy myProxy = new WebProxy("http://address:port/",true); //i m using a proxy server
WebClient Client = new WebClient();
Client.Proxy = myProxy;
Client.UploadFile("http://www40.brinkster.com/mySite/recieve.aspx","POST","c:\\text.txt");
I have this script recieve.aspx to recieve files and store them in the same directory as its i.e mySite
<%@ Import Namespace="System"%>
<%@ Import Namespace="System.IO"%>
<%@ Import Namespace="System.Net"%>
<%@ Import NameSpace="System.Web"%>
void Page_Load(object sender, EventArgs e) {
foreach(string f in Request.Files.AllKeys) {
HttpPostedFile file = Request.Files[f];
file.SaveAs("\\path\\mySite\\" + file.FileName);
}
}
But i get an error:
"The remote server returned an error: (500) Internal Server Error."
Incase of GET instead of POST:
"Cannot send a content-body with this verb-type."
** Dont know abt if the directory has permissions or my proxy needs credentials(if its the case) or do i need to login first using this c# application the same way i do to get to mySite folder manually with browser using my brinkster login and password**
I am stuck with it for quite sometime now..kindly help me out with this. Thanks.
|
|
|
|
|
Firstly you'd best eliminate permission problems, create a simple aspx page for testing purposes where you write a text file to the current directory, just specify a filename with no path when saving the text file as this will save into the current directory.
(Or even better if you know a way (sorry I don't use ASP.NET that much) of getting the directory containing the aspx file then prepend this to the filename).
If you can create the text file (test by navigating to it in your browser) then you have sufficient permissions. If not then it's another problem.
Ed
|
|
|
|
|
ok so its resolved. yay. i dint have the write permissions on the folder i was uploading to.
|
|
|
|
|
hello
i want to hide my IP, when I connect from client windows app to a web service.
i can go through a proxy very easily like
MyMath.Math math = new MyMath.Math();
IWebProxy proxyObject = new WebProxy("http://proxyserver", true);
math.Proxy = proxyObject;
but how can i make a chain of proxies?
thanks
|
|
|
|
|
IIRC, you can only specify the first "hop" proxy. Your other downstream proxies would have to be configured to forward the request on their own.
But why would you even want to do this anyway?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Is there such a conversion? I would like to use DateTime as part of a unique identifier. I could create a number by appending year + month + day + hour + minute + second + ticks, but i am hoping i could access the number representation of DateTime like i could in VB6.
|
|
|
|
|
Use the Ticks property.
---
b { font-weight: normal; }
|
|
|
|
|
The ToBinary() method will return the DateTime 's numeric value.
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
Both advice is good.
Thanks for the "kick" in the right direction!
|
|
|
|
|
Hello, everyone. I think this is my first post on these forums, but I've been a member for a long time. LoL.
Anyhow, I'm currently developing a C# application that uses a MS Access database. I use VS .NET 2003 Pro.
Well, I just wanted to know what files, etc., I would need to include if I distribute the application. Like, the .NET Framework, etc. How would I go about doing this?
Thanks in advance,
Matt U.
|
|
|
|
|
For the C# aspect you need just the .NET Framework and any other assemblies you use, e.g. UI Controls or libraries.
For MS Access you may get away without having to install anything as I seem to remember somewhere, a long time ago, coming across something that by installing the .NET Framework you get the required capabilities, either by .NET including them or by .NET requiring them (I can't remember). But don't take my word on this
Depending on how you're distributing this depends on how to package it. If on CD / Physical something or other then you can put a copy of the .NET framework on the media with your software installer.
If by internet then just have an installer which installs you program, checking for the .NET framework (or at least saying it's a requirement) while / before installing. If you're considering NSIS then take a look at the source for the #develop NSIS installer, this has a startup check for the .NET framework. If the user doesn't have netfx (.NET Framework) installed then direct them to http://msdn.microsoft.com/netframework to download their own copy. (If you're feeling really adventurous then you can use NSIS to download the .NET Framework for them, install it and delete the temporary files ).
Ed
|
|
|
|
|
As long as you are not using external libraries to connect and alter the database, then you have been working with ADO.NET which is built into the .NET framework. I have a program myself that uses OLEDB adapters that are built into the ADO.NET part of the framework and the program works fine on all computers that I have tried it on.
Regards,
1tg46
Check out 3D Game Development with Dark Basic Professional [^]programming.
|
|
|
|
|
Hello all
I have implemented the copy paste funcationality for PDA Application.
I have 2 textboxes, if i selects some text from textbox1 and copies to clipboard and wants to paste in second textbox texbox2.
in this situation how to identifies the cursor location and paste the data.
anybody any sounds
appriciated
regards
GV Ramana
|
|
|
|
|
I take it PDA's dont have the GetMousePos API that you could call?
Regards,
1tg46
Check out 3D Game Development with Dark Basic Professional [^]programming.
|
|
|
|
|
Hello!
Assume this: I got two classes, namely CContainer and CItem . The container class declares a list of items like this:
private List<CItem> = new List<CItem>();
It fills this list somehow and offers a function like
public CItem GetItem(int nIndex);
This function returns the item at nIndex. The problem now is: how do I prevent the caller from modifying the returned CItem ?
In C++ we just put the const keyword into the declaration to achieve this. Any way to do it in C#? Is there a corresponding keyword?
Thanks in advance and best regards
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
-- modified at 14:01 Saturday 18th March, 2006
|
|
|
|
|
Why would you like to prevent the calling code to moddify the return value?
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Have you considered having the GetItem() function simply return a clone of the Item so that if it gets changed, it doesn't matter?
Rich
|
|
|
|
|
There is no language support for C++ like const functionality. Having said that, you could declare CItem as a value type, this would result in a copy being returned to the client. Or you could clone the object yourself and return it to the client.
Regards
Senthil
_____________________________
My Blog | My Articles | My Flickr | WinMacro
|
|
|
|