|
Thanks, but where can I find the class???
Jack
|
|
|
|
|
|
Hi guys !
I'm trying to make an activeX quite simple wich upload and download file from an url.
I successfully did it but i still have a trouble. I'd like to access to my activeX in javascript with the
var oActiveX= new ActiveXObject("testX")
command. This command is working, i thinck, because i haven't got errors, but when i'm trying to access to an ActiveX method,
oActiveX.view();
there is an error, i can't acess to the method
However, if i'm trying to access to my activeX with the html method :
<OBJECT ID="TestX"<br />
CLASSID="CLSID:75CE4352-E461-4031-B662-4FF071C3A963"<br />
CODEBASE="TestX.ocx"></OBJECT><br />
<SCRIPT LANGUAGE="JavaScript"><br />
<!-- TestX.view(); -->
Can somedoby tell me why those damned method are not accessible with the first method but aren't with the second ?
Thanks in advance
|
|
|
|
|
try using the full progid, such as
var shell = new ActiveXObject("WScript.Shell");
If you don't know the full progid, then look in the registry under
HKEY_CLASSES_ROOT\CLSID\{75CE43252-E461-4031-B662-4FF071C3A963}\ProgID
assuming the classid you gave in your original message was correct.
If that doesn't work, try using the classid, as in the following:
var testx = new ActiveXObject("{75CE43252-E461-4031-B662-4FF071C3A963}");
good luck
|
|
|
|
|
Hello, world!
I don't know where I must post this thread... Sorry if it's the wrong section.
But my question is:
I want to integrate an HD writing test to my application. This writing test gives an HD bandwidth information to the user. My application give an information to the user if this bandwidth is too small...
The writing test must be done with a random access disk (classical access for most users)!
Where can I found an open source project (or not) which does that?
Thanks for all your answers
Hello World!!!
from Raphaël
|
|
|
|
|
I create a CRealPoint class:
CRealPoint
{
public:
CRealPoint();
CRealPoint(double x=0; double y=0);
private:
double m_x;
double m_y;
public:
CRealPoint operator=(CRealPoint rPt);
}
then I have following code:
//
1. CArray <CRealPoint, CRealPoint> m_arrPo;
2. CRealPoint tmpPoint;
3. tmpPoint.m_x= // calculate here
4. tmpPoint.m_y=//
5. m_arrPo.Add(tmpPoint);
//
6. CRealPoint newPoint;
7. newPoint = m_arr.ElementAt(0);
// test value of newPoint.m_x, newPoint.m_y
It is lost data. I guess problem occur at line 5 or 7 but don't understand why and don't known how to solve this problem.
don't stop me now!!!
|
|
|
|
|
change these lines
1. CArray <CRealPoint,CRealPoint&> m_arrPo;
.
.
.
6 CRealPoint &newPoint = m_arr.ElementAt(0); // ElementAt return ref to ob
or
6 CRealPoint newPoint = m_arr.GetAt(0); // GetAt return ob and need copy constructor that ur class have it.
BTW.
CRealPoint newPoint = m_arr.ElementAt(0); is also correct
|
|
|
|
|
Hi All
have an MFC application i'm maintaining.. (VC++ 6.0)
It runs ok in debug mode.
But if i add a breakpoint anywhere inthe code, (yep a breakpoint - nothing else) when the debugger reaches the breakpoint when run the debugger throws
===
"Debug Assertion Failed!"
Program: Yadda.exe
File: afxtempl.h
Line 254
(etc etc etc)
[abort] [retry][Ignore]
==
Now, if the breakpoint is not present then the code does not throw an assertion
weirdness beyond the usual microsoft rubbish
has anyone run into this before and if so what I can do to fix this problem?
Presumably its a setting inthe project/vc 6
cheers
Bryce
---
To paraphrase Fred Dagg - the views expressed in this post are bloody good ones.
--
Publitor, making Pubmed easy.
http://www.sohocode.com/publitor
Our kids book :The Snot Goblin
|
|
|
|
|
This is somewhat of a long shot, but have you tried doing a Rebuild All? When the debugger is doing weird things a Rebuild All has fixed everything for me many times before.
|
|
|
|
|
yes i have tried a rebuild all and it is not of use
Bryce
---
To paraphrase Fred Dagg - the views expressed in this post are bloody good ones.
--
Publitor, making Pubmed easy.
http://www.sohocode.com/publitor
Our kids book :The Snot Goblin
|
|
|
|
|
turns out it was a WATCH window issue -
had the watch window accessing an array
removed it and shes all good
Bryce
---
To paraphrase Fred Dagg - the views expressed in this post are bloody good ones.
--
Publitor, making Pubmed easy.
http://www.sohocode.com/publitor
Our kids book :The Snot Goblin
|
|
|
|
|
Got any other threads running?
Every time I have seen something like this, or even exceptions (Access Violations) firing on each debugger step(!), it was due to a problem with the code that one of the (or a) background thread was running.
If so, I would look there for issues.
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Tip for new SUV drivers: Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
|
turns out it was a WATCH window issue -
had the watch window accessing an array
removed it and shes all good
Bryce
---
To paraphrase Fred Dagg - the views expressed in this post are bloody good ones.
--
Publitor, making Pubmed easy.
http://www.sohocode.com/publitor
Our kids book :The Snot Goblin
|
|
|
|
|
So what's at line 254 of afxtempl.h ?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
AFX_INLINE TYPE CArray<type, arg_type="">::GetAt(int nIndex) const
{ ASSERT(nIndex >= 0 && nIndex < m_nSize);
return m_pData[nIndex]; }
the assertion,
which is just plain weird coz it doesnt matter where in the code i place my breakpoint
Bryce
---
To paraphrase Fred Dagg - the views expressed in this post are bloody good ones.
--
Publitor, making Pubmed easy.
http://www.sohocode.com/publitor
Our kids book :The Snot Goblin
|
|
|
|
|
What are the values of nIndex and m_nSize?
What does the call stack show you?
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
Within you lies the power for good - Use it! Honoured as one of The Most Helpful Members of 2004
|
|
|
|
|
turns out it was a WATCH window issue -
had the watch window accessing an array
removed it and shes all good
Bryce
---
To paraphrase Fred Dagg - the views expressed in this post are bloody good ones.
--
Publitor, making Pubmed easy.
http://www.sohocode.com/publitor
Our kids book :The Snot Goblin
|
|
|
|
|
So are you using a CArray object?
|
|
|
|
|
turns out it was a WATCH window issue -
had the watch window accessing an array
removed it and shes all good
Bryce
---
To paraphrase Fred Dagg - the views expressed in this post are bloody good ones.
--
Publitor, making Pubmed easy.
http://www.sohocode.com/publitor
Our kids book :The Snot Goblin
|
|
|
|
|
I converted several projects from vs6.0 to vs7.0.
In vs6 I used html as my default help.
This morning I discovered that none of the solutions in vs7 use html help. Whenever I press on F1 I get a message box saying it can't find the *.hlp file, which is of course true since html uses a compiled help file.
My question is: what do I need to do in order to change all my vs7 solutions to use html help?
Thanks,
Ilan
|
|
|
|
|
First of all, I am very sorry that my poor English.
I have some question, how make excel automation with MFC (VC6.0, Excel 2000)
I want to input APP data to Excel program Of course, Excel program is running
Range range;
Borders borders;
range = sheet.GetRange(COleVariant("A1"), COleVariant("L6"));
borders = range.GetBorders();
borders.SetLineStyle(COleVariant((short)1));
This sample is applied to all cell ..
but I want only bold outline
plese help me....
reply to: lgs99@dreamwiz.com
thank you very much..
|
|
|
|
|
Just a suggestion: Start the macro recorder in Excel, then do what you want to do and look at the code the macro recorder has recorded.
MS
|
|
|
|
|
thanks..
but I want to just excel automation..
please example sourec...
|
|
|
|
|
Hi,
Can you please let me know how to use this for the given char array.
char recode[][5]={"bare","barn","bard","Dame","born","dare","BARN","barn","dame","bORn"};
I am trying doing this however it is giving exception in execution
qsort( (char *)recode, sizeof(recode), (strlen(recode[1])+1), (int (*)(const void*, const void*))compare );
and
(char **)bsearch( (char *) &key, (char *)recode, sizeof(recode),
(strlen(recode[1])+1), (int (*)(const void*, const void*))compare )
Thank
|
|
|
|