pdurbha's Q&A profile
Visual Studio How To Change Developer Preference Once It Is Set
This may sound like a very dumb question, but when you first open Visual Studio 05 after installing it you are asked to set what kind of developer preference you want. When I did this I accidentally selected Visual Basic developer and I'm missing half of the tools I normally use, as well as the ability to switch between debug and release versions. I know there has to be a place I can go to reset it but I have look over every option and for the life of me can't find where it's hidden at. Any help on this would be greatly appreciated. Thanks, Jeremie Grund Close all of your instances of Visual Studio and restart a single instance from the command line with the /resetuserdata flag and if you install ...Show All
Visual Studio Way to avoid repeating targets
Is there a better way to do this in MSBuild Is there an iteration mechanism that I missed in the documentation < Target Name = " Candle " DependsOnTargets = " CandleA;CandleB;CandleC " /> < Target Name = " MakeIntDir " > < MakeDir Directories = " $(IntDir) " /> </ Target > <!-- This is repetitive and error-prone. --> < Target Name = " CandleA " DependsOnTargets = " MakeIntDir " > < Exec Command = " $(Candle) $(CandleFlags) -out $(IntDir)A.wixobj A.wxs || del $(IntDir)A.wixobj " /> </ Target > < Target Name = " CandleB " DependsOnTargets = " MakeIntDir " & ...Show All
Visual Studio Express Editions RTF Problems
hi everybody i have just 2Quick questions to ask: 3)when I open any rich text document in my rich text box the formatting is lost and all I get is a ton of font code 4)in my rich text box if I highlight any text my application crashes, in VB, before I compile it I get a warning saying that stream reader and stream writer are being used in code before they are declared, but looking at the code that looks OK . My Code: Imports Microsoft.VisualBasic.FileIO Public Class MainWindow Private Sub OpenToolStripMenuItem_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OpenToolStripMenuItem.Click Dim sr As IO.StreamReader 'streamreader is used to read text Dim FileName A ...Show All
Smart Device Development Web Services - C++ - VS 2005
When I add a Web Service in C# - no problem. When I use C++ in VS 2005 I get: _CE_ACTIVEX was not defined because this Windows CE SDK does not have DCOM. _CE_ACTIVEX could be caused to be defined by defining _CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA, but it is recommended that this be done only for single-threaded apps. _ATL_NO_HOSTING was defined because _CE_ACTIVEX was not defined. So I define _CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA My question is - what is different about C# that I don't get the error. If I create and call the Web Service from a thread I create would this be good thing Try this. ::CoInitialize(NULL); ObjWeb.SetProxy(); // Do your stuff ObjWeb.Uninitialize(); ::CoUninit ...Show All
Windows Forms passing data from richtextbox to richtexbox
Hello people what i am trying to do is pass data between 2 RichTextBoxes that are on differnet forms. I tried with the Me.RichTextbox1 = My.Forms.Form4.RichTextBoxe1( ) but it doesnt work. Any suggestions Thanks any help will be appreciated thanks for your answer. I put the code in the form_load and it worked.I was,however, missing the".rtf" extension when i tried it earlier today. Thank you for pointing that one out ...Show All
Visual C++ destructors and SEH
got code class A { public: ~A () { std::cout << "~A\n"; } }; void f2 () { int u = 0; //int z = 9 / u; throw (0); } void f () { A a; f2 (); } int main () { __try { f (); } __except (EXCEPTION_EXECUTE_HANDLER) { std::cout << "exc\n"; } } output : exc code : class A { public: ~A () { std::cout << "~A\n"; } }; void f2 () { int u = 0; //int z = 9 / u; throw (0); } void f () { A a; f2 (); } int main () { try //__try { f (); } //__except (EXCEPTION_EXECUTE_HANDLER) catch (...) { std::cout << "exc\n"; } } Output : ~A \n exc code: class A { public: ~A () { std::cout << "~A\n" ...Show All
Visual Studio problem with new software
I recently bought 2005 Visual Studio Academic version...I installed and all seems smooth...however I click on for new project CLR console application give it a name and then the software closes...when I reopen there is a saved folder of the name of this project but I cannot open ant .h or cpp file I uninstalled and put back on...is this a bum copy I have 2003 with no problems Thanks WEll I tried to repair and first use it showed a .h and .cpp but would not open...now today same as before... I have a partitioned hard drive where the c is down to 15% free space and I recall that I had to change something with the fat 32 file system for some program...could thesehave anything to ...Show All
Visual Basic Stupid question....How do I instantiate a form from another form?
I'm very new to vb.net. Just wondering how I can start up another form from another form's button. Thanks, and sorry for the newbie quiestion. Can you tell me how to "declare" these I havent found any help related to how to control the number of calls to open forms. the only one was in C++ and dont know how to translate that into Visual. Example of my "menu" code , inside form1 ( wich is the "PARENT" or MDIparent of Form3 ) form3 = displays a picturebox with the file that opens using the menu in form1. form3 can be called unlimited times. Private Sub AbrirToolStripMenuItem_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Abrir ...Show All
SQL Server Flat File and uneven number of columns
Please leave feedback for Microsoft regarding this problem at https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx FeedbackID=126493 Ok I'm sure it just me, SSIS has been great so far....but how can you import a straight CSV file with and uneven column count. For example: (assume CR LF row delimiter) The,Quick,Brown,Fox,Jumps Hello,World This,is,a,test "Normally" I'd expect this | Col1 | | Col2 | | Col3 | | Col4 | | Col5 | The Quick Brown Fox Jumps Hello World NULL NULL NULL This is a test NULL Ok but what we get is the row delimiter is ignored in preference for the column delimiter and the row delimiter gets sucked in ...Show All
.NET Development Need a way to sniff DLL API calls
Hi all, I have a Software that's based of two components (it's based on much more components than that but i will do my best to simplefy my query) an EXE file and a DLL. The Exe file is referenced to the DLL file (it has classes there and all sort of data types...) and it create classes and uses the functions that are stored in this dll. What i want to do is to have some kind of an outsider DLL that will basically sniff what the EXE file is doing (when the EXE file will create a class X for example - i want that this sniffer will throw a messsage about it, when it calls a function of X.Function() i want the sniffer to catch this call also and throw a message about it too). my question is: is this thing can be made without implemen ...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 Chandra, Could you describe the size of your solution Do you have many projects Do you find yourself changing the headers often Do you change configurations often (e.g. from debug to release and back) Does your code make heavy use of preprocessor macros Thanks, ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Assign to Vector2?
This is probably an easy question, how do I assign to a Vector2 This was my first bad guess: Game1.Players .Position = (0f,0f); but it didn't work, I know I can assign to the .X and .Y of the Vector2 but I want to do it in one simple step. Also can you do it without creating a new Vector 2 Cheers Alfons Because what I heard it's bad to create unnecessary new objects when running the solution on the Xbox360. And I want to do it in one line instead of: Game1.Players .position.X = 0f; Game1.Players .position.Y = 0f; But I guess I can always create a method in my Player object. ...Show All
.NET Development SecurityException, why?
Hi, I am trying to use IIOPChannel.dll from http://iiop-net.sourceforge.net. It is strongly named assembly. I have another strongly named assembly which calls IIOPChannel.dll. So the order is: program -> mydll.dll -> IIOPChannel.dll. The problem is that I get a Security Exception when mydll.dll tries to link IIOPChannel.dll: SecurityException.Action = LinkDemand. Message: That assembly does not allow partially trusted callers. When I call IIOPChannel.dll directly from my program there is no SecurityException. Unfortunately that is not an option as mydll.dll is required. I have given the assemblies full trust by using caspol: caspol -af mydll.dll. I have also tried setting the AllowPartiallyTrustedCallers attribute on the IIOPchannel. ...Show All
Visual C++ Weird "Goto" statement
I was reading an article entitled "The Case for Virtual Register Machines," where it had this code snippet: typedef void *Inst; void engine() { static Bytecode program[] = { iadd /* ... */ }; Bytecode *ip; Inst dispatch_table = { &&nop, &&aload_null, .... }; int *sp; goto dispatch_table[*ip]; iadd: dest = ip[1]; s1 = ip[2]; s2 = ip[3]; reg[dest]=reg[s1]+reg[s2]; ip+=4; goto dispatch_table[*ip]; } I've never seen "goto" used that way. I thought it could only be used for jumping to labels. Anyone know what this is about You are correct: neither Standard C++ nor Standard C supports syntax like this - they only support goto label. Having said that I have seen syntax like this in ...Show All
Visual Studio Tools for Office ThisDocument.Close raise an unhandeled exception "this method or property is not available ..... another application"
Hii all, I really appreciate any help or suggestion guys ... i am just facing a really hard time with this one. I opened a VSTO document from internet browser ... something like this URL :http://testSRV/WordDocument1/WordDocument1.doc the server (testSRV) is on another machine and so does the document (there is no local copy ). I implemented a close button in the actionPane that is supposed to close the Word Document using the method Globals.ThisDocument.Close() however, when the user click on the button the following error appear (This method or property is not available because this doucmetn is in another application ) Exception Text:- System.Runtime.interopServices.COMException(0x800A11FD) at micr ...Show All
