TheGriff's Q&A profile
Visual Basic First Chance Exception passing page class as parameter
I'm trying to upgrade our application from 2003 to 2005 and I'm having a horrible time getting anywhere. One issue I'm having is I'm getting a ton of "First chance exceptions", which is, if nothing else, severely slowing down the debugging processes. I know the main cause of these is that within the codebehind, we call worker classes and pass "me" as a parameter, which is read as a Page class. For instance: Public Function Test4Functions( ByVal sText As String , ByVal sTableName As String , ByVal sRecNbr As String , ByVal myPage As Page, ByVal sSPIClientid As String , ByVal iFormNbr As String ) As Stri ...Show All
Smart Device Development Opening Serial Port more than two times this error occures “The Port ‘COMx:’ does not exist”
Hi all! This is my first post here, but I am really baffled by this issue, so here goes, I hope someone can help. The hardware this is running on is an Axim X50 with WM 5.0. I am using a CF+ Serial Card as a com port. I have access to CompactFlash cards from Quatech as well as from Socket and Ratoc and have this problem with all of them. This program runs fine twice then when I start it a third time I get the error “Port ‘COM4:’ does not exist”. The com port exist in the list returned by GetPortNames. The code that I used to test this problem in a console application follows: ...Show All
SQL Server Retieving ODBC Settings.
I'm having some issues grabbing ODBC Settings. First off I need to present a user with the options to select thier DSN, Server, UID, PWD, and Database settings. I have come up with a way using the SQLBrowseConnect function to obtain the Server and Database information I need. Therefore, I have a semi working version of the program. I just need a way to make the program a little more user friendly/fool-proof. I know that there is an option in the ODBC settings to set an default database. I need a way of retrieving this setting and the default server as well. Lastly I would like to turn a text ...Show All
.NET Development Norton SystemWorks Basic One Touch Button Program Integrity Scan Microsoft.NET Framework v2.0
Dear Friends I recently installed Microsoft.NET Framework v2.0 on my computer so that I could check the viability of my computer for the new operating system "Vista" that Microsoft are launching next year. The download worked fine and allowed me to assess my computer appropriately. But the next time I used One Button Check Up in Norton SystemWorks Basic I found the following 10 errors appeared in the Program Integrity Section: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\AppLaunch.exe cannot access a necessary file, "msvcr80.dll" C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe can ...Show All
Visual Studio Tools for Office <path> is not a valid office add-in vs2005 and outlook 2003
Hi, i'm using vs2005 and the outlook add in to build an add-in for outlook 2003. But when I want to debug the add-in, it is not loaded by outlook. I can see the dll when i go to the com add-ins. When I want to activate it, outlook just clear the checkbox. When I want to add it manualy I get the exeption "<path> is not a valid office add-in." The frustrating part is that it was working fine. Please can somebody help me. Hi All, This appears to be a really challenging problem! In my case I had a working Outlook 2003 Add-in which needed a shim before I deployed it. I added the shim, had s ...Show All
Visual Studio Team System TFS Source Control - Get Latest not working properly - Files are not marked ReadOnly
A couple problems with TFS Source Control. 1. Sometimes when getting latest, it will tell me that I have lots of conflicts because there are writable versions of a file in my working folder. I go and look and the file attributes are marked with an "A" instead of "R". This happens a lot and some of the files I never even worked on. Is there some way I can re-get everything from source control to overwrite all my files with the "R" readonly flag flipped. This also causes a problem when I try to edit one of these files that doesn't have the "R", it doesn't ask me to check it out. It seems quite random ...Show All
Visual Basic Need help to troubleshoot if statement error message
Hello, I'm trying to validate user input in a text box with an IF statement and I want to limit the number of characters to 60 or less. Initially this seemed to be working fine, but now I get the error message no matter what I enter in the text box: Private Function GetLine( ByRef validLine As Boolean ) As Boolean validLine = False 'check to see if the user has entered anything in the txt box If Not (txtEnterLine.Text.Trim() = "" ) Then 'check to see if the txt box contains 60 characters or less If txtEnterLine.MaxLength <= 60 Then 'if validated, assign input to class level ...Show All
Visual C++ IntelliSense works intermittently
I understand that c++ intellisense is poor than c#, but sometimes it simply doesn’t work. The scenario is quite simple: Edit a line and type a class object and then the -> operator. Successfully intellisense open the drop-down box and show all available members. Now go to the next line and type de same class object and intellisense is not capable to find any thing. Or at reverse situation. In first line intellisense doesn’t find anything and at the second line it finds the correct available members. And, of course, the typed stuff is correct and I strictly follow the rules given in “Troubleshooting IntelliSense in C ...Show All
SQL Server Semi-additive measures in AS2005 Standard Edition
I am not able to find any work-around for semi-additive measures (specifically Avg) in Analysis services 2005 Standard edition. (Aggregation type 'Avg' is not supported in Standard edition, however 'Count' works!) Any suggestions would be appreciated. Regards, Mahesh Hi Mahesh, Often in AS 2000, Average is computed as Sum/Count: >> Newsgroups: microsoft.public.sqlserver.olap From: "Sean Boon [MS]" Date: Mon, 14 Jul 2003 10:55:54 -0700 Subject: Re: avg If you want to create an average , what you need to do is create one measure called SUM, and another measure based on COU ...Show All
Visual Studio Express Editions Image library or VS2005ImageLibrary.zip
Boy am I finding this VB2005 stuff tough going, just about everything I want to do has changed. Anyway I want to use some of the 'pretty' graphics that are now available, I did download some freebies when I downloaded Express a couple of weeks ago but found them limited. So when I am creating my menu items, I can see some images already in use, but I cant locate them, where are they located I could reassign some of them if I could find them. So I started searching help and was advised that there are lots of images in VS2005ImageLibrary.zip located in ..... VisualStudio 8\ Common7\ see help... icons ...sources for the exact loaction ...Show All
Visual Basic Localizing My.Resources
Hi! Does anybody tried to localize the resources that reside under My namespace (or any other strongly typed resource file) A stronlgy typed resource file (.resx) created by Visual Studio is formed by an XML file (.resx extension), which contains the resources, and a code file (.Designer.vb extension) which is automatically generated by a custom tool, according to the contents of the XML file. Is it possible to create another .resx file which without the .vb file and use it to store resources for another culture ps. It would be greate to have another forum for localization issues. Just one thing to add - step 4 will no longer be n ...Show All
Smart Device Development dblclick mouse event on datagrid
hi How can I work with event called "doubleclick" - long touch on screen something like MouseUp event but i need to invoke "bubles" (like on invoke context menu), and the event will invoke after bulbles is complete:) [VS2003/WM2003 .NET CF] gibic wrote: I am not satisfied with this solution. Why You described your end goal and you were told how to achieve it. Cheers Daniel ...Show All
Visual C++ Rationale for C++/CLI Value Types not having a default constructor
Given value class X { public: // Not allowed: X():i(100000),s(10000) { } // Allowed void InitializeDefaults() { i = 100000; s = 10000; } private: int i; short s; } How can: 1) X x; x.InitializeDefaults(); be better semantically than 2) X x; for setting the default values of 100000 for i and 10000 for s In other words what is the rationale for removing the natural user-defined default constructor for value types and forcing the user to default construct the value type object to its zero or null values and then have to call another function to set default values which the type may want I read that 2) can not be guaranteed to occur properly in ...Show All
Windows Forms how to delete duplicate records from SQLDB
Hi, I want to retrieve original records from SQLDB. If there is any duplicate records, how to erase duplicate or avoid selecting duplicate records . Thank U! ...Show All
Visual C# usage of const
Hi all, I am a beginner of C# language and have a question about const. Does C# allow to use const keyword to parameter option like C/C++ After trying several times, I wonder that C# doesn't. If so, aren't there ways to avoid the code like this : class Hoge { .... methods or something are declared... } class HogeHoge { public UseHoge( ref Hoge h ) { h.someproperty = 12345; // not problem to change some properties of h h = new Hoge(); &n ...Show All
