|
Thank you,
it seems to be the right way...
but I have the problem that _wordAPP derieved from Word.ApplicationClass() has no Hwnd. Do you know
where to get it ?
Thanks
Frank
|
|
|
|
|
Hi
How can i create an exe file written in C# which is not depends on the .Net Framework?
I want to run this program without any installation - a standalone exe.
I think that i'll get this goal using windows API programming but i'm not sure and i didn't find any good reference that teach me how to do this.
Am i right? do you have any idea how can i start doing it?
Thanks a lot
Mamtz
|
|
|
|
|
You can't. If you need a standalone executable you need to work in c++.
|
|
|
|
|
mamtz wrote:
How can i create an exe file written in C# which is not depends on the .Net Framework?
You can't. Period. End of story.
mamtz wrote:
I think that i'll get this goal using windows API programming
Not a chance. The .NET Framework comiles you code into machine code when it's executed, not when you compile it. When you compile your app, it's converted to processor-independant MSIL (MS Intermiediate Language) code. It's not actually runnable by any processor.
Also, the .NET Framework is required for compiling to processor specific code, memory management, object allocation and destruction, garbage collection, ..., the list oges on and on, ... and on some more, ... Just making calls into the Win32 API definately does not release you from requiring the .NET Framework.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Dave Kreskowiak wrote:
Just making calls into the Win32 API definately
Isn't the correct spelling definitely? A lot of people over here seem to use your spelling, I'm wondering which one is right.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Yeah, it's "definitely". I can type, not neccessarily accurately, faster than I can spell. I seem to make that same mistake alot, kind of like typing "hte" for "the".
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
An alternative that is available but not supported by Microsoft would be to use a .NET linker. Here are a couple...
Remotesoft Salamander[^]
Thinstall[^]
I have only played with the demo versions of these, but I have heard decent things about both (except for price).
Steve Maier, MCSD MCAD
|
|
|
|
|
Using the .NET Linker has it's advantages, but it also has a rather large downfall. If you try to install one of the .NET Framework service packs, it'll fail.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
To make a media player ,i need the "Interop.QuartzTypeLib.dll",
How can i get it?from where? for free? THANK YOU
yinhuiZhou
|
|
|
|
|
|
you can get it under C:\windows\System32.Include it in your porject as a reference and use the methods.there are lot of help you can get on internet.Just search with QuartzType.dll
|
|
|
|
|
Dear All,
I am developing a DLL to allow other program to import as a reference (something like creating an API). As we know, when other program declares a reference to my DLL, and starts using it, after typing the object name followed by a dot ("."), a list of properties and methods available from the DLL will appear. What I want to ask is, is it possible for me to add Intellisense features to my DLL, providing a quick info to the properties and methods that I have in the DLL, to the clients of my DLL? I have heard that this can only be achieved if I develop the DLL using C#, not VB.NET, is that true?
Thanks alot for ur help
|
|
|
|
|
ysuwardy wrote:
I have heard that this can only be achieved if I develop the DLL using C#, not VB.NET, is that true?
No, that's not true.
There are two things that you have to do. First you have to add documentation to your code, then you have to make Visual Studio create an xml documentation file from the comments.
In C# you use /// to create xml comments, in VB you use '''. Just type it on the line before the method, and Visual Studio gives you the start automatically.
I have described how to make Visual Studio create the xml documentation file before, in some of these boards. Search for it.
---
b { font-weight: normal; }
|
|
|
|
|
Thanks alot for the heads up
|
|
|
|
|
Hi Guffa,
I have written some documentation to my DLL, build it, seen the .xml counterpart of the DLL. But as I test it in another project, having imported the dll, copy the xml over to this project's bin folder (is this necessary?), I still only see the method signature from my DLL as the quick info, the extra description for the method, parameters, and return value are not displayed. Below is the snippet of my DLL source code:
///
/// InstanceCount property.
///
/// <value>The total number of the instances of CDemo.
public static long InstanceCount
{
get
{
return ClassInstanceCount;
}
}
///
/// Add two numbers together
///
/// <param name="a" />
/// First number.
///
/// <param name="b" />
/// Second number.
///
/// <returns>The total of two numbers
public int addNumber(int a, int b)
{
int c;
c = a + b;
return c;
}
Anything that I have missed over here?
Thanks for ur help
|
|
|
|
|
How do you "import" the dll? If you add the project to the solution, the dll file and xml file is automatically copied to the solutions bin folder.
Where did the xml go? The comments should look like this:
/// <summary>InstanceCount property.</summary>
/// <remarks>Gets the total number of instances of CDemo.</remarks>
public static long InstanceCount {
get {
return ClassInstanceCount;
}
}
/// <summary>Add two numbers together</summary>
/// <param name="a">First number.</param>
/// <param name="b">Second number.</param>
/// <returns>The total of two numbers</returns>
public int addNumber(int a, int b) {
int c;
c = a + b;
return c;
}
<small>---
b { font-weight: normal; }</small>
|
|
|
|
|
Hi Guffa,
I redid the dummy DLL project. Then import (right-click references from solution explorer) in a tester project, now I can see the explanation in intellisense.
Thanks alot for ur guidance
|
|
|
|
|
sorry, forgot to tick the "do not treat <'s as HTML tags".. here's another post.
Hi Guffa,
I have written some documentation to my DLL, build it, seen the .xml counterpart of the DLL. But as I test it in another project, having imported the dll, copy the xml over to this project's bin folder (is this necessary?), I still only see the method signature from my DLL as the quick info, the extra description for the method, parameters, and return value are not displayed. Below is the snippet of my DLL source code:
/// <summary>
/// InstanceCount property.
/// </summary>
/// <value>The total number of the instances of CDemo.</value>
public static long InstanceCount
{
get
{
return ClassInstanceCount;
}
}
/// <summary>
/// Add two numbers together
/// </summary>
/// <param name="a">
/// First number.
/// </param>
/// <param name="b">
/// Second number.
/// </param>
/// <returns>The total of two numbers</returns>
public int addNumber(int a, int b)
{
int c;
c = a + b;
return c;
}
Anything that I have missed over here?
Thanks for ur help
|
|
|
|
|
Hi
I have a program (buiusing windows API) that is running invisible and is being controled by shortcut keys. When a specific shortcut key is pressed i want to display a small image on top of the screen to inform the user that the operation succeeded or failed.
How do i display an image on top of the screen using windows API?
Thanks a lot
Mamtz
|
|
|
|
|
Of course, there are a thousand different ways to do this, but here is a very simple one: Just have a little hidden borderless window with a PictureBox having Dock property set to Fill; when you want to show the image, show the window, starting a timer that will stop itself and hide the window again after whatever interval you want.
Let stand for five minutes before serving. Season to taste. Enjoy.
Matt Gerrans
|
|
|
|
|
I forgot the name of an add-in I liked a lot.
It was drawing a vertical line between the brackets in my C# code. I believe it did refactoring too. Does anyone know what I'm talking about? I'd like to reinstall it.
Thanks!
Example:
if (0==1)
{
|
| Debug.WriteLine("Something is broken, Jimbo!");
|
}
|
|
|
|
|
|
|
|
Hi,
I would like to obtain the UITypeEditor for an object in C#. I looked at TypeDescriptor.GetEditor() but i'm not sure what it wants in the 'editorBaseType'. Does it want ' typeof(System.Drawing.Design.UITypeEditor)'? No matter what I do I always get 'null' returned.
Anyway, the reason I want to do this is I want to know the UITypeEditor used for a standard Boolean object so I can use it as the editor for my own custom boolean type. How can I find this?
Regards,
Shane
|
|
|
|