|
Yes, of course. I've read about some apps that use Managed DirectX to do rendering; it's certainly possible, however you don't get the native look and feel of the standard Windows widgets.
I suggest looking into Managed DirectX or Tao OpenGl.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Conversation With a Muslim
Judah Himango
|
|
|
|
|
so when you say that i wouldn't get the native look and feel, does that mean the screen would blank out similiar to when running a video game?
|
|
|
|
|
No. I mean that, for instance, if you wanted a TreeView control, you'll have to write your own treeview control, because DirectX doesn't draw these for you, you'd have to draw them yourself. And if you're drawing them yourself, they probably won't look exactly like they do in standard Windows applications.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Conversation With a Muslim
Judah Himango
|
|
|
|
|
oh great....i'll def look into it, thanks
|
|
|
|
|
What are you actually trying to do that is causing refresh problems? Maybe, there's another work-around.
|
|
|
|
|
Basically i'm creating a program that analyzes waveforms. Each waveform can consist of around 200 data pts. There can be up to 8 waveforms displayed at once. The app allows the user to "scroll" through the signal to view a zoomed in portion of the waveform. So basically each signal has 3 views that get updated all at once, which causes a lot of processor usage since almost the entire screen gets redrawn. Right now i'm using 3 timers to update each of the views. Even with the delay in drawing, i'm almost maxing out on the processor. I've tried several different drawing techniques that include double buff and specific invalidating but no real luck. I would do the project in c++ but the time-frame i have is rather short so i decided to go with c#. If you have any suggestions on techniques please let me know.
thanks,
Brian
|
|
|
|
|
Just some FYI: If you are graphing a series of point as a continuous line make sure to use the DrawLines function and not DrawLine in a loop. I found a huge performance difference between the two when I was writing a graphing control. I don’t know if you are already doing this, but I thought I might mention it in case you’re not.
|
|
|
|
|
If you do want to use DirectX take a look at overlays. That will allow you to create an area within your window to draw your charts without giving up all of the other UI niceties of C# and GDI+.
My guess is that there isn’t anything here that you can’t do using GDI+. Here are a few things to check:
Are you redrawing the background of your graph each time? It’s likely that a large number of drawing commands are spent redrawing an unchanging background every time the graph is drawn. Try caching the background and Blit it to your graph area.
Are you using DrawLine or DrawLines? DrawLines is much faster.
Is it really the drawing that is slow? Have you looked at the code with a profiler to see which methods are taking the longest?
Regarding the double buffering, are you doing the buffering yourself in an off-screen object, or are you using the double buffer control style?
Also, what are the timers for?
|
|
|
|
|
Hy,
How can I detect the Office Version of a Windows Client. I need to know it, cause my Apllication had to be compatible with office 2000/XP/ And Ofiice 2003. I need it, to create the right Object, for each Version.
Can I do it directly in .NET with c#?? And how?
Help me please.
Ciao Giuseppe
|
|
|
|
|
this is just speculation but id think it was written in the registry, so all u need to do is find the key that is the correct one and read it
|
|
|
|
|
|
|
hi colin,
yes, you have right, i forgot this!
bye
mirso
|
|
|
|
|
I'd like to be able to report exceptions occuring in a thread to the main application, rather than having the thread silently terminate. Am I missing something obvious on how to do that, or does this involve coding something in the thread's catch block that notifies the application's main thread?
Thanks!
Marc
My website
Latest Articles:
Object Comparer
String Helpers
|
|
|
|
|
|
|
|
Judah Himango wrote:
Is the Application.ThreadException event what you're looking for?
Possibly. It says, though, "...when it receives a thread exception from a window procedure." I'll have to see if it works for non-window threads.
Marc
My website
Latest Articles:
Object Comparer
String Helpers
|
|
|
|
|
|
|
has anyone got postgres and odbc working? im trying the whole day...the code seem ok (no error reporting)..but i cant get or put any data to database. im runnig postgres on linux server. i tried from pgAdmin with same SQL command and working..mhh..any idea? (i have postgresql odbc clinet installed)
string pgConnectionString = "DRIVER={PostgreSQL};" +
"SERVER=192.168.1.100;" +
"DATABASE=test;" +
"UID=postgres;" +
"PASSWORD=postgres;";
OdbcConnection pgConn = new OdbcConnection(pgConnectionString);
try
{
pgConn.Open();
}
catch (OdbcException eee) { error-handing(eee) }
string SQL = "INSERT INTO data VALUES(default, '123', '1qwer', 'qwrwrw')";
OdbcDataAdapter myAdapter = new OdbcDataAdapter(SQL,pgConn);
pgConn.Close();
|
|
|
|
|
am building winform application, having two projects one is classLib and other is WinForm. My application was working fine. Its in sourcesafe. Suddenly today when i tried to debug my app with F5, it started giving me error.
Here's the content of output window when I hit F5 to debug my app:
'.NET': Loaded 'D:\WINDOWS\assembly\GAC_32\mscorlib\2.0.3600.0__b77a5c561934e089\mscorlib.dll', No symbols loaded.<br />
'.NET': Loaded 'D:\WINDOWS\assembly\GAC_MSIL\vshostutil\8.0.1200.0__b03f5f7f11d50a3a\vshostutil.dll', No symbols loaded.<br />
'.NET': Loaded 'D:\WINDOWS\assembly\GAC_MSIL\System.Windows.Forms\2.0.3600.0__b77a5c561934e089\System.Windows.Forms.dll', No symbols loaded.<br />
'.NET': Loaded 'D:\WINDOWS\assembly\GAC_MSIL\System\2.0.3600.0__b77a5c561934e089\System.dll', No symbols loaded.<br />
'.NET': Loaded 'D:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.3600.0__b03f5f7f11d50a3a\System.Drawing.dll', No symbols loaded.<br />
'.NET': Loaded 'D:\Documents and Settings\maulik\My Documents\Visual Studio\Projects\<$$Myproject$$>\bin\Debug\<$$Myproject$$>.vshost.exe', No symbols loaded.<br />
'.NET': Loaded 'D:\WINDOWS\assembly\GAC_32\System.Data\2.0.3600.0__b77a5c561934e089\System.Data.dll', No symbols loaded.<br />
'.NET': Loaded 'D:\WINDOWS\assembly\GAC_MSIL\System.Web\2.0.3600.0__b03f5f7f11d50a3a\System.Web.dll', No symbols loaded.<br />
'.NET': Loaded 'D:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.3600.0__b77a5c561934e089\System.Xml.dll', No symbols loaded.<br />
<br />
The thread '<No Name>' (0xd0c) has exited with code 0 (0x0).<br />
The thread 0x15bc has exited with code 0 (0x0).<br />
'.NET': Loaded 'D:\Documents and Settings\maulik\My Documents\Visual Studio\Projects\<$$Myproject$$>\bin\Debug\<$$Myproject$$>.dll', No symbols loaded.<br />
A first chance exception of type 'System.NullReferenceException' occurred in vshostutil.dll,<br />
When I hit F5(Debug-Active configuration) it opens property page with title - Disassembly showing native code in VS.NET IDE and pops up Nullreference exception unhandled...I have placed breakpoint in first line of Main() but its not stopping there, indicating "Breakpoints will not currently be not hit, No symbols have been loaded for this document."
Any help will greatly be appriciated.....
REgards,
MaulikCE.
|
|
|
|
|
I think I had this happen about a month ago. Try "Clean Solution" under the Build menu, then rebuild it.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks Dave,
No luck with Clean Solution, still getting NullReferenceException popup...Disassembly property page at address "VSHostUtil.HostProc.GetEntryPointAptThreadState"
Can you jus give a little strain to your brain to recall what you did to overcome the problem.
|
|
|
|
|