I think, this book is great. I had a lot of fun reading it. You have to like this style of writing. A lot of (black/white) pictures. Different fonts.
wb
Posts
-
Heads First Design Patterns - Opinions? -
std::wstring by refis it possible to call a native C++ Method from a Managed(?) C++ DLL and pass a std::wstring by ref? I have a native C++ DLL. This has a static function
IServer * CreateServer();
I created a Managed C++ DLL, imported the native DLL and now trying to make it work..... [DllImport("DoubleFindDll.dll")] extern "C" IServer * CreateServer(); .... IServer srv = CreateServer(); srv->startUp(); std::wstring some_string; srv->FooBar(some_string); //crash here
FooBar is defined as:virtual void FooBar(std::wstring & str) = 0;
and the string is modified inside the method. Im using VS2005. Thank you for any hint. -
profilinghello! I asked this question some days ago, but got no answer. I'm stil searching for a good profiler for VS2005 Pro. Can sombody recommend one?
-
profiler questionhello, I'am searching a tool for Profiling and Error Detection. Can anyone suggest an good but not expensive tool? #define expensive >1000$ thanks
-
refactoring toolI need an advice. For the last weeks I do a lot of Java with the NETBeans IDE. It has some neat features, like creating the get and set methods automaticaly. Does anyone know about a extention for the VC7 IDE , that can do the same? (auto generate GET and SET handlers, create overrides for pure virtual methods and so on) It should be for C++ (thats why I used this forum) thank you.
-
opinions on .net certification mcsdI took the 70-316 exam. Personaly I don't think that the MCSD title has much worth. But of course it is better than nothing :-) I used the ".NET CoreRequirements Self Paced training Kit" It contains books on the testtopics and some trainigsoftware that simulates the questions from the test. DON'T buy the prety expensive "training kits" and "simulators" from third partys. I used one and I don't think it was worth the money. I don't know how much the "SelfPaced" kit cost. It was supplyed by my epmployer. The BrainDumps are pretty helpfull. And a lot of them are free. So, read the books from the microsoft kit, use the trainigssoftware from the CD and look at a lot of braindumps. :-) I don't remember correctly but I got more than 90% of the questions right.
-
Before and After photosyea, that's such a big tragedy. :(( I realy feel with the people and hope that Bush will accept the international help.
-
An email questionmaybe forward the message to an account where you can get the mails with a web interface can solve the problem. :confused:
-
Programmer Salary ?Here in Germany/Bayern one of my frieds graduated this year and starts with 44k€ -> 53k$
-
War of the Worlds:laugh: of course, but I have to walk about 15min to get there. I decided to go there... now I have to talk to my girlfried..... she don't like such kind of films :(
-
War of the WorldsI planed to watch it today, but its raining realy REALY strong all day long, so I decited to stay at home. Should I risk to get wet X| and go to the cinema?
-
Portable SocketsHi, can somebody give me a link to a portable (win32, linux) Socket Library? yes, I know about the thing they call "google". :cool: boost::socket is not ported to linux (or am I wrong?) CommonC++ SocketPort have some bugs. thank you.
-
System.Threading.ThreadAbortExceptionI have a problem I don't understand. I have a native C++ DLL that exports a createXY function. This one creates an Object of type XY. :) Then I build a wrapper in Managed C++
public __gc class clsNGramWrapper
{
protected:
ISimpleIndexBuilder * _IB;
public:
clsNGramWrapper();
~clsNGramWrapper();
bool addDocument(System::String * strDoc);
ArrayList * search(System::String * str);}; public \_\_gc class clsSearchResult { public: System::String \* \_sText; double \_dRelevance; };
and the constructor looks like this:
clsNGramWrapper::clsNGramWrapper() {
HMODULE hDLL = ::LoadLibrary("./nGram.dll");
UINT err = GetLastError();
typedef ISimpleIndexBuilder*(*builderFunc)(void);
builderFunc createSI = (builderFunc)::GetProcAddress(hDLL, "createSimpleIndexBuilder");
_IB = createSI();
}ISimpleIndexBuilder is a class with only some pure virtual methods. In the ASP App, I create an instance of the wrapper int the PageLoad Event. After PageLoad I get an ThreadAbortException, the Application is closed and I loose all the Session and Application State objects. :sigh: What I done wrong? Maybe the wrapper thing?
-
Dynamic memomory errortry using
std::vector
andboost::shared_ptr
and notCDBVariant ***vIn
:wtf: -
Take this IQ test:omg: i scored 108, and have no idea what the correct answers for questions > 25 are.... The the description of the IQ (i checked only the german version) states, that people with an IQ lower than 115 are not realy able to go to UNI... so I have to quit on monday :sigh:
-
How to measure number of cycles of a C codeif you want to count the CPU cycles, you must set up a highperformance timer. check out the articles on timers here on CP. http://www.codeproject.com/datetime/ccputicker.asp[^]
-
SDI and dialog based applicationCSdiApp CSdiDoc CSdiView CSdiMainFrame ---------------- CDialogApp CDialogDlg --------------- now copy the clas CDialogDlg to the SDI app, you must also open the .rc file from the dialog app and add the dialogtemplate to your SDI app CSdiApp CSdiDoc CSdiView CSdiMainFrame CDialogDlg now you must check the CDialogApp class, if there is some code you must also add to your new App. Add a menuentrie to the Mainmenu, and in the eventhandler for this menu you can create a modal dialog of your old app and show it to the user... I hope this helps.
-
What's hot in Centrino TechnologyIf you prefer long batterie life, you must also look at other system parts! I had a P4 2.4Ghz Toshiba Laptop with a 14" display, 512MB, 4200rpm HardDrive and now I have the Assus W1000N with Centrino 2Ghz with a 15.4" Display 1gb, 7200rpm Harddrive The new Laptop is realy much faster.. but the battery dont last for 7 hours as said in the commercials. Its perhaps one hour longer then with the old laptop. 3-4 Hours.
-
Geek JOTDyes, tested the joke on my girlfried... she don't understand it.
-
Folder ListI found something like this, and it works for me...
CoInitialize(0);
BROWSEINFO bi;
char cc[MAX_PATH];
bi.hwndOwner=m_hWnd;
bi.pidlRoot=0;
bi.pszDisplayName=cc;
bi.lpszTitle="";
bi.ulFlags =0;
bi.lpfn =0;
bi.iImage=0;LPITEMIDLIST p;
p=SHBrowseForFolder(&bi);if(!p)
return;SHGetPathFromIDList(p,cc);
SetDlgItemText(IDC_E_PATH,cc);
IMalloc *pm;
SHGetMalloc(&pm);
pm->Free(p);