Serving the Quantitative Finance Community

Search found 249 matches

  • 1
  • 2
  • 3
  • 4
  • 5
  • 17
by silverside
July 5th, 2004, 10:48 pm
Forum: Programming and Software Forum
Topic: regular expressions help
Replies: 3
Views: 183795

regular expressions help

Thanks for that.BTW I decided to solve my problem by overriding operator[] on my matrix class instead. Perl definitely looks useful, i might get around to learning it eventually...
by silverside
July 5th, 2004, 12:01 pm
Forum: Programming and Software Forum
Topic: regular expressions help
Replies: 3
Views: 183795

regular expressions help

<t>Can someone provide a regular expression that will convert all instances of[j] to(i,j)where i and j are arbitrary letters.I'm trying to convert some numerical recipes code to use a matrix class and it would save me a lot of time if I could just do global search and replace to change all the C-sty...
by silverside
July 5th, 2004, 11:24 am
Forum: Programming and Software Forum
Topic: Bloodshed dll
Replies: 16
Views: 185999

Bloodshed dll

<r>VB needs the .dll function exported in a special way - resident guru DCFC has some notes here which expain the problem:<URL url="http://www.wilmott.com/filesharedetail.cfm?fileshareID=1159as"><LINK_TEXT text="http://www.wilmott.com/filesharedetail. ... eID=1159as">http://www.wilmott.com/fileshare...
by silverside
July 5th, 2004, 10:59 am
Forum: Programming and Software Forum
Topic: Bloodshed dll
Replies: 16
Views: 185999

Bloodshed dll

edited my post - try again If you have dumpbin.exe on your system, you can see if the funcition is being exported correctly by the dll by typing dumpbin /exports myfile.dll
by silverside
July 5th, 2004, 10:47 am
Forum: Programming and Software Forum
Topic: Bloodshed dll
Replies: 16
Views: 185999

Bloodshed dll

<t>sorry for sidetracking you: The following in a .cpp file exports one function. You needn't bother with a header file. Don't use WINAPI on the function definition as it mangles the name. and make sure extern "C" is before the __declspec(dllexport). Not sure if all this is enough for excel though./...
by silverside
July 5th, 2004, 10:43 am
Forum: Programming and Software Forum
Topic: Bloodshed dll
Replies: 16
Views: 185999

Bloodshed dll

ah. You want to use the DLL in excel. So you have to do some extra stuff so excel can recognise your DLL. I don't know much about this myself but search for 'XLL' and/or look at www.whooper.co.uk . There may also be some stuff on this forum already.
by silverside
July 5th, 2004, 10:18 am
Forum: Technical Forum
Topic: Rebonato vol structure in LMM
Replies: 4
Views: 184564

Rebonato vol structure in LMM

<edited> found it - couldnt find it 'cause i spelt the name wrong.
by silverside
July 5th, 2004, 10:07 am
Forum: Programming and Software Forum
Topic: virus
Replies: 5
Views: 184016

virus

You could do as farmer suggests. But install ad-aware (and an antivirus package such as avg from grisoft.com ) anyway. It's a bit easier than doing it all manually. Don't rely on windows update and firewall to fix all your problems
by silverside
July 5th, 2004, 10:04 am
Forum: Programming and Software Forum
Topic: Bloodshed dll
Replies: 16
Views: 185999

Bloodshed dll

haha = snap
by silverside
July 5th, 2004, 10:02 am
Forum: Programming and Software Forum
Topic: Bloodshed dll
Replies: 16
Views: 185999

Bloodshed dll

<r>The function you are defining is a raw C function.so in the header file, put __declspec(dllexport) extern "C" double WINAPI DoubleArg(double dRadius);that tells windows to expose the function to anything that links into the dll.Now to do any initialisation of the DLL, put in your codeBOOL APIENTR...
by silverside
July 5th, 2004, 9:51 am
Forum: Student Forum
Topic: Sharpe Ratio for interest rates
Replies: 2
Views: 183411

Sharpe Ratio for interest rates

I don't think your question makes sense. Swaptions are viewed as derivatives of the zero-coupon-bonds in the economy; as such they shouldnt have any excess return, assuming your model is set up correctly (i.e. assuming you arent getting them cheap).
by silverside
July 4th, 2004, 11:04 am
Forum: Programming and Software Forum
Topic: virus
Replies: 5
Views: 184016

virus

have you tried Ad-Aware - free and highly recommended.
by silverside
July 3rd, 2004, 4:27 pm
Forum: Programming and Software Forum
Topic: obtaining directory contents in ms c++
Replies: 6
Views: 184301

obtaining directory contents in ms c++

glad you got it working. It wasnt my code by the way, just found it on the web to illlustrate how to use FindFirstFile/FindNextFile.
by silverside
July 2nd, 2004, 1:06 am
Forum: Programming and Software Forum
Topic: obtaining directory contents in ms c++
Replies: 6
Views: 184301

obtaining directory contents in ms c++

<t>something like this:#include <windows.h>...const char dirpat = "C:\\mydir\\*.*"; // or what else...WIN32_FIND_DATA filedata;HANDLE hdir = FindFirstFile(dirpat,&filedata);if (hdir != INVALID_HANDLE_VALUE){ do // scan dir with this pattern (*.* - all files) if (filedata.dwFileAttributes & F...
by silverside
July 2nd, 2004, 1:05 am
Forum: Programming and Software Forum
Topic: obtaining directory contents in ms c++
Replies: 6
Views: 184301

obtaining directory contents in ms c++

<t>something like this:#include <windows.h>...const char dirpat = "C:\\mydir\\*.*"; // or what else...WIN32_FIND_DATA filedata;HANDLE hdir = FindFirstFile(dirpat,&filedata);if (hdir != INVALID_HANDLE_VALUE){ do // scan dir with this pattern (*.* - all files) if (filedata.dwFileAttributes & F...
  • 1
  • 2
  • 3
  • 4
  • 5
  • 17