hi,
I am writing a program which burns data to DVD. When i run my program its showing error code
0xC0AA0403(The size of the provided IStream object is invalid. The size must be a multiple of the sector size, 2048.)
Please help me on this. How to specify data as multiple of 2048. I am just passing a single DOC file to burn
...
I'm designing a system that will write time series data to a file. The data is blocks of 8 bytes divided into two 4 bytes parts, time and payload.
According to MSDN the WriteFile function is atomic ( http://msdn.microsoft.com/en-us/library/aa365747(VS.85).aspx ), if the data written is less then a sector in size.
Since the file will o...
I have a legacy C++ project that takes an annoyingly long time to build (several minutes, even for small incremental changes), and I found most of the time was spent linking.
The project is already using precompiled headers and incremental compilation.
I have enabled the "/time" command line parameter in the hope I would get more detail...
I am using STLPort version 5-1.0 on windows , visual studio 2005.
i get comepile errors in
http://maniadminplugin.googlecode.com/svn/trunk/stlport/include/stlport/stl/_cstdlib.h
errors are as follows. they basically complain about not finding types/functions under std.
Any clue as to why?
Error 1 error C2039: 'div_t' : is not a me...
Occasionally you meet bugs that are reproducible only in release builds and/or only on some machines. A common (but by no means only) reason is uninitialized variables, that are subject to random behaviour. E.g, an uninitialized BOOL can be TRUE most of the time, on most machines, but randomly be initialized as FALSE.
What I wish I wou...
I am using Visual C++ 2005 to build a couple of libraries and an executable.
I include the STLport location in the Additional Include Path of the libraries and include the library in the input to linker for executable.
The library however seems to reffer to stl symbols (such as string) without the stl port namespace.
This results in a l...
Below is my code. My problem is, my destination file always has a lot more strings than the originating file. Then, inside the for loop, instead of using i < sizeof more, I realized that I should use i < sizeof file2 . Now my problem is, how to get the size of file2?
int i = 0;
FILE *file2 = fopen(LOG_FILE_NAME,"r");
wfstream file3 ...
I am trying to use the IXmlSerializable interface to deserialize an Object (I am using it because I need specific control over what gets deserialized and what does not. See my previous question for more information). However, I'm stumped as to the error message I get. Below is the error message I get (I have changed some names for clarit...
What is the opposite of the string comparison
thisString->EndsWith("String")
If it does not end with...
...
Hi,
I used a win 32 console application application to test a crash reporting mechanism. But when I run the Release exe, I got this error : Missing Language File or Wrong Language File Version. Can someone please explain what is the matter here and how to overcome it??? I use Visual Studio 2008 pro.
...
In a plugin-based C++ project, I have a TmpClass that is used to exchange data between the main application and the plugins. Therefore the respective TmpClass.h is included in the abstract plugin interface class that is included by the main application project, and implemented by each plugin.
As the plugins work on STL vectors of TmpCla...
I want to compile ntop under Win32. I download all files but at compile time
many classes are missing?
Where could I find all needed source files for ntop?
...
Hi,
Want to wrap the original exe to produce new exe. This new exe works with it's original functionality, no limitation but the outer part controls the trial situation.
Is it possible to do with VC++
Please give some valuable help
...
My code's IF-THEN does not work for 2nd iteration. This is due to, the jar processing take some time to write it result inside the output.txt.
Since the writing is a bit late, my code's 2nd iteration will always read the previous written value inside the output.txt in order to pass it to the IF-THEN.
For example, in 1st iteration:
ou...
When I'm running unit tests, I want to be able to "stub out" or create a mock object, but I'm running into DLL Hell.
For example: There are two DLL libraries built: A.dll and B.dll -- Classes in A.dll have calls to classes in B.dll so when A.dll was built, the link line was using B.lib for the defintions.
My test driver (Foo.exe) is te...
Hi,
From past 1 week i stuck on this please help me i am attaching code.
bool DVDBurner::Burner()
{
m_hResult = CoCreateInstance(__uuidof(MsftDiscFormat2Data), NULL, CLSCTX_INPROC_SERVER,
__uuidof(IDiscFormat2Data), (void**)&m_discFormatData);
if (!SUCCEEDED(m_hResult))
{
qDebug()<<"Unable to Initialize IDiscFormat2Data ";
return false...
Hi all
I have the situation as follows
I have develpoed one test project in visual studio 2008 to test my target project.
I was getting the following exception when i ran test case in my PC
System.IO.FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at System.Reflection.Assembly._n...
Hi,
I need to convert int32 to int in VS2008 C++ CLI?
How is this done?
...
Hi,
I have a program that has a SIZE of 800x600.
I want to make this program expand if it is maximized, so that all the elements(buttons, picturebox's) change size to fit the new ratio depending on the users windows screen resolution.
The way I am thinking to approach this is to take the users screen resolution and manual change the ...
I am working on VC++ project, in that my application process a file from input path and generates 3 output "*.DAT" files in the destination path. I will FTP these DAT file to the destination server. After FTP, I need to delete only two output .DAT files the folder. I am able to delete those files, because there one Asynchronous thread ru...