|
1. Switch your Windows Explorer to detailed mode. It will explain what each ending means in the type column
2. You can leave away the bin and obj subfolders. Everything else should be contained.
3. Its a bit different in .Net. Unlike java .Net creates executable files (ending with .exe), which can be directly executed on machines having the framework installed.
4. Just copy everything you find in your build directory. This is normally (in C#) [ProjectDir]\bin\Debug or [ProjectDir]\bin\Release depening on the build mode.
|
|
|
|
|
hi robert,
Thank you for that.But I am not still clear with some more thing.For the third one you told that in .net it creates the exe file so if i transfer this exe to other machine then do I need to create the project again to execute it or can I run the exe with some utility.
I also have another dobut do I need to use visual Studio .net IDE to develop any of the .net project or can I do it in regular note pad and compile it.IF so how?
My next question is in the real market what do they do do they buid the IL code sell it.
I wold be glad if U can answer to my questions.
Thanking in advance.
Satish
|
|
|
|
|
satishrg wrote:
I also have another dobut do I need to use visual Studio .net IDE to develop any of the .net project or can I do it in regular note pad and compile it.IF so how?
.NET Framework itself contains C# compiler (cs.exe). So basicaly yes you can use notepad... But I recommend you to use IDE Not necessary VS, there are other IDEs, even for free.
satishrg wrote:
if i transfer this exe to other machine then do I need to create the project again to execute it or can I run the exe with some utility.
.NET runtime takes care of it. Only "utility" needed is .NET runtime.
satishrg wrote:
My next question is in the real market what do they do do they buid the IL code sell it.
There is a tool for generating native (machine) code from .NET assembliess. This way you however loose advantage of .NET framework - as a cross-platform. It's usual to sell .NET assemblies.. at least Smartdata does so.
David
Never forget: "Stay kul and happy" (I.A.)
David's thoughts / dnhsoftware.org / MyHTMLTidy
|
|
|
|
|
hi david,
Thank you for your reply.Then How can I run the exe file with this .net runtime utility.I am soory it maight be silly question but I am an .net starter.So can u guide me in executing the code because I downloaded some of the deomos from codeproject file.I am unable to run these it has the .net exe file in that.
Thanking you in advance
Satish
|
|
|
|
|
|
hi david,
I have .net Framework 1.0.If I need to execute any exe file in this then how do I do.
Is it for any project that we develop in .net it creates exe file.then what baout the web based projects.
Thanking you in advance
Satish
|
|
|
|
|
satishrg wrote:
I have .net Framework 1.0.If I need to execute any exe file in this then how do I do.
Nothing. Just double-click the exe. If it doesn't work, what error message does it show? (I think there can be problem that application requires v1.1)
satishrg wrote:
what baout the web based projects.
I assume you use IIS.. than you must tell it about ASP.NET..
ASP.NET IIS Registration Tool (Aspnet_regiis.exe)[^]
Then you must create virtual directory for webapp (with inetmgr.exe) and set permissions... how to do it is usualy written in article.
You said you can't run some demos from CP.. which ones?
David
Never forget: "Stay kul and happy" (I.A.)
David's thoughts / dnhsoftware.org / MyHTMLTidy
|
|
|
|
|
hi david,
I got the demo for the atricle that is posted on code projects main page
26 Mar 2005
(new) DataGrid with built-in filter functionality
Robert Rohde [unedited]
I downladed the demo file from that and it had the exe file in that I wanted to run the exe in that.
So kindly help me.
Satish
|
|
|
|
|
Hi,
first of all you really need the .Net framework version 1.1. Please check if you have it before any further tries. You should easily get it as its even available via windows update.
Then which link did you follow to download the exe? Its stated in the article that you need the Nortwind database. It is included in this zip. The other demo link wont function because the requred sample database is not included.
If it still doesnt function please include the error message in the next post.
|
|
|
|
|
I have a class that inherites from another class. I launch a WindowsForm within this class and I need to access a function of the base class within this WindowsForm. Any ideas how to do this?
This is what I use in basic:
class BaseClass{...}
...........
class MyClass : BaseClass
{
function open()
{
Form1 myForm = new Form1();
myForm.ShowDialog();
}
}
...........
class Form1
{
public Form1()
{
<< run BaseClass function here >>
}
}
|
|
|
|
|
Depends on the visibility of the method you want to invoke in the base class. If it is public than it could look like this:
class MyClass : BaseClass
{
function open()
{
Form1 myForm = new Form1();
myForm.ShowDialog(this);
}
}
...........
class Form1
{
public Form1(MyClass blubb)
{
blubb.SomeFunction();
}
}
If the method is protected than Form1 cannot call it directly. In this case MyClass will need a public wrapper method which delegates the call further to its base class.
|
|
|
|
|
I'd like to override function calls within an unmanaged application, redirecting them to my own, with the ability to callback the original function if applicable.
I can't find much help browsing boards and google, but I have found the odd (unmanaged) C++ library. These seem to launch the target executible while "injecting" a DLL into the process, which has memory access to change the machine instructions.
Any ideas, examples or advice would be welcome.
|
|
|
|
|
I have this library. What are you intending to do? You won't be able to inject a managed assembly into another app and have it work properly, but you could P/Invoke a "normal" dll into other apps from a managed application. It all depends on what the end result is going to be.
--
Joel Lucsy
|
|
|
|
|
The base application has a string hashtable add function that accepts three pointers as parameters, which is usually called as part of a special interpretted script system, the parameters are: Hashtable pointer (the scripts are non-OO), Name character array pointer, Value character array pointer.
I'd like to "override" this function and use it to issue special commands to an external data access layer which the script language has no support for, while allowing it to have normal functionality. ie.
addItem( table , "SQL:InsertProduct" , "'Compaq Monitor 18\"', $30, 2" );
I have isolated the jump call instruction that needs overriding, presumably it's simply a matter now of somehow changing that with my own instruction.
I need to know:
1) How to "inject" a native DLL into the base process (I'll research this P/Invoke)
2) How to replace function call for another (Perhaps out of the scope of this message board, I just know it has to involve yucky naked ASM.. :/ )
3) How to pass applicable (ie. "SQL:*") calls into my .NET application, perhaps passing a .NET delegate in via a C# extern DLL call.
In time I could probably discover the neccassary articles myself, the least I need is a feasibility check, and a warning of potential pitfalls.
Thanks for any help. I fear I have a lot of reading to do..
|
|
|
|
|
hi.
i have a program with access mdb database and i want to connect my database from pocket pc but when i change a record from each side it will show on each computer(pocket pc and desktop comp) . it could be very nice if someone have an example about it..
or i can chance my desktop database to sql server and pocket pc database to sql server ce but i still need to see changed records online..
thank you
|
|
|
|
|
I moved a c# project from one computer to the other, and when trying to debug gives me the error
"error while trying to run project. The project is not configured to be debugged".
meanwhile in my web.config i have
debug="true"
|
|
|
|
|
Right click startup project
Click Properties
Click Configuration Properties (folder on left)
Check out the debugging settings
|
|
|
|
|
i found the mistake. I didnt create an application name in IIS
|
|
|
|
|
I have been using Visual Studio 6.0 to develop Windows MFC (Via C++) programs, sometimes using ActiveX controls and 3rd party API's.
I have now started to use Visual Studio 7.1 which is .Net?
This is a general question:
Am I programming in .Net or just COM with ActiveX.
I dont see much difference between the two. Is this because I am not using much of the .Net framework?
Comments most welcome.
grahamfff
|
|
|
|
|
You have to add the correct headers, add namespaces, change some syntax and turn on some compiler switches in order to use C++ .NET. Otherwise your still compiling a fully native application.
|
|
|
|
|
I have a user control. I'm opening a Form within this control. I have a Form1 and I use this code to open it:
private void btnShowForm1_Click(object sender, System.EventArgs e)
{
Form1 f = new Form1();
f.Showdialog(this);
}
The problem is, I need to access this parent control properties such Top and Left values in the opened form window but I couldn't do it. I tried to use this.Parent, this.ParentForm, this.Owner and this.GetContainerControl().ActiveControl in the form but athey all gave me "Object reference not set to an instance of an object." error.
What should I do?
|
|
|
|
|
I've downloaded instrumentation widgets 3.0, and added its 'dll' file in references and components for my vb.net project.But the components appear in deactivated form in the tools-components-tab.how do i activate them so tht i can include thm in my form?
aditi_munje
|
|
|
|
|
What u one mean by application domain ?
Patel Neelesh A
|
|
|
|
|
Domain of application
.... From russia with love ....
|
|
|
|
|
Do you think this is funny?
You are having several questions in the forums here but are only making senseless answers to other posters.
|
|
|
|