Serving the Quantitative Finance Community

Search found 26 matches

  • 1
  • 2
by robert2098
January 27th, 2015, 8:58 am
Forum: Programming and Software Forum
Topic: Basic usage -- Visual Studio
Replies: 54
Views: 20587

Basic usage -- Visual Studio

<r>QuoteOriginally posted by: AlanI hardly ever use Visual Studio, so here is a basic "how to" question. I have a C/C++ console project consisting of two .cpp files, one with the main entry point, call it main.cppNow, it comes up all the time that I want to try a new method/approach in the main.cppS...
by robert2098
June 26th, 2012, 6:57 am
Forum: Off Topic
Topic: programmatically use outlook
Replies: 13
Views: 12807

programmatically use outlook

<t>For manipulating Excel files, you can indeed use the Excel Automation interface:Excel Object ModelThe documentation is with VBA examples but it also largely applies if you use C++. In C++ you have to use the #import statements to import the Excel type libraries.For sending an Excel document you c...
by robert2098
December 10th, 2010, 2:02 pm
Forum: Programming and Software Forum
Topic: Excel RTD server crash
Replies: 34
Views: 33427

Excel RTD server crash

<t>QuoteOriginally posted by: tva211void TimerElapsed(object sender, System.Timers.ElapsedEventArgs e) { // Stop the timer and notify Excel there is new data. if (m_callback!=null) { try { m_timer.Stop(); m_callback.UpdateNotify(); } catch (Exception er) { Log("Exception calling UpdateNotify() : " +...
by robert2098
April 28th, 2010, 11:38 am
Forum: Programming and Software Forum
Topic: Windows hosts file
Replies: 7
Views: 30808

Windows hosts file

<t>Unless you are living in Russia, your DNS servers are wrong. The IP address points to a server in Moscow. The IP range is owned by Promnet Ltd in the Ukraine.Usually you should set the DNS in your network settings to "Obtain DNS server address automatically". Also usually the "Obtain an IP addres...
by robert2098
April 28th, 2010, 8:40 am
Forum: Programming and Software Forum
Topic: Windows hosts file
Replies: 7
Views: 30808

Windows hosts file

<t>This seems a workaround for a failing DNS server. Normally the DNS server will translate download.mcafee.com to the right IP address.When you type in the commandline: ping download.mcafee.comYou should see what IP address your DNS server returns. I get two different IP addresses but the addresses...
by robert2098
April 27th, 2010, 11:50 am
Forum: Programming and Software Forum
Topic: Windows hosts file
Replies: 7
Views: 30808

Windows hosts file

<t>Why is the host file changed?I'm running McAfee too and the only entry in my host file is for "localhost". So McAfee does not require anything in your host file.But maybe some kind of malware added an entry to your host file that redirects the McAfee update server.What is the content of your host...
by robert2098
April 22nd, 2010, 6:14 am
Forum: Programming and Software Forum
Topic: Excel Rand() even worse than you thought.
Replies: 43
Views: 199151

Excel Rand() even worse than you thought.

<t>QuoteOriginally posted by: outrunGreat stuff!The VBA call (via de button on the sample sheet) works, ...but the worksheet functions give "#NAME?" errors.That's probably something you expect , because in the example sheet you say "Make sure the "Datasim Excel Random Functions Library" automation a...
by robert2098
April 21st, 2010, 12:55 pm
Forum: Programming and Software Forum
Topic: Excel Rand() even worse than you thought.
Replies: 43
Views: 199151

Excel Rand() even worse than you thought.

<t>Hi,Daniel asked me to post the "Datasim Excel Random Functions" automation add-in.This add-in wraps some of the boost random functions in an COM .dll that can be loaded into Excel as automation add-in. The functions can then be called as Excel worksheet functions.The .dll can also be used from VB...
by robert2098
February 15th, 2010, 8:43 am
Forum: Programming and Software Forum
Topic: Array in Worksheet Functions STDEV (Excel in C++)
Replies: 6
Views: 36450

Array in Worksheet Functions STDEV (Excel in C++)

<t>From the Excel help on the "StDev" function:Estimates standard deviation based on a sample. The standard deviation is a measure of how widely values are dispersed from the average value (the mean).expression.StDev(Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13, A...
by robert2098
March 10th, 2008, 9:57 am
Forum: Programming and Software Forum
Topic: C#: claim and reality
Replies: 30
Views: 67333

C#: claim and reality

<t>QuoteOriginally posted by: Cuchulainn3. Are you using rectangular arrays?Indeed there are two kinds of arrays in C#. You are using "jagged arrays' (arrays of arrays). If the datastructure is rectangular/matrix (every row has the same number of columns) you can also use rectangular arrays. An adva...
by robert2098
July 16th, 2007, 8:48 am
Forum: Programming and Software Forum
Topic: Virtual functions in C++ are slower than non-virtual functions, right?
Replies: 35
Views: 78019

Virtual functions in C++ are slower than non-virtual functions, right?

<t>Hereby my results of the test program in both C++ and C#:Debug buildC++ NV: 152.53C++ V: 157.844C# NV: 24.281C# V: 21.438Release buildC++ NV: 0C++ V: 7.672C# NV: 1.531C# V: 10.344Because in de C++ version, the non-virtual function was optimised away, I changed the code a little bit. The functions...
by robert2098
September 26th, 2005, 1:12 pm
Forum: Programming and Software Forum
Topic: Visual Studio Tools for Applications: he new VBA.NET?
Replies: 7
Views: 136397

Visual Studio Tools for Applications: he new VBA.NET?

<t>There seems some confusion here.Visual Studio Tools for Office (VSTO) is not the same as Visual Studio Tools for Applications (VSTA)!VSTO is an extension to Visual Studio 2003/2005 to automate Office. Here a .dll created in .NET is referenced and executed by an office document. The .NET .dll uses...
by robert2098
September 19th, 2005, 12:00 pm
Forum: Programming and Software Forum
Topic: Is Multiple Inheriyance any good?
Replies: 49
Views: 140823

Is Multiple Inheriyance any good?

<t>QuoteNo. DLLs work with C and C++ equally well. The only issue with dynamically loading a C++ library is getting the "munged" symbol names correct, and the compiler/linker/dynamic linker usually take care of that. Think of all the DLLs in Windows written using MFC. Standard Windows DLL only conta...
by robert2098
September 19th, 2005, 9:35 am
Forum: Programming and Software Forum
Topic: Is Multiple Inheriyance any good?
Replies: 49
Views: 140823

Is Multiple Inheriyance any good?

<t>QuoteBTW why use interfaces in the first place?When there is no "is a" relation.To be more specific. Inheritance is ment for classes that have a "is a" relation. For example an Apple is a Fruit.When there is no real "is a" relation, for example an Apple is not a Comparable, using inheritance woul...
  • 1
  • 2