|
Browsed my ocx file with dependency walker and found out that....
My.ocx file uses MFC90.DLL and MSVCR90.dll.
In Dependency walker, it takes the MFC90.dll from C:\windows\winsys\amd64_microsoft.VC90.mfc_***** folder. But MSCVR90.dll from C:\windows\winsys\amd64_microsoft.VC90.crt***** folder.
Looking at MFC90.dll dependencies it is not able to find MSVCR90.dll in the C:\windows\winsys\amd64_microsoft.VC90.mfc_***** folder. So...I am not able to register regsvr32 my.ocx file manually.
Please help me out here.
|
|
|
|
|
64 bit OS?
Величие Бога не может быть недооценена.
|
|
|
|
|
|
Hi all,
i want to traverse n-ary tree?
can someone help me please?
|
|
|
|
|
As forum guidelines [^] suggest, please be specific.
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]
|
|
|
|
|
DattaMane wrote: can someone help me please?
See here.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hi,
how to reload the content inside the ifstream file. Below is a part of code i doing now..
ifstream infile("test.txt");
string line2;
while (!infile.eof())
{
getline(infile,line2);
itotalCount++;
}
Here is ok.i get the total line in that file.
But next when i need find another info in that file,
the while loop din't function.i think is because the previous line is already reach
the eof..
while (!infile.eof())
{
somework();
}
So, have any ideal can reload the content? Or there is already got function in stl which i dunno?
I'm waiting your answer..Thank you!
|
|
|
|
|
DevelopmentNoob wrote: But next when i need find another info in that file,
the while loop din't function.i think is because the previous line is already reach
the eof..
infile.seekg(0, ios::beg);
should do the trick (see [^])
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 try the method you teach already. but still cannot work.
yes, it can run in while loop, but when i use infile.getline, the content i get is "".
i use infile.seekg(0), because in msdn, it say that in text file dun use the second method...
Any ideal about it?
|
|
|
|
|
You're right using the first member function. I didn't notice the MSDN note.
DevelopmentNoob wrote: but when i use infile.getline, the content i get is ""
You get all empty lines or some ones (maybe there are empty lines in your file)?
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 All,
I am trying to create a CStdioFile using below code. I plan to create the file where the ".exe" is. If the folder happens to be 'read only' the file creation fails as expected but the exception shows "no error occurred"
ie. bRet is FALSE (as expected) when tried to open the file. but the szError is "no error occured" (I guess here it should be "no write permission" or something like that)
Am I doing something wrong in the code? Please help.
BOOL CLoggerDlg::OpenFile(CString szFileName)
{
CFileException ex;
BOOL bRet = FALSE;
if(LogFile.m_hFile == INVALID_HANDLE_VALUE)
{
bRet = LogFile.Open(szFileName,CStdioFile::modeCreate | CStdioFile::modeReadWrite | CStdioFile::shareDenyWrite | CStdioFile::modeNoTruncate,NULL);
if ( !bRet )
{
TCHAR szError[1024];
ex.GetErrorMessage(szError, 1024);
MessageBox(szError);
}
}
return bRet;
}
|
|
|
|
|
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...
|
|
|
|
|
|