visual-studio-2008

class variable losing value

故事扮演 提交于 2019-12-13 02:57:09
问题 This is how my code looks like. I want to kno why is the value in the label coming as blank or null. I want to assign the value to username at get data and use it at the button click event. Can some1 guide me with this and why is it happening and how to solve this issue I don't want to use a session and static. namespace GUI { public partial class Updatechild : System.Web.UI.Page { string UserName; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { //CALL A FUNCTION TO

Visual Studio 2008 debugger wrong instruction executed position (Qt4, XML)

橙三吉。 提交于 2019-12-13 02:57:05
问题 I have some part of code with which the debugger , when entering , starts stopping in lines with { braces.. suddenly jumps back to a blank line, and apparently is doing something (variables change), but the positions are different (there is some kind of weird offset back, skipping blank lines) and obviously i cannot see the contents of any variable. Some facts: I'm compiling on DEBUG The code that fails falls inside more code which executes perfectly before. The code does not work properly ,

Find the connection-string

若如初见. 提交于 2019-12-13 02:56:59
问题 I am creating database application in VB 2008. How am i find the connection-string for that application? what are facts that i have to include in connection-string? 回答1: You don't say what database you are connecting to. You will find lots of details on a variety of databases here: http://connectionstrings.com/ Also, you would put the connection string itself into the App.config or web.config file. See also MSDN How to read connection strings from the web.config 回答2: This depends on which

.obj to .cpp converter?

ぐ巨炮叔叔 提交于 2019-12-13 02:37:29
问题 Is there any .obj to .cpp converter? Is it possible to do it? MICROSOFT VISUAL STUDIO auto-magically deleted my code files when pressed the F5 key. Please help me. I have the .obj files (VS forgot to delete them.ha ha ha). 回答1: Unfortunately it is impossible to decompile an .obj file back to source. More info here. 回答2: shut down your computer, boot from removable media, some sort of the UNIX, and run strings utility on your hard drive. It may be able to recover text off your source code. 回答3

Visual studio 2008 Debugger command line arguements

与世无争的帅哥 提交于 2019-12-13 02:33:18
问题 I have the following in Debugging | Command arguments -a start.ini > c:\temp\a.out The argc is 3 as expected but is 5 in one of my collegues machine- it seems as if the redirection operator is taken as an arguemtnt on his box. Is there any setting to fix this ? 回答1: Redirection support in the "Debugging|Command Arguments" project setting was broken in Visual Studio at some point, but I'm not sure exactly which releases that's true for (http://connect.microsoft.com/VisualStudio/feedback

AES encryption problem in Debug and Release mode

一曲冷凌霜 提交于 2019-12-13 02:30:01
问题 I am using AES encryption algorithm (Rijndael implementation). I am using MS Visual Studio 2008 IDE for my development work. I could see a strange problem in my Debug and Release mode. When I encrypt a string in Debug mode it generates different bytes than Release mode. But fortunately decrypting will result same string. I have tried in Mac, it generates one more byte sequence but able to decrypt all byte sequences correctly. Is this problem related to encryption algorithm or Debug/Release

How can I remove connections in Visual Studio “Copy Web Site” tool?

☆樱花仙子☆ 提交于 2019-12-13 02:26:50
问题 Visual Studio 2008 has a Copy Web Site tool that remembers previous FTP locations that files have been copied to. There is a "Connections" drop down where they are listed. I'd like to remove some old listings from that, but I can't find where they're stored. I've looked at the solution file, and there's nothing there. John 回答1: Check http://csc-technicalnotes.blogspot.com/2009/02/remove-connections-from-mru-of-visual.html 来源: https://stackoverflow.com/questions/2001602/how-can-i-remove

Error: operation must use an updateable query

那年仲夏 提交于 2019-12-13 02:15:44
问题 After making the set up of the application(developed using VS 2008 and MS Access) the installation in another system works fine. But whenever I try to change the Password or id(there is a login window which the user need to access to get into the main window) it shows an error sayin "operation must use an updateable query". Can anyOne suggest the remedy? Thank you, Indranil 回答1: Have you checked the permissions are the same for both set-ups? You will need a minimum of read and write

OpenGL: How to control which buffering method my window will use?

六月ゝ 毕业季﹏ 提交于 2019-12-13 02:12:35
问题 I want to give the user ability to choose from double buffering and triple buffering, because on some cards (or OS?) the triple buffering is enabled by default, and its causing some performance problems. How can i do this? 回答1: You cannot do this from OpenGL itself, since OpenGL only deals with drawing calls, etc. You need to use the vendor specific calls for this. In Windows, there is the WGL for handling context creation, etc. 回答2: There are no such function in OpenGL. The closest what I

Boost/std bind how to solve such errors? (binding function from one class to another class)

你说的曾经没有我的故事 提交于 2019-12-13 01:58:00
问题 So I am triing to create a simple graph connecting one class to another... #include "IGraphElement.h" #include <boost/bind.hpp> class simpleRendererGraphElement : public IGraphElementBase, public simpleRendererLibAPI { public: IGraphElement<ExtendedCharPtr>* charGenerator; // we owerrite init void Init(IGraphElement<ExtendedCharPtr>* CharGenerator, int sleepTime) { charGenerator = CharGenerator; charGenerator->Add(boost::bind(&simpleRendererGraphElement::renderCastedData, this, std: