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...
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...
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...
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();
}...
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...
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 -...
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...
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...
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...
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'
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...
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...
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...
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="text">), is not straightforward. I soon discovered that .net renders HTML 4.0...
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="text">), is not straightforward. I soon discovered that .net renders HTML 4.0...
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...
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...
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...
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'
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...
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.