|
any disassembler/debugger could do this.. IDA, softice, win32dasm, ollydbg, vc++ debugger, windbg, ... there are many of them.
Don't try it, just do it!
|
|
|
|
|
Does anyone know what this error is supposed to mean? I have an auto generated makefile and I don't quite know what this error means. Any help would be appreciated.
Thanks,
|
|
|
|
|
Doesn't it tell you that a separator is missing?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
I think it does but I don't know where to put the separator that is missing. Any ideas? I can't tell which make file it is refrencing.
|
|
|
|
|
jonesap5 wrote: ...I don't know where to put the separator that is missing.
Between the target and the dependent.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
In the make file I don't know how to identify the target and the dependent and where to put it. I also don't know which make file I am placing this in. I don't know if that makes sense?
|
|
|
|
|
jonesap5 wrote: I also don't know which make file I am placing this in.
How many .mak files are there?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
I look in the project directory and there is a make file, I look in the source directory and there is another Makefile. I am also wondering when it says makefile(11): fatal error U1034: syntax ..., does the 11 in parens indicate the error in on line 11 of the makefile?
|
|
|
|
|
jonesap5 wrote: I am also wondering when it says makefile(11): fatal error U1034: syntax ..., does the 11 in parens indicate the error in on line 11 of the makefile?
Yes, and the name of the file is makefile.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
So this I think is the make file and I can't see anything wrong with line 11. I even compared it to another makefile similar to this one. Can you see a problem.
RTS_HOME = C:/Program Files/Rational/Rose RealTime/C++/TargetRTS
include <$(RTS_HOME)/codegen/rtgen.mk>
MODEL = C:/ERRT/ScreenSwitchTest/ScreenSwitchTest.rtmdl
COMPONENT = "Component View::MainCapsuleTest"
RTGEN_FLAGS = -model $(MODEL) -component $(COMPONENT) -spacedeps dq
include <RTSystem/MainCapsuleTest.dep>
TARGETS = $(MainCapsuleTest_SYSTARGET)
RTGENERATE_TARGET = $(TARGETS)
RTGENERATE_DAT = rtgenerate.dat
"C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\nmake.exe" /nologo
RTgenerate : $(RTGENERATE_TARGET) //my comment - is this not line 11?
.PRECIOUS : $(TARGETS)
$(MainCapsuleTest_SYSTARGET) : $(MainCapsuleTest_SYSDEPS) $(RTGENERATE_DAT)
$(RTGEN) $(RTGEN_FLAGS) -system
-- modified at 14:51 Tuesday 18th April, 2006
|
|
|
|
|
Crow,
hey I found the problem, everytime I would build it would seem to recreate the makefile. I had a line in the makefile as follows:
"C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\nmake.exe" /nologo
that particular line was causing problems. I am building in the Rational Rose Environment and within a particular field called CodeGenMakeInsert on a C++ Generation tab for a Component Specification I had that line inserted. I know that it may mean nothing to you but it fixed the problem just wanted you to know. Thanks for you help. It took me a while to figure it out but I think it makes sense after looking at another generated makefile from the same environment that didn't have a line like that. Sorry for the ramble hope this helps someone else out.
|
|
|
|
|
I think this is the Makefile it is called Makefile.dep and it is as follows:
Makefile_TARGETS = \
Makefile.dep \
src/Makefile \
build/Makefile
Makefile_DEPS = \
"C:/ERRT/ScreenSwitchTest/ScreenSwitchTest.rtmdl" \
"C:/Program Files/Rational/Rose RealTime/C++/RTComponents.rtcmppkg"
I tried to place the ':' as follows but that didn't seem to work.
Makefile_TARGETS = \
Makefile.dep \
src/Makefile \
build/Makefile
:
Makefile_DEPS = \
"C:/ERRT/ScreenSwitchTest/ScreenSwitchTest.rtmdl" \
"C:/Program Files/Rational/Rose RealTime/C++/RTComponents.rtcmppkg"
any ideas?
|
|
|
|
|
i want make this software to help some japanese learn english. i think it need thoese function:
english dictionary;
english <-> japanese dictionary;
IM chat;
file share,any file had index at server,can load a file from each other, seen like emule and bittorrent and Ares;
storage ask and answer like a forum or knowledgebase;
i dont know how to make a dictionary software. where to find a dictionary file? it is free? i think the WIKIdictionary is free but how to do that? i find many free translate website how to do that? i need the dictionary can modify and add new or i take that content to my database but use what format to storege the dictionary? use sql?
i was made a forum use asp, i think that is easy, but i dont know how can i make it be a client/server software.how to?
how to make the file share system? can i use some api or library or some .dll or some source code ? i think i dont need re write all of that thing, cause already had many people done that.
help me please~ i'm stupid at program. i find a right way to help people learn new language. i think if i make a software that will help many people~
my msn nwocen@hotmail.com
|
|
|
|
|
tBoai wrote: English-Japanese dictionary, IM chat, and P2P file sharing ...
There is an old saying --- "Do one thing at a time!"
... especially you said that you are a beginner. I doubt that people would use that software made by a beginner. If you really made one, maybe we would use the dictionary portion. But not the file sharing function! Who knows if there any risk to crash my file system?!
OK, the above was the educational words. Since this is a technical forum and I should provide something meaningful to your questions.
Dictionary: Spelling checker dictionary[^].
File sharing, hashing/indexing, IM chat: Source code of eMule Plus[^].
Maxwell Chen
|
|
|
|
|
Hi,
I've coded a dialog based app that allows you to drop files into a listbox.
Once the drop has taken place I've written some code to check if the files dropped are already listed in the lisbox - and if so a dialog box shows asking the user if they want to replace their existing files (pretty much like windows explorer).
My problem is, everything works fine until the end of the DropFiles function is reached..when it returns the program crashes from the following Assert:
ASSERT(::IsWindow(m_hWnd));
Anyone know how to fix this?
Thanks in advance.
|
|
|
|
|
Where is the assert? What this is saying is that the HWND identified by the member variable m_hWnd is not a valid window. To say more I would need more info like:
- The callstack.
- Some code around the assert.
- The value of m_hWnd .
Steve
|
|
|
|
|
The assert is coming from wincore.cpp (void CWnd::AssertValid() const)
If I comment out the domodal part of the code it works fine, it's only when domodal is called that the problem occurs at the end of the function.
void CWnd::AssertValid() const<br />
{<br />
if (m_hWnd == NULL)<br />
return;
<br />
ASSERT(HWND_TOP == NULL);
if (m_hWnd == HWND_BOTTOM)<br />
ASSERT(this == &CWnd::wndBottom);<br />
else if (m_hWnd == HWND_TOPMOST)<br />
ASSERT(this == &CWnd::wndTopMost);<br />
else if (m_hWnd == HWND_NOTOPMOST)<br />
ASSERT(this == &CWnd::wndNoTopMost);<br />
else<br />
{<br />
ASSERT(::IsWindow(m_hWnd));<br />
<br />
CHandleMap* pMap = afxMapHWND();<br />
ASSERT(pMap != NULL);
|
|
|
|
|
Stephen was asking for some code of your own. So, use the call stack to find in which function it crashes (or you can also use your debugger, which is very very helpfull).
|
|
|
|
|
<br />
int RetVal;<br />
int nFiles = DragQueryFile(hDrop, -1, szDroppedFile, 2048);<br />
for(int i=0;i<nFiles;i++)<br />
{<br />
DragQueryFile(hDrop,i,szDroppedFile,2048);<br />
GetFileInfo=GetFileAttributes(szDroppedFile);<br />
hFile = FindFirstFile(szDroppedFile, &FindFileData);<br />
FileSize=FindFileData.nFileSizeLow;<br />
<br />
int x=CheckForDupeName(false, true, FindFileData.cFileName, -1);<br />
if(x>-1)
{<br />
CFileReplace md;<br />
md.ReturnValue=&RetVal;<br />
md.DoModal();<br />
<br />
...<br />
}<br />
<br />
...<br />
If I comment out the 3 lines regarding the CFileReplace function and assign a value to RetVal the function works fine, it's only by calling DoModal that the error occurs.
|
|
|
|
|
What does the CFileReplace dialog do when it is being dismissed?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
|
GrumbleWeedster wrote: it exits with OnOK()
That's all that's in CFileReplace::OnOK() ?
Is CFileReplace::ReturnValue a pointer? Where does it get assigned a new value?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
At this moment it isn't returning a value because of the current problem, it's still a plain dialog box with an OnOK() to close.
|
|
|
|
|
Ok, so what happens in CFileReplace::OnInitDialog() ?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Nothing.
At the moment CFileReplace is an empty default dialog with and OK and Cancel button.
There are no custom functions in place yet because I need to get around the initial error.
|
|
|
|