|
Well, you can only cast it if it was an instance of the derived class to start with. That stands to reason.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi,
how can I get size of a structure? There is sizeof too, but it doesn't work.
Thanks.
|
|
|
|
|
How is sizeof not working?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
daavena wrote: but it doesn't work.
That is vague. You have to tell us in what respect does it not work. Does it cause a compiler error? Does it cause an exception? Do you disagree with the result? What?
|
|
|
|
|
Hello All,
If I add certain Shapes (e.g. Polylines) to a WPF Grid (placed inside a WPF window), would they be rendered with hardware acceleration?
|
|
|
|
|
I know that you can actually write code that tells you if hardware acceleration is being used. I believe the answer is 'yes, if you have a good enough graphics card'
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
You can use the "rendering tier" to get a feeling for the caps of the videocard:
<br />
int tier = (System.Media.Rendercapability.Tier >> 16);<br />
0 is bad - only software emulation
1 is ok - the card supports partial accel (DirectX 7 - DirectX 8)
2 is state of the art with full accel
|
|
|
|
|
Bartosz Bien wrote: would they be rendered with hardware acceleration?
I think they should. Not 100% certain though.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi everyone.
Does anyone know if it is possible to include the .net core assemblies, say in a cd for our program to use theme and solve the problem of detecting the installed .net version and installing the required version?!
It's a real problem for me that create multimedia cds using C#!
Sojaner!
|
|
|
|
|
I think there are .NET obfuscators that cram all the dependencies into one assembly and optionally compile it into a native executable.
ROFLOLMFAO
|
|
|
|
|
I could not find any free full functional one can you suggest me one please?!
Sojaner!
|
|
|
|
|
There are no "free full functional" ones.
The one or two products that promise to include all the required parts into your program are quite expensive from what I've heard.
But obviously, if one main requirement for your application is that no installation is required, then choosing .NET was a mistake in the first place.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
mav.northwind wrote: if one main requirement for your application is that no installation is required, then choosing .NET was a mistake in the first place.
Actually, it's not a mistake. If the OS comes with the required framework, no installation is required and a simple copy and paste is all that is needed. (e.g.: I can compile and send the resulting assembly over to my friend's computer for execution without him having to install anything.)
ROFLOLMFAO
|
|
|
|
|
Ri Qen-Sin wrote: If the OS comes with the required framework
I think that's exactly the problem he's facing.
Windows Server 2003 comes with .NET 2.0 pre-installed, Vista comes with .NET 3.0 pre-installed.
For all other OS's there is no .NET installed out-of-the-box, and without installing .NET the application doesn't work.
Installing .NET can be automated, but even then it takes a while.
Once the target system does have .NET, of course you can simply use XCOPY deployment for .NET applications, but without the framework you're grounded.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
|
I build a C++ app that launches the .NET install from CD if needed, then installs my app. It works well for me.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi,
I want in a textbox that is for date when user is entering date, automatically the text in it appears as --/--/--
i.e user only enters 6 digits(2 for day ,2 for month, 2 for year)
Best wishes
|
|
|
|
|
|
He might not be using .NET 2.0. I think one of out fellow Code Project members wrote one by extending a regular textbox and intercepting keys. I can't be sure.
ROFLOLMFAO
|
|
|
|
|
Ri Qen-Sin wrote: He might not be using .NET 2.0.
Very well could be, but he should move up to 2.0 if not already there.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi,
In a ComboBox that items is bound to DB, How can add the ability that user can select nothing of items.
Suppose it has 5 items when user opens (drops) it, then he/she must select one item and can't don't select none of them.
Best wishes
|
|
|
|
|
Just add another option for 'None' or something. Then when they pick that, you know they don't want any of the options.
I don't think the combobox can select nothing, even when it first starts and has the default text, the selected index is 0 (so, the first item in the list).
My current favourite word is: Bauble!
-SK Genius
|
|
|
|
|
Dear, Codeproject staff
I'm a C# & VB beginner developer that have been adviced to visit your website to get more experiences in programming but unfourtunatly I can't navigate well or search well about what I need,so I decided to ask for your help to advice me and guid me to put my leg on the first stip or programming field and to guide me through the next steps as well.
Thanks alot for your help and cooperation and Sorry for inconvience.
Best Regards
Mahmoud Alyan
mahmoudalyan@gmail.com
Mahmoud Alyan (Astronaut)
|
|
|
|
|
Dear Mahmoud,
you'll get answers to concrete problems here, but if you have very basic starting problems, then a good book on C# or VB.NET is definitely a much better choice.
Feel free to come back here with a concrete C# question, though, once you completed the first steps.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Welcome to Code Project and good luck in learning C# and VB.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|