|
Good Day,
Why is it that when I distribute my DLL, the intellisense won't work?
I mean, this stuffs:
/// summary
///
/// /summary
/// <param name="input"></param>
/// <returns></returns>
Thanks!
It is said that the most complex structures built by mankind are software systems. This is not generally appreciated because most people cannot see them. Maybe that's a good thing because if we saw them as buildings, we'd deem many of them unsafe.
|
|
|
|
|
Are you distributing the XML file with it?
|
|
|
|
|
I'm sorry. What XML file?
It is said that the most complex structures built by mankind are software systems. This is not generally appreciated because most people cannot see them. Maybe that's a good thing because if we saw them as buildings, we'd deem many of them unsafe.
|
|
|
|
|
When you build your project, the compiler should be told to also generate an XML file, using your XML comments. If you distribute this file with your library, the comments are available in Intellisense.
|
|
|
|
|
Thanks for your reply.
How can I instruct Visual Studio to generate the XML file?
It is said that the most complex structures built by mankind are software systems. This is not generally appreciated because most people cannot see them. Maybe that's a good thing because if we saw them as buildings, we'd deem many of them unsafe.
|
|
|
|
|
I don't know off hand, I normally use the Help to find functions like this.
|
|
|
|
|
This can be set in the project properties screen, on the "Build" tab. You may have to scroll the screen down some, but there is a check box labeled "XML documentation file". You will need to check that box. Be aware that this is a "per-configuration" property, so you will need to enable it in both debug and release mode builds.
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines][ Articles][ Blog]
|
|
|
|
|
He shouldn't need to distribute a XML file. I don't know if it's because he doesn't know how to format his code blocks, or what, but notice that he's missing the <> around his summary tags.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
I think that is CP disallowing them because it thinks he might be doing something bad.
Regards,
Gareth.
(FKA gareth111)
|
|
|
|
|
I think I mentioned that possibility. Still, I've written numerous class libraries in C#, and I've never once specifically created a XML file. I know it's not looking for one because I typically copy just the DLL into a separate folder before using it. It might be a project setting, but there's no external file associated with intellisense.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Good Day Sir,
That is exactly what I'm doing. After building the Class Library, I copy the DLL file then I add a reference to that DLL file in a new project, but the intellisense no longer works.
Thanks!
It is said that the most complex structures built by mankind are software systems. This is not generally appreciated because most people cannot see them. Maybe that's a good thing because if we saw them as buildings, we'd deem many of them unsafe.
|
|
|
|
|
Just to clarify: you are actually putting some wording in the summary /summary section...?
cheers,
Chris Maunder
CodeProject.com : C++ MVP
|
|
|
|
|
yes sir, I did.
But it wont show up here even with the gt and lt signs.
It is said that the most complex structures built by mankind are software systems. This is not generally appreciated because most people cannot see them. Maybe that's a good thing because if we saw them as buildings, we'd deem many of them unsafe.
|
|
|
|
|
Can someone point me to some good material on designing an application to be Vista compatible? I've did a minor google search but haven't found anything of value.
"Make it as simple as possible, but no simpler" Issac Newton
|
|
|
|
|
|
Vista is a nightmare. The main thing tho, is to make sure you don't try to write to any files in the application directory. Your config files need to be in the users folder, not the app folder.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
So if i had my form open, and i click, the click will fall to the desktop, or other forms...
any easy way to do this?
|
|
|
|
|
Not a trivial way, no.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hmm so does the hard way involve wndproc in some fashion, or are we talking harder :P
|
|
|
|
|
You can actually call an API called WindowFromPoint. So, hide your window, call that API on the screen point you clicked, convert to a point relative to the window and send it a WM_CLICK message. And a WM_LBUTTONDOWN and WM_LBUTTONUP. FIddly, more than anything.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Ya no luck with WindowFromPoint (in vista) so far... Also how do i "hide" a form from WindowFromPoint but keep it visible?, i tried making it not enabled, and some ShowWindowAsync(shades.Handle, SW_HIDE) which definatally hides it from view, but i want it visible still...
Also i tried with one of those lowlevel-ish hooks to watch the mouse when it's off my form, and so far WindowFromPoint returns 0 regardless...
something that caught my eye though was:
private const int WM_NCHITTEST = 0x0084;
private const int HTTRANSPARENT = (-1);
protected override void WndProc(ref Message m)
{
if (m.Msg == WM_NCHITTEST)
{
m.Result = (IntPtr)HTTRANSPARENT;
}
else
{
base.WndProc(ref m);
}
}
but it doesn't work for other threads... else it'd be very good solution :P
|
|
|
|
|
Ok no idea why but now i'm seeing WindowFromPoint working now... i'll see now if i can get this to work.
|
|
|
|
|
Ok been through hell with this, and starting to show progress:
1. i made a new WindowFromPoint function that effectively finds the window underneath. to do this i had to use api:enumWindows... whichs gives a list of windows in the correct z-order, and just filter the results to visible windows that don't match my programs handle... then just check which rectangle the mouse is within and there you go... it works 100%
2. sendmessage to relay messages is no joke as it would appear... pain in the ass would best describe it... apparently something is blocking any messages from getting through! my guess = vista lol.
i tried using microsof spy to watch for any messages in a test program, and i placed my window above it... and spy showed no messages getting through...
that's not to say "some" messages don't get through... i did notice doubleclicking on the taskmanager through my form did infact do what double clicking would do to it... but nothing in way of rightclick, or highlights... and the code that sends these messages is same... basically catch alot of mouse messages in my wndproc, and send them to another window... so i'm not sure what to do next.
i need another way to send mouse messages :P
|
|
|
|
|
Did you use search? There are several articles at codeproject showing how to achieve it.
Giorgi Dalakishvili
#region signature
my articles
#endregion
|
|
|
|
|
Try searching for "hooks"
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|