Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. MattWoberts

    Debugging a VB6 class library - VERY SLOW startup

    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...
  2. MattWoberts

    DCOM component simple question...

    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...
  3. MattWoberts

    Can I cache/pool my VB Object?

    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 -...
  4. MattWoberts

    Is this a memory leak?

    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 }...
  5. MattWoberts

    ORA-600 when I execute a SELECT statment :-(

    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...
  6. MattWoberts

    Can a VB App read IIS settings?

    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...
  7. MattWoberts

    Allocating and releasing memory...

    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...
  8. MattWoberts

    ORA-04031 - too many parameters?

    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...
  9. MattWoberts

    Views - how do I define the column types?

    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...
  10. MattWoberts

    CollectionBase - simple question?

    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...
  11. MattWoberts

    Convert array of ints into string?

    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...
  12. MattWoberts

    Setting a value to &quot;null&quot; (in a SafeArray)

    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...
  13. MattWoberts

    PL/SQL - Do I need to commit?

    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!
  14. MattWoberts

    ADO AddNew and adOpenKeySet

    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 =...
  15. MattWoberts

    &quot;Shared&quot; classes in VB6...

    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...
  16. MattWoberts

    COM -&gt; Getting the caller context?

    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...
  17. MattWoberts

    COM Interop -&gt; GetObjectContext

    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...
  18. MattWoberts

    like comparision on a CLOB?

    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!
  19. MattWoberts

    Interop - Calling a COM (ATL) method...

    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...
  20. MattWoberts

    Background processing in COM?

    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...

Part and Inventory Search

Back
Top