SAS8721's Q&A profile
Visual C++ F5 won't check configuration and offer to recomplile. How to turn it on?
I'm having a problem with hitting F5 to start a debug session on one of my machines. On every other machine I use, it checks whether I've modified any files and then asks if I would like to recompile. But on this one machine, it doesn't ask. It just starts the debug session. Is there a way to make it compile and then debug This is happened to me over the years but it's mysterously started working properly again eventually. I just tried uninstalling, including deleting the directory, and reinstalling. Nothing. I'm guessing it's in some registry setting. Anyone know how to "fix" thi ...Show All
Visual C# Global Connection String
Suppose, i've a form. It has 2 buttons. Every button has click event where more buttons are created at runtime. I need to read data from a database (same or different Table) under every button. My question is : Should i write code to create database connection, dataset, dataadapter under every button or is there any alternative solution like creating a global method(Create Connection+Create DataSet+DataAdapter etc) that will be called when necessary Please Help Me by giving some Code It depends but I guess most of the code can be shared in your case. I won't give you any code as your question ...Show All
Visual Studio 2008 (Pre-release) ProtocolException
Hi i'm getting an exception running a simple ping service that i have developed that i cannot understand. It's strange because it was running 2 days ago then i have changed some things in iis and it stopped running. What it's worst is that everything stopped running, even the samples and they all fail with this exception. I'm using Visual Studio .net 2005 Beta 2 and the September CTP of Indigo, and the exception is : System.ServiceModel.ProtocolException was unhandled Message="The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8).&qu ...Show All
Visual C++ lnk 2019 error
hey guys, i was wrapping a native dll inside a managed c++ dll. i was compiling to test how i was going, and it got a weird lnk error. it is the following: error lnk2019 : unresolved external symbol _main referenced in function _mainCRTStartup. so how am i suppose to solve this issue imusing the VS 2003. thx and the way i experienced until now, in order to load or make an object from native dll in managed C++, u have to put __nogc before the managed class that will wrap the native, right but by putting __nogc this also means that the class isnt managed, so C# not seeing its contents might be abit obviou ...Show All
Visual C++ Thread Termination
Is there any way to easily instruct windows to wait for a given thread to complete upon exit of the process in which it was created, other than explicitly calling a function such as WaitForSingleObject at the end of execution As an example, if I create a thread in order to run an asynchronous function, such as one which performs a large calculation and stores the result to a file, logically it should continue to execute until it is finished even though main of the process in which it was created may return during the middle of the operation. I would think that such behavior would be commonly desired, and even prefered by default, yet I am no ...Show All
Windows Forms giving a panel focus
I am sure its simple, but I have searched about and can't seem to et something working. Simple window, i created a panel in. Here is what I have and have tried: The commented portions are what I have tried. [code] private : System::Void IrrlichtPanel_Paint_1(System::Object^ sender, System::Windows::Forms::PaintEventArgs^ e) { ObjDisplay->init((s32) this ->MyPanel->Handle.ToPointer()); //this ->MyPanel->BringToFront(); //MyPanel->BringToFront(); //this ->MyPanel->Focus(); MyPanel->Focus(); } [/code] The object I am loading into the panel is displaying corr ...Show All
Visual Basic Question on Registering VB 2005 Express Edition
I realize that this is probable not the correct forum for this question, but perhaps someone could point me in the right direction. I recently downloaded VB 2005 Express Edition and have been unable to register it. I get to the point in the registration process where Micro Soft is to send me and e-mail message for e-mail address confirmation, and I never receive the message. I have attempted redoing the process and now I am receiving an error advisory stating "Pending limit exceeded your limit of verification e-mail messages. I have called the help desk and they claim that they can not help in this manner because it is a free trial o ...Show All
.NET Development form is lost
Hi. I am trying to do simple graphics here using 2 forms: 1 main form which executes form 2 (graphics) in a seperate thread. form 2 on load basically has a for loop and in it will increase the opaticy of the form by 0.01 to give a fade in effect however once this is shown, the form is then lost! if i do not put this in a seperate thread created in the application it's fine, the form is there. but since this type of graphic "freezes" the previous form, i prefer to use threading to avoid not freezing the main form. any ideas I am guessing its because once the operation is complete in the thread method, that's it quit the thread. but there must ...Show All
Visual Basic multiple button with 1 method
hi there, i have set of 5 buttons, and i would like to use 1 method to listen to these 5 button's click event and display the particular name of the button when i click 1 of it using messagebox, i have no idea how to implement it, can anyone show me example: when i click Button1, a messagebox will prompt and show me "Button1", so as well for others Private Sub Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click, Button2.Click, Button3.Click, Button4.Click, Button5.Click : : : End Sub thank yo ...Show All
SQL Server How to retrieve data from query and link the data to a data number?
i'm doing a project on SQL Server 2005, i'm stack in searching the data and can't link the data in the data number.. can someone help mi with the programming code as i can search for the words in the table but i can't link with the data number.. first thing is how to search the keywords from the tables Second thing after u search the result ,how to link the result to a number related to the result ...Show All
Windows Forms writing xml...
Hi, I have two questions related to xml: 1 - I want to write several data to an xml file. However the file doesn't exist when the program is first launched, so the xml file has to be created. Do I have to separate the creation of the file from adding a record, or is there any way the program can know IF file exists only add, IF ...Show All
Smart Device Development getting error "value does not fall within the expected range" on pocket PC 2003 emu
Hey all, Im stumped at this seemingly easy task. I need to ask a user for a file name. thats it. But im getting the above error. here is the code: (Where UserInput is a basic form with 2 buttons and a text box) UserInput ui = new UserInput(); ui.Parent = this; if (ui.ShowDialog() == DialogResult.OK) <-- ERROR HERE { fileName = ui.FileName; FileStream fs = new FileStream(filePath + "\\" + fileName, FileMode.Create); XmlTextWriter xtw = new XmlTextWriter(fs, System.Text.Encoding.Unicode); xtw.Wr ...Show All
Visual C# Get Confirmation
Hi, It's regarding the System.Web.Mail.MailMessage, is there any method to check the mail server, to confirm whether the mail is delievered from the server, once after executing this command " SmtpMail.Send(objExpressMail)" or how can i make sure that the mail sent thru my application is gone sucessfully (from the mail server) Thanks & Regards, Sriram S That's not going to be easy. As far System.Web.Mail is concerned if it manages to send the mail to the specified SMTP server things are OK. From here on the SMTP server "owns" the message. It tries to send it to the destination and if it fails ...Show All
.NET Development Absolutely clueless about RSACryptoServiceProvider Exception!!!
I use RSA encryption to encrypt the contents of a file. In my application, I use the public key to decrypt the file: RSACryptoServiceProvider rsaprov = new RSACryptoServiceProvider (4096); rsaprov.FromXmlString(System.Text. Encoding .UTF8.GetString(publickeyarray)); byte [] licensearray = rsaprov.Decrypt(System.Text. Encoding .Default.GetBytes(rsalicense), true ); Now for the error that is driving me MAD: When I log onto my webpapp using the "Automatic Logon in Intranet Zone" option in IE, everything works perfectly. When I use the "Prompt me for my Username & Password" option I get an exception on ...Show All
Visual Studio Failed to create wizard.
Follow the steps in the Walkthrough: Creating a Wizard http://msdn2.microsoft.com/7k3w6w59.aspx use c#. After step 6, I got two warnings Warning 1 "I:\test\MyNewWizard\bin\Debug\MyNewWizard.dll" does not contain any types that can be unregistered for COM Interop. MyNewWizard Warning 2 "I:\test\MyNewWizard\bin\Debug\MyNewWizard.dll" does not contain any types that can be registered for COM Interop. MyNewWizard After step 12, I got a messagebox "Invalid at top level of the document". What's wrong Solved by set the ComVisible attribute to true in AssemblyI ...Show All
