|
so am i missing anything or is GDI+ ... REALLY soooo slow?
GDI+ is not hardware accelerated so you would get roughly the same performance regardless of whether you were using C# or C++
is there ANY other way than porting the whole code to use imported GDI32 APIs ?
Not if you want it as fast as possible
"I think I speak on behalf of everyone here when I say huh?" - Buffy
|
|
|
|
|
Off-topic
you know what's funny....
You just broke the .NET EULA for benchmarking!
the EULA is unfair, rediculous, and conflicts with your right of free speech. Then they complain in the courts when people break it, the F***ing bastards
sorry i had no other place to rant about them!
|
|
|
|
|
you know what's funny, too?
i don't give a f*** !
i did not benchmark anything, just measured execution time of my program (and just accidentally i did this before and also just accidentally remembered the results...)
i totally agree with u about the EULA. but for what reason do they permitt benchmarking if not because they spend thousands of man-hours in designing a new cool "professional" developement plattform and afterwards just realized "damn! it's way too slow!" ?
(or is it even possible that...
well consider who are the ppl that benefit from users requireing more RAM, faster CPUs, larger HDs, ... cause the programs are eating up any resources? is it possible that these ppl are M$'s buddies and ... ??? )
|
|
|
|
|
Can anyone out there please tell me the name of the method call that
searches a file for a specific text I know that such a method do exist in .NET
because I have used it 3 years ago now I am looking for it and cannot seem
to find the method call I would appreciate it very much and would provide the
person that can give me the name with a dynamic configuration loader that can
load any object from that app.config file
|
|
|
|
|
with xml files , you can call SelectNodes or SelectSingleNode to find the node contains special text.
|
|
|
|
|
Thanx for you reply but unfortunatly I am looking for a solution Method call that can find text in a .pdf,.doc,.ppt exc. files the solution you gave me
is a basic xml file processing Method call, and that would mean that I would need to convert the file first to xml and then search the text, that is to slow and that is not the method I am looking for but thanx very much for your reply but I am looking for something much more dynamic
|
|
|
|
|
There is no such method call in the .NET Framework. Since the Framework doesn't have any classes that can handle .PDF's, .DOC's, .PPT's, ... there is no function to search them. Either you have to write the code to open, parse, and search these files yourself, or you have to get a component or library that exposes this functionality.
I guarantee you that the functionality you're looking for isn't native to the .NET Framework.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Is there a way using .NET C++ to simulate a key being "un-pressed"? Basically, I am making a video game, and when a key is pressed (say the right arrow) and then the press the space bar to jump, while still holding the right arrow, the space bar key will be read, but the right arrow key wont be, even though its still being pressed. Is there a way to get around this? Thank you.
Mike
|
|
|
|
|
You could use "KeyDown" and "KeyUp" respectively.
Treat every key pressed (KeyDown event) as active until you receive a KeyUp event.
You would only need to do so for a few selected keys (plus mouse buttons) and not for any key that does something special (thought you might want to stick with KeyDown there as well).
Cheers,
Sebastian
--
Contra vim mortem non est medicamen in hortem.
|
|
|
|
|
Thank you very much, that solution works. I actually had another question. I wanted to be able to call a function multiple times during the existance of the program. I thought about using a clock, however if a key is pressed, the clock is interrupted. Is there anyway, using Threading, or Threading::Timers or some other method, to call a function. Basically, I want to be able to have my character jump, and I don't know how to do something like while(in_the_air){ make character fall }.
|
|
|
|
|
Well, if you have a 2D-Game, its quite "easy": simply have a rectangle around your players legs and if the bottom is adjacent to the ground he does not fall. Otherwise simply accelerate him downwards. Or move the scenery upwards
Another approach would be to have a black/white representation of your level. White would be "empty" and Black would be "filled with scenery". >You would then define some "key points" of your player character. If one of those points
touches "black", you have a collision with the scenery.
Cheers
Sebastian
Cheers,
Sebastian
--
Contra vim mortem non est medicamen in hortem.
|
|
|
|
|
I am a student with a project which rquires great help. My project is on generating series of numbers/letters at random and performinmg the following operations or programming on them.
a) The pin numbers will expire after two or three usage or log on times
b) Users of the Pin numbers will be able to check the status (log) of the pin numbers
c) The pin numbers will only be used to access a particular webpage or database which will be predefined or stated.
d) The pin numbers will have a particular value say $0.0001
e) The programms or coding should be flexible and room for editing
f) Please I have to pass my exmas help me, I am a newbie in programming
Thanks
Thanks a Million
|
|
|
|
|
|
try by urself! u will get answer. if not then replay again.
bye
|
|
|
|
|
did you expect to say that to me, or to the guy who asked the question first ?
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
You forgot to say in what area you would need help. Structuring the project? Choosing data storage? Choosing programming language? Choosing application environment? Developing? Testing? Teach you programming?
---
b { font-weight: normal; }
|
|
|
|
|
hello my Article updated by myself if wants to benefit search for author Ahmad or search for xml guest book
Ahmed Erarslan
MCAD,MCDBA,MCP
MCSD.NET
|
|
|
|
|
I am trying to discover if there is any support for IrDA with the Framework.
I am currently using .NET Framework 1.1 (Ver 1.1.4322 SP1). I am developing
using C# under Visual Studio 2003.
I belive that there is support for IrDA in the Compact Framework - I am not
using the Compact Framework.
I tried to use System.Net.Sockets namespace. But when I try to use the code
private IrDAListener irListen;
private IrDAClient irClient;
private IrDAEndPoint irEndP;
The compiler error is:-
...\Form1.cs(21): The type or namespace name 'IrDAListener' could not be
found (are you missing a using directive or an assembly reference?)
The help page for IrDAListener suggests that it is available in .NET Ver 1.1
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemnetsocketsirdalistenerclasstopic.asp
> Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.
> Places a socket in a listening state to monitor connections from a specified service or network address.
>
> For a list of all members of this type, see IrDAListener Members.
>
> System.Object
> System.Net.Sockets.IrDAListener
>
> [Visual Basic]
> Public Class IrDAListener
>
Can anyone provide information on how to use the IrDA capability?
Thanks
|
|
|
|
|
Hello,
How can I get font filename from System.Drawing.Font object ?
regards
Pawel
|
|
|
|
|
|
PS This might not be what you are really looking for and there might be a much
better way but this would be a quick solution to implement
Use the Name property to find the name of the font
When program starts calculate a list of all the font files on your pc storing
them in a hashtable with the key equal to the Name of the font file and the
value equal to string [] of the fullPath to the font file thus means if the font has the same name but are located in two diferent locations on the drive then the value of the font name would be like c:\fontname,d:\windows\font\fontname then I would use the Name property of Font as Key index into the HashTable to find all the font files locations of that font Name
or
Use System.IO.Directory to work out the logical drives defined on PC
Calculate whitch drive contains my windows folder by searching all folders from root for a typical windows file.Then I would have calculated the and located the windows dir then
I would call System.Directory.GetFiles(string dirname,string searchPattern)
with dirname the String.Format("{0}{1}{2}",drive,windowsdir,fontdir) and then
in searchPattern the Name property of the font
|
|
|
|
|
Or try and see if you can find the private properties of the font class
using Reflection and see then if you can locate the filename of the specific font instance I know that you can find private properties and instance variables of a class by using reflection I just not have the time right now do dig into it for you but I hope that this advice can assist you in some way
|
|
|
|
|
I have a TreeView control with tooltips on the nodes.
When the mouse moves over the nodes the tooltips appear and disappear.
The problem is that sometimes the entire Windows desktop redraws including the desktop icons and all other windows! Doesn't do it unless the mouse moves causing the tooltips to be displayed.
Any idea how to stop this happening or why it is happening?
|
|
|
|
|
Hi there,
I have a question. We all hear about mobile programming ( I am talking about ordinary mobile programming, not smart phones) using C++, Python on Symbian OS. I wanna ask if someone (like me) who is good in .NET languages can program for mobiles using C#, VB.NET ?
Microsoft's compact framework is very good but is meant for smartphones only, what options a .NET programmer have if he/she want to ordinary mobile phones.
Not everything that can be counted counts and not everything that counts can be counted - Einstein
|
|
|
|
|
Well I would suggest go J2ME but it is not just coding and loading
it onto the phone the coding part is easy but getting the code running
on the phone is the bad part just some advice before you start just do good
reshearch on what you want to do and if the phone supports the features that
you want to used as well as get the right development package for the phone that you which to write the application for I have written a complete app that
works 100% in the simulator but as soon as I want to deploy I got stuck
|
|
|
|