-
- WindowsControlLibrary security problems
by Dave Fooks
- 6 Replies
- Last post
by Dave Fooks
- Hello, thank you for your help
Im programming a website in c# and I have made a WindowsControlLibrary that can read the clients files. The problem is that for this to work the security on IE has to be set to Full Trust, however by default the security is set to a low trust which my clients wont be allowed to change.
If I get the WindowsControlLibrary digitally signed what will actual
-
- C# .net wanted to be platform independet, but why there is no version for other operating systems?
by Sando
- 3 Replies
- Last post
by Zac Bowling
- (If wrong forum please move!) As far I got it C# and .net was designed to make it for developers more easy. It`s true C# is more easy then C++ imho. It was a target to make it platform independent too. It seams it shall be the follower of java without it`s disadvantage (slow...) which is platform independent. There are java versions for windows, linux, solaris. Solaris is from sun, but them don`t
-
- VS 2005 crashes when loading resx with icons
by psur
- 2 Replies
- Last post
by Baoping Zhang MSFT
- Hello! We used to develop our project in VS .NET 2003, but now we have migrated to the VS 2005. I have a problem with icons in resx file. When I'm editing this file IDE crashes (sometimes when loading file, sometimes when I want to see properties - it's non regular). What more, when we executed our program it also crashes when this icon should be displayed (also in non regular way).
I've ch
-
- User Settings binding to checkboxes problem...
by noaksey
- 2 Replies
- Last post
by noaksey
- Right I am completly stuck here...! I have an options dialog, and all the checkboxes are bound to the Application Settings using their checked property, so the settings are boolean. I have changed each checkbox's (there only 5) "Data Source Update Mode" to Never - this is to save each of the checkboxes settings when you click 'OK', instead of them writing to file each time you check one
-
- TIMER???
by James0886
- 5 Replies
- Last post
by ecko007
- I made a app that restarts a .EXE when it gets close:
Code Snippet
while (q != "yes") { Thread.Sleep(10000); if (restart1.HasExited) { restart1 = Process.Start("server1.exe"); } if (restart2.HasExited) { restart2 = Process.Start("server2.exe");
-
- Directory-Like data structure...
by Spyder.Snyper
- 3 Replies
- Last post
by Chris Eargle
- So I need a pointer or an idea here. I'm completely stumped and don't know where to start looking...
So here's the situation.
I have an app where the users would be able to manage some links. What kind of links Web links of course. But I would want some meta info tied to each link. Like if it was added by the user and other stuff that I can't think of off the top of my head.
-
- Reading File with COM Object
by Mannee
- 3 Replies
- Last post
by Peter Ritchie
- Hi! In my C++ application I use a COM Object (written in C#). When I try to call one of the methods (that tries to read settings from configuration file) I get a nasty error -0x7c812a5b (unfortunately it's hard to debug COM objects). My c# method looks as follows: public string ReadConfigValue() { System.Configuration.Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUs
-
- C# Project in Platform Builder 6.0
by MyKidsDad_62
- 4 Replies
- Last post
by MyKidsDad_62
- I have a C# application that I need to include in a WinCE 6.0 project using Platform Builder. I have tried 2 routes:
1. Create a "sources" file for the project. This has met with limited success. I can successfully compile the project, it gets built and included in the NK.BIN file and is present on the target device when I boot it up. The problem is that resources defnied in the *.res
-
- what is the advantages and disadvantages of static class?
by Vsbabu
- 1 Replies
- Last post
by TilakGopi
- what is the advantages and disadvantages of static class
-
- Generic type parameter constraint is not enforced correctly
by Escape
- 6 Replies
- Last post
by Escape
- or at least it doesn't seems...
Hello,
I'm working on a weird but really usefull design that allows to write static methods in generic type using the type parameter. The type parameter is then infered, so the FxCop team told me it was a design that could bypass the DoNotDeclareStaticMembersOnGene ricTypes rule.
To make it more understandable, here is a short code sample :
 
-
- Marshal a Structure? Please Help, already googled.
by cohowap
- 10 Replies
- Last post
by IsshouFuuraibou
- Hello,
I am in need of a little help and any advice would be nice. I have a structure mapped out in memory and am trying to use PtrToStructure to populate it's values, and I keep getting a "Attempted to read or write protected memory. This is often an indication that other memory is corrupt." error. Here is a sample of what I have. If anyone can help, I'd be greatfully thankful.
-
- Doing generic numeric conversion casts...
by Florian Storck
- 6 Replies
- Last post
by Florian Storck
- Hi, I thought of having a function which performs a numeric conversion ( which can fail or which produces loss of digits ) instead of writing:
Code Block
double d = 23.4;
int i = (int)d; My implementation of course doesn't works, because "as" only works with ReferenceTypes ( and as I suppose wouldn't do a numeric conversion.) and using the direct cast isn't possible in
-
- debuging multi thread application problem
by ashk1860
- 14 Replies
- Last post
by ashk1860
- hi
I have a windows application which have much intraction with the webservices. so I use backgroundworkers to make connection with webservices. I mostly handle DoWork and RunWorkerCompleted events to get the data in one and set in the other. and application is in debuging step now.
Just assume that the user loose the connection to internet when a backgroundworker is trying to connect to the
-
- Implementing a Stack
by Navdeep
- 5 Replies
- Last post
by Manju Sandhu
- Ok I have a basic data structure as queue and it expose two methods ¨C add and remove , I have to implement a stack, how can we do that Thanks.
-
- C#, IComparable interface
by recherche
- 5 Replies
- Last post
by Frank Boyne
- Hola!
I tried working on IComparable interface in the follwoing code snippet, it's working fine! But I don't get how the method 'public int CompareTo(object ob)' in Myclass returns 0
What is the value of v, or for that matter x I think x is assigned to v in the constructor, which isn't called perhaps to avoid compiler warning And x has its default value 0
But how the value of
-
- How to check Windows start-up time?
by Kiler
- 2 Replies
- Last post
by Eric Dahlvang
- Is any class, where I can get the system start-up time, or I have to use event logger
-
- Converting from Javascript to C#
by AmardeepAujla
- 1 Replies
- Last post
by Z.Y.S.
- Hi everyone, not sure if this should be in the General Visual C# forum.
I have been trying to find code to convert from British National Grid map coordinates on Latitude/Longitude coordinates, and have found some in JavaScript. However, when converting it to C#, I came accross one line that I couldn't figure out, as I know hardly any JavaScript. The line of code is:
var geo = { latitude:phip
-
- Intellisense Failure In VS.NET 2005 TS
by GNLuver
- 4 Replies
- Last post
by Vankayala
- This is the third time this has happened this year and usually a full re-install is required to get it functioning again. This particular time this will not even work.
Intellisense has completely stopped working in ALL project types (C#) inside of Visual Studio. All of the previous methods of fixing it have not worked. Here is what has been tried already:
Deleted all of the obj and bin d
-
- Threads --> How to restart a thread ??
by PlaTyPuS8
- 4 Replies
- Last post
by PlaTyPuS8
- Hi ! In my application, I call a thread that launch a synchronization process (that can take X times...depends on user datas) when the user click on a button. The problem is that the user can only synchronize (launching the thread) 1 time..... it's not very practical ... I have the following code :
Code Snippet
private Thread _t;
private void initializeThread() { if (_t == null)
-
- Starting an external program, and make it appear within application.
by gixen
- 6 Replies
- Last post
by gixen
- Hi.
I want to be able to start an external program (This is no problem), but I want to have it appear within my program.
Is this even possible
-
- Copy by reference, is it possible?
by Talyrond
- 6 Replies
- Last post
by Ernst Kuschke
- Hi, I am implementing an undo redo system. To illustrate my problem I include sample code:
using System;
namespace ConsoleApplication1
{
internal class Program
{
private static void Main( string [] args)
{
Person john = new Person ( "John" );
Person betty = new Person ( "Betty" );
Method1( ref john);
Method
-
- how to remove added .DLL files
by ugp
- 3 Replies
- Last post
by ugp
- I added . dll file to the project. (to add a speperate toolbox to the Visual Studio)
it works fine.
Added like this;
Right click on the ToolBox -> Choose Items... -> .NET Framework Component tab -> then Browse to the available .DLL file.
it woks;
Now i wants to remove this added DLL file. how can i remove this DLL file. (So that the toolbox also needs to remove.)
In
-
- [URGENT] Distance between two postcodes
by sroughley
- 5 Replies
- Last post
by ShellShock
- Hi all,
We have a kind of urgent issue here. We are about to commence development on an application that is to perform calculations based on the distance by road between two postcodes. We were going to use a certain web service provider for this but they have come back saying that they do not support the volume of queries that our application is going to make (potentially 40000 per month).
M
-
- Where Do I Put Global Variables?
by bobber205
- 10 Replies
- Last post
by OmegaMan
- Where do I put data that I want to be globally accessible in my code I read a thread about creating a class that contains all of this and passing it around, but I do not know where to put the instatiation of that class.
-
- Issue with ConsoleTraceListener and Web projects
by Espen Berglund
- 4 Replies
- Last post
by Espen Berglund
- I'm writing a log system based on MS Enterprise Library logging solution, and I' trying to make use of the built in ConsoleTraceListener in .Net. Now, it basically works in windows environment, but doesn't work in a web environment. From what I understand this is because Cassini (the built in debug web server is VS2005) doesn't have a console you really can write to. That's all fair, but I really