m_Pre.ExportAsFixedFormat(path,
PpFixedFormatType.ppFixedFormatTypeXPS,
PpFixedFormatIntent.ppFixedFormatIntentPrint,
Microsoft.Office.Core.MsoTriState.msoTrue,
PpPrintHandoutOrder.ppPrintHandoutHorizontalFirst,
PpPrintOutputType.ppP...
Following code is in my c++ class
static const QString ALARM_ERROR_IMAGE ;
i want to initilize
ALARM_ERROR_IMAGE = "error.png";
Is it possible to initilize error.png to static const QString ALARM_ERROR_IMAGE
Want to keep it inside class
...
Hi,
I want to keep a static const variable as a member of class.
Is it possible to keep and how can i initilize that variable.
Some body helped by saying this
QString <ClassName>::ALARM_ERROR_IMAGE = "error.png";
http://stackoverflow.com/questions/3698446/initilizing-value-for-a-const-data
I tried like this
in CPP class i write...
Hi,
when I build my project in release mode, right click the project and say debug > start new instance, this takes about 49 seconds to run(its a large task)
when i go to the release folder in the project folder and click the .exe it takes 130 seconds.
when I move the exe to a folder with all the dependent dll's it takes 220 seconds.
...
I have IInternetProtocol->Start method called and want to change HTTP request headers in there, but the rest of default implementation should be the same.
...
__asm
{
mov bl, byte [0x0068F51C]
call 0x004523C0
}
This code gives this error:
main.cpp(57): error C2400: inline assembler syntax error in 'second operand'; found '['
main.cpp(58): error C2415: improper operand type
Line 57 is the line with the mov instruction. I don't see what I'm doing wrong here, especially the call instruct...
Hi,
I am porting a C++ project to VS2008.
Piece of the code has a variable declared in the for loop statement as below:
for(bmpMapType::const_iterator it = bitmaps.begin(); it != bitmaps.end(); ++it)
{
}
"it" is later used as an index in another for loop statement as below:
for(it = bitmaps.begin(); it != bitmaps.end(); ++it)
{
}
I...
Hi all, I'm running into linking problems in MSVC for a project that I wrote for g++. Here's the problem:
I build libssh as a static library as part of my application, adding the target in cmake with
add_library(ssh_static STATIC $libssh_SRCS)
Libssh is in C, so I have 'extern "C" {...}' wrapping the includes in my c++ sources. I then...
Hi, How do you find number of items in a column inside a grid?
I have a grid (listview control to be specific), and have some items.
Some times a given row might not be full. ANd can have values in fewer than maximum columns. I need to find Number of items in a given Column.
If the grid is like
1 2 3
4 5 6
7
and if i...
I recently updated from Python 2.5 to 2.7 (I tried 2.6 during my hassles) and while everything works fine from the command line or in the Django runserver, mod_wsgi cannot load any module that contains DLLs (pyd) built with MSVC.
For example, if I build my own versions of pycrypto or lxml then I will get the following error only from mo...
Could someone tell me a command line switch for bjam or something else that will make boost compile with VS2010 using the new Windows Platform SDK 7.1 toolchain? It's an option you can set in a normal visual studio project. The default is v100 a variant of the platform 7.0 toolchain. Thanks in advance.
...
HI All
I am using MS C++ compiler cl.exe at command line to build my projects. The list of directory that must be included with /I is huge. I don't want to include this big huge list for each file I need to compile.
Do you know a way to set the list of folders to be included by default so that these will not appear at the command line ...
I've recently converted an MFC visual studio 6.0 project to a visual studio 2010 project and I'm experiencing problems whenever I try to add event handlers to controls on certain forms within my project. On one particular page I have a radio button and I've tried to add a click event handler to it using 3 different ways:
1) By right cl...
I learned to program in C# and have started to learn C++. I'm using the Visual Studio 2010 IDE. I am trying to generate random numbers with the distribution classes available in <random>. For example I tried doing the following:
#include <random>
std::normal_distribution<double> *normal = new normal_distribution<double>(0.0, 0.0);
s...
I can't get it to work with visual c++ 2005 and boost 1.43
this simple source code :
#include <boost/date_time.hpp>
int main( int argc, char** argv )
{
boost::gregorian::date d();
}
gives a link-time error :
error LNK2019: unresolved external symbol "class boost::gregorian::date __cdecl d(void)" (?d@@YA?AVdate@gregorian@boost...
Hi,
I created a static library, I have the .lib and headers. My friend try to use this library, but when he include this headers, his compiler didn't find the dependencies(other libs and header).
Is it possible to create a static library in Visual Studio 2008, which don't need any other dependencies, just the compiler add the required d...
Hi all,
I am developing a Windows app with WebBrowser control (IWebBrowser2) embedded.
Things look good if I initialize COM apartment as single threaded:
CoInitialize(NULL);
However, if I change it to be multithreaded:
CoInitializeEx(NULL, COINIT_MULTITHREADED);
then it starts to fail all over the places with return value of:
...
I my current team we organize the dependencies to external libraries headers in the project settings like that:
Compiler Settings->Additional Includes:
d:\src\lib\boost_1_43
d:\src\lib\CxImage_6_00
...
As you can see, we include the exact library version number in our paths.
The advantage of this method is that we always know, which e...
When debugging in Visual Studio, if symbols for a call stack are missing, for example:
00 > HelloWorld.exe!my_function(int y=42) Line 291
01 dynlib2.dll!10011435()
[Frames below may be incorrect and/or missing, no symbols loaded for dynlib2.dll]
02 dynlib2.dll!10011497()
03 HelloWorld.exe!wmain(int __formal=1, int __formal...
Hi,
I would like Visual Studio to automatically put my .h file in a folder /ProjectPath/include and my src file in /ProjectPath/src. That way, if I use the "Create class wizard" for instance, it would put the good path by default without me having to change the folder. Anyone know what setting I should change to get this behaviour when...