What are tags?
Web-hosting, dedicated, colocation
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

QAIX > Web-hosting, dedicated, colocationGo to page: « previous | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | next »

  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:
Sunday, 9 December 2007
Top Ranked Hosting Services Guest 08:00:10
 Based on performance, and user feedback we have compiled a list of the top hsoting services online. Check them all out they all have different plans but whatever your needs ar eone of these companies can definitely help you, on any budget.

http://farpoint-sys­tems.com/hosting/

comment 4 answer | Add comment
Sunday, 11 November 2007
SOFTWARE for SALE!!! Guest 04:37:07
 Software for sale. Huge Selection. 10 Euros/CD. Worldwide shipping.

Windows, Mac, and Linux. The very latest software, stock video/photo, games, etc.

Contact David for details:
david007@worldnewst­onight.net



















































x#Fw&>Os1
Add comment
Friday, 19 October 2007
Is it possible to write a scripting engine in C#? Eval Apply 09:37:51
 I decided to try writing a scripting engine in C#. I've written some
code, put in the annotations for ComInterop, added the regsitry
settings and it *almost* works. CScript, WScript, and IE can all find
the script engine and call the first few methods correctly. It is
clear that they are correctly getting a hold of both the IActiveScript
and IActiveScriptParse interfaces. But after the first few method
calls, they all quit. CScript raises this error:

CScript Error: Can't find script engine "LScript" for script
"hello.ls".

WScript raises an analagous error, and IE calls InitNew,
SetScriptSite, GetScriptState, SetScriptState, and Close. None of the
hosts seem to call AddNamedItem, which is what I expect would be next.

When I write my own scripting host in C++, there is no problem ---
everything works just fine.

Anyone have any suggestions?

comment 8 answers | Add comment
Monday, 6 August 2007
I want to create site based on Admin Input that I have in .xml file using window script host Guest 08:45:43
 I want to create site based on Admin Input.

I am storing these admin input in .xml file.

Using these admin configuration I want to create site.

Can anyone tell me how can I do these

Add comment
Sunday, 29 July 2007
Scripting Language Frank 13:27:17
 Good morning,

I'm a newbie and I'm about to study a scripting language to create an HTML
form. What's the best language for this, and why?

JavaScript? PHP? PERL? Ajax? ASP? VBScript?

Many thanks

Frank



Add comment
Sunday, 22 July 2007
0.4225232 I Have An Interest ... 0.3650714 Guest 17:07:59
 0.803006 I Have An Interest ... 0.4892023

0.4225232 Now Visit http://www.clicklin­know.com/ss/ 0.3650714

Add comment
Friday, 20 July 2007
Global module limit of size of text? Herby 15:12:24
 I have a process that combines many vb functions into a single String
object.
This is then added to the VBScript control via the AddCode method.
Implicitily this becomes part of the global module.

When the script runs i start to get errors - because some of the
functions are missing.
This happens when the text reaches a certain limit.

So is there a limit on the text that you can add to the global module?
How can i resolve this problem?

Thanks.

Add comment
Sunday, 24 June 2007
Professional Scripts for Your Website Guest 23:02:20
 I have authored and put together some great and very useful scripts that will add functionality adn content to your website.

http://scriptslive.­com



Add comment
Thursday, 14 June 2007
Linux Shell Accounts Guest 07:32:24
 Templar Shells is a UK based Linux Shell Provider. After a one off
setup fee of 5 Dollars, the shell account is then FREE for life. The
shell includes permission to run an IRC Bot/BNC, 2 background
processes, 50 megs of space for webhosting, MySQL/PostgreSQL database
hosting, access to compilers and network tools. See
http:/templarshells­.mine.nu for further info.

Add comment
Friday, 1 June 2007
Combining scripts that may use different engines Paul Baker [MVP 21:49:28
 I am writing a script host in order to get more control than I can when
using WSH.

I would like to load scripts from multiple files, some of which may use
VBScript and some of which may use JScript, and combine them together into a
single script so that each sub-script can call functions from any other
sub-script. This is equivalent to what can be achieved with a .wsf file with
WSH.

How is this possible? It seems I must create an coclass that implements
IActiveScript for each file, or at least for each engine. This would suggest
that each sub-script is separate.

Thanks,

Paul


comment 14 answers | Add comment
Enumerate or enumeration El 01:29:38
 Hi all
I've seen people use the words, enumerate or enumeration, a lot in computer area. What's this mean? Can someone explain it to me, please?

TIA
el
comment 3 answer | Add comment
Wednesday, 23 May 2007
Storing Large Amounts of Secured data on Website Neenmarie 22:00:02
 I'd like to be able to upload Word/Excel/PDF files so they are accessable for
viewing and/or download by individual clients with a secured login and
password. Each document would be client specific (over 500 clients) with
sensitive information (SS #s and financial information). Where could I check
for someone to do this and/or what's the best way for me to proceed?
Thank you for your help!
comment 2 answer | Add comment
IActiveScriptSiteUIC­ontrol missing from headers? Ken Foust 17:10:32
 
I have implemented a debugging engine and went to implement
IActiveScriptSiteUI­Control, but have found that this is not in any of
the files I have.

I am using dbgprop.h, activscp.h, activdbg.h

Does anyone have this information? What am I missing?

Thanks for any help,

Ken

comment 1 answer | Add comment
Tuesday, 1 May 2007
Using PC enviroment Vaariable Amber 03:53:01
 I am attempting to write a logon script using VBscript and could not figure
out how to use the PCs enviromental variable to connect to share drives.
For example I like to do.
If location = "1st fl" (which is a value in the Workstation
enviromental variable)
Net use X: \\server1\data$
end if.

I will appricate any suggestions.
thanks,
Amber
Add comment
Monday, 16 April 2007
Permission denied getobect Gilles P 21:02:03
 Hi,

I wrote a script to get a list of all the software installed on a client
machine. It runs fine on most of the computers but fails on others with a
permission denied getobject. Here is the call that fails "Set objWMIService =
GetObject("winmgmts­:" _
& "{impersonationLeve­l=impersonate}!\\" & strComputer & "\root\cimv2")".
I am a domain admins so should have full rights on the client machine.
Can you help?

Thanks!
Add comment
Wednesday, 4 April 2007
Bluefish Hosting Services Guest 01:52:09
 
BlueFish Web Hosting offers one simple hosting plan to make the process of building an online business more easy. BlueFish web hosting accounts include a FREE domain name, 6 GB of storage space, Unlimited POP and webmail accounts, 100 Gigs of monthly data transfer, detailed website statistics with raw logs available, PayPal shopping cart integration, dozens of professional website templates, FREE search engine submission, and much more all for one low price of $6.95 per month.

http://www.anrdoezr­s.net/click-1910740-­10392771

Add comment
Tuesday, 27 March 2007
Cheap Professional High End Hosting Services Guest 22:53:33
 Experience the speed, power and ease of hosting services for businesses and individuals of all sizes, Farpoint Systems Offer these plans at discounted rates, and they will help you achieve your goals on line with built in cgi, asp, php and real time statistics

http://farpoint-sys­tems.com/hosting/


Add comment
Saturday, 17 March 2007
Different OO behavior in Active Scripting Vs. Windows Script Host Guest 18:40:35
 I have always been under the impression that JScript would behave the
same in WSH as it would in my own Active Scripting host application.
Until today. I am trying to create some objects using inheritance as
shown in the following script.

Shape.prototype.Get­Area = Shape_GetArea;
Shape.prototype.Get­Parameter = Shape_GetParameter;­
Shape.prototype.Dra­w = Shape_Draw;


function Shape()
{



}


function Shape_GetArea()
{
return this.area;


}


function Shape_GetParameter(­)
{
return this.parameter;


}


function Shape_Draw()
{
//WScript.Echo( "Drawing generic shape" );


}


Circle.prototype = new Shape();
Circle.prototype.co­nstructor = Circle;
Circle.prototype.ba­seClass = Shape.prototype.con­structor;
Circle.prototype.Dr­aw = Circle_Draw;

function Circle( r )


{
this.area = Math.PI * r * r;
this.parameter = 2 * Math.PI * r;



}


function Circle_Draw()
{
//WScript.Echo( "Drawing circle" );


}


Rectangle.prototype­ = new Shape();
Rectangle.prototype­.constructor = Rectangle;
Rectangle.prototype­.baseClass = Shape.prototype.con­structor;
Rectangle.prototype­.Draw = Rectangle_Draw;

function Rectangle( x, y )


{
this.area = x * y;
this.parameter = 2 * x + 2 * y;



}


function Rectangle_Draw()
{

//WScript.Echo( "Drawing rectangle" );



}


var circle = new Circle(1);
var rectangle = new Rectangle(1,2);

function Init() {


circle.Draw();
rectangle.Draw();



}


Init();

The script works fine in WSH but produces an error in my own
application where I have implemented Active Scripting. The script
engine returns "TypeError: Object doesn't support this property or
method" when the script tries to instantiate or use any of the
previously defined objects. I am guessing that I have implemented
something incorrectly in my script host. Below is the code. Any
suggestions would be most appreciated.


// SzSimpleSite.cpp : Implementation of SimpleSite


#include "stdafx.h"
#include "SzScriptSite.h"
#include "SzSimpleSite.h"


#include <initguid.h>
#include "msscript.h"


bool operator<(const ScriptObject& x, const ScriptObject& y)
{ return x.bstrName < y.bstrName; }
bool operator==(const ScriptObject& x, const ScriptObject& y)
{ return x.bstrName == y.bstrName; }


///////////////////­////////////////////­////////////////////­//////////////////
// SimpleSite


STDMETHODIMP SimpleSite::Initial­ize(BSTR guid)
{
// Use VBScript parser (CLSID_VBScript) or JScript parser
(CLSID_JScript) depending on guid passed in.
CLSID clsid;
CLSIDFromString(gui­d, &clsid);
if (CoCreateInstance(c­lsid, 0, CLSCTX_ALL,
IID_IActiveScriptPa­rse,
(LPVOID*) &m_pScriptParse) == S_OK)
{
m_pScriptParse->Que­ryInterface(IID_IAct­iveScript,
(LPVOID*)
&m_pScript);
m_pScriptParse->Ini­tNew();
m_pScript->SetScrip­tSite(this);
m_pScript->SetScrip­tState(SCRIPTSTATE_C­ONNECTED);
return S_OK;
}
return E_FAIL;



}


STDMETHODIMP SimpleSite::CleanUp­()
{
// Release the unknown pointers that were passed in through
"AddObject"
ObjVector::iterator­ loop;
for (loop = m_objects.begin(); loop != m_objects.end(); loop+
+)
{
if (loop->pUnk)
loop->pUnk->Release­();
}

m_pScript->Release(­);
m_pScriptParse->Rel­ease();
return S_OK;



}


/*
* Hand the script off to the parser.
*/
STDMETHODIMP SimpleSite::ParseSc­ript(BSTR locator, BSTR scriptname)
{
EXCEPINFO exception;
ZeroMemory(&excepti­on, sizeof(exception));­
m_pScriptParse->Par­seScriptText(scriptn­ame, locator,
0, 0, 0, 0,
/*SCRIPTTEXT_ISPERS­ISTENT|*/SCRIPTTEXT_­ISVISIBLE, 0,
&exception);
return S_OK;


}


/*
* Get the IDispatch pointer for the named object, which reflects a
scripting context.
*/
STDMETHODIMP SimpleSite::GetScri­ptDispatch(BSTR locator, IDispatch
**pDisp, long *hr)
{
*hr = m_pScript->GetScrip­tDispatch(locator, pDisp);
if (FAILED(*hr))
return S_OK;
return S_OK;


}


/*
* Get the DISPID for the named routine.
*/
STDMETHODIMP SimpleSite::GetDisp­Id(IDispatch *pDisp, BSTR name,
DISPID
*dispid)
{
HRESULT hr;
hr = pDisp->GetIDsOfName­s(IID_NULL, &name, 1,
LOCALE_SYSTEM_DEFAU­LT,
dispid);
if (FAILED(hr))
{
*dispid = DISPID_UNKNOWN;
return S_OK;
}
return S_OK;


}


STDMETHODIMP SimpleSite::OnScrip­tError(IActiveScript­Error
*pscripterror)
{
DWORD dwCookie;
LONG nChar;
ULONG nLine;
BSTR bstr = 0;
EXCEPINFO ei; ZeroMemory(&ei, sizeof(ei));
pscripterror->GetSo­urcePosition(&dwCook­ie, &nLine, &nChar);
pscripterror->GetSo­urceLineText(&bstr);­
pscripterror->GetEx­ceptionInfo(&ei);

swprintf(m_wszOutpu­t, OLESTR("%s\n[Line: %d] %s\n%s"),
ei.bstrSource, nLine, ei.bstrDescription,­
bstr ? bstr : OLESTR(""));


SysFreeString(bstr)­;
SysFreeString(ei.bs­trSource);
SysFreeString(ei.bs­trDescription);
SysFreeString(ei.bs­trHelpFile);
//MessageBoxW(GetDe­sktopWindow(),
// wszOutput,
// L"Error",
// MB_SETFOREGROUND);


return S_OK;



}


STDMETHODIMP SimpleSite::GetLast­Error(BSTR * bstrError)
{
*bstrError = SysAllocStringLen(m­_wszOutput, 1024);
return S_OK;


}


/*
* Invoke dispid identified routine within script engine. If boolval
is nonnull return
* function return value through it.
*/
STDMETHODIMP SimpleSite::InvokeD­ispId(IDispatch* pDisp, DISPID
dispid,
BOOL *boolval)
{
VARIANTARG varg;
VariantInit(&varg);­
varg.vt = VT_BOOL;

HRESULT hr;
EXCEPINFO ex;
UINT uTmp;
DISPPARAMS dp = {0,0,0,0};
hr = pDisp->Invoke(dispi­d, IID_NULL, LOCALE_SYSTEM_DEFAU­LT,
DISPATCH_METHOD, &dp, &varg, &ex, &uTmp);
if (FAILED(hr))
return E_FAIL;
if (boolval)
*boolval = varg.boolVal;
return S_OK;



}


STDMETHODIMP SimpleSite::InvokeD­ispId2(IDispatch* pDisp, DISPID
dispid, BOOL *boolval, BSTR* errorInfo)
{
VARIANTARG varg;
VariantInit(&varg);­
varg.vt = VT_BOOL;

HRESULT hr;
EXCEPINFO ex;
UINT uTmp;
DISPPARAMS dp = {0,0,0,0};
hr = pDisp->Invoke(dispi­d, IID_NULL, LOCALE_SYSTEM_DEFAU­LT,
DISPATCH_METHOD, &dp, &varg, &ex, &uTmp);
if (FAILED(hr)) {
*errorInfo = SysAllocStringByteL­en(NULL, 1024);
swprintf(*errorInfo­, OLESTR("%s\n%s"), ex.bstrSource,
ex.bstrDescription)­;
SysFreeString(ex.bs­trSource);
SysFreeString(ex.bs­trDescription);
SysFreeString(ex.bs­trHelpFile);
return E_FAIL;
}
if (boolval)
*boolval = varg.boolVal;
return S_OK;



}


STDMETHODIMP SimpleSite::InvokeD­ispIdWithArg(IDispat­ch* pDisp, DISPID
dispid, IDispatch *svzbehavior)
{
VARIANTARG varg;
VariantInit(&varg);­
varg.vt = VT_DISPATCH;
varg.pdispVal = svzbehavior;

DISPPARAMS param;
if (svzbehavior)
{
param.cArgs = 1;
param.rgvarg = &varg;
}
else
{
param.cArgs = 0;
param.rgvarg = NULL;
}
param.cNamedArgs = 0;
param.rgdispidNamed­Args = NULL;


HRESULT hr;
EXCEPINFO ex;
UINT uTmp;
hr = pDisp->Invoke(dispi­d, IID_NULL, LOCALE_SYSTEM_DEFAU­LT,
DISPATCH_METHOD, &param, 0, &ex, &uTmp);
if (FAILED(hr))
return S_OK;
return S_OK;



}


/*
* Add an object to the script namespace.
*/
STDMETHODIMP SimpleSite::AddObje­ct(BSTR bstrObject, IUnknown* lpUnk,
BOOL isglobal)
{
m_objects.push_back­(ScriptObject(bstrOb­ject, lpUnk));
if (isglobal)
m_pScript->AddNamed­Item(bstrObject,
SCRIPTITEM_ISVISIBL­E|
SCRIPTITEM_GLOBALME­MBERS/*|SCRIPTITEM_I­SSOURCE*/);
else
m_pScript->AddNamed­Item(bstrObject,
SCRIPTITEM_ISVISIBL­E/*|
SCRIPTITEM_ISSOURCE­*/);
return S_OK;


}


STDMETHODIMP SimpleSite::GetItem­Info(LPCOLESTR pstrName, DWORD
dwReturnMask,

IUnknown **ppiunkItem, ITypeInfo **ppti)
{
USES_CONVERSION;
if (dwReturnMask & SCRIPTINFO_IUNKNOWN­)
*ppiunkItem = 0;
if (dwReturnMask & SCRIPTINFO_ITYPEINF­O)
*ppti = 0;

/*
char name[50];


strcpy(name,W2A((wc­har_t*)_bstr_t(pstrN­ame)));
*/


ObjVector::iterator­ loop;
for (loop = m_objects.begin(); loop != m_objects.end(); loop+
+)
{
if (loop->bstrName == bstr_t(pstrName))
{
if (dwReturnMask & SCRIPTINFO_IUNKNOWN­)
{
if (*ppiunkItem = loop->pUnk)
(*ppiunkItem)->AddR­ef();
}


if (dwReturnMask & SCRIPTINFO_ITYPEINF­O)
{
// Use the IDispatch Interface
IDispatch* pIDispatch;
VERIFY( loop->pUnk-
QueryInterface(IID­_IDispatch,
(LPVOID*) &pIDispatch) !=
E_NOINTERFACE );
VERIFY( pIDispatch-
GetTypeInfo(0,NULL­,ppti) == S_OK );
pIDispatch->Release­();
}
return S_OK;
}
}


return TYPE_E_ELEMENTNOTFO­UND;

Add comment
Thursday, 1 March 2007
scriptcontrol debugging Guest 04:27:48
 At one point in history, if you called STOP, a debugger would pop up
and allow you to debug script running in a scriptcontrol. This,
however, no longer seems to work -- I have Visual Studio 2003, VS 2005
and the Scripting Debugger installed and none of them activate.
Instead, the STOP command is simply ignored.

Does anyone know how to get Script Debugging working in a modern
environment?

Add comment
Thursday, 22 February 2007
xslt substitute() or xslt 2.0 MarcG 06:12:27
 Is XSLT 2.0 supported in asp.net yet? If so, how do I enable it?

Alternately, has anyone built a string substitute function in xslt 1.0, i.e.,
substitute (originalString, targetSubsting, replacementSubstrin­g)

Actually, all I need now is to replace "\r\n" with <br/>

Thx
Marc
comment 2 answer | Add comment
Monday, 19 February 2007
Pop-up Window (How to get it) David Lojudice S. 09:43:47
 Hello,

I'm building a component to simplify the MSHTML to a client which uses it to
send manipulate pages to do B2B. I'm using C# 1.1.

Well... the problem is: I can control almost all the objects inside the HTML
but there is a web site that shows a pop-up between pages. I must change the
values inside the page 1 on the main IE host, click the button and wait for
the pop-up, get the pop-up's document, change the values there, click the
button there and wait for page 2 on main window again.

How to get control of pop-up's document (IHTMLDocument)?

Any idea?

Thanks,

Dals


comment 3 answer | Add comment
Monday, 12 February 2007
Adding persistent global property to IActiveScript Nathan Baker 23:01:14
 Hello,

I have created a scripting environment in C# using Active Scripting. I
have the following code:
_script = new ScriptHost();
JScript jsengine = new JScript();
IActiveScriptParse asp = jsengine as IActiveScriptParse;­
IActiveScript ias = jsengine as IActiveScript;

asp.InitNew();
ias.SetScriptSite(_­script);
stdole.EXCEPINFO einfo;

ias.AddNamedItem("t­est", SCRIPTITEM_ISVISIBL­E |
SCRIPTITEM_GLOBALME­MBERS);
asp.ParseScriptText­("test.DoIt();");

ias.Close();

The implementation of test.DoIt() simply displays a message box:
public class TestClass {
public void DoIt() {
MessageBox.Show("I live!");
}
}

The GetItemInfo method of _script is as follows:
public void GetItemInfo(string pstrName, uint dwReturnMask, out object
ppiunkItem, IntPtr ppti)
{
ppiunkitem = null;
ppti = IntPtr.Zero;
if (pstrName == "test") {
ppiunkItem = new TestClass();
if(ppti != IntPtr.Zero) {
Marshal.WriteIntPtr­(ppti,
Marshal.GetITypeInf­oForType(ppiunkItem.­GetType()));
}
}
}

Rather than displaying a message box (as expected), the call to
asp.ParseScriptText­ does nothing. Why is this?

Thanks,
Nathan

comment 1 answer | Add comment
Monday, 29 January 2007
Sripting Host routine called... Peter Ostermann 12:38:53
 .... when wakeup event after start out of hibernate
takes place.

Hi folks,

the routine-call may be not a problem, but how can
be realized the wakeup event? I simply need to stop and
start again a program during computer start.

An alias in the autostart folder does not work, because
the Java-Program was not shut down during hibernate.
Who can help? Any hint is welcomed.

Best Regards
Peter Ostermann



Add comment
Tuesday, 23 January 2007
ScriptControl AddCode method memory leak Herby 13:03:16
 I seem to have a memory leak with the AddCode method of the script
control.

Im looping round n time executing something like the following:

.... (re)create scriptcontrol
..... add some com objects to be referenced by the script
.....
m_ruleEngineScript-­>Reset( );
.....
m_ruleEngineScript-­>AddCode( scripts );
..... free scripts string
.....
m_ruleEngineScript-­>ExecuteStatement( funcInfo );

.... delete script control

If i comment out the call to AddCode then there is no memory leak.
Keep it in and my memory just keeps expanding for each iteration...

Any suggestions?

comment 3 answer | Add comment
Thursday, 18 January 2007
LANGUAGE="VBScript.E­ncode" does not work in a FOR events Jog 08:17:50
 I have used the following syntax without any problem:
<SCRIPT language=VBScript.E­ncode
src="OutilsAdminist­ratifs/include/vbs/A­dminToolsEvents.vbs"­></SCRIPT>

but my problem is when I try to use the LANGUAGE="VBScript.­Encode" directive
in a FOR event as below:
<SCRIPT LANGUAGE="VBScript.­Encode" FOR="obtnCleanUp" EVENT="onclick()" >


The event is captured ok but the (encripted) script then gives an error on
line 1 - which begins with a # (hash) symbol.


Any idea?

Kind regards

--
IT Analyst
London - UK

http://uk.geocities­.com/josephoget/a2z/­ilo/


comment 1 answer | Add comment

Add new topic:

How:  Register )
 
Логин:   Пароль:   
Комментировать могут: Премодерация:
Topic:
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


QAIX > Web-hosting, dedicated, colocationGo to page: « previous | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | next »

see also:
Visual Basic 2003 - online access for…
remove the last record of a random…
Help: Why don't SUBs execute instantly?
пройди тесты:
What is Your Temperament?
see also:
mahalo transaction manager
ie7pro 0.9.14

  Copyright © 2001—2008 QAIX
Idea: Miсhael Monashev
Помощь и задать вопросы можно в сообществе support.qaix.com.
Сообщения об ошибках оставляем в сообществе bugs.qaix.com.
Предложения и комментарии пишем в сообществе suggest.qaix.com.
Информация для родителей.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .