|
The speaker is fine, I like the speaker.
|
|
|
|
|
I am writing an application for a Microchip PIC microcontroller, and have built a set of wrapper functions so that I can run the same application in VB.net. This allows me to test and debug my code, including the user interface (the device has a keypad and LCD) without having to burn a chip with every revision. Unfortunately, I've not managed to satisfactorily emulate the behavior of the device's beeper.
The beeper is controlled by a separate microcontroller which accepts two types of commands:
-1- Play the specified list of notes or warbles immediately (aborting any current sound).
-2- Play the specified list of notes or warbles as soon as the current one is done (abort any previously-queued list, but don't affect the current list)
What would be the best way to emulate that behavior on the PC? I tried using a separate thread and console.beep, but the timing is all over the place.
|
|
|
|
|
I have been making server controls for a while now. Extending System.Web.UI…
And I can add a propertys and methods to my server controls. But I have always thought it would be nice to just be able to add it to the web control.
Something like
<asp:button id=”xxx” runat=”server” text=”text” ButtonBlink=”true”…
So all asp:button controls have the method ButtonBlink and if I have ButtonBlink set to true. The button would blink off and on.
I was told this could not be done in 2.0 but that you would be able to in 3.5.
Any ideas?
Thanks
Danny
|
|
|
|
|
You might be thinking of AJAX Extender controls.
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
You could do that with Control Extenders, in fact any attribute on an element will be rendered on to the base element. You can retrieve that value through the Attributes property.
|
|
|
|
|
Hi,
Is there a class i could use to be able to make a VPN connection using PPTP ?
I want to write a smal client application so that our home users could easely open a VPN connection to our network ...
Thx!
Vinny.
Vinny
|
|
|
|
|
I have the following code execute:
if (Directory.Exists(exportFolder))
{
Directory.Delete(exportFolder, true);
}
Directory.CreateDirectory(exportFolder);
and then a database update, and then:
wiz57.PerformExport();
Occassionally, about 1 in 20 tests I run in the IDE, PerformExport fails because exportFolder does not exist. How can it not exist if I create it and no exception is thrown? I can only suspect that the Directory code is not truly synchronous, and has not completed before PerformExport executes.
Semicolons: The number one seller of ostomy bags world wide. - dan neely
|
|
|
|
|
hi,
can anybody tell me how to acces smart tag using C#.NET in MS word 2003.
smart tag present under Tools--> Auto Correct Options-->Smart Tags in MS word 2003.
Regards:
Biswajit
biswajit nayak
|
|
|
|
|
biswajit nayak wrote: can anybody tell me how to acces smart tag using C#.NET in MS word 2003.
No. No one knows how to do that. And if anyone did it certainly would not be Microsoft and if they did they certainly would not document it.[^]
Good luck, you're going to need it.
led mike
|
|
|
|
|
hi mike,
I think you misunderstood my question.
I need to access the smarttag in MS word 2003 which is not there in the older version of MS word.
The link you send i worked on that but still it's not help full for me , From the last 5 days i am trying on this topic and searching in the net but till now i have not yet received the corerct solution.
So please help me.
biswajit nayak
|
|
|
|
|
Hi,
i am totally new to C#.NET, so please can any body tell me how to access the header and footer of a MS word document using C#.NET it's very urgent please help me.
Regards:
Biswajit
biswajit nayak
|
|
|
|
|
|
hi mike,
thank's to you.
ya i am new to .NET that means i don't know how to use the properties , i know every thing is present there ctrl+Spacebar but untill i am familiar with the usage of this thing it's tougher for me.
Again thank's to you ,
Now i got the solution how to access the header and footer but still it's not clear how to access the elements inside the header.
please help me.
Ex:
if inisde the header you insert created by , date , time etc..
Then my doubt is how to access the particular thing's that means how to access only date from the header.
biswajit nayak
|
|
|
|
|
How do I format a number so it only displays all available decimal places? I had a problem where the default formatting always wrote out four decimal places, even on whole numbers, e.g. 4 -> 4.0000, which I solved with the format string "0.####", but that rounds. Now I need to display the number 589.400000000001, which now renders as 589.4
In other words, I don't want rounding, but I don't want padding.
Semicolons: The number one seller of ostomy bags world wide. - dan neely
|
|
|
|
|
I can't say I've noticed the problem:
Console.WriteLine("{0}", 4.0);
Console.WriteLine("{0}", 589.400000000001); produces the expected:
4
589.400000000001 for me. Tested on both .NET 1.1 and 2.0 on Windows Vista.
The default is supposed to be the 'G' format.
DoEvents: Generating unexpected recursion since 1991
|
|
|
|
|
<br />
Console.WriteLine("{0}", 4.0000M);<br />
Console.WriteLine("{0}", 589.400000000001M);<br />
produces the following:
<br />
4.0000<br />
589.400000000001<br />
Semicolons: The number one seller of ostomy bags world wide. - dan neely
|
|
|
|
|
The Decimal data type preserves all decimal places. They are assumed to be significant so they are always displayed. You must call Round to round the number to a specific number of decimal places.
DoEvents: Generating unexpected recursion since 1991
|
|
|
|
|
Hi,
I'm using VB6 components referenced in VS 2005. Will VS 2008 support com components in the same way as VS 2005?
|
|
|
|
|
Yes, in exactly the same way.
DoEvents: Generating unexpected recursion since 1991
|
|
|
|
|
I have a pkcs12 file that contains two certificates. I'm using X509Certificate2 class like this:
X509Certificate2 cert = new X509Certificate2();
cert.Import(fileBytes, pwd, X509KeyStorageFlags.DefaultKeySet);
pkcs12 file is in byte array fileBytes.
The problem is that I can't define which one of the two certs to import.
Is there any way to import a specific certificate from the file?
Thanks in advance.
|
|
|
|
|
I've installed both .Net Framework v1.1 and v2.0 on my machine. Just wonder when I run a .Net Framework v1.1 application how does Windows XP know to launch .Net Framework v1.1 runtime for it, but not v2.0 runtime.
I'd like to know the mechanism behind this. Since Windows XP itself has no knowledge about .Net, I guess that when .Net gets installed, it must hook something to the OS. BTW, since Vista come with .Net Framework v3.0, does Vista works in a different way from XP or actually the same?
Thanks a lot.
|
|
|
|
|
|
Thanks so much
|
|
|
|
|
Through some fun in the binary. Let's actually use Windows 2000 as the example as Windows XP knows a bit more.
An executable contains an Import Address Table which the operating system loader fills in with the addresses of all DLLs that the executable references. It does this recursively with any DLLs that those DLLs depend on. Once it's finished doing this process, it then jumps to the Start Address that's listed in the executable's header.
.NET applications have their Start Address field set to the address in the Import Address Table that the instruction to call _CorExeMain in mscoree.dll points to. So the program effectively starts up in _CorExeMain.
mscoree.dll is one of the very few components of .NET that is shared between all versions. The version present is always from the newest version of .NET installed. It implements a pretty simple policy by default: if the application was built with .NET 1.1 and .NET 1.1 is installed, .NET 1.1 is used. Otherwise, .NET 2.0 is used. What mscoree.dll actually does is load mscorwks.dll from the specified version's folder and hand the program off to that.
You can override the policy by adding a configuration file (MyApp.exe.config, if the program is MyApp.exe) and setting the <supportedRuntime> element to say which version of .NET should be used. I've used this for an unmanaged program to control the version of .NET used for COM components.
Incidentally, ".NET 3.0" is just a set of new classes. The runtime, mscorwks.dll, is not updated after .NET 2.0 (except for .NET 2.0 SP1).
It gets even more complicated for 64-bit operating systems, which are .NET-aware. Here, if the executable is compiled with /platform:x64, it gets a PE 2.0+ header indicating that a 64-bit process is required, and the 32-bit OS will reject it. If compiled with /platform:x86, it gets an original PE header indicating a 32-bit process (and a flag is set in the CLR header). However, an executable compiled with /platform:anycpu is compiled with an original PE header but runs in a 64-bit process on 64-bit Windows. I think this can only be done by the CreateProcess code recognising that it is a .NET executable and choosing to create a 64-bit process rather than a 32-bit one.
DoEvents: Generating unexpected recursion since 1991
|
|
|
|
|
Thanks so much. I've got the rough idea, but is there any relevant materials on MSDN available?
|
|
|
|