|
Joel Holdsworth wrote: Is there any solution?
The short uncomplicated answer is NO. Why not compile the MC++ project in VC Express?
xacc-ide 0.0.99-preview7 now with C#, C, C++, IL, XML, Nemerle, IronPython, Perl, Caml, SML, Ruby, Flex, Yacc, Java, Javascript, Lua, Prolog and Boo highlighting support!
|
|
|
|
|
leppie wrote:
Why not compile the MC++ project in VC Express?
Hmm... I did have a try at that for 10 minutes. It failed to #include <windows.h> .. so I had a look at the directory settings in the options box. For some reason the list of directories does not show up in this build. There's a panel called Directories, but only a big gaping hole where the list should be . So I assumed that VCExpress had been labotomised, and would be of no use... What do you think?
Joel Holdsworth
Wanna give me a job this summer?
Check out my online CV and project history[^] - now available in MSWord format![^]
-- modified at 18:52 Saturday 22nd October, 2005
|
|
|
|
|
This is a wild guess, but I think the latest Platform SDK contains the headers for VS 2005. I remember I read there was some issue. Give it a try.
xacc-ide 0.0.99-preview7 now with C#, C, C++, IL, XML, Nemerle, IronPython, Perl, Caml, SML, Ruby, Flex, Yacc, Java, Javascript, Lua, Prolog and Boo highlighting support!
|
|
|
|
|
There is no difference between a dll made using different languages. The code in the dll is IL code, so it's compiled to an language-independent format.
It's probably because the code is not CLR compliant, e.g. the code is using some constructions that are C# specific. Also, the code might be CLR compliant, but it's compiled without setting the CLR compliance flag in the assembly.
MSDN reference to the error messsage[^]
---
b { font-weight: normal; }
|
|
|
|
|
|
Joel Holdsworth wrote: So how would I set that flag - I can't see it anywhere
Add the folloeing attribute declaration to assemblyinfo.cs:
[assembly:CLSCompliant(true)]
Absolute faith corrupts as absolutely as absolute power
Eric Hoffer
All that is necessary for the triumph of evil is that good men do nothing.
Edmund Burke
|
|
|
|
|
How can apply the XP stlye to these controls. All the other controls on my forms such as radiobuttons, Command Buttons, etc. have adopted the XP style apar from these two. How can i force them to adopt it. I'm sure theres a way because i've seen quite a few applications with XP stlye NumericUpDown and CheckedListBox controls.
|
|
|
|
|
hi,
i have a slight problem with arrays. Heres what i want to accomplish.
I have an array A consisting of around 500 elements and another array B consisting of around 100 elements. Now i wish to remove all the items from array A that exist in array B. What would be the fastest way to do this?
Note: The array consists of strings.
|
|
|
|
|
The following code will do it:
using System;
using System.Collections;
namespace ConsoleApplication5
{
class Class1
{
[STAThread]
static void Main(string[] args)
{
string[] names = new string[500];
for (int x=0; x<500; x++)
{
names[x] = "Name " + x.ToString();
}
string[] otherNames = new string[300];
for (int y=0; y<300; y++)
{
otherNames[y] = "Name " + y.ToString();
}
string[] final = RemoveIntersects(names, otherNames);
string foo = "";
}
private static string[] RemoveIntersects(string[] targetArray, string[] duplicateArray)
{
ArrayList target = new ArrayList(targetArray);
ArrayList duplicate = new ArrayList(duplicateArray);
foreach(string check in duplicate)
{
if (target.Contains(check))
target.Remove(check);
}
return (string[])target.ToArray(typeof(string));
}
}
}
The most exciting phrase to hear in science, the one that heralds the most discoveries, is not 'Eureka!' ('I found it!') but 'That's funny...’
|
|
|
|
|
Probably the fastest way is to put them both into a Hashtable as key values, then get the Keys propery from it. However with only 500 of one and 100 of the other, performace shouldn't be a big issue. It won't preserve order, of course.
Here's how it would look for strings:
string [] MergeLists( string [] A, string [] B )
{
Hashtable table = new Hashtable();
foreach( string s in A )
table[s] = s;
foreach( string s in B )
table[s] = s;
ArrayList items = new ArrayList( table.Keys );
return (string[])items.ToArray( typeof(string) );
}
If you had really large collections to merge, this would probably pay off performance-wise. For smaller collections it won't hurt too much to search through for collisions (or even wrap them in ArrayLists and use Contains() ).
Matt Gerrans
|
|
|
|
|
By the way, if you are using VS.NET 2005, you can create a more generic solution:
public T[] MergeArrays<T>( T[] A, T [] B)
{
Dictionary<T,T> table = new Dictionary<T,T>();
foreach (T item in A)
table[item] = item;
foreach (T item in B)
table[item] = item;
List<T> items = new List<T>(table.Keys);
return items.ToArray();
}
Matt Gerrans
-- modified at 2:24 Sunday 23rd October, 2005
Generics syntax is a bit of a pain to mix with html (I didn't want to use the "Ignore HTML tags" option, because then I can't format the code)
|
|
|
|
|
on my "treeView1_AfterSelect(...)
I have this
************************
if(nodeSel=="Node One selected")
{//Object created
MTO a = new MTO();
//MTO method called
a.mtoModel();
}
THis class id defined like this
**********************
class MTO
{
private TextBox textBox1 = new TextBox();
private Panel panel1 = new Panel();
public void mtoModel()
{
MessageBox.Show("Test", "node")
textBox1.Text = " ";
textBox1.Location = new System.Drawing.Point(80,16);
textBox1.BackColor = Color.FromArgb(245, 160, 75);
panel1.Controls.AddRange(new Control[]{textBox1});
}
}
When I select the node 1 , the message is displayed (node one selected) but hte components are not created in the panel. Any ideas?
|
|
|
|
|
sorry, it calls the right message
"Test"
|
|
|
|
|
this.Installers.AddRange
(new System.Configuration.Install.Installer[]
{this.serviceProcessInstaller1,this.serviceInstaller1});
this is all one line.
what is the meaning of curly brackets there ?
(not exaclty relating to Installer but in general C# syntax because
I see that type of code quite often used in different cases and I
fail to understand it.
|
|
|
|
|
This means that a new array with the values this.serviceProcessInstaller1 and this.serviceInstaller1 is created.
You could also write it like this:
System.Configuration.Install.Installer[] tmpArray = new System.Configuration.Install.Installer[2];
tmpArray[0] = this.serviceProcessInstaller1;
tmpArray[1] = this.serviceInstaller1;
this.Installers.AddRange(tmpArray);
|
|
|
|
|
Ok, we're declaring an array with square brackets "[]" and initialising it with the items withn the curly brackets "{}"
Regards.
modified 17-Jul-19 21:02pm.
|
|
|
|
|
I have a button that when clicked, it populates a panel control with radio buttons and textBoxes controls.
Is there a simple way to reset (clear) the panel instead of removing each control at a time?
|
|
|
|
|
|
tell me one thing plz,i am working on voice chat project, in this case which approch is better (for audio or vedio)
1> using win32 API
2> DirectSound
and one more thing ,our windows uses win32 APIz or DirectSound,thanks
|
|
|
|
|
|
thanks for ur reply, plz tell me windows uses win32 APIz or DirectX for audio purposes ?, and other person should have installed directsound to use my application or my exe file will not bother?.thanks
|
|
|
|
|
Hi
pakFari wrote: plz tell me windows uses win32 APIz or DirectX for audio purposes
Windows uses Win32-API. Dx was introduced as an API for games and multimedia-appz in the middle of the 1990s.
pakFari wrote: and other person should have installed directsound to use my application or my exe file will not bother?
DirectX is included in windows since Windows98. In windowsXP sp2 DirectX 9.0c and .NET 1.1 framework (in the english version, but not in the german ) is included, so everyone should run your application.
André
'A programmer ist just a tool which converts caffeine into code'
|
|
|
|
|
thankyou very much,in my system DirectX is installed but i could not add the reference of Microsoft.DirectX, it gives an error, i search in my system but could not find the DirectX.dll.plz tell me the way to add the reference of DirectX dll, once again thankx for ur reply
|
|
|
|
|
Is the DxSDK and managedDirectX successfully installed on your machine?
'A programmer ist just a tool which converts caffeine into code'
|
|
|
|
|
hi,i am using windows xp with service pack-2, i think DirectX should already exist in my system, but anyhow i installed DirectX 9 from CD. but he problem is still there.
|
|
|
|