|
Michael Schubert wrote: I heard that they will release their next wave of crap products on Blue Ray discs because they don't fit on DVDs any more
Yes, but the installer will be incredibly compressed so that it fits in just 2 such discs.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Michael Schubert wrote: Other option:
Use CFile::GetStatus if you are using MFC. Does the same work inside. Gives plenty more information.
Nibu babu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
|
|
|
|
|
In the MFC version that ships with VC6, the m_size field in the CFileStatus structure is only LONG which limits the file size to 4 GB.
|
|
|
|
|
I already suggested that to the OP (my second reply to the OP). Michael Schubert was providing even more options than that.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Rajesh R Subramanian wrote: I already suggested that to the OP (my second reply to the OP). Michael Schubert was providing even more options than that. Smile
Sorry, repost.
Nibu babu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
|
|
|
|
|
Attending the South Asia summit BTW? I'm planning to be there. We will sit down for a tea.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Rajesh R Subramanian wrote: Attending the South Asia summit BTW? I'm planning to be there. We will sit down for a tea.
Will be in Belgium then sadly! Would love sit down with you for tea though!
Nibu babu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
|
|
|
|
|
Belgium? Drop an email to Cedric Moonen then.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Rajesh R Subramanian wrote: Drop an email to Cedric Moonen then
Hmm, I will.
Nibu babu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
|
|
|
|
|
There is solution I got the size of a existing file before,and it's capable to calculate the size of a file of Big-size bigger that 2GB,I hope it will help.
CString filename="c:\\file.avi"; // bigger that 2GB supposed
HANDLE handle=CreateFile(filename,
GENERIC_READ,
FILE_SHARE_READ,
NULL,OPEN_EXISTING,
FILE_ATTIBUTE_NORMAL,
NULL);
__int64 iSize=0;
DWORD dwSizeHigh=0;
iSize=GetFileSize(handle,&dwSizeHigh);
iSize|=(((__int64)dwSizeHigh)<<32);
//here iSize is the size of file named "c:\\file.avi".
CloseHandle(handle);
//convert it to a string buffer for printing
char buff[64]={'\0'};
_i64toa(iSize,buff,10);
//display
pStatic->SetWindowText(buff);
|
|
|
|
|
Hi All
How can convert a dialog base app to a service?Plz help me
|
|
|
|
|
there are plenty of articles about "how to make a service" or "how to convert an application into a service" in here.
have you bothered search codeproject before asking ?
|
|
|
|
|
sorry sir no result found..
|
|
|
|
|
|
Thx's for link but all are showing for consol and i need example for dailog..So plz help me
|
|
|
|
|
Since a service rarely, if ever, has a user interface, the fact that it is a console application is irrelevant.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
If i remember correctly previously you were asking how to convert an MDI application to Dialog
and now you want to convert a dialog based app to a service.
Why don't you create the app according to your needs??
It is simply waste of your own time..
Regards,
Sandip.
|
|
|
|
|
yes you are 100% right..I was asking.
Now i want to start a application when system is boot.And i have a code in dailog which is working fine.So can you tell me in which i go to do that?
Plz help me
|
|
|
|
|
Hello everyone,
Here is the related x64 assembly code generated for my application. I run in on Windows Server 2003 x64. It is just a simple member method call on member foo, and the member method accepts a single input Bool parameter.
Here is the code.
My question is, on x64 it should be rcx used for this pointer, and rdx should be used for the actual parameter m_bMandatory? But what is the function of the statement -- "mov r8d,r13d". Please correct me if I am wrong.
foo.Render(m_bMandatory);
000000001AC96E2F lea rdx,[rsi+58h]
000000001AC96E33 mov r8d,r13d
000000001AC96E36 lea rcx,[foo]
000000001AC96E3B call CFoo::RenderPackage (1AC96AC4h)
thanks in advance,
George
|
|
|
|
|
Hi,
I am having a really hard with named pipes async. I/O
I have a Dos Console Server and a WIN32 GUI client
I am running both the Dos Console app and the WIN32 app
under the Visual Studio Debugger (2 instances)
in The DOS console server I Do the ConnectNamed pipe Then CreateProcess of the Win32 Gui
When in the WIN32 GUI I do I CreateFile The I enter the Windows Message Loop
Back in the Dos Console program I Do a ConnectNamedpipe
When the User makes a Selection in the GUI
I display a Modal DialogBox the information I need is in the Dos Console
in The DialogBox procedure I do a CreateThread
e.g.
/* Create a Thread to Wait For The Async I/O */
thread_handle = CreateThread(NULL,
NULL,
IO_FUNC,
io_parms,
NULL,
NULL);
The Following is my Code in the Thread
return_code = WriteFileEx(filehdl,
test_message,
8,
&my_verlapped,
write_rtn);
if (return_code == 0)
errcd = GetLastError();
while (SleepEx(INFINITE,TRUE) != WAIT_IO_COMPLETION); // Wait for I/O
The I/O competion routine is a Exported Function in the Dos Console process
it never gets control
The return code from all WIN32 apis are all OK
Any IDEA why my iocompletion routine doesn't get control ???
Thankx
|
|
|
|
|
My Dos console consists mainly of DLL
seeems like the I/O compeltion routine cann't reside in a DLL
Does anyone know if the Overlapped structure / hEvent can reside in a DLL
|
|
|
|
|
Hello everyone,
Just want to confirm a basic concept when reading a couple of documents about diamond problem and virtual inheritance.
1. Diamond problem covers both ambiguity methods and data member variable?
2. Virtual inheritance only solves ambiguity data member issue (making data member one copy)?
3. So, it is not correct to say virtual inheritance solves diamond problem 100% since ambiguity member methods is not covered and solved?
thanks in advance,
George
|
|
|
|
|
Hi,
Try the following code it might help you:
==========================================================================
#include "iostream.h"
#include "stdio.h"
class A
{
public:
int m_nAInt;
A(int n = 1):m_nAInt(n)
{
cout << "Class A Constructor called" << endl;
}
Display()
{
cout << "A::Display()" << endl;
}
};
class B: public virtual A
{
public:
B()
{
cout << "Class B Constructor called" << endl;
}
};
class C: public virtual A
{
public:
C()
{
cout << "Class C Constructor called" << endl;
}
};
class D: public B, C
{
public:
D()
{
cout << "Class D Constructor called" << endl;
}
};
int main(int argc, char* argv[])
{
D dObj;
dObj.Display();
return 0;
}
==========================================================================
|
|
|
|
|
What is the issue, tony_udz? Could you clarify please?
You code runs ok without any compile/build warning/errors.
Here is the output.
Class A Constructor called
Class B Constructor called
Class C Constructor called
Class D Constructor called
A::Display()
regards,
George
|
|
|
|
|
Hi George,
George_George wrote: You code runs ok without any compile/build warning/errors.
That means virtual resolved methods as well as data member ambiguity so that does not clear your doubt.
I hope it helps..
Regards,
Sandip.
|
|
|
|