|
I have couple of questions:
1. I was trying to install Microsoft Visual Studio .Net 2003 and the default installation path showing was - c:\Program Files\Microsoft Visual Studio .Net 2003\...and the path was disabled. How to change this path.
MSDN Library for Microsoft Visual Studio .Net 2003 has already been installed in that path. Is that the reason?
2. How to compile VC++ (with COM) project using Dot Net Compiler.
|
|
|
|
|
Soumyajitr wrote: MSDN Library for Microsoft Visual Studio .Net 2003 has already been installed in that path. Is that the reason?
Nope, this is not the reason, you must select the Visual Studio 2003 node from the left part of the application, this will enable it, many of single things that are under the node of vs may not be installed to the vs location.
"Praying." Is this only what I can do for him ?
|
|
|
|
|
I haven't found a good native VB.Net answer to this anywhere - probably someone else has had this issue and can help...
I (simply) want a tooltip to popup more than once without moving the mouse off of a control.
I have determined the Tooltip control is triggered by a MouseEnter event (not a MouseHover event as I first thought!) My test project - create a ToolTip, a Textbox and a blank CheckedListBox; set the Tooltip InitialDelay = 1; in the form load sub, set the Tooltip active and bound to the CheckedListBox; handle the CheckedListBox MouseHover event to enter the time of this event into the TextBox. Run this and the ToolTip will popup before the Hover text, and if I'm fast enough with the mouse, I can get the ToolTip to popup without the MouseHover event writing text.
I haven't had any joy with Me.ResetMouseEventArgs (Me being the form), and this is an unsupported call anyway.
I've thought of adding the C++ converted API call to TrackMouseEvents to reset the Tooltip hover timer, but want to pose the question first in case someone else has a better solution.
Thanks, Barnaby
|
|
|
|
|
HI,
Is it possible to refer the .NET 2.0 dll into .NET 1.1???
If yes then how???
Ashutosh
|
|
|
|
|
No you can't.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Let's say I have a class that contains a member class:
class A<br />
{<br />
public B myB;<br />
etc.<br />
}
Class B might be a member of many, many different classes.
From a method in class B I would like to be able to discover the class in which the instance of class B is executing maybe using a syntax like:
string classString = this.GetParentClass();
How can I accomplish that?
Thanks in advance.
Dave Berkowitz
Manager of Software Development
Tangent Systems
|
|
|
|
|
System.Type parentType = myB.GetType().ReflectedType
Rein
|
|
|
|
|
I have been writing a simple client/server application which functions just fine without encryption. However, I need to add encryption to be compliannt with regulations.
I am using RijndaelManaged objects for encryption. Both sender and reciever have the same hard-coded legal Keys and IV's.
Once I have a TCP socket established, I set my Network Stream using tcpClient.GetStream().
I use one of the stream reader/writer classes (all of them fail so far). For example, I will send a sting using a BinaryWriter bWrite. Then I will look to receive some string using BinaryReader bRead.
On the Send Side:
RijndaelManaged crypt = new RijndaelManaged();
//Insert code to set Key and IV
NetworkStream netStream = tcpClient.GetStream();
CryptoStream coutStream = new CryptoStream(netStream,crypt.CreateEncryptor(Key,IV),CryptoStreamMode.Write);
BinaryWriter bWrite = new BinaryWriter(coutStream);
bWrite("Some Cool String");
bWrite.Flush();
coutStream.FlushFinalBlock();
CryptoStream cinStream = new CryptoStream(netStream,crypt.CreateDecryptor(Key,IV),CryptoStreamMode.Read);
BinaryReader bRead = new BinaryReader(cinStream);
String receivedString = bRead.ReadString();
tcpClient.Close();
On the Recieve Side:
RijndaelManaged crypt = new RijndaelManaged();
//Insert code to set Key and IV
NetworkStream netStream = tcpClient.GetStream();
CryptoStream cinStream = new CryptoStream(netStream,crypt.CreateDecryptor(Key,IV),CryptoStreamMode.Read);
BinaryReader bRead = new BinaryReader(cinStream);
String receivedString = bRead.ReadString();
CryptoStream coutStream = new CryptoStream(netStream,crypt.CreateEncryptor(Key,IV),CryptoStreamMode.Write);
BinaryWriter bWrite = new BinaryWriter(coutStream);
bWrite("Some Cool String");
bWrite.Flush();
coutStream.FlushFinalBlock();
tcpClient.Close();
PROBLEM:
If I simply send from one program and recieve on the other -- everything works fine. It is when I actually send/receive from both that the program hangs.
Any thoughts?
|
|
|
|
|
Hi All,
I wondered if anyone could make sense of this undocumented object (System.Runtime.Remoting.Proxies.__TransparentProxy) being returned from the static method call to System.Appdomain.CreateDomain(...).
Normally (in my simple single-assembly testing application), System.Appdomain.CreateDomain(...) returns the documented System.Appdomain that is expected.
When I stitch the code into my multi-project solution, however, the call returns a __TransparentProxy object that raises exception further on in code when I call a member on it (of what is supposed to be the System.Appdomain object). The exception demands that all sorts of classes (and their members!) be marked as serializable. I'm not interested in doing that for various reasons.
Any help is greatly appreciated.
Rein
|
|
|
|
|
Is it possible that the code that creates the AppDomain itself is running in an AppDomain different from the code calling it? Usually, you'll get Transparent Proxies and serialization problems only when you cross AppDomain boundaries.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Hi Senthil,
Thanks for responding, I'm at my wits end and appreciate a helping hand.
Yes it is very possible that I may be calling AppDomain in another domain (somehow). My solution is a multiproject solution and the startup project is not the same project that is calling System.AppDomain.CreateDomain(...).
I have tried (for testing purposes) to call System.AppDomain.CreateDomain(...) from the startup project (in the constructor of the startup form - right at the beginning) just to see if that was the problem but it still returned a __TransparentProxy and I was, consequently, stymied.
I could be mistaken, but I understood that with all the references to various projects load the modules into the root AppDomain. I may be completely wrong on that.
I'm not sure what to do next and am grateful for any suggestions - even a shot in the dark might prompt to think laterally about this problem.
Thanks again Senthil
Rein
|
|
|
|
|
Hi,
I know from a bitmap object I can get the height and width and pixel depth but to get the size of the actual object (in bytes) is there a property (or something else I can use)? Or do I just multiply the three properties above to get it?
I'm writing a VB.Net Winforms app that will be dealing with various types of JPG's from my client's image server and from the web and I need to know the size in memory (not of the file itself) of the bitmap once I've read the image into the Bitmap. Since some of the images are coming direct from the web we don't always have the file info which is why I'm trying to find it out from the image itself.
In C# I think I could just get the Length property of the object but I can't see how to get that in VB.Net for a Bitmap as the property is not available in intellisense. I also tried casting it to a normal Object but I still could't get the size/length so I'm a bit puzzled by this.
Any help or pointers would be appreciated... I'm sure I've overlooked something really basic!
Mike
|
|
|
|
|
I use visual studio .net to develope a website. I have run the project on my local machine and it works fine, and all the requiredvalidators and rangevalidators work correctly.
To upload the site to the remote server, which is actual host of the site, I compile .dll files and put both .dll and .aspx files onto the remote server and access the site from actual web url, all the validators do not work at all. For example, a form with several required fields can be submit even when all the fields is empty.... I have no idea what I missed.
Could anyone here help me out?
Thanks in advance.
|
|
|
|
|
A new Java-like framework has just been released by SwingC.com.
SwingC is a great UI framework that can be used in place of MFC, or any other GUI framework. It has a java-like syntax, and works flawlessly.
|
|
|
|
|
Cheating this site of advertising dollars just put your product on my black list.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Dave Kreskowiak wrote:
Cheating this site of advertising dollars just put your product on my black list.
Going to the website and looking at the quality of the site and the software toolkit put it on my blacklist.
John
|
|
|
|
|
I didn't want to give him the satisfaction of the click.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi guys =)
Just drag in a ListBox & copy/paste this piece of code & run.
<br />
for (int i=0; i<50; i++)<br />
{<br />
listBox1.Items.Add("");<br />
TextBox tx = new TextBox();<br />
tx.Location = new Point(0,i*20);<br />
listBox1.Controls.Add(tx);<br />
}<br />
Now scroll the listbox as fast as u can. Items disappear! That's on XP ofcourse.
Anyone can help?
-- modified at 8:55 Tuesday 11th October, 2005
|
|
|
|
|
your code has no problem... i think it's the version of the OS...
dude... we know all microsoft is good all the times.. but extremely bad sometimes (taking consediration of your copy.. is it trusted copy or not?)... so don't worry ... if you want to check out your program... run it in another machine, with another Version
Militiaware
|
|
|
|
|
Hi,
I'm trying to get a regex pattern that will match any URLs in some text but *not* email addresses:
Eg: Given the following text...
Visit us on the web under Career Opportunities www.site1.com or email your enquiry to mike@site1.com. To obtain a copy of our position description go to http://www.site2.com or http://site3.com
... I'd want to get the three URLs but *not* the domain of the email address... I've tried and tried with all sorts of regex patterns but can't get this working... can anyone help me out on this one?
Cheers, thanks in advance for any help... this will help me hit a big deadline (hopefully!)
Mike
|
|
|
|
|
Hi Mike,
IMO, you can simply classify the URLs in the text into two groups. For ones starting with http:// you can use the pattern:
http: and the pattern:
www.([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)? for others starting with www.
Now you can refine the two patterns to produce a better one that can be used for the two groups:
(http: The sample code looks something like:
private ArrayList ExtractUrls(string s)
{
string pattern = @"(http://|www.)([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?";
Regex r = new Regex(pattern, RegexOptions.Compiled);
MatchCollection matches = r.Matches(s);
ArrayList list = new ArrayList();
foreach(Match match in matches)
list.Add(match.Value);
return list;
}
|
|
|
|
|
Thanks so much for that... this is a project I'm working on in my spare time so will look at it a bit later today.
Cheers,
Mike
|
|
|
|
|
What is IIS?
If I start working on .NET environment then what is basic things about IIS should I know?
what are the basics of IIS?
|
|
|
|
|
IIS is Internet Information Services[^]. In other words, it's a web server.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
First of all you MUST install IIS before the installation of VS.NET
It is necessary for ASP.Net applications which you need a web server.
(1) You can install it from
Start -> Control Panel \ Add Remove Programs \Add Remove windows component
check IIS checkbox
(2) You can use IIS Manager from
Start -> Run \inetmgr.exe
It shows default Web site (C:\Inetpub\wwwroot)
if everything is okey your internet browser can show asp files.
(3) .Net creates and open a virtual directory for your web project under
C:\Inetpub\wwwroot
It is better to know how to create a virtual directory from IIS as a general knowledge (http://www.webwizguide.com/asp/tutorials/installing_iis_winXP_pro.asp)
P.S : If you install IIS after the installation of VS.NET, VS.NET doesn't recognise IIS. Help instructions and ISS diagnostic tools don't help much.
Because of this problem I have to use use VS .Net 2002 for web applications instead of 2003 which doesn't see IIS on the same machine.
|
|
|
|