|
|
I have just recompiled a VC6 project in Visual Studio 2005 - the port seemed to go ok and it compiled but when I try to run it under the debugger it just bombs out with the following:
'Tyke.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded.<br />
'Tyke.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded.<br />
'Tyke.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugMFC_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_c8452471\mfc80d.dll', Symbols loaded.<br />
'Tyke.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcr80d.dll', Symbols loaded.<br />
'Tyke.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', No symbols loaded.<br />
'Tyke.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', No symbols loaded.<br />
'Tyke.exe': Loaded 'C:\WINDOWS\system32\user32.dll', No symbols loaded.<br />
'Tyke.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll', No symbols loaded.<br />
'Tyke.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', No symbols loaded.<br />
'Tyke.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', No symbols loaded.<br />
'Tyke.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcp80d.dll', Symbols loaded.<br />
'Tyke.exe': Loaded 'C:\WINDOWS\system32\oleaut32.dll', No symbols loaded.<br />
'Tyke.exe': Loaded 'C:\WINDOWS\system32\ole32.dll', No symbols loaded.<br />
'Tyke.exe': Loaded 'C:\WINDOWS\system32\odbc32.dll', No symbols loaded.<br />
'Tyke.exe': Loaded 'C:\WINDOWS\system32\comctl32.dll', No symbols loaded.<br />
'Tyke.exe': Loaded 'C:\WINDOWS\system32\shell32.dll', No symbols loaded.<br />
'Tyke.exe': Loaded 'C:\WINDOWS\system32\comdlg32.dll', No symbols loaded.<br />
'Tyke.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.MFCLOC_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_3415f6d0\mfc80ENU.dll', Binary was not built with debug information.<br />
'Tyke.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll', No symbols loaded.<br />
'Tyke.exe': Loaded 'C:\WINDOWS\system32\odbcint.dll', Binary was not built with debug information.<br />
The program '[3284] Tyke.exe: Native' has exited with code 0 (0x0).
Any ideas why this would be?
|
|
|
|
|
these are not error... just warnings.
the "Binary was not built with debug information." info just tells you that you won't be able to debug the code which wasn't built in debug mode... that's all
|
|
|
|
|
Thanks for the quick reply. I had gathered as much but having you point out the blindingly obvious forced me to have a look at the project settings again - where I discovered I had misspelled a pathname on the command line
Thanks for answering and leading me to the error of my ways
|
|
|
|
|
hella guys, I has a projet componed of diferent parts ,when I try to concatenat it from all the files, I have one prblem which causes many errors, the file"hGlobal.h"
examples of errors:
error C2371: '_REC_SCH' : redefinition ; types of base differents
c:\documents and settings\bureau\waycon14_sol\waycon14_md\hGlobal.h(12) : see declaration of '_REC_SCH'
salem ,c wiem.
|
|
|
|
|
in your headers, ,do you use exclusive macros, to avoid redefinitions ?
you should have something like that :
#pragma once
or if you compiler doesn't understand this, use the following instead :
#ifndef __A_UNIQUE_MACRO_KNOWN_ONLY_BY_YOUR_HEADER__
#define __A_UNIQUE_MACRO_KNOWN_ONLY_BY_YOUR_HEADER__
#endif
|
|
|
|
|
always the same problem
salem ,c wiem.
|
|
|
|
|
I have a floating controlbar which is set to its maximum size in a high resolution screen. when I reduced the screeen resolution my controlbar does not automatically resize to the current settings as the cframewnd does.
How to make a control bar respond to screen resolution changes?
Thanks.
|
|
|
|
|
Hello,
I have two question-the first is about MessageBox and the second is about pointing.
1) Whaen I'm trying to use simple MessageBox
MessageBox("hello");
it writes me: error C2660: 'MessageBoxA' : function does not take 1 arguments
but as I know the other arguments are optional, so what is the problem? and why it writes MessageBoxA?
2) I asked a question one or two days ago about my Tic_Tac_Toe project, and have another:
here is the code:Code[^]
Some introduction:
T1/T is a Tic_Tac_Toe object (the class is defined from line 2-12).
PointersToNodes is a pointers array to Tic_Tac_Toe objects.
currentCaseVector is an array of the current board.
and buildNewTree is a function which returns adress of a Tic_Tac_Toe object(line 78).
When I'm running the project it thorows me an error at line 40:
c = T->PointersToNodes[1]->currentCaseVector[i]; (c is char).
the error is(I uploaded a picture with the error):
http://img241.imageshack.us/img241/2323/bugmq7.jpg[^]
And those who can't see the picture so the error is:Unhandled exception at 0x004bebbf in Self_Learning_Tic_Tac_Toe.exe: 0xC0000005: Access violation reading location 0xcdcdcdcd.
Why does the error occurs? and how can I fix it?
Thank you!
SnaidiS(Semion)
|
|
|
|
|
Semion_N wrote: When I'm trying to use simple MessageBox("hello");
MessageBox function take 4 parameters.
It's declared as:
int MessageBox(HWND hWnd,
LPCTSTR lpText,
LPCTSTR lpCaption,
UINT uType
);
MessageBoxA- Windows
MessageBoxW- Unicode //// Correction
On the other hand AfxMessageBox takes only 1 parameter.The other's are default.
int AfxMessageBox(
LPCTSTR lpszText,
UINT nType = MB_OK,
UINT nIDHelp = 0
);
int AFXAPI AfxMessageBox(
UINT nIDPrompt,
UINT nType = MB_OK,
UINT nIDHelp = (UINT
) -1
);
Semion_N wrote: When I'm running the project it thorows me an error at line 40:
c = T->PointersToNodes[1]->currentCaseVector[i];(c is char).
-- modified at 9:14 Tuesday 12th September, 2006
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Thank you for the answer for 1 and
What is the problem with the second question? please look at the code in line 40.
SnaidiS(Semion)
|
|
|
|
|
_AnShUmAn_ wrote: MessageBoxA- Unicode
MessageBoxW- Windows
wrong, it's the opposite...
A stands for Ansi
W stands for wide characters ; UNICODE then
|
|
|
|
|
1. Message function takes 4 paramaters, not 1.
2. 'cdcdcdcd' normaly means uninitialized memory. You create the array here currentCaseVector=new char[9]; But I can't see where you initialize it. try calling memset() first to set the memory to 0.
Also, I don't want to call your code sloppy, but there is very little error checking. You should be initializing your variables and setting them to NULL. Later when you come to use them, you should check first if they are NULL or not.
|
|
|
|
|
I'm intializing it in lines 31-32:
for(i=0;i<9;i++)<br />
T->currentCaseVector[i]='b';
SnaidiS(Semion)
|
|
|
|
|
No you are not.
for(i=0;i<9;i++)
T->currentCaseVector[i]='b';
for(i=0;i<9;i++)
c = T->PointersToNodes[1]->currentCaseVector[i];
You are initializing each member of the localy created T object. But you are readig the uninitialized members of a pointer to an object of type T, in this case '1', the second member in the array. Your BuildNewTree() function is not initializing the currentCaseVector array.
|
|
|
|
|
It is.
The function : resetCurrentCaseArray
do that work.(line 49)
SnaidiS(Semion)
|
|
|
|
|
Semion_N wrote: T->PointersToNodes[1]->currentCaseVector[i];(c is char).
c = T->PointersToNodes[1]->currentCaseVector[i];
Did you initialize the contents for this....
Two lines before this you write
T->currentCaseVector[i]='b';
in your code.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Yes I did intialized it.
I'm pointing from T to the array of pointers to Tic_Tac_Toe and thenthe object of Tic_Tac_Toe from the array. there is a currentCaseVector.
I intialized all.
SnaidiS(Semion)
|
|
|
|
|
So can anyone help me please?
SnaidiS(Semion)
|
|
|
|
|
I have already told you the answer. You are reading un-initialized data. Step through it with your debugger and keep your eye on the values.
|
|
|
|
|
Ok , Thank you , I will do that.
SnaidiS(Semion)
|
|
|
|
|
how can I assign this values then I could deside where and when to create and paint.
|
|
|
|
|
bloodwinner wrote: how can I assign this values then I could deside where and when to create and paint.
What do you mean? If you are talking about the sequence then WM_PAINT is called after the Window is created.
---
Hakuna-Matada
It means no worries for the rest of your days...
It's our problem free, Philosophy
<marquee behavior="alternate" scrollamount="5" scrolldelay="50">
|
|
|
|
|
You can generate these messages using the SendMessage API if you are asking about specifically sending these messages to some window.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Did you see MSDN? From the MSDN
WM_CREATE
The WM_CREATE message is sent when an application requests that a window be created by calling the CreateWindowEx or CreateWindow function
WM_PAINT
The WM_PAINT message is sent when the system or another application makes a request to paint a portion of an application's window. The message is sent when the UpdateWindow or RedrawWindow function is called
You can insert these messages from property window to your application.
|
|
|
|