register

How to know whether a given client-side startup script is already registered in an asp.net page?

I have a asp.net page, and would like to know whether "script1" is already registered as a startup script or not? ...

GCC Inline Assembler- How to "BSWAP" the lower 32-bit of 64-bit register???

Hello. I've been looking for the answer 'how to use 'BSWAP' for lower 32-bit sub-register of 64-bit register.' For example, "0x0123456789abcdef" is inside RAX register, and I want to change it to "0x01234567efcdab89" with a single instruction. (because of performance) So I tried following inline function: #define BSWAP(T) { \ __asm...

PHP signup email-validate login script/class

I am looking for a decent PHP script or class library to handle user sign-up/register, email-validation and login for a website. I've written this sorta thing before, but I'd rather use something more tested and robust. The handful of open-source offerings I have thus far come across are, in my view, not very good. I've also looked at RP...

VIM: substitute with contents of register / lines range

I'm using VIM, and I want to substitute some placeholder text with a long string, that spans several lines, which is already written somewhere else in the file. Is it possible to replace a pattern with the contents of a register? Something like :%s/foo/<contents of register A> Otherwise, is it possible to replace with a range of line...

Register Variables

I am having a C++ code which have lot of recursion involved . I am thinking of using register class for my variables . Do you think by doing so I will be saving stack memory and will improve the performance Thanks Sameer ...

How do I silently register a COM assembly on a WinXP computer

I have a C++ console application to which I want to a Windows Form. I don’t want to use MFC because I don’t know how. Instead, I am using a C# to create the COM dll (Class Library). When I distribute the application and the dll to the target computer, I need to register the dll such that the application can see the COM interface and use ...

Registering a UPnP Device using Microsoft API's

Hi, I am trying to make a UPnP device using Microsoft API's via Visual C++. So far I have created the device and registered it successfully with the IUPnPRegistrar::RegisterDevice method. I have also read in MSDN that there is another method to register a UPnP device using the IUPnPRegistrar::RegisterRunningDevice. There isn't much det...

Registering Windows Classes Win32

Hi, what's the best practise for registering window classes for a win32 program? Do you register every class in the WinMain function or as they're required? ...

Why are x86 registers named the way they are?

For example, the accumulator is named EAX and, while the instruction pointer is called IP. I also know that there are bytes called CL and DH. I know there must be a convention to all of the names, but what is it? ...

batch file which asks for username/password + registration

I would like a batch file that can register a user into itself. something like: @echo off echo Choose an option: echo 1:Register echo 2:Login Set option= set /p option=Your option: if %option%==1 goto reg if %option%==2 goto login ... :reg --The registration script-- goto login ... :login Set usr= set /p usr=Username: if %usr%...

Hook a javascript event to page load

I have an aspx that has the following javascript function being ran during the onload event of the body. <body onload="startClock();"> However, I'm setting the aspx up to use a master page, so the body tag doesn't exist in the aspx anymore. How do I go about registering the startClock function to run when the page is hit and still hav...

Could anyone explain these undefined behaviors (i = i++ + ++i , i = i++, etc...)

int main(int argc, char ** argv) { int i = 0; i = i++ + ++i; printf("%d\n", i); // 3 i = 1; i = (i++); printf("%d\n", i); // 2 Should be 1, no ? volatile int u = 0; u = u++ + ++u; printf("%d\n", u); // 1 u = 1; u = (u++); printf("%d\n", u); // 2 Should also be one, no ? register int v = 0; v...

Register assembly in ASP.NET (VS 2005) and web.config

Hello, I am applying a new version of an assembly to a web project and have found that I am going to have to replace about 500 instances of the Register Assembly tag at the top of each web control. I considered registering it in the web.config but when I try this and remove the "Register" tag from the controls, i receive the "unrecognize...

How can I import a .ascx file into a .aspx page using tag registering?

Hi, I have this set up... <%@ Register TagPrefix="UserControl" TagName="UserLogin" Src="~/admin/Authentication/Login.ascx" %> <%@ Register TagPrefix="UserControl" TagName="UserRegister" Src="~/admin/Authentication/Register.ascx" %> Then later on in the same file I use the tags... ...

What is the best way to register existing Windows service in .NET?

I need to register an existing third-party executable (database engine) Windows service from a .NET application. Is there a better way than writing to the registry? ...

Registering org.gjt.mm.mysql.Driver

When I connect to mysql in my localhost, everything is OK. but when i move the whole project to another computer in the intranet and set the correct IP. the project can't connect to mysql, and stop at: Registering org.gjt.mm.mysql.Driver2009-08-09 14:29:41,679 What's Up ? Thanks in advance ! ...

Address of register variable

In C, we cannot use & to find out the address of a register variable but in C++ we can do the same. Why is it legal in C++ but not in C? Can someone please explain this concept in-depth. Thanks, Naveen ...

linking files as a HTML-file and it's folder

In a windows-environment if you have a .html-file, you can make a copy of it and move it in the file-system. But the folder containing the additional files (images, scripts, .css-files) is moved with it. I want to know how you can implement this with files of other extensions (self defined file-extensions). I suppose it has to do with th...

Register identical views with different services using Composite Application Library

I'm using the Composite Application Library with Silverlight, and I need to add three "zones" to my region. These "zones" all have essentially the same view and presentation model. (I'm getting these words from the StockTraderRI application. Correct me if I'm wrong.) The only difference I have is where I get the data from, so I want ...

Unable to register VB ocx components (err 0x80040201)

Hi, I have a problem trying to register some ocx files. When I execute regsvr32, it returns 0x80040201 error code. I'm using win xp SP3 and my user has administrator permissions. When I try to register them with another user on the same machine I can do it without a problem, and both users are administrators and have "total control" p...