|
You should pass (the address of) ex as last argument of LogFile.Open method,
i.e.
bRet = LogFile.Open(szFileName,CStdioFile::modeCreate | CStdioFile::modeReadWrite |
CStdioFile::shareDenyWrite | CStdioFile::modeNoTruncate, &ex);
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Thank you for the help.
I corrected the code and now it work as expected
Best regards,
Deepak
|
|
|
|
|
Try this
FormatMessage and GetLastError instead of CFileException.
LPVOID lpMsgBuf;
FormatMessage(
FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_FROM_SYSTEM |
FORMAT_MESSAGE_IGNORE_INSERTS,
NULL,
GetLastError(),
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language
(LPTSTR) &lpMsgBuf,
0,
NULL );
AfxMessageBox( (LPCTSTR)lpMsgBuf);
Величие Бога не может быть недооценена.
|
|
|
|
|
i want to get the Hexadecimal value of an integer....what is the syntex to find it in VC++?
|
|
|
|
|
simply Use %X or
1. method 1
int nHex = 0;
int nDec = 20;
CString csData;
csData.Format( _T( "%x" ), nDec );
nHex = _wtoi( csData.operator LPCTSTR());
2. method 2
cout<<hex<<17;
=""
<div="" class="ForumSig">Величие Бога не может быть недооценена.
modified on Monday, July 27, 2009 5:47 AM
|
|
|
|
|
See [^].
For instance:
int k = 65535;
printf("%x\n", k);
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
you may try this one.
int x=20;
cout<<hex<<x; //x=14 in hexadecimal
use oct for octal.
|
|
|
|
|
Oh, thank you, I'll try for sure. Anyway, maybe the OP is more interested...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
i want code for bluetooth driver can handle microcontroller.
help of microcontroller recive bluetooth data
|
|
|
|
|
Could you please elaborate?
BTW:
pramoddohre wrote: i want code for
This isn't the best approach to this forum, please read guidelines [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
|
Hi,
HOw to increase the width of the item in HeaderCtrl...bcos when the font in the Item is Increased the Text is getting ellipsed...
|
|
|
|
|
|
|
In Onpaint of Header im trying as follows..
CHeaderCtrl* pHeader = GetHeader();
int nCount = pHeader->GetItemCount();
int nItem = nCount;
CDC dcMem;
HDC hDC =dcMem.GetSafeHdc();
HDITEM hdi;
while(nItem--)
{
pHeader->GetItemRect(nItem, rItem);
::GetTextExtentPoint(hDC,sText,sText.GetLength(),&size);
hdi.cxy=size.cx;
pHeader->SetItem(nItem,&hdi);
}
but the item of the headerCtrl is not increased
modified on Monday, July 27, 2009 5:29 AM
|
|
|
|
|
please let me know how to increase the width of the item of HeaderCtrl...
|
|
|
|
|
CListBox and CListCtrl both have a method called SetColumnWidth .
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Hello,
I have an application within which I have created a virtual port on which I need to load a Windows Standard 33600 bps modem.
How can I do this through my code or some command line instructions ?
I can not use the Add Hardware Wizard for this job.
regards,
Abhiroop
|
|
|
|
|
You could probably use the UpdateDriverForPlugAndPlayDevices[^] function to load the driver by specifying an INF file.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Is there another way to seamlees play the clips rather than gmfbridge?
|
|
|
|
|
Hi All
I am using Gmfbridge to play seamless play the clips from the list. My problem is that , I want to play the clips from the list dynamically that is
after loading the clips in the gmfbridge when i select such that 5th clip from the list then playing start from the 5th clip in the list not from first clip.
how do i this.
|
|
|
|
|
Well, you may download the source code and have a look at it.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I allready download the sample but in this sample the clips plays from the first position from the list. I want to play from any point in the list.
or Do you know another way to seamlees play the clips rather than gmfbridge .
|
|
|
|
|
raj1576 wrote: I allready download the sample but in this sample the clips plays from the first position from the list.
I suggested you to have a look at the source code (and eventually modify it in order to play choosen clip).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi
I have developed an application in VB6 that uses GMFBridge to have a seamless playback of any number of files in the hardisk. I developed this as a playout solution for a local TV station. What it does is that i have created 2 graphs which are loaded with video files and simultaneosly added those 2 into the bridge and as soon as the first graph finishes the second graphs begins to play and when the second graph begins another file is loaded to the first graph and again as soon as the second graph finish then the fist starts to play and this goes on...by doing this only 2 graphs( two video files ) are loaded into the memory at any given time so by swapping with different files you could play any no. of files in your harddisk. You just need a modification with the code available in GDCL site. Try it. reply me if you have any questions and note that i could only support u in vb6,vb.net or C# and a strict no no for VC++.
|
|
|
|