GenesisX's Q&A profile
Visual Studio Team System FXCop 1.35: Hidden Targets and Rules tabs
Hi, The FXCop 1.35 application window does not display the targets and rules included in a project and the messages generated when as analysis is performed. Please, help. Try deleting the file located (by default on Windows XP) at C:\Documents and Settings\davkean\Application Data\Microsoft FxCop\1.32\UserPreferences.xml file and see if that works. ...Show All
Visual C++ Trouble using C# class in both managed C++ and C#...help!
I have a managed C++ wrapper class that I am using to access native code. One of the methods in this class returns a type of object that is defined in a C# library. I am able to compile and see all the class. I am having trouble with the crossover between C++ and C# though. When I use this class in the C++ managed class it seems that I have to creat a pointer to this object type. In C# however, I can't have a pointer to this type. I need to be able to get across this barrier. Any suggestion on how I need to declare things in order for this to work Thanks I get the following. Debug Assertion Failed! Program: C\windows\microsoft.net\framework\v2.0.50727\aspnet.wp.exe File: dbghelp.c ...Show All
SQL Server Get the variable from Execute Process Task to C#
Hi! I need help with some C# code. I have build a SSIS package with an Execute Process Task. I need to send dynamic variables in to my C# program so I thought it was a good idea to use the StandardInputVariable. How do I get the variable in my C# code Thanks Carl Peter K wrote: Your Main methods parameter collection yes. provided that this functionality has been built into the c# code. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. What's up with deleting posts mech commander downloads?
I just don't get it. My posts have been removed, I mean any <fill in the blank> could just google for the keywords and get a bunch of legit game sites that host the shared source code (since it was released for free) and yet on these forums it's all hush hush untill MS fixes the link What gives Hmmm, apparently you misunderstood my post. The threads about MC2 source are still there, just my posts showing alternate downloads (since MS link is down) for MC2 source are gone. Also, MC2 source IS related as it is meant to be the primary example showing off the XNA product. ...Show All
Microsoft ISV Community Center Forums Form Locking
Hi, I am creating an EPOS system in access/vba, with an SQL 2005 connection. Learning as I go I have managed to create a login keypad which checks your code input against the database to see if the login is valid. The way I see this keypad being used, is everytime the application is flagged as locked, the keypad appears and locks out other open forms until the correct code is entered. Am I thinking about this the right way is this the way that access would work, IF i knew code to do it Thanks, Dan Moving to the VBA forum: When you want to lock your application show the keyboard form modally and don't dismiss the keyboard form until the correct code is input. When you show a form moda ...Show All
Software Development for Windows Vista Expanded Memory in Vista for DOS Applications
A DOS application which requires expanded memory (EMS) is required to be run on Vista. In earlier releases the expanded memory could be set to auto using the command.com->properties->memory tab. Vista does not allow to change this settings due to security reasons. Is there a way of increasing the expanded memory to allow a huge DOS application to run in the Vista environment Nice try, Matthew, but it doesn't quite work as you said. But it seems you must be close. Here's what happened. Everything you said, above worked exactly as you said, but it turns out I didn't need to do any of the explorer launching stuff, as I can already edit the properties of "command.com" from my account ( ...Show All
Visual C++ to reduce footprint
Hello everyone, I am wondering how to reduce the footprint of a binary build (C/C++) program generated by gcc. 1. Any ideas of reduce the footprint of a debug version build 2. Any ideas of reduce the footprint of a release version build I think some linker or compiler options may help, what are they Any other ideas to reduce footprint thanks in advance, George By GCC I presume you mean GNU Compiler Collection Not being unhelpful, but this forum is meant for Visual C++ 2005 related topics. Please try searching the web or post the question in a general C++ forum such as this one http://www.codeguru.com/forum/forumdisplay.php f=9 Thanks and regards Sahir Shah ...Show All
Software Development for Windows Vista Error Accessing Registry while compiling VB COM component in Vista
I am trying to compile a VB based COM component and I got the error - Error accessing registry". Even though the DLL has been generated. When I tried to register the same through Regsvr32.exe then also I get the same error. So I believe it's giving error while registering. My login ID is a memeber of administrative group. Can we get rid of security message we receive every time while opening any exe file. Regards, Virendra When registering DLLs, you must always be in an elevated state. If you are automatically registering it when you build the DLL, it may be running regsvr32 without elevated privileges. Even on an admin account, you must still be elevated (yes, it's strange, but even admins don't have full ac ...Show All
.NET Development Com Visibility in VS2003
Hi guys I have a web application developed in Vb.Net under VS2003. Now, a certain vendor requires us to build an interface dll that is "COM Visible". Since VS2003 has no option available in Project Properties to do this, how do I sort this out Sadly it took me considerable time and effort to realise that a dll developed likewise in VS2005 cannot be made to work with VS2003 ! Please help me with your suggestions/solutions. Many thanks Suhaib Another thing to try: Project + properties, Configuration properties, Build, Register for COM Interop = True. Your project has to be a class library. ...Show All
.NET Development Get XML from a XSD file
I have an ASP.NET 2.0 applciation that has a XSD file in the project. The XSD file is quite large with table information etc... and I was wondering if there was a way to get a XML document based on the Schema of the XSD file Is there a WriteToXML() method that I am missing or something Please take a look at the foloowing 2 articles at MSDN: XML Schema Definition Tool (Xsd.exe) and The XML Schema Definition Tool and XML Serialization ...Show All
SharePoint Products and Technologies Users added via a domain local group don't get access?
I have a user who isn't added directly to the site but is a member of a domain local group that has been added to the viewers group. The user gets access denied. If I add them to a domain global group in AD and add that domain global group then there is no problem. Is there a problem giving access to domain local groups (these are not the same as machine local groups) as opposed to domain global groups Thanks, Mark I discovered this was because my domain was working in mixed mode and domain local groups are scoped to the domain controller only in that mode. Switching to native mode solves the problem. ...Show All
Visual Studio How to add an image from database to the report?
Hi! Due to the lack of proper documentation and sample code on the subject I have no choice but to ask here. I have a report that contain one table and one image. Both should be fetched from the database. I have two datasources defined; < DataSets > - < DataSet Name =" ReportData_Table " > - < rd:DataSetInfo > < rd:DataSetName > ReportData </ rd:DataSetName > < rd:TableName > Table </ rd:TableName > </ rd:DataSetInfo > - < Query > < rd:UseGenericDesigner > true </ rd:UseGenericDesigner > < CommandText /> ...Show All
Visual Studio 2008 (Pre-release) Memory problem when refreshing ListView with ADO .net
Hello, I have a listView with GridView, that is binded to a dataset. First, what is the correct way to update the listView, for now I use the fill method of the adapter to fill the dataset again. adapter.fill(Dataset.Table); Second, When I'm doing this, the memory keeps increasing. Is this normal Thank you Your code looks OK. I built an app similar to yours, but it doesn't leak. There must be something different about your app that I'm not seeing, or perhaps I filled in some of the details in a different way. (For example, I don't have your ListView_PreviewMouseDoubleClick method - although that's not likely to be the problem.) I'd like to figure this out - memory leaks are bad. But it l ...Show All
.NET Development SqlMembershipProvider, use from WindowsForms with not trusted connectionstring?
Hello, i use the Login controls supported by ASP.Net 2.0. But i have some problems... :) I have an application with two GUI-s: - winforms (the core, maintenance, etc.) - asp.net 2.0 (basic public functions) So, i had to solve the problem: create/manage users form winforms - it's not a big deal: [problemsolver article ]. But! What is when i have users with a not trusted connection ! So, the connection stirng might be look like this: string conStrFromConfig = @"server=srv1\sql2005;Database=MyDB;trusted_connection=no;"; When the application starts, ask for the user name and password. When clicks Login: conStrFromConfig += "user id=user1;password=xxx;" Then everything is ok, connection can be estabilished with the db server ...Show All
Visual Basic Object reference not set to an instance of an object.
Hi, I wrote a function and when i'm calling it i keep getting this error. Null reference exception was unhandled. Object reference not set to an instance of an object. Here is the code: -------------------------------------- Function myReplace( ByVal mytxtCtrl As TextBox) As String If Not IsNothing(mytxtCtrl) Then Dim vartxt As String = Replace(mytxtCtrl.Text, "%" , "" ) myReplace = Replace(vartxt, "£" , "" ) Return myReplace Else MsgBox(mytxtCtrl.Name) mytxtCtrl.Text = "" Dim vartxt As String = Replace(mytxtCtrl.Text, "%" , "" ) myReplace = Replace(vartxt, "£" , "" ) ...Show All
