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: *

  • Users: sunaj
  • Content: Threads
  • Order by date
  1. sunaj

    unresolved external symbol

    Hi, I've got a function: string jReplace(string& s, string const& find, string const& replace) If I place the function in the main file it works as expected. If I place the function in a static Lib (which contains other functions which works fine in the Lib): static string...
  2. sunaj

    Int2Str

    Hi, What wouldn't I give for a Int2Str fortran function! In thread214-1521223 mikrom shows how to make a function which returns a variable length character. The problem is that I do not know the length of the return string until a have 'written' it into a string and trimmed it - and I can do...
  3. sunaj

    return value from lib function

    Hi, I', kind of new to Fortran, so I've probably missed something completely obvious... This is my lib code: real function jMultiply(a,b) implicit none real a,b jMultiply = a*b end function jMultiply subroutine sMultiply (a,b,res) real res,a,b...
  4. sunaj

    COM

    Hi, I need to write a c# dll which I can call from a VBScript. It works, except that I also need to catch events from the dll. Here is my C# code [InterfaceType(ComInterfaceType.InterfaceIsIDispatch)] public interface IFormCloseEvents { void OnFormClose(); }...
  5. sunaj

    error '8007045a'

    Hi, I'm getting "error '8007045a'" when creating an instance of an AxtiveX object on my asp page. The error means that the dll initialisation failed. If I run the exact same code in a VBScript (instead of through the webserver), it works fine. I have given the IWAM and IUSR users permission...
  6. sunaj

    Run service as specified user

    Hi, I've followed the steps in http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbwlkwalkthroughcreatingwindowsserviceapplication.asp to create a windows service. If I run the service as 'LocalService' as suggested in the walkthrough, I get an 'JIT compile error -...
  7. sunaj

    Measure execution time

    Hi, I would like to measure the execution time of my queries in order to evalutate the performance in/decrease for different changes. Even if I use 'sql_no_cache' the query executes MUCH faster the second time I run it, and is therefore not representative of the true performance. How to I avoid...
  8. sunaj

    Interop problem on webserver

    Hi everbody, I'm using a thrid party COM dll. I've tested it in a VB.NET windows application and it works fine. However, I need to use it in a ASP.NET application and when I do that I get either 'Interop.TimeSeries : Catastrophic failure' or 'WebApplication2 : Object reference not set to an...
  9. sunaj

    remove usercontrol methods

    Hi, I've made a usercontrol in vb.net (framework version 1.1) and it works as it is suposed. However, when I use it it it has a looong list of methods and properties that I have not defined and I would prefer to get rid of them (because I can never find the ones I have defined in the long...
  10. sunaj

    Drop File on Icon

    Hi, How do I pick up the filename of a file that is dragged and dropped on my program's file icon? Thx in advance Sunaj 'The gap between theory and practice is not as wide in theory as it is in practice'
  11. sunaj

    BULK INSERT to Text field

    I’m bulk loading files into a table which, among other fields, has a text field (the data to be stored here can contain more than 8000 characters). When I try to use BULK INSERT to load this data I get an error message if the data that is going into the field is more than ~5000 characters long...
  12. sunaj

    Cancel TSQL query

    Hi Guys, Does anybody know if/how I can cancel a query to my MS SQL server? 'Open my connections here... Dim Comm As New SqlCommand("My long haired SQL statement here",Conn) Dim MyReader As SqlDataReader = Comm.ExecuteReader 'if the user gets tried of waiting I want to tell the SQL server to...
  13. sunaj

    Deploying program with usercontrol

    Hi, I've made a program that uses an usercontrol (I've also written the usercontrol). Everything work fine on my pc, but as soon as I try to run the program on another pc it dosen't work. I tried to remove the usercontrol, in which case it runs fine on any pc. What do I need to do to get the...
  14. sunaj

    ASP.NET and Netscape

    Hi, I would like my asp.net web page to work for everybody - not just members of the Microsoft clan :-) Just a simple thing like defining the width of a textbox (which is no problem with a HTML <input type=&quot;text&quot;>), is not straightforward. I soon discovered that .net renders HTML 4.0...
  15. sunaj

    ASP.net &amp; Netscape

    Hi, I would like my asp.net web page to work for everybody - not just members of the Microsoft clan :-) Just a simple thing like defining the width of a textbox (which is no problem with a HTML <input type=&quot;text&quot;>), is not straightforward. I soon discovered that .net renders HTML 4.0...
  16. sunaj

    FileIO permission problem with &lt;ComClass()&gt;

    Hi, I've made a class that uses the system.IO streams to read and write files (it also interacts with an SQL server). The program works fine when I run it with a vb.net interface, but when I mark it as <ComClass()> and run it throught VB6 I get the following error: Request for the permission of...
  17. sunaj

    me.refresh problem

    Hi, I've made a class that exposes a 'Progress' event. In a windows application I use the progress event to show some information (about the progress of the class task suprisingly..): ---------------------------------------------------- Private Sub hej_Progress(ByVal msg As String) Handles...
  18. sunaj

    BULK INSERT not same no columns in each line.

    Hi How can I BULK INSERT from a file that does not have the same number of columns (fields) in each line? Say my file looks like ------------------------------------------ a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a b,,,b c,c,,,,,c...
  19. sunaj

    Change no. of Recent files?

    Can you change the number of files shown in the 'Recent Files List'? How? Thx in advance Sunaj 'The gap between theory and practice is not as wide in theory as it is in practice'
  20. sunaj

    Time statement containing user function

    Hi, In the Query analyser: ---------------------------------------------- DBCC DROPCLEANBUFFERS DBCC FREEPROCCACHE SET STATISTICS IO ON SET STATISTICS TIME ON select top 1000 dbo.UF_SetPrec([Temp],tempprec) as [Temp], dbo.UF_SetPrec(Salt,SaltPrec) as Salt from tblST_Float...

Part and Inventory Search

Back
Top