Macavity452's Q&A profile
Visual C# pass int array from VB6 to C#
Hi All, I’m having trouble passing a VB6 Integer array to a C# method. The rest of the C# methods which receive single Integer parameters work fine when called from VB6. Only the Integer array gives me “Type Mismatch” when called. What do I need to do to fix this -k Thanks everyone - Some of my requirements have changed so it looks like I will be passing a Dictionary object now. I've successf ...Show All
SQL Server SSIS: Inserting unknown members from fact table
Looking up surrogate keys in a dimension table and adding these to your data flow is easy when there is a match in your dimension table for every key in your fact table. However, I am puzzled by how to manage the data flow when no match can be found for a specific key in the fact table when doing the lookup AND I then want to insert this unknown key as an unknown/inferred member in the dimension table. The problem is further complicate ...Show All
Visual C# trouble using delegate in WndProc
when i use delegate like this: ----------------- [System.Security.Permissions.PermissionSet(System.Security.Permissions.SecurityAction.Demand, Name = "FullTrust")] protected override void WndProc(ref Message m) { delegate_ReplyFromDataProcess = new PrepareDelegate_ReplyFromDataProcess(ReplyFromDataProcess); delegate_ReplyFromDataProcess.BeginInvoke(m, null, null); } delegate void PrepareDelegate_ReplyFromDataProcess(Mes ...Show All
Windows Forms Form size differences between O/S's
I'm experiencing a frustrating problem with my child forms. When I set the child form size to 712w, 480h they display perfectly (i.e all the controls contained in the form are viewable and positioned correctly.) in Windows 2000. However, the ...Show All
Visual C++ problem reading registry
Hi all I have a problem reading a registry key value : ret = RegQueryValueEx(hkey, L"SchemeName ", NULL, &type, (LPBYTE)data, &len); this code returns ERROR_SUCCESS; however data always contains only the first letter of the value ... len = 512, data is declared as char[512]; I suspect the problem comes from a mismatch between UNICODE and ASCII but I don't know how to work this out. Can anyone help Thanks Emmanuel ...Show All
SQL Server How to connect to SQL server 2005 from C# after default installation?
Hi everyone, I just installed Visual Studio 2005 and SQL Server 2005. However, I`m not able to connect to the database. When running this C# code, I get a SqlException. using System; using System.Data; using System.Data.SqlClient; class Program { static void Main( string [] args) { SqlConnection connection = new SqlConnection (); connection.ConnectionString = "Data Source=(loca ...Show All
Windows Forms BackgroundImage
Hi all. In the Load event of the form i write the following: Datagrid1.BackgroundImage = Image.FromFile("c:\siem1.bmp") but it isn´t working. Please help!!. I've not tried this before, but most of the controls I tried this with simply didn' ...Show All
Visual Basic Calculate size of string in bytes
All, I am reading a text file line by line and want to display its progress with a progress bar... cunning eh ... Therefore I need to determine the following: (1) The size of the file (2) The size of each string taken from the line of the text file Can anyone help Regards, Determining the size of a file is easy. If you for example have opened a FileStream, check its Length property. The second part is mor ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Null Reference with Manager.GetDeviceCaps
Ok I am using Tom Miller's Managed DirectX 9 Graphics and Game Programming Book. I am doing the example for Checking Device Capabilies and I am getting a Null Reference Exception on the ToString() method of Manager.GetDeviceCaps. From my understanding of extencive debugging this is being caused by Manager.GetDeviceCaps becoming null due to a exception occring inside the method itself. I am using Visual C# Express Edition newest ...Show All
Visual Basic Class Name and Method Name Combo boxes in Search and Replace Operations
These Combo boxes don't show the name of the class and the method where the next search result is found automatically. To get this I must first click into the search results procedure. When I used VB 2003 I hoped that this would be repaired in VB 2005. But it isn't! Hi, Yes that would be nice. Maybe you should make a suggestion and maybe it will make th ...Show All
Visual C++ Compiler bug?
I believe the following should compile;it does not under MSVC 1400: namespace n { void f(); void g(); void g(int); } void n::f() { struct s { void m() { g(); // error C2326: 'void n::f::s::m(void)' : function cannot access 'n::g' n::g(); using n::g; g(); } }; } MSVC 1310 also fails to compile it with a similar error. I reported this fact a while back and Microsof ...Show All
Visual C++ How to run vc++ appl in win32 release mode??
Dear all, Can any one to help in giving me the solution, to run the application in win32 Release mode Thanks, ...Show All
SQL Server Problem attaching a database using user instancing
I have a database that I am distributing with my C# 2.0 application as an .mdf file meant to be attached at run time. I created the database on a copy of SQL 2005 Developer edition, and detach it and copy it to the test machine for testing. It has recently been complaining about not finding the .ldf file. According to the article here: http://msdn2.microsoft.com/en-us/library/ms165716.aspx I am not supposed to distribute the ldf. The only way I ...Show All
.NET Development XML & XSL Presentation
I've been writing a WYSIWYG editor for XML and XSL, and I've stumbled upon a problem.. http://dotnet2411.combell.net/biglist.xml http://dotnet2411.combell.net/biglist.xsl The XSL file contains the lay-out etc for the XML file, it works perfectly in firefox, but not in IE. Could some one review these files and perhaps explain what I can do to make it IE compatible or even better, check if the works in your browser. If it works, then the text ...Show All
Windows Forms Pocket TaskVision - where is it?
Hiyas, I recently read through this MSDN article: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnwinforms/html/wnf_pktTaskVision.asp I was quite excited, and keen to try it out, until I clicked the "Download" link, and found that it doesn't seem to be there. Quit teasi ...Show All
