Any Tutorials for Win32 SDK Programming?
What are some good websites for Win32 SDK programming tutorials? ...
What are some good websites for Win32 SDK programming tutorials? ...
A very basic question, but still, it would be good to hear from C++ gurus out there. There are two rather similar ways to declare by-reference parameters in C++. 1) Using "asterisk": void DoOne(std::wstring* iData); 2) Using "ampersand": void DoTwo(std::wstring& iData); What are implications of each method? Are there any gotcha's...
Hi Everyone, I have a native C code, I compiled the code in vc++ 2008 and its compiled with 'x64' as platform in configuration manager and I have an c# application which is also compiled with 'x64' as platform and it calls the dll function. I have used Dllimport to call the function from the dll like below. using System.Runtime.Interop...
Can anybody explain why do you need to return a reference while overloading operators e.g. friend std::ostream& operator<< (std::ostream& out, const std::string& str) ...
I am having trouble figuring out mem_fun_ref. I have to admit, I usually use functors for this kind of thing, since they can be inlined for speed and profit. However, this code is not going to be a bottleneck and so I wanted to try this thing. Here is an example of what I want to do. I know there are other ways to do it. I don't want to...
I play the online game World of Warcraft, which is plagued by automated bots that inspect the game's allocated memory in order to read game/player/world state information, which is used to mechanically play the game. They also sometimes write directly to the game's memory itself but the more sophisticated ones don't, as far as I know. T...
Hi, everyone! I am a noob in using model/view paradigm in Qt and have the following problem: I have a tree-like structure, that must be visualized via Qt. I found out, that QAbstractTableModel is perfect for my needs, so I write the following: class columnViewModel : public QAbstractTableModel { // some stuff... }; Everything now ...
I need to intercept all mail sent by Thunderbird and block sending if there is a predefined string in the mail body. It should be a part of our already existing XPCOM dll addon. Do you have any ideas how to implement it? ...
Hello, A quick design question for the worth. I need to share data between C++ client and Java server. The Client talks to the server using SOAP. The issue is - I have a generic interface serving all kinds of requests on the Java backend. I don't want to "pollute" is with specific kind of request object which will most of the times re...
Hi Everyone, I had the 32 bit dll which is written using Native C, when I tried compiling with VC++(VS2008) for converting the dll to x64 by changing the platform it compiled. But when I tried to access the dll from my C# application which is also 'x64' platform it fails to load the dll. I used Dllimport for linking the dll with my appl...
I have a program that uses way too much memory for allocating numerous small objects on heap. So I would like to investigate into ways to optimize it. The program is compiled with Visual C++ 7. Is there a way to determine how much memory is actually allocated for a given object? I mean when I call new the heap allocates not less than th...
I have created setup project with Visual Studio. I also need some custom actions - created DLL with Visual c++ and it works just fine but i don't want to include visual c++ runtime files to my project. So is it possible to build this dll with some other c++ compiler? I have tried to make make it with Dev-c++ but when compiling i get few...
Hello! Is there a way to check at compile time if some class has constructor with certain arguments ? ? For example: class foo { foo(std::string &s) { } }; I want to check at compile time that constructor with std::string& always defined. Maybe boost provides such functionality ? ...
When compiler need to know the size of a C (class) object: For example, when allocating a C on the stack or as a directly-held member of another type From C++ Coding Standards: 101 Rules, Guidelines, and Best Practices Does that mean for a heap allocated object, size is not necessary? Class C;//just forward declaration C * o...
There are different calling conventions available in C/C++ stdcall, extern, pascal etc. How many such calling conventions are available and what do each mean? Are there any links that describe these? ...
In order to ensure that some initialization code runs before main (using Arduino/avr-gcc) I have code such as the following: class Init { public: Init() { initialize(); } }; Init init; Ideally I'd like to be able to simply write: initialize(); but this doesn't compile... Is there a less verbose way to achieve the same effect?...
I'm currently working on a legacy app (win32, Visual C++ 2005) that allocates memory using LocalAlloc (in a supplied library I can't change). The app keeps very large state in fixed memory (created at the start with multiple calls to LocalAlloc( LPTR, size)). I notice that in release mode I run out of memory at about 1.8gb but in debug i...
I am writing a program in C++ using Eclipse. I want to compile it as a library for Linux, somthing like a DLL in Windows. How I can do this? Do you know any tutorials on how libraries are created? I just want to understand that is the analog of a DLL for Linux and how to create it. I will be thankful for a small example. ...
We have an application that produces a database on disk. The database is made of thousand of files. The application can have from 500 to 3000 file's handle opened at the same time. These handle are kept opened and data is continuously written to. Up until now, it worked really well on local hard drive, but when trying to put the datab...
Is it possible in Visual Studio 2008 SP1 to target a C++ COM project to vcredist 2008 instead of vcredist 2008 SP1? Our customers have the vcredist 2008 installed and we don't want to force them to install vcredist 2008 SP1. (thousands of computers!) ...