|
As Dave said, products do exist but they are expensive, google for xenocode postbuild and you will have one such example.
|
|
|
|
|
Xenocode[^] will create an executable that doesn't need the framework to run. Your apps still delivered in MSIL and running .net code though, the needed parts of the framework and CSC.exe are embedded with your original app into the file you deliver. This results in a large 20-30mb executable even for small apps.
The RemoteSoft[^] linker and mini-deployment tool will convert your app into native code, so that there's no MSIL in your delivered files. The current version doesn't embed any of the native dlls from the framework that you use into the executable, so you have a series of folders with 20-30megs of them (possibly more). If you use XML serialization the automatically created IO classes will still be generated as managed code. I've played with this (and may be getting a copy for work); my big concern at the moment is that the author has been very poor about responding to email queries. If everything works more or less out of the box (it appears to at present) it shouldn't be an issue, but I'm worried about what if any major problems turn up.
VMware offers a similar product but it's ~$5k vs ~1k for the other two and AFAIK functions at the same level as xenocode.
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall
|
|
|
|
|
I am astounded that people ask this still. Yes, there's a /NOFRAMEWORK switch on the compiler, we just don't use it b/c we like to make people download the framework.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
In my case DLing the framework has had nothing to do with it. We made a app for X several years ago. X wants us to make a version of it for Y, but is freaking over the reverse engineering risks. This is a CheaperThanAC++Port option for us. (NTM my experiance with MFC and C++ more generally is limited to messing around as a student years ago so there'd be a major learning curve involved).
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall
|
|
|
|
|
So , if i compile with /NOFRAMEWORK in my machine and run that exe in another machine that doesn't have framework, will that exe run.
“You will never be a leader unless you first learn to follow and be led.”
–Tiorio
"Coming together is a beginning, staying together is progress, and working together is success." Henry Ford
|
|
|
|
|
Congratulations!
Your response has reached position 26 in a Google search for NOFRAMEWORK. A sterling effort.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
This /NOFRAMEWORK option is not available in csc.exe, i don't know y u have given me this suggestion.
“You will never be a leader unless you first learn to follow and be led.”
–Tiorio
"Coming together is a beginning, staying together is progress, and working together is success." Henry Ford
|
|
|
|
|
plz help me . i want to insert data from excel sheet in web form . this web form should automatically take data from execl sheet.
can u plz tell me the library and function i should use .
can this be possible or not.
thanks in advance
|
|
|
|
|
Have a look at this.[^]
hmmm pie
|
|
|
|
|
thz for the kind help. well it helped me in some way but i want that my web page keep on getting data from this excel sheet .
|
|
|
|
|
I wanna convert image to vector but not vector file (.ai) same image with same format I mean clean all shadow and thing like it or have clear image with only some clear shape like circle ... or like cutout filter in photoshop in other way Can we use photoshop filter in our program.
|
|
|
|
|
An image can not simple be a vector format. a vector image as you may know is more like a series of instructions that are executed to draw the image. as this is the case you need a specific program that understands these 'instructions' and can render the image appropraitely.
I think what you want to do is look at image processing techniques. Im sure it would'nt take much of your time to do a search, i bet all the photoshop filter algorithms are floating around the internet somewhere.
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Hi,
I've suddenly started getting an incomprehensible threading error message when I try to use the standard open-file dialog:
"Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it. This exception is only raised if a debugger is attached to the process."
But my Main method DOES have "[STAThread]" preceding it. The online help goes into extensive detail on the complexities of apartment models, but doesn't give me a clue what could be causing this exception. Any ideas? Thanks!
|
|
|
|
|
And is the code launching the dialog running on the UI thread?
|
|
|
|
|
Yes; there is only one thread, which is started by the Application.Run () method from Main ().
|
|
|
|
|
Hmm, what does the debugger show if you break into the GUI thread and type System.Threading.Thread.CurrentThread.ApartmentState at the Watch window?
COM apartment state can be set only once per thread, so if someone (VS?) sets the apartment to something else, the STAAttribute won't help.
|
|
|
|
|
As mentioned in the post below, I was able to make the problem go away by reverting to an earlier version. Thanks for the suggestion, though.
|
|
|
|
|
"Solved" the problem by reverting to an earlier version, before the bug appeared, then copying the changed source files over the earlier version to update. The problem disappeared. I'll probably never know what caused it.
|
|
|
|
|
I couldn't connect to a named instance of SQL 2005 the last few days from VS2005. I tried everything but failed ("Instance Failure"). Today, I simply changed the Data Provider from SQL Server to OLE DB and it worked.
Any idea how I can fix this problem. I have many applications which are using SQL Server as the provider and changing them is not an option--at least if there is another option.
CodingYoshi
Visual Basic is for basic people, C# is for sharp people. Farid Tarin '07
|
|
|
|
|
It was working and then just stopped? You really want to use the SqlServer data provider rather than that OLE DB thing provider when using SQL server if you can.
Sorry if I'm stating the obvious, but have you definitely got the connection string correct?
Regards,
Rob Philpott.
|
|
|
|
|
Yes, connection string is definitely correct because it used to work but after DBAs installed SQL Server, the applications stopped working.
CodingYoshi
Visual Basic is for basic people, C# is for sharp people. Farid Tarin '07
|
|
|
|
|
Have you checked all the appropriate protocols are open in the configuration manager?
Regards,
Rob Philpott.
|
|
|
|
|
Here you go:
Name:Order:Enabled
Shared Memory:1:Enabled
TCP/IP:2:Enabled
Named Pipes:3:Enabled
VIA::Disabled
Everything enabled except for VIA.
CodingYoshi
Visual Basic is for basic people, C# is for sharp people. Farid Tarin '07
|
|
|
|
|
I've run out of ideas then. The named instance hasn't changed?
Regards,
Rob Philpott.
|
|
|
|
|
No.
I don't understand why VS2005 can connect using OLE DB but not SQL as Data Provider. This is where the problem resides: If we can figure out why one works and the other does not.
CodingYoshi
Visual Basic is for basic people, C# is for sharp people. Farid Tarin '07
|
|
|
|