Where can I find good ebooks to learn Win32?
Does anyone know any ebooks i can download to learn it pro or can anyone teach it to me i really want to get good at it ...
Does anyone know any ebooks i can download to learn it pro or can anyone teach it to me i really want to get good at it ...
I have heard about a buffer overflow and I would like to know how to cause one. Can someone show me a small buffer overflow example? New(And what they are used for?) ...
i know there are some styles you can put on a button in C++ win32 exa. like BS_DEFPUSHBUTTON BS_RADIOBUTTON but i do not know all of them and also how would i go about making a user drawn button ...
i have a button that is a rectangle how would i put words in it i want to make so ican click the word and it starts the progrma i know ShellExecute the style is BS_GROUPBOX ...
First of all, i'd to establish that i do have the text file in my Folders directory. Im using visual studio and it is where my source code is compiling. The code below should demonstate why its not working. In visual studio. int main( const int argc, const char **argv ) { char usrMenuOption; const char *cFileName = argv[ 1 ]; ...
Arrays in C/C++ of N elements have subscripts from 0 as the lower bound to N-1 as the upper bound. Other languages like Pascal allow the user to specify any lower bound and upper bound subscript values to create an array of (upper bound - lower bound + 1) elements. Question: Create a class "Array" in C++ that allows a user to specify bo...
I have the following constructor in my "fraction class" fraction::fraction(int num, int den=1) { numerator=num; denominator=den; } I also have a function called lcm() that returns the least common multiple of values given as parameters. I need to overload the "+" operator in the class fraction. The operator "+" is to add t...
Hi, I need to write all my program output to a text file. I believe it's done this way, sOutFile << stdout; where sOutFile is the ofstream object that creates the file like this: sOutFile("CreateAFile.txt" ); // CreateAFile.txt is created. When I insert the stdout into the sOutFile object, I get some code which seems to resemble ...
I'm a newbie for C#, i have a lot of libraries are wrote with C++, when I want to call these libraries in C#, i met many problems. I want to know if there is a book or guideline to tell me how to do that. ...
How do I expose a class from a dll ? The application importing the dll should be able to create the objects of the class and also he should be able to call into the member functions of the class . Is it similar to exposing C type functions using _declspec(dllexport) ? And also when I built the dll ( which only contains class definit...
Hi! We're trying to read data from 2 usb mice connected to a linux box (this data is used for odometry/localization on a robot). So we need to continuously read from each mouse how much it moved. The problem is that when a mouse is not moving, it doesn't send any data, so the file stream from which we get the data blocks execution and t...
I am currently trying to learn C++ win32 with buttons window creation shell procces and im not getting most of this is there a place to learn all of this (place == book) just for beginners ...
I want to write my own c++ compiler in c++. Let´s say I´m going to build it in VS. The main idea is that it must have been able to compile itself, which means I cannot use STL, boost, etc. libraries, can I? So, does it mean that I must do everything from scratch - from lexical analyser to binary code generation? ...
I have a token class that looks something like this: class Token { public: typedef enum { STRTOK, INTTOK } Type; virtual bool IsA(Type) = 0; } class IntTok : public Token { int data; public: bool IsA(Type t) { return (t == INTTOK); } int GetData() { return data; } } IntTok newToken; if ( newToken.IsA(Token::INTTOK ) {...
I have a C# class library that contains methods that need to be used with an external application. Unfortunately this external application only supports external APIs in C/C++. Now I've managed to get a very simple COM example working between a C++ dll and a C# DLL, but I am stuck on how I can move around array data. This is what I'v...
I'm writing a PHP IDE in Qt4 for my Master's project. I am trying to duplicate a lot of the functionality of Eclipse or Visual Studio without all the bloat and the overhead. I'm trying to do some code completion but I need to do some syntax analyzing to have intelligent code completion. I've looked at the PHP source code and thought abou...
What C++ open-source projects have good and clean code? I would like to go through it and learn the design and implementation tricks used there. There was a similar question about C code here, but I would be specifically interested in C++ projects, especially in ones that use modern programming approaches and have modular but not bloate...
Question: How to pass specifically two arguments to CreateThread, when: Argument one, of type SOCKET Argument two, an interface pointer: _COM_SMARTPTR_TYPEDEF(Range, __uuidof(Range)); RangePtr pRange; //pass pRange Suggestions: For interface pointer, using CoMarshalInterThreadInterfaceInStream, accordingly, ...
Hi, I have the following snippet: #include <boost/random/lognormal_distribution.hpp> #include <boost/random/lagged_fibonacci.hpp> int main() { const double mean = 0.0; const double sigma = 1.0; boost::lognormal_distribution<double> lognorm_dist(mean, sigma); boost::lagged_fibonacci44497 engine; // the following line giv...
I have a string in C++ of type EDIT: (const char *) passed as argument to strlen, but it returns void.. damn i can't get formatting to work >.< it goes like strlen(astruct.string); Thanks.. EDIT: Did some checking, strlen("test"); still gives void.. why? EDIT: Here's the image http://img14.imageshack.us/img14/1808/strlen.png ...