Hi,
I have a COM class library that is reasonably big, say 12 classes in it. It compiles in about 15 seconds. But when I try to debug it, by starting it, I get a delay of about 3-4 minutes, and then again a delay of about 2 minutes when I stop it!
I am using VB6 SP2. I tried re-installing...
Hi,
I was wondering if anyone could tell me if it is possible to access a file on the web server from a COM component in a distributed environment? My COM component does this currently since the COM components run on the web server, but if I was to use DCOM to run the COM components on another...
Hi,
I have a small VB6 COM component that deals with dataacess - it executes SQL statements against a database using ADO. Its an ActiveX DLL, and is apartment threaded (default settings).
My problem is that there is a reasonable amount of initialisation code that my COM object needs to do -...
Hi all,
I'm out of practice with Visual C++, but recently had to take a look at some old code. I noticed this function which returns a date as a string:
wchar_t * MyClass::GetDate()
{
wchar_t * sText;
sText = new wchar_t [12];
// Populate sText with a date....
return sText
}...
Hi,
I have a view called "MyView" and a table "MyTable". The table contains a history of versions for each row returned from MyView, and I need to join on the most recent version, so I have this SQL:
Select distinct MyView.*, MyTable.Version_NO
from MyView left outer join MyTable on...
Hi,
I need to get my VB6 COM Dlls, to read a file from a web on the same server. All I know is the name of the web - so for example "MyWebApp". Is there any way in VB6 that given the name of the web app I can determine the physical location of this on the machine, so I can go and read a file...
Hi, I have this code which allocates a 2 dimensional array in C++:
int subElements = 10;
int ** myArray;
myArray = (int **) new int*[lNumIntervals]; // Array of array pointers
for (lTmp=0; lTmp<lNumIntervals; lTmp++)
{
myArray[lTmp] = (int *) new int[subElements];
memset...
Hi all,
We are experiencing an ORA-04031 error when we try to run a SQL statement that contains 3 IN statements - e.g. "where X in (1,2,3,4,5..)". The numbers that are in my "IN" are all parameterized, so theres quite a few parameters (about 260). This seems to cause oracle to fail and run out...
Hi,
I have created a view in my oracle database. I need the view to include some number that is "hard-coded" by me, so the SQL for the view could look like this:
Select Table.X, Table.Y, 10 as MyValue from Table
Now, this all works fine, but when I "DESC" my view, "MyValue" is defined as a...
Hi, I have created a collection class derived from CollectionBase, which holds a collection of simple structures.
It works nicely, but when I want to change the value of one of the entities in the collection, I expected the following code to work:
coll[0].x = 10;
But I get this error:
Cannot...
Hi,
In VB and most other languages, there are functions that take an array amd return a string representation of it, using whatever you supply as a delimiter.
I can't find the equivilent in c# - is there anything?
I have an array of ints, and I want to get them into a string of format...
Hi,
Its been years since I needed to work in VC++, and I have an embarrasingly simple question, that I can't work out!!
I have an array, and I need to set its value to "null".
My code that adds the value to the array is something like this:
_variant_t v2;
v2 = 10...
Hi,
Very simple question, I hope :)
After a block of PL/SQL, we always do a commit. Is this needed:
BEGIN
...
..
END;
/
Commit;
Or does the "/" do the commit?
Thanks!
Hi,
I am using the well-documented method of adding records via ADO, using the addNew method (which allows me to get the id of the record I added).
My code does this:
rs.Open TableName, sConnect, adOpenDynamic, adLockOptimistic, adCmdTable
rs.AddNew
... add data ....
rs.Update
x =...
Hi,
I need to implement a class in VB6 that is contains "static" variables. Now, in VB.NET, these would be "shared":
Public class class1
public shared X as integer
End Class
With this code I can access Class1.X without instantiating a class1:
class1.X = 2
Can anyone please tell me if/how I...
Hi,
I know that VB COM, you can refernece the ASP libraries and call GetObjectContext to get at the ASP builtin objects...
What I want to do is the same thing, but get the context of the caller when its not ASP. My COM dll wants to know:
"Who called me, and from what folder?"
Am I living in...
Hi,
I have a web app that uses both asp and asp.net web pages. I call a COM (VB6) dll in my asp.net c# code, which works fine. But...the COM dll tries to get the ObjectContext, inorde rot get hold of the ASP Application object to read something it needs...
When my ASP.NET page calls the COM...
Hi,
I have a CLOB column in my table, and I want to do a like comparison, like this:
Select * from MyTable where Clob_Column like '%HELLO%';
But I can't do that in Oracle? Is there a workaround?
Thanks!
Hi,
I am trying to call a COM (ATL) component. The method I need to call returns a variant array of length 3 (only one dimension)
When I use TLBIMP to create my wrapper for the com comp, my wrapper for this method returns an "object"...what I need to know is how to get that into an array in...
Hi,
I have never attempted threading or backgroud processing in VB before, but heres what I want to do:
I have a COM component that is called from my web application. This COM component needs to update some DB stuff when the user clicks a button, but since this data isn't of concern to the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.