|
All of the rendering capabilities in .NET are performed by GDI+ (1.0 at the moment). GDI+ 1.0 has zero support for hardware accelleration, from my understanding. I beleive that GDI+ 1.1 will have support for hardware accelleration (assuming your video card has the appropriate new drivers).
I, too, have noticed this nasty surprise. You can tweak the Graphics object to use lowest quality rendering, and you can use DrawImageUnscaled to try and speed things up a bit, but I don't think it will be an order of magnitude faster than it is currently, and it certainly wouldn't compare to real hardware accelleration of the blitting/stretching.
--
Russell Morris
"Have you gone mad Frink? Put down that science pole!"
|
|
|
|
|
hi,
does anyone know when the gdi+ v1.1 is shipped? even the dll-version for c++?
thx
michael
|
|
|
|
|
Hi all,
i've developed a c# windows application that envolves file I/O. Up to now all development has been on my own machine running win2k pro and i am logged in as an administrator. I recently tried running the code on another machine on which i installed the .net redistributable and as soon as the app tried to access the file system (i.e when opening a file dialog) it through an exception of the type System.Security.FileIOPermissions.
I've looked into it a bit and discovered how the clr assigns permissions to different assemblies at runtime etc.
What i'd like to know is, is there a way for me to configure my code so that it can always access the file system on other machines... i don't want the user to have to manually increase the trust level using the .net config tool as that would be very messy!!
any help is appreciated
Thanks
Paul
Paul Griffin
|
|
|
|
|
It seems that the .NET LicenseProvider does not work if the user is not allowed to modify the executing assembly, for instance, if the licensed control is consumed in an ASP.NET web application.
What are the possible workarounds?
|
|
|
|
|
In the .NET documentation Microsoft is recommending usage of SQL server .NET data provider for accessing MSSQL 7 and above.
Will any one please tell me what are the advantages of using .NET library over OLEDB?
Uday
|
|
|
|
|
Its recommened to use SQL Server .NET data provider because its made strictly for SQL Server and supports all its features. the OleDb.NET provider is a general provider and can be used for connectivity to any database Sql Server, Access, Oracel, etc...
Similarly you should use the Oracle.NET dataprovider for connecting to oracle.
There are finer points than what I've mentioned but that the bird's eye view.
|
|
|
|
|
... except the SQL Server .NET data provider doesn't support COMPUTE BY clauses ...
James.
|
|
|
|
|
I'm having a problem with a form that's supposed to be a topmost form, but it actually isn't. The form is created during the application startup by a method called on one of the main form's components. Here's what I do:
public class MyMainForm
{
CustomControl myControl; // Initialized during InitializeComponent()
public MyMainForm()
{
// Initialize Component then do other stuff
myControl.PerformCustomInit();
}
....
in class CustomControl:
public void PerformCustomInit()
{
TopMostForm newForm = new TopMostForm();
newForm.Topmost = true;
newForm.Show();
}
I hope the description is clear enough. Of course I omitted things that weren't necessary, the topmost form is created only under given conditions on the custom control. However it doesn't stay always on top, and I suspect this is due to the fact that it's created and the property is set in the constructor for the main application form. Anyone can confirm this and perhaps help me with a hint for a solution?
Thank you in advance!
|
|
|
|
|
Isn't there an event for when the form's z-order changes (or some such thing)? Maybe you can trap that and force it back.
Marc
Help! I'm an AI running around in someone's f*cked up universe simulator. Sensitivity and ethnic diversity means celebrating difference, not hiding from it. - Christian Graus Every line of code is a liability - Taka Muraoka Microsoft deliberately adds arbitrary layers of complexity to make it difficult to deliver Windows features on non-Windows platforms--Microsoft's "Halloween files"
|
|
|
|
|
Hello,
i have to get access to the system image list. In MFC i used the SHGetFileInfo-methode to get a handle to the system image list. I need it to display files and their corresponding icon in a listview. What methode can i use in .NET framework c++ ? Maybe someone can help me.
Best regards
tabor25
|
|
|
|
|
|
Hi!
I wanna to build a flow chart program in c#. It is like a simpler IDE. The canvas contains the block (rectangle or circle), link shape, some buttons and lists. If these buttons and lists can make use of the control in dotnet, it will save us a lot time to simulate out ourselves. In the program's design time, user can draw the block and link them, drop the control of dotnet into the block. Adjust its position, size , change its title, and maybe assign some script of vbscript or jscript to the event like button's click. In run time, all element can't be moved, only the event are responsed.
Do you think it possible in dotnet? Is there any example or link to study?
|
|
|
|
|
Take a look at the MSDN docs for System.ComponentModel.Design.
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma Gandhi
|
|
|
|
|
Hello all,
I have specified an RTF file as the license file, in the license agreement interface of my deploymnet project. But the license text does not show up during installation. What could be wrong ?
Thanks,
Smitha
You are never given a wish without also being given the power to make it true. You may have to work for it, however.
-- Richard Bach
|
|
|
|
|
Its been a while since I've played around with deployment projects, but I think the license file has to be included as a file that gets installed.
I've since dropped VS.NET's deployment projects and I'm now using NSIS[^] for any installs I need to make.
The scripting language takes some getting used to, but within a day of fiddling around I had the core of my installer done and just needed to tweak which files got included.
James
"I despise the city and much prefer being where a traffic jam means a line-up at McDonald's"
Me when telling a friend why I wouldn't want to live with him
|
|
|
|
|
Thanks James for the link. Its got wonderful featues, which I require. Why I chose .NET deployment wizard was that, I thought it is the only one which will detect for a framework installation. Else I had been using a very simple easy to use installer, for my previous project.
And also the uninstall process for the ones we make with .NET deployment wizard, will not delete the application folder. It deletes only those files which were created during installation So it retains the old settings or other such information we record during a previous install
Thanks
Smitha
You are never given a wish without also being given the power to make it true. You may have to work for it, however.
-- Richard Bach
|
|
|
|
|
Hi everyone,
I created a COM+ library appliation using ServicedComponent and a client both in C#. When I keep the client on a remote computer how do I tell it to create an object from the server machine running the COM+ application, without registering the COM+ Server Component dll on the client machine.
Thanks,
Adnan
|
|
|
|
|
Hmmm, not sure if you can. BTW, its not the DLL you are installing, but just the proxies to point to thr host machine/cluster for the components.
If the COM+ apps proxies are not registered on the client to point to the COM+ host, I would suspect that it could not take part in a transaction.
I think you could probably tackle this if you used .NET remoting, and have the remoting server component then call the COM+ object?
Hmmm tricky one. Would like to know how you solve it if you do.
"Je pense, donc je mange." - Rene Descartes 1689 - Just before his mother put his tea on the table.
Shameless Plug - Distributed Database Transactions in .NET using COM+
|
|
|
|
|
Hi Giles, I did it. I used .NET Remoting and its working just fine. Now I can change the entire engine code without breaking the client even when they're running
I created the a .NET based interface and derived a ServicedComponent class from it, registered that class with COM+ catalog. Then created a remoting server and hosted the Class using "RemotingConfiguration.RegisterWellKnownServiceType(...)".
Now all the client needs is the interface and it works fine till that does'nt change. It can create a remote object based on that interface and that's it.
|
|
|
|
|
|
I have a simple C# Windows Service which exposes some objects via remoting.
These objects are also registered for COM Interop. I have a test web ASP
page which creates the COM objects (which run remotely inside my service).
Every thing has been running fine until we started stress testing. The
service's memory increases until the box is on its knees whilst we run even
a light test. However, here the strange bit, if I change the service
process's start Main function to just sit and wait on a MessageBox.Show call
instead of running as a service the test still runs perfectly well but the
memory usage does not climb, it remains stable. Using perfmon viewing the
CLR Memory/#bytes in all heaps we see a nice zig-zag pattern of allocs
followed by garbage collection. When running as a service the perfmon graph
just increases ever upwards. It seems as though garbage collection doesnt
happen when remoting objects from a service? Any thoughts or similar
experience?
|
|
|
|
|
I had a similar problem. It turned out to be the Com object.
The GC tidies up whenever it likes unless you force it. I tried everything getting the handle of the com destroying implicitly, forcing GC nohing worked.
Once the com instance was created there was no way in hell to destroy it.
Funnily enough it wasn't even a custom com it was Microsoft's own!.
It looks exactly the same problem as you are having. Never did cure it.
Sorry could not help
He who laughs last thinks slowest.
|
|
|
|
|
We use System.Runtime.Marshal.Cantremembetthisbit.ReleaseComObject() which seems to clean up on the spot.
|
|
|
|
|
Hey guys sorry if this is a mind numbing question, but i am new to .net programming . I have begun to write a small little chat program that will 2 users to connect to each other and send text messages and files. I would like to display the ip address of the user in the window and i found this great article...
http://www.codeproject.com/csharp/network.asp
Unfortunatly I cant seem to access the DNS class. At the end of the article the author says to make sure you have the System.Net.dll file in your reference list, however after doing a search of my hard drive the file cannot be found (yes I have the framework installed).
Also could someone tell me the difference between "using namespace Whatever" and "using Whatever", Im familiar with namespaces, but not with just the plain ol using directive...
Thank you!
|
|
|
|
|
Ok, After searching around I found out that there is no System.Net.dll file as it is included in the System.dll file. However i still can not access the DNS class (in my projects dll). In my project I am using VB.net for creating the windows form and I am also using a dll written in managed c++. I am able to use the statement "Imports System.Net" in my VB code fine and i have access to the DNS class within ok, however i want access to it in my c++ dll and i am going crazy trying to figure it out.... here is a little sample of what i am trying...
<code>
#pragma once
#using <System.DLL> // This statment allows me to use...
// |
using namespace System; // \|/
using namespace System::Net; // this without getting compile errors however
// I still cant use the DNS class! help
// I need the C++ equivilent of VB's
// Imports System.Net
namespace SkillzLib
{
public __gc class NetConnect
{
private:
int portListen;
int portSend;
String* IPMe;
String* IPYou;
String* HostName;
public:
NetConnect();
void Connect();
void Disconnect();
void SetListen(int port) {portListen = port;}
void SetSend(int port) {portSend = port;}
void SetIPMe(String* address) {IPMe = address;}
void SetIPYou(String* address) {IPYou = address;}
int GetListen() {return portListen;}
int GetSend() {return portSend;}
String* GetIPMe() {return IPMe;}
String* GetIPYou() {return IPYou;}
};
}
</code>
|
|
|
|