Howdy,
I'm trying to write an application that connects to my company's wireless network automatically on windows XP.
I've found the Wireless LAN API but it requires me to have some hotfix installed on the machine, and you need to have sp2 or higher(There are machines with SP1, and I'm required to support any XP machine).
I've tried ...
HANDLE Proc;
HMODULE hDLL;
hDLL = LoadLibrary(TEXT("mscoree.dll"));
if(hDLL == NULL)
cout << "No Dll with Specified Name" << endl;
else
{
cout << "DLL Handle" << hDLL << endl<<endl;
cout << "Getting the process address..." << endl;
Proc = GetProcAddress(hDLL,"GetRequestedRuntimeVersion");
if(Proc == NULL)
{
FreeLibrary(hDLL)...
Hi,
I am using boost::lambda to remove subsequent whitespaces in a string, leaving only one space. I tried this program.
#include <algorithm>
#include <iostream>
#include <string>
#include <boost/lambda/lambda.hpp>
int main()
{
std::string s = "str str st st sss";
//s.erase( std::unique(s.begin(), s.end(), (boost::lamb...
hello,
i have a solution, which has a C++ project and a C# project.
the C++ project defines a class, which i want to instantiate in C# and call it's member functions. so far what i managed to do is to instantiate the class:
CFoo Bar = new CFoo();
but when i try to call a function on it, the compiler says, it is not available.
also, w...
I have c++ application to monitor local computer and a HTML5 webpage (offline support) to show statistics. At present my application send data through server to webpage, but it works only on online. Now I want to support full offline mode, so i need to push data directly to webpage to fire javascript events. Is this possible? And is this...
When I use braces around case code block in C++ to localize variables should I put break inside or outside the block?
Thanks.
...
The problem is - I want to write a template class in C++, put it in a DLL, and then call it from my C# project. Is it possible? Can you please provide any references or articles on about how to do it?
EDIT
I want DLL to be written in unmanaged C++
...
We have large (100,000+ elements) ordered vectors of structs (operator < overloaded to provide ordering):
std::vector < MyType > vectorMyTypes;
std::sort(vectorMyType.begin(), vectorMyType.end());
My problem is that we're seeing performance problems when adding new elements to these vectors while preserving sort order. At the moment ...
I have a control flow graph representing a single procedure of my intermediate language code. Nodes and Edges are annotated via vertex/edge properties and contain instructions resp branch information.
Now I want to perform data flow analysis on this graph and feed that graph into each data flow analysis module. Each module should be ab...
Hi all,
I'm fairly new to C++ so this is probably somewhat of a beginner question. It regards the "proper" style for doing something I suspect to be rather common.
I'm writing a function that, in performing its duties, allocates memory on the heap for use by the caller. I'm curious about what a good prototype for this function should...
Hey,
So I want to make a new music player for Android, it's going to be open source and if you think this idea is any good feel free to let me know and maybe we can work on it.
I know it's possible to speed up and slow down a song and normalize the sound so that the voices and instruments still hit the same pitch.
I'd like to make a m...
I'm trying to output a TrueColor image using GD (specifically bgd.dll) from a C++ program under windows. The API (or at least the examples) seem to suggest that the range of the integer RGB arguments for gdResolveColor spans the values 0-255. Is this correct?
I've experimented with higher values and gotten strange results but this coul...
Hi,
I am looking for a nice book, reference material which deals with forward declaration of classes esp. when sources are in multiple directories, eg. class A in dirA is forward declared in class B in dirB ? How is this done ?
Also, any material for template issues, advanced uses and instantation problems, highly appreicated ?
Thanks...
Hi
I have to excecute a exe which is available in some drive how can i do this using c++??
I am doing like this
#include <stdio.h>
#include <conio.h>
#include <windows.h>
void main()
{
STARTUPINFO si;
PROCESS_INFORMATION pi;
ZeroMemory( &si, sizeof(si) );
si.cb = sizeof(si);
ZeroMemory( &pi, sizeof(pi) );
i...
I'm trying to write a Firefox extension that writes Firefox's history into the Windows system history, which ought to be useful for folks at work who use IE and Firefox to get work done.
Adding pages to IE history appears simple enough (IUrlHistoryStg::AddUrl ought to do it). However, my experience with Firefox extensions is limited to ...
I'm attempting to write a simple B+tree implementation (very early stages). I've got a virtual class with a few functions. Needless to say, I'm very new to these strategies and am running into all sorts of problems.
I'm attempting to create a root node within the BTree class. The root node will be a BBranch, which should inherit from...
I'm learning how to use the Boost Test Library at the moment, and I can't seem to get test suites to work correctly. In the following code 'test_case_1' fails correctly but it's reported as being in the Master Test Suite instead of 'test_suite_1'.
Anyone know what I'm doing wrong?
#define BOOST_AUTO_TEST_MAIN
#include <boost/test/auto...
How to access DOM of a web page in QtWebKit?
I don't see any methods exposing DOM in QtWebKit...
...
This is probably a silly question to people knowledgeable about compilers, but I'm honestly ignorant about the answer.
Is C++ syntax context-sensitive? In other words, is C++ syntax not expressible with context-free grammars?
Obviously C++ is parsed with regular parsing tools and that parsing is not particularly ineffective (!), but ...