Teo Lachev's Q&A profile
Visual Basic VS2005 with VB 6.0 Installed
Hi, I installed VS2005 in a PC that already had VB 6.0 installed. Now whenever I open VB 6.0 a message "Please wait while Windows configures Microsoft Visual Studio 2005 Professional Edition - ENU" appears and then it will ask for the cd. What is it trying to do Will there be any conflict between the 2 IDEs Not sure what it is trying to do or why you are having this issue. VB6, VB.NET 03. and VB.NET 05 are all capable of side by side installations. Try putting in the cd as suggested and see if it will take care of the issue ...Show All
Microsoft ISV Community Center Forums Trying to create a global variable
I am trying to create a global variable in a user form within Microsoft Excel. I know the variable must be in the General area. So I type: bt = Sheets(10).Range("G25").value then I click play(run), but that highlights "G25" and says : Compile Error: Invalid outside procedure I tried just typing: bt="hello" And then I hit play(run), and it highlighted "hello" and gave me the same error. What am I doing wrong Hey Derek, I figured that part out last night, but I did not need a variable that would work outside of a userform, just outside the "private sub". So in the module i created a line: public const bt as string = Sheets(1).Range("g25").value But I dont think ...Show All
Visual C++ VS .Net 2005, how to disable intellisense...
Hi I am really frustrated with the performance of VS .Net 2005. This is because I always see at the bottom "updating intellisense..." and it uses 60% to 70% of CPU. How to disable this updating of intellisense... Please this is making Visual studio unusable. Thanks Chandra Hi We do not have C# projects. We have only C++ projects. We have around 200 to 250 projects in a solution... So how to disable intellisence in C++ projects. Thanks Chandra ...Show All
Visual Basic VB6.FixedLengthString(intBufferSize)
When converting VB6 code to VB 2005, I get some conversions that are in the form "VB6.FixedLengthString(cintBufferSize)". This usually occurs in a Type declaration where a string has to be of a certain length. What does this mean, and what would be the correct format to use in a Structure in VB 2005 Thanks, Mike if a string has to be of a fixed length, you can either: 1) use a stringbuilder and specify a specific capacity (and best practice to do this for handling strings) 2) take a look at this: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnvbpj01/html/gs0601.asp I guess from reading it, you can specify the "space" length: Dim theString as String = Space( leng ...Show All
.NET Development new at this
my computer cant make the connection needed when activating or debuging asp.net (so i cant see if what i program actualy works) its a simple program (aspx, aspx.cs files, and an access file) how do i try it for real then i tried moving the files to server (lycos) though im not sure if it supports that kind of thing when i enter the address ( www....../file.aspx ) i see the page without the components... just the headers.... so what gives what do i need to do if anyone can also give me their icq/msn/email for further help on how to get it solved, i'd appriciate it (cause i think there may be more than one problem) do you have another way of checking a site (even a name of another free server that ...Show All
Visual C# ORA-12154: TNS:could not resolve service name
I am trying to connect oracle 9i through c# and I am getting the following error. Please see the code below. I have created a dsn name using Microsoft ODBC for oracle. I am using .net 1.1. My oracle has installed in d:\ my .net is installed in c:\ can anybody help me what is the problem for the error. try { //string myString= "Data Source=test_data;Integrated Security=yes"; OracleConnection connectionObj= new OracleConnection(); connectionObj.ConnectionString = "Data Source=ArunTest;User Id=scott;Password=tiger;"; connectionObj.Open(); connectionObj.Close(); } catch (Exception ex) { Console.WriteLine(ex.Message); } Check your ORACLE_INSTALL_FOLDER\Network\Admin for a file c ...Show All
Visual Studio Tools for Office Outlook Add-in : best way to deploy minor/major updates after using setup project?
If I initially deploy my Outlook add-in using the setup project (to test for prereqs, grant security and create registry entries), what is the easiest way to deploy minor updates Do I just need to over write the assembly and application manifest files on the target machine What if I want to use the Publish wizard Can I mix the deployment methods in this way or is there an issue with the fact that the publish wizard creates subfolders for updates For more major updates where I need to uninstall the add-in via add/remove programs, how can I code my setup project so that it uninstalls any existing versions of the add-in before trying to update the new version Thanks, Tad I'm not sure t ...Show All
SQL Server Has "Select All" option been checked for Multi-Valued Parameter?
Greetings. I have downloaded the patch to SP1 that restores the Select All choice for MVP. I am now wondering if there is a clean way (property ) to know if the Select All box is checked. My reason for needing this is that I want to selectively print a block near the top of the report that shows all of the parameters used to create the report. There are many blocks of parameters and each can have 5-10 possible choices. It would be much cleaner if I could print "all" rather than list all of the possible values, if in fact that category was not really used to filter the rows. Perhaps I need to build a dynamic where clause but I would rather not go to that trouble if I can use a built in feature or property. Thanks in ...Show All
.NET Development Issue: Asynchronous WebService Access in Window 2000 SP4
Hi, We are accessing web serivice asynchronously uisng Class1[pl. find the class in code]. It is very simple project. My problem is: in WebOne project -> Class1 {class} -> Function { Func1} "IAsyncResult iResult=objWebService.BeginHelloWorld(myCallBack,objWebService);" with that we are trying to access the webservice... It is executing without any problem in "Windows XP SP2" but in "Windows 2000 Sp4" we are unable to get the result. for that we added some code "iResult.AsyncWaitHandle.WaitOne();" then it exeuting without any problem in "Window 2000 SP4" & "windows XP SP2". So, What is the problem in Windows 2000. Please let me know the details. Thanks. ...Show All
Visual Studio Team System Why should I go for VSTS?
Why should I go for VSTS Can I get Clear explanation the reasons to Choose VSTS like what the failures before this approaches in Project Development, Process Whats the reason to go for VSTS What areas VSTS concentrated in Project Development What advantages of Using VSTS and get the Bussiness Solutions 1. Better Planning: Various integrated tools like MS Project and MS Excel provide ability to plan your entire team work. 2. Better Monitoring: Concept of workitem tracking reduces the need for a PM to do proactive monitoring of the tasks assigned to each team member 3. Better control: Excellent integrated reports based upon SQL Server 2005 Reporting Services allow the project pace and project quality to be ...Show All
Visual C++ i++ or ++i which one efficient
Hi, which of this statement is efficient i++ or ++i; i tried hard to find the answer but i am getting many explanations i am not able to find the correct answer. .help me manish sharma einaros wrote: The OP is asking which is faster: pre-increment or post-increment. You said that there is no difference between the two in a loop, and this is not correct. Consider for(vector<sometype>::iterator i = vec.begin(); i != vec.end(); ... ) . There will be a noticable difference between doing a pre and post increment on the iterator. The latter, i++ , will result in the iterator copying some internal data to a temporary, incrementing the actual data, then returning the tempo ...Show All
Visual C# curve length & area problem
greetings, can anyone help me about calculating the length and the area of a curve/closed curve I urgently need help, code or just the method ... I'm using .net 2005, c#. and I'm drawing the curve with using simply the points. thanks in advance. Hi! A simple way to calculate the area under the curve would be to iterate through the pixels from left to right and add the y-position of each point on the curve to the overall area - of course, this only works, if you've got the exact position of each pixel. Besides, it is not really accurate as you can't calculate "inter"-pixels. So, have you got an equation describing the curve (or at least each part of the curve) If so, you could differe ...Show All
Architecture Lost SNK File
Hi, I do sharepoint web part development. I lost the SNK file (somebody deleted) which was used to sign an assembly. Now i use a different SNK file and as a result i have a NEW Public Key Token different from the OLD assembly (its token was generated from the old snk file which i lost). When i try to deploy the web part which i signed with the NEW token, it is NOT overwriting the old web part. But i'm able to add this web part any new page. It just doesn't overwrite the old one. I have around 200 sites which use this web part. Is there a way to overwrite it instead of doing Remove Old / Add New in 200 sites manually I have the old DLL and CAB file and i know the old Token. But i don't have the SNK file which generated it. How c ...Show All
.NET Development Creating and setting xsi:type attribute
Hi. This is my first post on this forum, so please excuse me if I have chosen the wrong sub-forum... I'm trying to create an "xsi:type" attribute and set it to a particular element. Here is my code: XmlElement PropertyText = xmldoc.CreateElement( "Property" ); XmlAttribute propertiesTextType = xmldoc.CreateAttribute( "xsi:type" ); propertiesTextType.Value = "PropertyText" ; PropertyText.SetAttributeNode(propertiesTextType); When I run the code, it produces this attribute: type="PropertyText". Why does it cut off the "xsi:" part What do I have to do to create an xsi:type attribute Thanks :) Yeah, one of t ...Show All
SQL Server using SQL Express in file mode on Vista
Hi! We use SQL Express in our Applikation in file mode. Users can create databases in different folders and pathes. Each time a user loggs into our applikation, we attach the db he choosed, and every time he closes the applikation, we detach the db. While this works fine in Windows XP, we have serious problems with Windows Vista. We tried a connectiong string with "attachdbfilename", "sp_attach_db" and SMO server.AttachDatabase Where could we get some more advice for our problem. It is in fact an issue of UAC. Best regards, Reinhold Hi Reinhold, So what is the problem you're seeing Please give details such as error messages, directories where you're trying ...Show All
