|
thepersonof wrote:
Therefore in order to compile these dlls are required.
Compiling the application is something that the developer does. The user does not need to compile the application as they receive it in the compiled state.
The compiled version will need the appropriate assemblies to be available to it. This is why you need to redistribute the Managed DirectX assmeblies as you are not permitted to supply the SDK.
thepersonof wrote:
In other forums it has been suggsted that they are in the GAC, would I find them thereor would I have to distribute thm myself
That is correct. You therefore need to supply the Managed DirectX redistributable with your applicaction. Its installer will make the appropriate checks and install itself if necessary.
Does this help?
Do you want to know more?
WDevs.com - Member's Software Directories, Blogs, FTP, Mail and Forums
|
|
|
|
|
Not really. My program compiles 3d graphics and presentations, that is what the problem is, not redistributables, etc which I am perfectly competent with. Thanks for trying though.
|
|
|
|
|
If you are competant with redistributables, then where is the problem distrubitng the DirectX SDK with your 3d compiler application?
|
|
|
|
|
|
What is wrong with that. You are creating a compiler with associated IDE (and one presumes documentation). My Visual Studio install is in excess of 1Gb (more if you include the MSDN library)
If your compiler is allowing its users access to the Mangaged DirectX APIs then I cannot see a problem with distributing the SDK (license permitting). If you are providing a layer of abstraction so that your users do not need to know anything about DirectX then you will be able to get away with the redistributable.
Do you want to know more?
WDevs.com - Member's Software Directories, Blogs, FTP, Mail and Forums
|
|
|
|
|
So what you are *really* asking, is "Can users of my app use all the cool features of DirectX without the 200 Mb install." - and the answer should be obvious to any developer.*
The pros and cons of this argument are the same as with the .NET re-distributable, and there are many topics here and many other places on this exact subject.
* Some redistributables can be broken down to core components, which tends to be alot smaller than the setup executable, you may want to investigate if this is an option with managed DirectX
|
|
|
|
|
Hi
Is there a way to add MSIL to c# code?
Thanks
|
|
|
|
|
|
Will ILASM not work?
Thank You
Bo Hunter
|
|
|
|
|
ILASM will work, but you won't be able to embed it inside C# code. You can build a DLL and call it from C#, tough, but I guess this is not what the original post wanted to do...
Yes, even I am blogging now!
|
|
|
|
|
|
Hello,
in class constructor, I have
public class oneclass : System.Windows.Forms.Form
{
...
public Thread th;
...
}
on events :
public void startsomethig()
{
...
try
{
...
}
catch(Exception ef)
{
MessageBox.Show("ef content: " + ef.Message);
}
}
private void Button1_Click(object sender, System.EventArgs e)
{
th = new Thread(new ThreadStart(startsomething));
th.Start();
}
private void Button2_Click(object sender, System.EventArgs e)
{
th.Abort();
}
How do I do if I push on button2 to stop the thread
the catch above don't must intercepte stop error thread aborted. ?
Thanks in advance.
Frédéric
|
|
|
|
|
Hope I got it right that you don't want to show a message box if the ThreadAbortException is catched in the startsomething method.
To achieve this, add an extra catch block for the ThreadAbortException:
public void startsomething()
{
try
{
...
}
catch (ThreadAbortException)
{
}
catch(Exception ef)
{
MessageBox.Show("ef content: " + ef.Message);
}
}
www.troschuetz.de
|
|
|
|
|
You have to use Thread.ResetAbort() in the catch statement, otherwise the ThreadAbortException is rethrown automatically by the CLR. This is how .NET works.
|
|
|
|
|
I have a registry called HKLM\SOFTWARE\MyReg, I do do not know the name of the subkeys or how many but every subkey contaians a string "value" that I want to read.
Here is a the code that runs when a nutton is clicked
-MessageBox (mess1) displays the correct path of new subkeys
-MessageBox(mess2) does not display anything.
Any help will be greatly appreciated
************************************************************************
string[] daemonKey = new string[12];
string Elem, newDKey, numElements;
int count;
newDKey="SOFTWARE\\MyReg\\";
RegistryKey OurKey = Registry.LocalMachine;
OurKey = OurKey.OpenSubKey("SOFTWARE\\MyReg",true);
//find all the subkeys
daemonKey = OurKey.GetSubKeyNames();
//how many found?
numElements = daemonKey.Length.ToString();
//convert string to int
count=Convert.ToInt32(numElements);
for(int i=0;i<=count-1; ++i)
{
//new path for the key to open
newDKey=newDKey+daemonKey[i];
//open the new registry
OurKey.OpenSubKey(newDKey,true);
MessageBox.Show(newDKey,"mess1",MessageBoxButtons.OK,MessageBoxIcon.Information); \\\\shows correct path
//read the value for the string called value
Elem=(string)OurKey.GetValue("value");
MessageBox.Show(Elem,"mess2",MessageBoxButtons.OK,MessageBoxIcon.Information); \\does not read the value,blank-nothing
//reset the key
newDKey="SOFTWARE\\SOFTWARE\\MyReg";
**************************************************************************************
|
|
|
|
|
|
Hi:
I have a strange problem where the controls location on the form is changing without me touching it's position. Like the designer is somehow doing it by it self. I am changing some code segment (not related to the location of the controls) and when I return to the designer - the controls are redrawn in a different location (mostly they are shifted down).
* I am using the "RightToLeft=True" property
|
|
|
|
|
|
how do I use c# to change user security permissions (policies)?
I know to use System.Security, but not really sure what to do after that. I searched the msdn articles, but I guess I'm not sure where to really look as most of the stuff there is about internet security, or application permissions.
thanks,
Stephen
|
|
|
|
|
What o you mean by "user security permissions"? This can mean a bunch of things, including the permissions set you use in your application. Or are you talking about changing the users Domain and Local account rights, like group membership?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
local account rights (like the things you can change with the app "gpedit.msc",(try running it with the windows command prompt, if you are running windows xp))
|
|
|
|
|
Just about everything you see in the Group Policly Editor are registry hacks. Nothing special there. The trick is knowing what to do with what registry keys and values. That information you can get from the template files that GPEdit uses. Just search for the filenames. Be warned though, some of those template are HUGE.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have a frustrating problem which I have struggled with for a few months and it is driving me mad. I expect it is something silly I'm doing wrong but I have not been able to find any advice on it so far.
Using C#.net
I create a new sqlDataAdapter by dragging it from the toolbox onto my form. I configure it to get data from my database.
I them Generate a dataset. If I choose to add the new table to an existing dataset, which is what I want to do most of the time, I get the problem.
The problem is that when I go to use the table it doesn't appear to be in the dataSet and so i can't for example bind to it.
I have struggled to get by, by deleting the dataset and re creating it with the same name which works fine but I then have to fix the auto generated code by re applying binding rules etc which waste time and effort.
If any of you experts can spare a few minutes to help me understand what I'm doing wrong I would be a happy newbie again.
EBKid
|
|
|
|
|
Does anyone know what the command line argument to launch a screensaver's options/configuration dialog is on Windows XP Pro?
From most of the example source code I can find on the web, it would seem to be '/c' but that does not seem to work for the screensaver I have written. I've tested my code and if '/c' is the first argument then the options dialog is launched but Windows XP does not seem to be supplying the '/c' argument when I right click on my .scr file and select the 'Configure' option from the menu.
After sticking an throw Exception call right at the start of my screensaver's main function, then running the 'Configure' option from the right click menu for the .scr file, then attaching my debugger to the screensaver when it throws the exception, it would appear NO arguments are being passed to the screensaver (args.length=0). I take
it this means that windows must try and launch the configuration dialog some other way? If so does anyone know what the other way is?
I'm the screensaver is written in C# and I am running Visual Studio .Net 2003 and Windows XP Pro. Does anyone know of any windows settings that could maybe be causing this?
Cheers,
CoffeeZombie
|
|
|
|
|
After more web searching, I'm starting to suspect it might be a local windows setting causing the problem. I've also tried running the screensavers supplied with Windows XP (in ..\windows\system32\) with the /c command line option, this does open their configuration dialogs.
So I'm wondering what my app is missing to not pick up the option, although most of the C# demo screensavers I've tried still seem to get it wrong too...
|
|
|
|