|
Thank You very much for reply.
As you told, that means I can run my Service on other PC (without .NET framework) Right?? So , I do not have to worry about my service.Means I will have to make installation package for my service, right??
I want to know with my service exe what other .DLLs and other files I have to include??? Can you plz help up to this quetion because I am new at .Net Framework.
Thanks in Advance.
Ashish Bhatt,
System Developer,
Avinashi System Pvt. Ltd.
|
|
|
|
|
Hi all...i have a small problem...i have created a setup for my application..now i want that if application is running and we again click on exe..it should not open another application....Can any one help me.....thanks in advance
|
|
|
|
|
|
This[^] article might help. It's from this[^] book.
|
|
|
|
|
Pete O'Hanlon wrote: This[^] article might help. It's from this[^] book.
The drawback to that approach is that it requires creating an inherited application class for each application you want to single-instance, whereas the first method suggested above doesn't have that issue.
For most this probably isn't a problem; I had a large project with several executables though and found that to be an issue.
It has become appallingly obvious that our technology has exceeded our humanity. - Albert Einstein
|
|
|
|
|
Patrick Sears wrote: The drawback to that approach is that it requires creating an inherited application class for each application you want to single-instance, whereas the first method suggested above doesn't have that issue.
You're right of course, but as the OP only stated this was for one application then I didn't see this as an issue. BTW - with the judicious use of generics, you can get around the inherited application class problem. There are ways to do this without having too much fuss, it just requires a little bit of extra work in the design phase.
|
|
|
|
|
|
No. You might want to look around on amazon's developer site for a forum there.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Dear All.
When I publish an application, there are 2 root folders created something like
the first one
...\Apps\2.0\N2NJKNK\JHKJ7897KJ\appl..tion_ace7blkjnjn_0100.0000_534535 - where my app.exe file stored
and the second one
...\Apps\2.0\N2NJKNK\JHKJ7897KJ\appl..exe_ace7blkjnjn_0100.0000_768976 7 -
where my resource files stored (some.exe, data.sdf)
So to access to my resource (eg data.sdf) I have to do like that:
"..\\appl..exe_ace7blkjnjn_0100.0000_7689767\\data.sdf "
The question: is there any proper way to get to that "...\appl..exe_..." folder
modified on Friday, December 28, 2007 9:32:45 AM
|
|
|
|
|
The solution is to use Application.UserAppDataPath instead of Application.StartupPath
internal sealed partial class Settings {<br />
<br />
public Settings() {<br />
this.SettingsLoaded += new System.Configuration.SettingsLoadedEventHandler(Settings_SettingsLoaded);<br />
}<br />
<br />
void Settings_SettingsLoaded( object sender, System.Configuration.SettingsLoadedEventArgs e ) {<br />
String dataDirectory;<br />
if (( AppDomain.CurrentDomain.DomainManager != null ) && AppDomain.CurrentDomain.DomainManager.ToString().Contains("VSHost")) {<br />
dataDirectory = Application.StartupPath;<br />
}<br />
else {<br />
dataDirectory = <big>Application.UserAppDataPath</big>;<br />
}<br />
this["test1ConnectionString"] = Settings.Default.test1ConnectionString.Replace(".\\", dataDirectory + "\\");
}
Thanks to http://blogs.msdn.com/smartclientdata/archive/2005/07/15/439008.aspx[^]
|
|
|
|
|
I'm not familiar with crystal report. So I ask the stupid question.
I know we can use crystal report in Java. We can also use crystal report in .NET framework.
Question NO.1
So is crystal report a work of some company's?
Or crystal report is a protocol, an interface?
Question NO.2
Is there a crystal report for C++? (not managed C++)
It's very kind of you if you answer my question to clear my mind.
|
|
|
|
|
|
I'm sorry, why can't I open this web?
|
|
|
|
|
fantasy1215 wrote: is crystal report a work of some company's?
Yes. The people who created it
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
Hi all,
Can Any one suggest me how to Paint (Flicker Free Drawing)at forms Non Client area.
Thanx In Advance
Nagraj
modified on Friday, December 28, 2007 7:10:37 AM
|
|
|
|
|
Probably through some kind of double buffering on the area you want to paint.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi All,
Does anyone knows how to connect to multiple dynamic endpoints from a WCF Client?
I cant use svcutil.exe to generate proxy.cs because the
services are only exposed during runtime. I did some research on ChannelFactory, but dont seems to get what i want.
Any Help with be appreciated.
Thanks in advance.
|
|
|
|
|
Hello,
I am very exited about the new namespace in .NET 3.5, System.Net.PeerToPeer. Can someone please post some sample code (preferably in C#). I have never written a p2p application before.
|
|
|
|
|
|
Have you looked on msdn?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi all ,
I have a .Net Application that is going to be used in a workgroup environment , I installed the app on the server machine and the suftware runs successfully and connects to sql server with no problem , I also installed prerequisites such as .Net framework 2.0 on lient computer and shared the app folder which is located on server machine . on client machine , When I want to run the app from UNC FileShare I get fatal error that asks to send error to microsoft , but when I copy the entire folder from UNC FileShare to local client , the app connects to server successfully and user can work with software. What's is the problem in your opinion?
Note : I also made the shared folder FullControl and also adjusted Entire Zone in Microsoft .Net Framework 2.0 Configuration to FullTrust(On Server machine) , What causes this problem you think?
Thanks in advance (Emergency!)
|
|
|
|
|
It's called "Code Access Security". Any code running from a non-local (i.e.: Shared folder or other network source) is NOT trusted by default. You have to tell the .NET CLR to trust the code comming from a certain source.
Read this[^] post and follow the three links in it.
|
|
|
|
|
Thanks But ,
I had made entire zone(My Computer,Local Interanet , Untrusted sites,Internet , Trusted Sites) to FullTrust and also Code Access Security for All_Code of Enterprise,Machine and User Level to FullTrust before ,
Note : I don't get security exception , I receive the following error :
" myAppName has ecountered a problem and needs to close , sorry for inconvenience ....."
modified on Thursday, December 27, 2007 12:53:19 AM
|
|
|
|
|
Hi,
I just started playing around with the 3D functionalities in WPF and have a problem now:
I have a ViewPort3D to which I added a cube. To one side of this cube I have applied a material like this:
MeshGeometry3D plane = new MeshGeometry3D();
Point3DCollection points = new Point3DCollection();
points.Add(new Point3D(p1X, p1Y, p1Z));
points.Add(new Point3D(p2X, p2Y, p2Z));
points.Add(new Point3D(p3X, p3Y, p3Z));
points.Add(new Point3D(p4X, p4Y, p4Z));
plane.Positions = points;
Int32Collection indices = new Int32Collection();
indices.Add(0);
indices.Add(1);
indices.Add(2);
indices.Add(0);
indices.Add(2);
indices.Add(3);
plane.TriangleIndices = indices;
PointCollection texturePoints = new PointCollection();
texturePoints.Add(new Point(0, 0));
texturePoints.Add(new Point(0, 1));
texturePoints.Add(new Point(1, 1));
texturePoints.Add(new Point(1, 0));
plane.TextureCoordinates = texturePoints;
ImageBrush brush = new ImageBrush();
brush.ImageSource = new BitmapImage(new Uri(@"C:\test1.jpg"));
DiffuseMaterial material = new DiffuseMaterial(brush);
GeometryModel3D result = new GeometryModel3D(plane, material);
Everything work fine with "small" images. I have a supa dupa cube with a clear texture. But if I use images where the width or height has more than 2000 pixels than I see a weird tiled result on my cube. Has anyone here had any problems with large images in 3D WPF? Any hints are appreciated.
Robert
|
|
|
|
|
Hi,
how do I change the Registry-Key permissons from my own tool?
Under Vista the Key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing is owned by the trusted installer and so also Administrators only have read permissions. But I must write into the Key. So, how do I change the permissions for the admin group to full access?
Is there a function to do this?
thx
André
'A programmer is just a tool which converts caffeine into code'
|
|
|
|