Labels

_fuxi (75) _IV (146) _misc (5) {610610 (30) algo (1) automatedTrading (8) banking/economy (3) book (14) c++misc (125) c++real (15) c++STL/java_container (7) cppTemplate (1) db (13) DB_tuning (4) deepUnder (1) dotnet (69) eTip (17) excelVBA (12) finance+sys (34) financeMisc (24) financeRisk (2) financeTechMisc (4) financeVol (21) finmath (17) fixedIncome (25) forex (16) IDE (24) invest (1) java (43) latency (4) LinearAlgebra (3) math (30) matlab (24) memoryMgmt (11) metaPrograming (2) MOM (15) msfm (1) murex (4) nofx (11) nosql (3) OO_Design (1) original_content (4) scriptUnixAutosys (19) SOA (7) socket/stream (15) sticky (1) subquery+join (2) swing (32) sybase (6) tech_orphan (12) tech+fin_career (30) telco (11) thread (21) timeSaver (13) tune (10) US_imm (2) US_misc (2) windoz (20) z_algo+dataStructure (4) z_arch (2) z_c#GUI (30) z_career (10) z_career]US^Asia (2) z_careerBig20 (1) z_careerFinanceTech (11) z_FIX (6) z_forex (31) z_hib (2) z_ikm (7) z_inMemDB (3) z_j2ee (10) z_oq (14) z_php (1) z_py (26) z_quant (4) z_skillist (3) z_spr (5)
Showing posts with label IDE. Show all posts
Showing posts with label IDE. Show all posts

Wednesday, December 25, 2013

msvs - must include header to use std::string

msvs - must include <string> header. Otherwise we get funny compiler errors like


Error 5 error C2784: 'bool std::operator <(const std::unique_ptr<_Ty,_Dx> &,const std::unique_ptr<_Ty2,_Dx2> &)' : could not deduce template argument for 'const std::unique_ptr<_Ty,_Dx> &' from 'const std::string' d:\program files\microsoft visual studio 10.0\vc\include\xfunctional 125 1 cpp_consoleTest

Wednesday, December 11, 2013

msvs - add (web) service reference

I now think the service must be running, perhaps in a console host. You should be able to see the port in use via netstat

Thursday, August 22, 2013

endl vs "\n" under Eclipse CDT debugger

I realize that under Eclipse CDT debugger, sometimes i must use endl.

The cout content won't show on console if I use "\n" instead. Even cout.flush() doesn't help.


Monday, June 24, 2013

wcf 3-project setup in MSVS

Supposed you need to write both wcf client and server. It's best practice to have

one client project

one _service_ project

one _host_ project



Monday, June 17, 2013

learning vc++ on visual studio

[[visual c++ 2005 express edition programming for the absolute beginner]]
 
This is below the vc++ standard edition.

no msvs experience assumed, Starts from level 0

heavy on GUI development

Wednesday, March 6, 2013

MSVS project - Don't include unversioned files

If a file is versioned and included in VS project, normal.
If a file is versioned and Excluded in VS project, then no real risk even if the file causes build errors.
If a file is un-versioned and included in VS project, then build will complain explicitly.
If a file is un-versioned and Excluded in VS project, then do you need to back up the file? If you do then better version it.

Friday, December 14, 2012

msvs - ctrl+] to locate matching braces

If you put cursor on the opening (or closing) brace of a big block, you can hit ctrl + ] repeatedly. You will see the cursor jumping between the opening and closing braces.

Tuesday, December 4, 2012

MSVS - unload ^ remove project from a solution

Learn the diff

- Unload a proj from a solution -- You can reload, probably from disk
- Remove a proj from a solution -- disappear from SolutionExplorer
- Physically delete a proj folder from disk

MSVS - Library project ^ ConsoleApp project

I think a library project is basically a project that outputs a DLL, rather than an EXE.

To see if an existing project is library or non-library, right click -} Properties. (The PropertyWindow doesn't help.) You can see OutputType == ClassLibrary

Saturday, December 1, 2012

MSVS - adding x-proj reference within a solution

Say you are developing Project1. If you refer to stuff in a sister proj (Project “PROJA”) within the same solution, you must include PROJA in Project1’s References. You must see PROJA when you expand [1] Project1’s References list.

 

Now watch out. When you addReference -> Project, you may see PROJA. Now you must click OK. If you click Cancel, you will see PROJA not added to the References list.

 

[1] using that tiny “+” sign

 

Tuesday, November 27, 2012

If mingw-eclipse debugger complain about gdb

If eclipse debugger complain about gdb, then maybe the %PATH% contains an invalid path to mingw folder.

Monday, November 26, 2012

"ctrl>" in MSVS -- auto suggest

Highlight a token/name in source editor and hit ctrl> to see IDE suggestions

Sunday, November 25, 2012

cookbook - creating a WCF service, ConsoleHost and client

P20 [[learning WCF]] is a from-scratch cookbook using visual studio - detailed

P31 is similar but using visual studio automation tools

Sunday, November 18, 2012

gcc toolchains on windows

http://www.boost.org/doc/libs/1_52_0/more/getting_started/windows.html#link-your-program-to-a-boost-library shows there are only 2 of them -- cygwin and mingw.

I'd say don't spend too much time there even though gcc is a very complete solution on windows. Reason? MSVC is the gorilla on this market.

codeblocks, bloodshed

[[c++ for dummies]] covers CB in details, including the CB debugger

http://cse.seu.edu.cn/PersonalPage/shine/docs/GCC_for_Win32_Intro.pdf covers bloodshed, mingw, CB

msvs - find file by name

http://blogs.msdn.com/b/andrewarnottms/archive/2008/08/02/visual-studio-trick-to-quickly-find-any-file-in-solution.aspx

First jump up to that box using the keystroke Ctrl+/. Now type ">of " and follow with the start of a filename. As fast as you can type, Visual Studio searches your entire solution for a file or path that starts with the characters you type

msvs - win32 console project

I have seen many authors (with no exception) recommend win32 console project as the first msvs project to use. Good enough for c++ experiments

Tuesday, April 17, 2012

dev-cpp and mingw integration

My dev-cpp used to work. I later installed minGW and dev-cpp stopped working even when I compile the simplest program

Solution -- http://www.computing.net/answers/programming/dev-c-compier-just-not-working-/24305.html
1. Download new MINGW compiler at http://www.mingw.org/ and install it in C:\MinGW\
2. in Dev c++. right click on menu Tools>Compiler options.
3. in tab "Directory", right click on "Libraries" and change "C:\Program Files\Dev-Cpp\Lib" to "C:\MinGW\lib"
4. Compile!

Friday, February 3, 2012

If IDEA remote-debugging becomes extremely slow

I found out that I have too many breakpoints including 1) exception breakpoints and 2) method entry/exit breakpoints.

2) seems to be key

Sunday, November 13, 2011

requirements to debug into c++ from another language

The driver app (java, c#, MS-excel ...) had better use dynamic linked library to access C++ code. (Not sure if a static library can suffice.) Before the app terminates, we attach our debugger (gdb, MSVC etc) to that process.

http://forums.codeblocks.org/index.php/topic,6419.0.html has a popular write-up about MSVC debugger. i guess if you use g++ to compile, then you may need gdb; if you used MSVC to compile, then you may need MSVC debugger.

Obviously We need source code used to compile the library. Of course, the library must be compiled with -G.