|
For your first issue, change the float (7 digits) to double (15-16 digits). Next for your formatting issue, you can insert with the .ToString("formatting string")
Review this at: http://msdn2.microsoft.com/en-us/library/dwhawy9k(vs.71).aspx
Tim Heney
Meridian ID
theney@clearwire.net
|
|
|
|
|
Hi there! Help me, How to do insert an Equation Editor Object in to my Database? and how to show it on UIs?
|
|
|
|
|
What do you want to store in your database ? It sounds like a UI object, not a DB object.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I want insert an Equation from "Equation Editor" of Microsoft Word into richtextBox. Then store content of that richtextBox in my Database.
Or if you have other ways bester, please teach me.thanks
(My english not good....;P)
|
|
|
|
|
Currently I am impersonating the web client by passing their default credentials in my C# code. I can do this by setting my web.config file to impersonate and IIS to Integrated Windows Authentication. BUT, (there's always a "but") some methods require the use of the Anonymous setting in IIS because they are using SYSTEM to perform other functions. Is there any way for me to use Anonymous authentication but also force Integrated Windows Authentication when I want without creating a second webservice?
Thanks,
Mike S.
|
|
|
|
|
Hope the Blog by ScottGu's [^] will help you.
Regards,
Satips.
|
|
|
|
|
You rock Satips! What was in the blog didn't help but it got me going in the correct direction. I found something in one of the replies that spoke about making changes to the web.config file. Upon further investigation I determined that I could force it to deny anonymous access to specific files and folders. It resulted in me adding the <location> element to my web.config file. I can specify that one page relatively so that it will not interfere with current installation procedures. My source came from http://support.microsoft.com/kb/316871. Hopefully this can help others with a similar issue:
<?xml version="1.0" standalone="yes"?>
<configuration>
<system.web>
<authentication mode="Windows" />
</system.web>
<location path="login.asmx">
<system.web>
<identity impersonate="true" />
<authorization>
<deny users ="?" />
</authorization>
</system.web>
</location>
</configuration>
|
|
|
|
|
hi
how to add a combo box (dropdownlist style) to a datagridview Cell?
thanks...hoping for your reply....
regards
jing
|
|
|
|
|
Hope the Article by René Paw Christensen Here[^] in CP will Help you.
Regards,
Satips.
|
|
|
|
|
Hello,
I am using the Managed DirectX implementation. to record and play wmv files.
I want to be able to record and view the real time video in one panel then be able to use another panel to seek back and view the history of the real time video.
I am able to do this no problem if I stop recording first, but not while recording. The file is not seekable if recording.
How would I go about doing this effectively. Or is there another solution that I should be looking at to accomplish this.
Thanks
|
|
|
|
|
There is no way you can hope to have your hard drive writing video as it captures, and at the same time ask it to read back and show a previous portion of the same file. The file is locked for writing, for a start, but there are real performance problems with what you hope to do.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: there are real performance problems with what you hope to do.
I dont really think so: a modern hard disk easily moves around over 100 MB/s;
it has a cache and typically is able to read/write entire tracks at once,
so having one writing stream and one reading stream simultaneously should pose
no problem; furthermore it is what a typical DVD-annex-harddisk recorder does
in "time slip" mode: recording a program while playing same program (or another one)
with a user-selectable delay.
So apart from the file being locked, if a Windows system cant cope, I would not blame
the hardware.
Regards,
|
|
|
|
|
I am doing some video capture work at the moment - AMD processor, dual core, 200 MB HDD, mostly empty, good video card. Trying to capture to WMV, or any compressed AVI, results in choppy video to the point of being unwatchable ( but it captures fine on a notebook ).
So, my mindset at the moment is that there can be issues that are hardware related, although I see you're right about the whole time slip thing.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I guess the problem is getting Windows to do the
necessary things on time every time, which is not easy
(if at all possible) on an OS that does not intend to be real-time.
|
|
|
|
|
Thanks for the input, but do you have a recommendation on what the best way of accomplishing this task?
I am trying to create a video surveillance type program where I am recording actions of a customer, but then be able to rewind to see a specific incident while continuing recording.
I am able to copy the currently recorded video file, but it doesn't contain any indexes.
I am new to directx and never used the sdk before. So maybe I missing some fundamental info on how to use it the best way.
Thanks
|
|
|
|
|
Hi,
I havent done this with DirectX (or any other way on a Windows system).
If DirectX has the file open for write, another process or thread wont be able to read
it; also you said indexes are not available until the file gets closed.
So my best guess is you should record for a limited time (say 5 minutes), stop
recording (closing the file), start a new recording (in another file!), and
maintain some kind of super-index (with apropriate file names that include starting
time, the directory itself could serve that purpose).
In doing so you can watch everything except for the last 0 to 5 minutes while still
recording almost continuously. The drawback is your app produces not one but many
files.
Hope this helps.
|
|
|
|
|
Hi,
I have a Typed DataTable created by the DataSet Designer with a Primary Key (let's say ID). I've setup SQL Server to set the ID field to auto insert if no value is supplied.
The problem is that the DataTable has set the IDColumn.Unique = True and the IDColumn.AllowDBNull = False, so when i insert new rows into the DataTable, the DataTable will assign unique keys to the ID column but the assigned id might already be in the database, so when i update the DataTable it fails.
When i try to set the Unique Property of the ID field to false (so i can set all ID fields to NULL and the db will fill them) Visual Studio will complain that its a primary key field which needs to be unique.
So basically i want to be able to insert into a DataTable 1000 new rows and the db should assign their PrimaryKey and not the DataTable.
Thanks in advanced
|
|
|
|
|
Say I implement a struct, is a .dispose method required for the memory to be cleared, or the .dispose used in specific circumstances?
Jon
|
|
|
|
|
No, it's not. Structures are value types.
Dispose is called on objects that allocated resource, unmanaged or managed, that need to be freed before the object is destroyed. Basically, you call Dispose on any object that implements it when you're done with it.
|
|
|
|
|
The IDisposable interface is used when an object uses unmanaged resources, that needs to be freed before the object is collected.
If you have a structure that would need to implement IDisposable, it should definitely not be a structure.
---
single minded; short sighted; long gone;
|
|
|
|
|
Why am I getting this error? Is the installation corrupted or something?
I couldn't find System.Drawing within the object browser either...
Code:
using System;
using System.Drawing;
namespace Wrox.ProCSharp.StaticConstructorSample
{
public class UserPreferences
{
public static readonly Color BackColor;
static UserPreferences()
{
DateTime now = DateTime.Now;
if (now.DayOfWeek == DayOfWeek.Saturday
|| now.DayOfWeek == DayOfWeek.Sunday)
BackColor = Color.Green;
else
BackColor = Color.Red;
}
private UserPreferences()
{
}
}
}
VS Studio 2003
Error:
C:\Documents and Settings\Jon\My Documents\Visual Studio Projects\TestConsole\startUp.cs(8): The type or namespace name 'Color' could not be found (are you missing a using directive or an assembly reference?)
Jon
|
|
|
|
|
jon_80 wrote: (are you missing a using directive or an assembly reference?)
Exactly what the error says. You're haven't added a reference to the System.Drawing.dll.
Just go to the Project menu, then Add Reference... You should be able to figure it out from there.
|
|
|
|
|
Hello everybody.
Imagine we have a two-dimensional array c[n][m] with ints. How can we make an image in which pixel at place (i,j) has color c[n][m]? The only way I can suggest is to create Bitmap and then use it's method SetPixel, but it works too slowly! Can someone suggest something faster? Thanks
|
|
|
|
|
|
Does any know of a way in C# to contact a web server and get the public SSL certificate information? I know all of this is handled by web service calls over https but I need the certificate to do some offline processing outside of webservices.
Any help would be greatly appreciated.
~Nick
Forever Developing
|
|
|
|