| Thread | Last Post | Replies |
|
| Passing struct of virtual functions | 17 Jul 2008 07:39 GMT | 1 |
I have a native win32 C++ DLL that has exported functions (I can't modify the win32 DLL). One of these exported functions needs a pointer to a structure. The structure contains virtual functions. I want to call the win32 function from C# and pass it a ref to a struct of ...
|
| make setup project smaller in size | 17 Jul 2008 07:20 GMT | 3 |
I have written a C# program and then make the setup project. I specify the prerequisite (.NET Framework 3.5) to be downloaded as the same location as my location. However, I find that my project built has almost 200MB because the folder DotNetFX35 occupies 194MB already.
|
| GDI+ print to file | 17 Jul 2008 04:30 GMT | 4 |
When I print to a file using C# print what format is the file written out in? I am debugging a print routine and don't want to do the actual print but would like to open the output file in something like Photoshop. What file extension should I use so that I can see the output.
|
| ternary operator and casting | 17 Jul 2008 03:08 GMT | 8 |
In the following code //add to bool or double Dictionary this.m_unit.Add((unittype == "b")? unitnum:(double)unitnum); The bool dictionary uses an integer index, the double uses a double
|
| Timer function doesn't listen to lock | 16 Jul 2008 23:42 GMT | 12 |
I have a Timer class set to trigger every second. The Tick function that is called every second uses a lock to prevent multiple ticks from executing the same code at the same time. The code within calls a Visual Basic input message box, which is synchronous, it waits until
|
| How do you synchronize closing a synchronized TextWriter? | 16 Jul 2008 23:38 GMT | 1 |
If I create a synchronized TextWriter with TextWriter.Synchronized(...), how do I make sure that all the writes are done before I Close()? Do I have to invent that synchronization mechanism myself? If I do that, then I'm going to have to be locking some sort of "streamIsOpen" ...
|
| Is there any way to get the monitor native resolution.? | 16 Jul 2008 23:02 GMT | 6 |
I need to get the the display monitor native resolution.I have tried SystemInformation.PrimaryMonitorSize. it is giving the exisiting resolution of the display monitor that is connected. Please help me out to find the way to get the native resolution of the
|
| adding Icons as a part of my project and use them | 16 Jul 2008 22:55 GMT | 2 |
In my application i'm using two different icons which being displayed in different occasions. how can i add this Icons to my project, so when i'll bring my exe file to another machine, the project will recognize these icons? and after doing it, how can i use them in my project?
|
| Winforms security | 16 Jul 2008 22:45 GMT | 5 |
Hi, I am working on a Windows form application (C#.Net 2.0) and have found out that it needs to be able to do the following: Have the application start in Administrative mode the first time it is run
|
| c# Timer -- .NET performance counters on this system are corrupt | 16 Jul 2008 22:41 GMT | 10 |
I made a program using the Timer class, and I start the timer with Timer.Start(), but don't stop it with Timer.Stop(), and I assumed this was ok, but, Process Explorer informs me, after running it about 10 or 20 times:
|
| Read only (folder) | 16 Jul 2008 22:07 GMT | 2 |
I am trying to run a code which has an access to some folder that contains files and folders,the strange thing is that this folder becomes read only ,I change it before running the debugging to no read only (it and all the things it contains) but it comes to be read only again
|
| set value of SqlDataSource parameter | 16 Jul 2008 21:16 GMT | 3 |
I'm using a SQLDataSource with name SqlDataSource1, the DeleteCommand has a parameter, with isdefined in SqlDataSource.DeleteParameter: DELETE FROM [testTable] WHERE [ID]=@ID The parameter is not bind to any control, cookie or something like this.
|
| How can i get the monitors maximum resolution.? | 16 Jul 2008 21:00 GMT | 1 |
SystemInformation.PrimaryMonitorSize. it is giving the current resolution that is set. I want maximum resolution that is available for a monitor -BMK
|
| polymorphic object "against the grain" of C# ? | 16 Jul 2008 18:58 GMT | 7 |
Consider a class that maintains two private instances of Generic Lists, one of type string, one of type int : class PolyClass {
|
| USB communications using StreamReader and StreamWriter | 16 Jul 2008 18:21 GMT | 3 |
I'm doing some USB communications in C# and am running into a minor annoyance. I'm using the Windows API CreateFile function to get a SafeFileHandle, which I then stuff into a FileStream and from there into StreamReader and StreamWriter objects. The StreamReader is
|