CJWalsh's Q&A profile
SQL Server CREATE ASSEMBLY using assembly binary?!?!
I was trying to understand how VS.NET2005 was deploying .NET CLR assemblies to SQL2005 so I ran a trace and found some interesting results. VS.NET creates some SQL that looks pretty interesting: CREATE ASSEMBLY [AssemblyNameHere] FROM 0x4D5A90000300000004000000FFFF000......<continue binary data> WITH PERMISSION_SET = EXTERNAL_ACCESS Boy howdy! I have tried to reproduce this and create my own deployment application but I cant figure out how they create this binary stream. The info in BOL is not much help and I have not found any samples anywhere on how to create this stream in c#. Anyone out there been able to get this ...Show All
Visual C# MDI - Adding multiple child forms
Hi, How do I add and handle multiple child forms in a MDI. For example, If I have 2-4 child forms in a Parent Form (which is a MDI container), @ ChildForm1, I have a button when clicked, it should show ChildForm2 and hide ChildForm1. Any examples in C# will be grateful. Thanks. Buru. Hi, When your in a form, you can get access to the MDI form through you forms MDIParent property. And through that, you can access all of the forms through the ownedforms property of the MDI form... cheers, Paul June A. Domag ...Show All
Windows Forms Tabbed control gradient background broken in RTM (was working in Beta)
Just testing our Beta 2 developed application against the VS2005 RTM and I've found that the tab control seems to be broken in the final version. This was always a problem in .NET 1.x but was working in .NET Beta 2. Machine was clean. Installed VS.NET2005 Professional (MSDN download). Compiled source from working Beta 2 release set. The Beta 2 version of .NET shows a gradient background for the tab but the RTM version is just solid grey :( http://www.adamhearn.co.uk/bits/beta2.png http://www.adamhearn.co.uk/bits/rtm.png It's a different machine (testing RTM) so that may be a factor Or have I missed something obivous Thanks in advance! ...Show All
.NET Development http channel registering
Hey everyone, I just want to ask a question about the registration of the http channel in config files. I have just fixed a bug in my application where I was getting an error saying that I cannot register the http channel more than once. I understant what it is saying, but I dont know why it would be trying to register it twice in the first place. In my wen.config file (im creating a asp.net app here) I have some elements that define the http channel. Am I correct in saying that everytime a page is loaded the web.config file is loaded and the http channel is registered If so why doesnt it error at this point In my app I have 2 apps, Ap ...Show All
Visual C++ AfxMessageBox not working
Hi, in Visual Studio 2005 I chose new project->c++->mfc. As Projecttype I chose Dialogbased. Now I have the problem, that following code does not work, that I put on the click event of the ok button: AfxMessageBox("test"); I get an error message that not all arguments could be parsed. But I found this code on MSDN just with an other text than "test". any ideas In VS2005, you're doing a Unicode build, which means you need this: AfxMessageBox(L"test"); a better way is AfxMessageBox(TEXT("test")); which works for both build types. ...Show All
Visual C++ VS2005 ColeDatetime::Format("%Y-%m-%d") generates error when date is prior to 1899-12-30
...though it is stated that ColeDatetime supports years from 100 to 9999. VS2003 has no such problem. The cause is in the CRT _expandtime function (strftime.c) which has following code. What shall I do to get rid of this error static BOOL __cdecl _expandtime (_locale_t plocinfo, char specifier, const struct tm *timeptr, char **string,size_t *left, struct __lc_time_data *lc_time, unsigned alternate_form){ /* */ case ( 'Y' ): /* year w/ century */ { _VALIDATE_RETURN( ( timeptr->tm_year >=0 ), EINVAL, FALSE) temp = (((timeptr->tm_year/100)+19)*100) +(timeptr->tm_year%100); /* pass alternate_form as the no lead ...Show All
Visual Studio msbuild build errors
I recently migrated my projects from vs2003 to vs2005. I was using nant to build projects in vs2003 so now I have to switch to MSbuild. The projects are retrieved from sourcesafe to get the latest version. We are using cruisecontrol for integration. I have msbuild specified as a task in cruise control. The project has a .sln and 12 projects. 11 of the projects are built successfully and one continues to fail. The error I am getting is error MSB3073: "undefined* ..\..\SDK\v2.0\Bin\gacutil.exe /nologo /uf xxx.dll I am new to msbuild and have no idea what this means. Before integration msbuild into Cruisecontrol I am trying ...Show All
Visual C++ altering variable name
Hi! I need to alter a variable name. The scenario is: i have a lot of text box, so i want to read the text of each box and load all in a same string. So, i think to use a for loop... but... if i work in this way, it's necessary alter the name of text box... Can anybody help me This code may need a bit of syntax adaptation because it is C#. C++ and C# is mostly similar except for the differences ;) with your other control declarations so it is accessible throughout the whole form TextBox[] MyTextBoxes = new TextBox[] { }; somewhere in your Code MyTextBoxes = new TextBox[10]; for (Int32 i=0; i<MyTextBox ...Show All
Visual FoxPro VFP 6.0 and MS Server 2003 Scheduler
An existing VFP 6.0 '.exe' file, ran for years on Server 2000, crashes the indexes of several tables when it's run on a new Windows 2003 server via the "Scheduler" utility. It will run if I start the '.prg' from within VFP and it will run in the 'Scheduler' if I don't log off of the server. It's set up to run as a service under the Admin. user account. Any suggestions Nothing constructive I am afraid. There have been several repoorts of old software not running under Win 2003 and, to be fair to Microsoft, they have n o obligation to make it. VFP 6.0 is no longer a supported ver ...Show All
Visual Studio MSBuild functionality
Does anyone know if you can use MSBuild. For an build project. For example: Code to build an program from multiple programs. And to make startup forms ect. Using the file Not sure what you mean here - but MSBuild is a build engine that is used for building managed applications, and Visual Studio uses it as the build engine for building your applications. MSBuild allows you to also build your projects without having Visual Studio installed - and this is ideal when you want to run your builds on a build box that does not have VS installed. That's only the 50,000 foot view - for more details on MSBuild, you can refer to the MSBuild docum ...Show All
Windows Forms Getting the number of a listview item
Hi, I've been scratching my head to try and get the number of a listview item when it is selected. For example I have three items in the listview and the user selects the second item. How can I determine that it is the second item. I'm not interested in getting the text of the item just yet, I just want the items number(I'm ...Show All
Visual Basic runtime-callable wrappers
I really need help quickly. I am in the process of upgrading an application from VB6 to vb.net. The VB6 application uses some activex controls that are essential for the .net application. As a result of the upgrade the system created the RCW's for these Activex controls. However, now, a certain property that worked in VB6 does not work in .net. This property does not work because the object does not get initialized. Some portions of the RCW interface does work but there is a critical part that does not initialize. Here is the order of events: First the container control is declared using the R.C.W. designation created by the upgrad ...Show All
SQL Server SQL 2k5 connection to SQL 2k
So I posted this question here... http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=325966&SiteID=1 but perhaps that was the wrong forum. I have a new SQL2005 instance that is not able to connect to my old SQL2000 instance. However, I have many other instances of each and all the OTHER 2k5 instances can connect to the 2k instance above, and the 2k5 instance above is able to connect to all the OTHER 2k instances. I have been searching and uninstalling/reinstalling for almost a week now, and I'm approaching a deadline for getting the production system migrated to 2k5. Any help would be greatly appreciated. flyonthew ...Show All
Visual Studio Team System Where is VSTS Beta 3 VPC?
Eric Jarvi posted in his blog, http://blogs.msdn.com/ejarvi/archive/2005/10/20/483271.aspx "In yesterday's tech chat there was a question about when a customer ready VPC for Beta 3 will become available. I just now got the notice that after burning the midnight oil, the work is done, it's just been dropped to an internal share, with the promise of being available to MSDN subscribers shortly. Update: Should show up Friday or Monday at the latest." It's now Tuesday. I checked the MSDN Subscriber downloads (for my Universal account) and could not find this. If it is available, can you please tell me where ...Show All
Smart Device Development Serialport in c# System.IO.Ports.SerialDataReceivedEventArgs
Hi I’m trying to get my c#.net app to work the problem is that when using SerialDataReceivedEventArgs it echos all bytes/strings that is sent to the port. If I send the AT command it always echoes the AT and OK I just want it to echo the OK. BR Jeppe Put E0 in your init string. Look on the web for Hayes Command set. RMJR ...Show All
