|
Benjamin Bruno wrote: I have changed NDBUG to _DBUG , enabled Link incrementally and changed 'Debug info' to Program Database for Edit and Continue.
Are you making all of these changes manually?
"One man's wage rise is another man's price increase." - Harold Wilson
"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,
I'm facing a situation that I've never seen before regarding .exe and .dll files.
The app a.exe uses a DLL x.dll. The x.dll (not a COM DLL, but a regular one) can't be found in the computer hard drive.
After executing a.exe, the x.dll is expanded to the temp folder, to a path like this:
C:\DOCUME~1\COMPANY\LOCALS~1\Temp\tmpABT\07333f01-60fa-473c-9581-344d009b639d\x.dll
This DLL and path exists only during a.exe execution.
In the a.exe directory, there's a .CAB with a lot of DLLs, but x.dll is not inside of it.
The problem is that I have x.dll source code and I wanted to change it's version (used by a.exe).
Any tip on where does the DLL come from ?
Thanks for any help!
|
|
|
|
|
Probably the executable has the x.DLL file stored as a resource within itself and is writing to the hard disk before usage?
However, you could use FileMon from SysInternals[^] to see who is creating the file!
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
Yes, it has to be something like this.
I found something using process explorer, after choosing some menu item, the .exe loads an .msi file (yes, the .msi file is listed as loaded as the dlls are), and inside this .msi the is the x.dll.
Now I can use an .msi editor to change the dll inside of it.
Thanks Rajesh.
|
|
|
|
|
I want to add a submenu at the end of 'Edit' Menu at run time at the time of dropdown of Edit menu.
What event I have to use for this purpose?
The submenu content may vary time to time, so I want to append it at the time of main Edit menu dropdown.
Thanks
--
"Programming is an art that fights back!"
|
|
|
|
|
Is maybe WM_ENTERMENULOOP[^] what you are looking for?
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <
|
|
|
|
|
Hi All
I have a problem to use syntax of MSSQL.I use this syntax
use databasename
it is not working for me.I check out through this code
SELECT db_name() then result show MASTER.
Can any one give me tips where i wrong to use syntax.
Plz help me
|
|
|
|
|
I think this[^] is a better place for your question, this Message Board is for C/C++/MFC related questions.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <
|
|
|
|
|
thanks for reply
i know this message board is for C/C++/MFC related questions.My question is also C/C++/MFC related questions because
USE DATABASENAME syntax working fine in MSSQL.When i use this sysntax in MFC/C++ then it's not working.So here i ask this question.
No problem if you think then i have to move from here to there.
Thanks
|
|
|
|
|
I see, in this case, you should probably give some more details of how you tried to achieve your goal and what kind of problem/error did you get. Show some more code, maybe someone will know what is wrong.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <
|
|
|
|
|
MsmVc wrote: My question is also C/C++/MFC related...
But you've shown no relevant code.
"One man's wage rise is another man's price increase." - Harold Wilson
"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
|
|
|
|
|
i connect MSSQL 2005 through this code successfuly.
CString str1="",str2="",str3="";
HRESULT hr;
if SUCCEEDED(hr = CoInitialize(NULL))
{
try
{
if (SUCCEEDED(spSQLServer.CreateInstance(__uuidof(SQLServer2))))
{
try
{
HOST=(_bstr_t)m_MHOST;
if(rad1.GetCheck())
{
spSQLServer->LoginSecure = TRUE;
spSQLServer->Connect((_bstr_t)m_MHOST);
}
else
{
spSQLServer->LoginSecure = FALSE;
spSQLServer->Connect((_bstr_t)m_MHOST,(_bstr_t)m_MUSR,(_bstr_t)m_MPWD);
}
}
catch(_com_error pCE)
{
str2.Format(_T("%s"),
MessageBox(str2,"Message");
return TRUE;
}
}
else
{
str3.Format(_T("Unable to create the SQL Server object.\n"));
}
}
catch(_com_error pCE)
{
str2.Format(_T("\n%s Error: %ld\r\n%s\r\n%s\r\n"),
(TCHAR*)pCE.Source(),
pCE.Error(),
(TCHAR*)pCE.Description(),
(TCHAR*)pCE.ErrorMessage());
}
}
else
{
str2.Format(_T("Call to CoInitialize failed.\n"));
}
Then i use this code for use database
QueryResultsPtr Qry;
_SQLServer2Ptr spSQLServer;
CString udata="use databasename";
Qry=spSQLServer->ExecuteWithResults((_bstr_t)udata,(LONG)udata.GetLength());
|
|
|
|
|
fathers and mothers, how to convert hicon to png file?
|
|
|
|
|
nenfa wrote: fathers and mothers
Fathers and Mothers are all on a break now, try Nieces and Nephews.
|
|
|
|
|
they are playing now, how about you?
|
|
|
|
|
|
Dear son, you may use GDI+ .
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]
|
|
|
|
|
thanks, it's really a good programing tool
|
|
|
|
|
I've got console application.
__try {
}
__except() {
DWORD dwCode = GetExceptionCode();
}
Чесноков
|
|
|
|
|
Make one of your own.
Code table here[^]
std::string MakeExceptionMessage(DWORD code)
{
std::string sTxt;
switch(code)
{
case EXCEPTION_ACCESS_VIOLATION:
sTxt = "The thread attempts to read from or write to a virtual address for which it does not have access.";
break;
}
return sTxt;
}
Maxwell Chen
|
|
|
|
|
Is there system functions like FormatMessage?
I've got e.g. 0xC06D007E SEH which is failed to load Dll module I do not know if that code is available in defines?
VS provides such formatting for every SEH in debug output window, I wonder it uses system function call to format message?
Чесноков
|
|
|
|
|
read my signature
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
|
|
But I posted in the question it returns ERROR_MUI_FILE_NOT_FOUND in my case for any SEH code.
Does it need something added to my console application?
Чесноков
|
|
|
|