Jason1001's Q&A profile
Visual C# How do you change the value of an already created cookie?
Below is the code I'm currently using on my login page to save the username and password. I'm going to later encrypt it but for now I'm simply setting it. HttpCookie UNcookie = new HttpCookie("TheUsername",txtUsername.Text); UNcookie.Expires = DateTime.Now.AddYears(1); HttpCookie PWcookie = new HttpCookie("ThePassword",txtpass.Value); PWcookie.Expires = DateTime.Now.AddYears(1); Response.SetCookie(UNcookie); Response.SetCookie(PWcookie); The code works great the first time I run it. If I go back to the page I am presented with the information that was saved. If a new user logs in on the same machine and acct, the ...Show All
Game Technologies: DirectX, XNA, XACT, etc. pixel shader computation: precision problem?
Hi, I do the following computation in a pixel shader: const float texel = 1.0 / 128.0; result = floor(In.texcoord.w / 16.0) / 64.0 + texel In.texcoord.w containes an integer value between 0 and 299, stored as a float, interpolated over the triangle, where each vertex stores the same value, so in practice there shouldn't be any interpolation happening. When I output result as a color, I notice distortions over the triangle and a flickering when I move the mouse, for some values of In.texcoord.w. But actually the result should be constant for each of the triangles pixels because the computation use ...Show All
Visual C++ 64Bit-Unable to Register COM dll using regsvr32.exe on WinXP64 bit and AMD64bit machine
Hi, Im executing the following command: c:\regsvr32 mydll.dll. Following error occurs: "mydll.dll was loaded, but the DllRegisterServer entry point was not found. This file cannot be registered." NOTE: 1. mydll.dll is a 64bit ATL COM dll built using Visual C++ 2005. 2. this error occurs both with debug and release version of mydll.dll Any pointers to successfully register my ATL COM dll would of much help. Thanks in advance. -shailesh.d.g I want to write a windows services program on vista but my program will run on windows xp but not to run on vista I don't know w ...Show All
Windows Forms ClickOnce fails only on first time launch
Hi, I've successfully deployed an app. to my website using ClickOnce (VS2005 beta 2). The app. installs fine on my local machine but then the JIT debugger jumps in with an argumentoutofrange exception. The debugger won't attach to my process but if I come out of the debugger and run the installed app. from the StartMenu it runs perfectly. So it's a one time problem - but where and how to resolve Thanks for your help. Jon Jon, can you determine if this exception is being thrown by the application itself or by the ClickOnce installer If you xcopy app to machine and run directly outside of ClickOnce ...Show All
Windows Forms how to add checkbox to datagrid column header
Greetings All, Anybody pls give me a suggestion or a solution for the following I want to add a checkbox to the DataGrid column header to my winform but my column data is integer. i need to do few validations based on the header check box. anybody have any idea how add check box to the column header Thanks in advance Sai ...Show All
SQL Server Could Not Bulk Copy
Hi: I am doing a full snapshot on couple of subcriptions but getting this message from last couple of days. I have to do this at night because tables are very large so it does not block the users. I am not sure which table this error is happening. It used to work fine but from last couple of days this has started to happen. I need to re-sync my subscription database with production database but some of the tables are giving problem. The process could not bulk copy out of table '[dbo].[syncobj_0x3735393934363031]'. I/O error while writing BCP data-file (Source: ODBC SQL Server Driver (ODBC); Error number: 0) ------------------------- ...Show All
.NET Development custom marshalling of System::Object* to VARIANT and back again in IJW assembly
I have two native C++ functions: One takes a VARIANT as its argument and the other returns one. I'm compiling these functions using the Managed C++ compiler to create an IJW assembly, and I want to provide real managed functions that take and return System::Object* instead. They would just marshal the arguments and call the VARIANT version to do the real work. I know that this must be possible without too much magic involved because the P/Invoke automatic marshaller can do this, but I'm unfortunately not using P/Invoke here... Actually... I finally got it to compile, but I still don't know if it's ...Show All
.NET Development SmtpClient.Send() problem results in "An established connection was aborted by the software in your host machine"
Hi, I'm having problems with SmtpClient.Send() where I end with an "An established connection was aborted by the software in your host machine" type error. My infrastructure people tell me that I should have access to the Smtp server so things should just work. I've been googling and searching forums but have yet to see a complete answer to what this error is trying to tell me. Oh and I've tried this in both a Web and a WinForm app on .Net framework 2.0 running on a clean install of XP Pro. Any opinions Thanks Scott. This is the code (massaged for security): protected void SendEmail() { MailAddress addressFrom = new MailAddr ...Show All
Visual Basic where's the VB Snippet Upgrade add-in?
it was mentioned in the free book (...upgrading VB...), but I cant find it anywhere David - I'm looking at the latest build, but the code upgrade tool should be there in the Beta 2 build as well. As noted by Dman1, you must have a code file open to see the command. Have you tried that - Steve Hoag ...Show All
SQL Server Upgrade Advisor does not detect SQL Server on IA64 stand alone or cluster
When using the upgrade advisor remotely from a Windows 2003 server sp1 with SQL 2005 installed on it, the advisor only recognizes DTS on our Itanium stand alone and clustered SQL 2000 servers. I tried running the upgrade advisor locally on the stand alone and it does not even see DTS locally, (it detects no SQL Server components). When I select the components, the next window prompts me for an instance name even though both the stand alone and the cluster are default instances. Has anyone else experineced this running the upgrade advisor against IA64 stand alones or clusters Hello, The detection logic ...Show All
Windows Forms Creating a tiff image using a single strip
I have a program that combines tiff images that will be sent to an imaging system. The problem is that the imaging system is several releases behind and does not support tiff files that contain multiple strips. Is there a way to create single strip tiff images in .net ...Show All
.NET Development Creating Demo Version
Anyone have ideas or pointers of how i can publish my app as a demo version or a timed version I have a fairly complex solution for a very narrow industry. I don't want to send out completely enabled version of my pkg for evaluation purposes. So I'm looking for ideas, pointers, code,... on how to best to build a timed expiration capability in .NET apps that is simple yet robust enough to prevent widespread piracy. Thanks, js Take a look at the Shareware Starter Kit , ...Show All
Windows Forms User Control - Get Parent size
I am developing a user control (say UC1) which consists of a couple of tabControls, few panels and a StatusBar. I am dropping this control in another form (say FRM1) When I am running FRM1, before UC1 is instantiated, how can I get the width and Height of its parent, which is FRM1 The one of the ways is declarati ...Show All
Smart Device Development TextOut() in Smart Device Application (VS2005)
It doesn't working... Help please, I'm a beginner. Hi Riven, The TextOut function is not implemented in Windows CE (the base OS on which Pocket PCs are built), there are two possible replacements: DrawText and ExtTextOut. Windows CE doesn't have the full API set that you are used to on the desktop, which can be inconvenient at times, but allows CE to run on very hardware constrained devices. I found the information on TextOut in an article by Paul Yao: http://www.microsoft.com/msj/0598/wince.aspx . Windows CE 5.0 (Windows Mobile v5.0 for Pocket PC is based on this version of the OS, Pocket PC 2003 is based o ...Show All
Visual C++ compiling vc++ code in VS 2005 error LNK2001: unresolved external symbol
hi While compiling my vc++ application in VS 2005. i faced the link errorsas following. Any help will really help me a lot. 1 file(s) copied. link /NOLOGO /SUBSYSTEM:windows /DLL /INCREMENTAL:no /MAP:FULL /OPT:REF /DEBUGTYPE:CV /IMPLIB:..\DBG\TmtData.LIB /MAP:TmtData.map /OUT:..\DBG\TmtData. DLL @TmtData.files /BASE:@t:\tcomponents\Make\TmtCommon.Lod,TmtData Creating library ..\DBG\TmtData.LIB and object ..\DBG\TmtData.exp tcbsdglb.OBJ : error LNK2019: unresolved external symbol "__declspec(dllimport) protected: __thiscall T_CGlbComponent::T_CGlbComponent(char const *,class T_CVer sion const &,class T_CResComponent *)" ...Show All
