Sorry, I did try that but forgot to mention it! I tried sp 5 and 6, and neither made a difference. I'm sure its since I went to XP Service Pack 2 that this problem started...
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...
I think you're thinking to hard about this. Once a project has a reference to another DLL, you can creates classes and invoke methods from the referenced dll as easily as if they were in the current project....
All my references are controled by VS.NET, they look like this in the csproj file...
Finally......got round to this.
Thanks both "bjd4jc" and "Sheco" for providing me with the pointers here to get me started. If anyone else ends up here looking for the same answer, then heres some VB6 Code that does exactly what I wanted:
Dim objApp As Object
Set objApp =...
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 -...
Mingis,
It is deleted in the code snippet you posted. Its in my original code snippet that sText is not deleted - and the reason is that the memory is allocated with the "new" operator, which should be explcitly "deleted".
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
}...
I finally got round this by "hacking" the query: I removed the "left join", and converted to a "join", and then UNION'd the whole query with the records that are not in the joined table... Nasty!
Thanks for everyones response!
On further investigation it seems like the query is unhappy because I am combining a "LEFT JOIN" with a sub query that references the parent query. If I remove the parts of the where clause in my sub query that reference the parent table, it works. If I change the "LEFT JOIN" to a "JOIN", it...
Thanks for the suggestion, but alas it has the same result. I'm toying with just rewriting this query to amke it run, but I can't think of any other way to do this without the use of the sub-select.....
Yes I can select from the view directly, its only when I join the view onto the table with that specific SQL that I get the error. Also, if I remove the sub-query part of the SQL above, that also removes the error.
I'm on Oracle 9i Rel2 btw, running on Windows 2000. I would have a look on...
More information:
My view is actually 4 SQL statements UNION'd together. If I remove 3 of the SQL statements so there is no UNION, this solves the problem. So it seeems to be the fact that my view is using UNIONS that upsets Oracle - hmmmmm....
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...
Darn,
Sorry all. Just as I posted this I found the solution.
In between the creation of the array and its cleanup, I had used memset to wipe it, but had gone beyond the size of the array with memset, hence nasty errors!
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...
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.