Im trying to get a CDialog that has no border or frame to show in the task bar.
It is created in the InitInstance of CWinApp (used to update the app) and i have tried setting the WS_EX_APPWINDOW flag but it still doesnt show in the task bar.
Any ideas?
Edit:
As defined in the resource:
IDD_UPDATEFORM_DIALOG DIALOGEX 0, 0, 246, 124
S...
I am reading a text file character by character using ifstream infile.get() in an infinite while loop.
This sits inside an infinite while loop, and should break out of it once the end of file condition is reached. (EOF). The while loop itself sits within a function of type void.
Here is the pseudo-code:
void function (...) {
while...
I've often found myself wanting a way to undo the effect of a using statement or to include all of a namespace (such as std) but exclude a bit to be replaced (such as cout). For some reason this isn't possible. I am wondering if anyone knows why it was decided not to add this ability to the language? Is there some technical reason? I ass...
Is it possible to exclude certain functions or lines of code from the gcov coverage analysis. My code contains certain functions that are used for debugging, and are not exercised as part of my test suite. Such functions reduce the coverage percentage reported by gcov. I would like to exclude these functions from the results. If it is no...
Hi, First of all, until now, all my programming education, has been targeted to console applications, just like everyone who starts learning C and C++. (the 2 languages i know)
Now, i want to jump to the nice graphical World.
So, I am exploring Windows Forms, i have already got many headaches trying to understand the language that it u...
class foo {
public:
int a;
int b;
foo(int a_, int b_) : a(a_), b(b_) {}
};
int main() {
foo f;
}
when I try to compile the above code snippet, I got error message as below:
foo.cc: In function 'int main()'
foo.cc:12: error: no matching function for call to 'main()::foo::foo()'
foo.cc:10: note: candidates are: main()::foo...
I want to create a rectangle dynamically in visio with C++ code.
The Visio API has a function drawRectangle which creates a rectangle but does not return a handle to it. Is there an in built function which returns the rectangle object? If not, What should be the code to create this rectangle?
...
Is my interpretation of lambda expression in the context of c++ and Java is correct?
...
I am completed MCA in 2009.I need to get a job in 2 to 3 months,Which ETL is good to me.
Where i have to learn That ETL TOOl
...
I need to generate values according to time of the day, is there a neat way to accomplish that ?
from 9-12 value should be between x - y
from 6-9 value should be between a - b
is there any other way than getting timeinfo struct and extracting hour out of it?
...
I am having trouble finding a precompiled Win32 distribution of PCRE that also includes PCRECPP. The two archives I could find only include "pcre.h".
http://gnuwin32.sourceforge.net/packages/pcre.htm
http://www.psyon.org/projects/pcre-win32/
...
hello.
Suppose I need to implement factory function which returns object O which inherits/has members inheriting from boost::noncopyable.
struct O : boost::noncopyable {};
O factory() { return O(); }
Obviously returning value fails to compile.
What method do you know or use to implement such factory methods? I really like to avoid ...
So I was asked this in a recent interview, basically writing a function to combine the free and Assigning null functionality. I answered in the following manner,
void main()
{
int *ptr;
ptr = new int;
ptr = newdelete(ptr);
}
(int*) newdelete (int *ptr)
{
delete(ptr);
return NULL;
}
So after execution, t...
Hello,
I'm writing a game engine for mobile devices, and I'm trying to support multiple resolutions. The game world can be much larger than the screen, so I'm using a clipper to create a viewport on the world.
My device has a resolution of 240x320. When I set the viewport to 240x320 and my world to 240x320, all is fine. I can slide the...
I need to build a system where we have a set of machines produce unique files, lets call them PRODUCERS and a set of machines receive these files which we call CONSUMERS. Any machine from the PRODUCERS can send files to one or more of the CONSUMERS[ based on some hash mechanism]. I need to build a mechanism which ensures that the file de...
i have made a file open dialog, it contains an edit control whose variable is "path" that contains the file name. what i want is to use this variable's value in other dialogs but it gives the error that "path" is an undeclard identifier.
i declare path by right click on edit control, add a variable of CString type. path variable gets its...
Sitation:
overview:
I have something like this:
std::vector<SomeType> values;
std::vector<int> indexes;
struct Range{
int firstElement;//first element to be used in indexes array
int numElements;//number of element to be used from indexed array
int minIndex;/*minimum index encountered between firstElement
and fir...
I have written a program a.exe which launches another program I wrote, b.exe, using the CreateProcess function. The caller creates two pipes and passes the writing ends of both pipes to the CreateProcess as the stdout/stderr handles to use for the child process. This is virtually the same as the Creating a Child Process with Redirected I...
Greetings all,
I have a code snippet as follows :
class AppCtx {
private:
QMap<QString,IRzPlugin*> pluginsMap;
public :
void addPlugin(IRzPlugin *plugin)
{
pluginsMap.insert(plugin->getPluginUID(),plugin);
}
QMap<QString,IRzPlugin*> & getPlugins()
{
return pluginsMap;
}
}
In my client code I access the QMap as follows....
Hi all,
I'm trying to follow a simple tutorial of Boost::Thread (ver 1.4-3) in VS 2008:
#include <boost/thread/thread.hpp>
void Func()
{
// Do something
}
void main()
{
boost::thread _thrd(&Func);
_thrd.join();
....
}
During compilation it produces this error:
Error 1 fatal error LNK1104: cannot open file 'libboost...