Werners's Q&A profile
.NET Development Passing String Arrays between VB.Net and VB6
We have a (very) large VB6 application. I'm in the process of extending it and gradualy replacing parts of it with VB.Net modules. I'm writing DLLs in VB.Net and using COM interop to consume them in the VB6 app. This is working great! We are in the business of migrating (very large) COBOL systems and I get a kick out of how VB6 is now a 'legacy' framework in itself. Any way, here's my current problem: how do I pass a string array from the VB.Net DLL to a VB6 consumer. What I want is declaration like so: Public function SomeFunction(Byval StringArray() as String) as boolean I've looked at Default Marshaling for Arrays , but could not make ...Show All
.NET Development How to set bilingual or multi-language feature in the controls in Masterpage
Hi, All, I got a problem with as the title mentioned, I put a menu control to MasterPage, but cannot edit any one of its resource property thru any kinds of localized setting. Does anyone ever encounter this problem or Should I try any other solution Windstay This issue appears to be an ASP.NET feature. I'd reccomend that you post this question to one of the ASP.NET forums. You can find them at http://forums.asp.net/ . Thanks, Carl Perry Program Manager ADO.NET Microsoft Corporation ...Show All
Windows Forms Get the path of the form in another project
Hi All, I had developing a Class Libary Project, and another project call ProjectA is referenced to Class Libary Project, for some purpose, i need to get the path of the form in ProjectA which is calling some function in my Class Libary project. how can i to do it Thank you very much. Laputa Get the type of the form, and then get the assembly from the type, finally the Location property of the Assembly will tell you the "path": Debug.Write( typeof (myForm).Assembly.Location ); Regards, -chris ...Show All
.NET Development Recommended Books
Can somebody please recommend be books about .net 2.0 , asp.net and all that new stuff Thanks It looks like Introducing MicrosoftR ASP.NET 2.0 (~$30) is already out, and CLR via C#: Applied MicrosoftR .NET Framework 2.0 Programming, Second Edition will be out soon. All the books I've read form Microsoft Press are very well written, so these are definetly worth a shot. ...Show All
Visual Basic VB Express beta2 and sql db creation problems
I'm trying to learn visual basic, via the how-to's in VB express. I know zip about sql, and little about databases in general. Here's the problem. In an exercise to create a Windows form containing a sql database, I keep getting "Cannot connect to database. Server timed out." error messages. 1. What server It's just me & my laptop. 2. At least, I'm no longer getting "User does not have permission" errors. How do I need to configure services, permissions, sql express, etc. to get things to work I'm running XP SP2 Pro. Thanks in advance. Paul: First, thanks for the response. Sql express is installed, t ...Show All
Windows Forms Deleteing non qualified row from datagrid?
Hi, When a row deleted from datagrid ( click row header then press delete key), that row removes from the datagrid even if the database rejects deleteing that row ( database raised an error). Because the datagrid removed it before database validation. I tried to refresh datagrid using merge method of dataset with no success, however after refreshing the r ...Show All
SQL Server installing sql server mobile in an hp ipaq rx1955
does anybody know how to install sql server mobile and the query analyzer in an hp ipaq rx1955 don't see the samsung processor in the processors list. thanks This device runs Windows Mobile 5 and is ARM compatible. The CABs you need are: Location: C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\SQL Server\Mobile\v3.0\wce500\armv4i Files: sqlce30.dev.ENU.ppc.wce5.armv4i.CAB sqlce30.ppc.wce5.armv4i.CAB -Darren ...Show All
Visual Studio 2008 (Pre-release) Implementing a SOA entreprise model in WCF without ESB
Hi Could WCF offer a full framework to build a SOA enterprise model without the necessity of an ESB (like IONA or Bea) I think yes, I don’t like ESB, to use a ESB I don’t need that my services are soap, but now in my big company we are deliberating the necessity of an ESB. Can anyone give me reasons to prevent us of to buy a ESB to model a SOA entrepise model Thanks Javier Hi Javier, We believe, we have all the components to run Enterprise service applications on WCF platform, so if you want to run services between windows to windows, we don't need any ESB. I know in large ...Show All
Windows Forms Invoke freezes and BeginInvoke queues up too many messages.
We are using a combination of C# and Managed C++ in .NET 2.0 Our program has a couple of threads. The main thread is controlling the GUI primarily. A second thread runs a very fast running loop that obtains data and controls a piece of hardware (or simulates such). When the second thread gets an update, we have it use Invoke to update the GUI. However, under particularly system intensive conditions, or when the user does something like dragging the window, the second thread will stop when it calls Invoke. We have tried using BeginInvoke as an alternative, but that second thread just runs too fast and too many BeginInvokes get queued and w ...Show All
Game Technologies: DirectX, XNA, XACT, etc. VC++ 2005 Express - Creating a Level Editor - Creating Render Panels ( Views )
Hi, i am creating a game, the normal level editors can't fill my requirements so i decided to create one that uses my game engine (1st Person Shooter, reltime Lighting / Shadowing, HDR and so on). My Problem is: i need to render my views( top, left, front, Perspective ) in somewhere in the main form, How with a panel Image ... You're really asking for a lot in such a small question. Lucky for you, somebody wrote a book for such questions. Check out "Game Engine Toolset Development" by Graham Wihlidal. ...Show All
.NET Development upgrade to MSDE
Our company has an existing application (standalone PC app) that uses Access database via the Jet Engine. The program runs on a user’s machine only (distributed from a CD or USB jump drive.). We are looking to convert this application to .NET, keeping in mind that we need to have an easy setup with a royalty free solution. Should we continue to use the Jet Engine or is it time to upgrade to MSDE Is the Jet Engine being phased out. The new application has to be able to work with the older database. Hi, Read the following for info on MSDE Vs Jet. http://www.teratrax.com/articles/msde_vs_sql_server ...Show All
Visual Basic Unit testing for beginners?
I haven't found any beginner articles on how to use unit testing in VB. I'm not even sure exactly what it is (well, I understand the general idea). I'd love for some info or pointers for how to use this technology to help me write more robust code. Can anyone out there help me Keep in mind that I'm not a enterprise developer working on an n-tier scalable system, in a large scale team environment, blah, blah. Just an intermediate level coder that writes his own small scale stuff. Thanks! It's not that I need to. But my code gets bugs creeping in as it gets more complex and gets more difficult to debug as it grows, and from what I unders ...Show All
SQL Server error:an item with the same key has already been added
hi. i just moved to the april ctp beta 2 version of dts(i know it's already late to do that). i created a new project and moved the packages i did on beta 1 into it. after building it, and when i run the dtsintall.exe, it got this error : an item with the same key has already been added (mscorlib). what i did is excluded all the packages from the project and ran it for one package it worked..gradually i added a package after the other and build it and it worked..then suddenly the error appeared again and i can't get rid of it even when i go back to my initial state of 2 packages.. i can't understand why it's giving it. i'm su ...Show All
SQL Server fn_listextendedproperty sql 2005
Hi books online for 2005 states that the following code can list extended properties for all tables in a schema, however I get nothing returned when I execute it. SELECT objtype, objname, name, value FROM fn_listextendedproperty (NULL, 'schema', 'dbo', 'table', default, NULL, NULL); Anybody have any ideas on how to get this going Thanks, Ned Thanks very much Julian, I ended up writing a cursor, but this is more elegant. Regards, Ned ...Show All
.NET Development Exception: Attempt to redirect activation of type
Hi In my remoting client application i am using following code to register the configuration file.My configuration file contains the URI of the remote object . String filename = AppDomain .CurrentDomain.SetupInformation.ConfigurationFile; RemotingConfiguration .Configure(filename, false ); When i am executing this code inside a method first time it is working fine but second time it is giving Attempt to redirect activation of type exception . Any work around for that Thanks, Arabinda Make sure you configure the Client only once. I would probably do it this way ...Show All
