|
Thnk you for repley.
About the first point : can you give me a link to table which contains the caracters with their numbers in decimal to change all them.?
Second : if this is correct have you idea to correct it ?
|
|
|
|
|
khaliloenit wrote: can you give me a link to table which contains the caracters with their numbers in decimal
Use Character Map in Windows.
khaliloenit wrote: if this is correct have you idea to correct it ?
Sorry I don't understand what you are asking.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
Dear all,
My current project was built on visual studio 2005. I ported it into visual studio 2010 and after several configurations, I got the only one left error while building
stdafx.obj : error LNK2019: unresolved external symbol _WTSSendMessageA@40 referenced in function _SendNotification
9>nafxcw.lib(afxglobals.obj) : error LNK2001: unresolved external symbol _IID_IWICImagingFactory
9>nafxcw.lib(afxtaskspane.obj) : error LNK2001: unresolved external symbol __imp__ImageList_GetIconSize@12
9>nafxcw.lib(afxvisualmanager.obj) : error LNK2019: unresolved external symbol __imp__ImageList_GetIconSize@12 referenced in function "public: virtual void __thiscall CMFCVisualManager::OnDrawTask(class CDC *,class CMFCTasksPaneTask *,class CImageList *,int,int)" (?OnDrawTask@CMFCVisualManager@@UAEXPAVCDC@@PAVCMFCTasksPaneTask@@PAVCImageList@@HH@Z)
9>nafxcw.lib(afxvisualmanagerofficexp.obj) : error LNK2001: unresolved external symbol __imp__ImageList_GetIconSize@12
9>nafxcw.lib(afxstatusbar.obj) : error LNK2001: unresolved external symbol __imp__ImageList_GetIconSize@12
9>nafxcw.lib(afxheaderctrl.obj) : error LNK2001: unresolved external symbol __imp__ImageList_GetIconSize@12
9>nafxcw.lib(afxstatusbar.obj) : error LNK2019: unresolved external symbol __imp__ImageList_ReplaceIcon@12 referenced in function "public: void __thiscall CMFCStatusBar::SetPaneAnimation(int,struct _IMAGELIST *,unsigned int,int)" (?SetPaneAnimation@CMFCStatusBar@@QAEXHPAU_IMAGELIST@@IH@Z)
9>nafxcw.lib(afxstatusbar.obj) : error LNK2019: unresolved external symbol __imp__ImageList_GetIcon@12 referenced in function "public: void __thiscall CMFCStatusBar::SetPaneAnimation(int,struct _IMAGELIST *,unsigned int,int)" (?SetPaneAnimation@CMFCStatusBar@@QAEXHPAU_IMAGELIST@@IH@Z)
9>nafxcw.lib(afxstatusbar.obj) : error LNK2019: unresolved external symbol __imp__ImageList_Create@20 referenced in function "public: void __thiscall CMFCStatusBar::SetPaneAnimation(int,struct _IMAGELIST *,unsigned int,int)" (?SetPaneAnimation@CMFCStatusBar@@QAEXHPAU_IMAGELIST@@IH@Z)
9>nafxcw.lib(afxstatusbar.obj) : error LNK2019: unresolved external symbol __imp__ImageList_GetImageCount@4 referenced in function "public: void __thiscall CMFCStatusBar::SetPaneAnimation(int,struct _IMAGELIST *,unsigned int,int)" (?SetPaneAnimation@CMFCStatusBar@@QAEXHPAU_IMAGELIST@@IH@Z)
9>nafxcw.lib(afxstatusbar.obj) : error LNK2019: unresolved external symbol __imp__ImageList_Destroy@4 referenced in function "public: void __thiscall CMFCStatusBar::SetPaneAnimation(int,struct _IMAGELIST *,unsigned int,int)" (?SetPaneAnimation@CMFCStatusBar@@QAEXHPAU_IMAGELIST@@IH@Z)
9>nafxcw.lib(afxstatusbar.obj) : error LNK2019: unresolved external symbol __imp__ImageList_AddMasked@12 referenced in function "public: void __thiscall CMFCStatusBar::SetPaneIcon(int,struct HBITMAP__ *,unsigned long,int)" (?SetPaneIcon@CMFCStatusBar@@QAEXHPAUHBITMAP__@@KH@Z)
9>nafxcw.lib(afxstatusbar.obj) : error LNK2019: unresolved external symbol __imp__ImageList_Remove@8 referenced in function "public: void __thiscall CMFCStatusBar::SetPaneIcon(int,struct HBITMAP__ *,unsigned long,int)" (?SetPaneIcon@CMFCStatusBar@@QAEXHPAUHBITMAP__@@KH@Z)
9>nafxcw.lib(afxstatusbar.obj) : error LNK2019: unresolved external symbol __imp__ImageList_DrawEx@40 referenced in function "protected: virtual void __thiscall CMFCStatusBar::OnDrawPane(class CDC *,class CMFCStatusBarPaneInfo *)" (?OnDrawPane@CMFCStatusBar@@MAEXPAVCDC@@PAVCMFCStatusBarPaneInfo@@@Z)
Do you have any suggestion to fix the bug ?
|
|
|
|
|
Check that all the required libraries are included in your project's Linker properties, and also that their directories are included in the VC++ Directories property.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
definitely !! after spending some hours googling, finally i figured out which lib i missed. Thank you very much 
|
|
|
|
|
Hello,
Others are likely to encounter the same problem as you did. Providing the solution in addition to saying that you found it might be helpful to others (like me). It is always anoying find out someone had the exact same problem and says he solved it, but won't say how he did.
Can you tell me what lib you were missing ?
Redgis
|
|
|
|
|
A quick Google of the missing symbols gives the following missing library linkages:
WTSSendMessage Wtsapi32.lib
ImageList_GetIconSize Comctl32.lib
IWICImagingFactory Windowscodecs.lib
All of the other ImageList* missing symbols are found in Comctl32.
|
|
|
|
|
|
See some useful information here[^].
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
thx a lot for giving me right vector
|
|
|
|
|
It is always a good idea to try your question in Google first when asking general questions such as this.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
In addition to what Richard said, this is also not the appropriate place for a question regarding graphics. If you don't know where to post your questions, go to the Lounge to get some guidance from users as to what forum is most appropriate for your question (don't ask technical questions there).
|
|
|
|
|
I am working with a 3D viewer. When files from folders in Japanese characters are opened, the path contains some "?????" instead of Japanese characters. How can I convert this to multibyte.
I cant build my project in Unicode also. Please help
C:\Test\インド&新規ビジネス\新規ビジネス\ was the actual path
But I get the path like this inside code...
C:\Test\???&??????\??????\
|
|
|
|
|
You can convert your characters using the WideCharToMultiByte() [^] function. However, it would probably be better to convert your application to Unicode.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
Hi All,
I want implement MFC Docking Framework[^]
in my existing mfc application
i have take same trial but it gives me assertion like
before execution of my project.
in output window a text appears
Like,
"Performing registration"
and after that came below assertion
File: c:\program files\microsoft visual studio.net 2003\vc7\atlmfc\include\atlbase.h
Line: 2619
Expression: _pAtlModule == 0
|
|
|
|
|
Hi, i'm getting strange memory leaks on basic functions such as:
fopen_s, localtime_s, wprintf, or _wfopen. What could possibly be wrong with the code / memory management?
I'm using Visual Leak Detector 2.2.
Memory leak report:
http://pastebin.com/j4ubmgD6[^]
void logger::calibrateFile(){
time_t t = time(0);
struct tm now;
errno_t err = localtime_s(&now, &t );
if (err)
{
printf("Invalid argument to localtime_s (logger).");
exit(1);
}
char st[ 10 ];
_itoa_s(now.tm_year + 1900, st, 10);
string fname = (string)st;
fname += '-';
_itoa_s(now.tm_mon + 1, st, 10);
fname += (string)st;
fname += '-';
_itoa_s(now.tm_mday, st, 10);
fname += st;
fname += ".txt";
string _logFile = this->logDir + fname;
if (this->logFile.compare(_logFile) != 0){
if (this->flog.is_open())
this->flog.close();
this->logFile = _logFile;
if (this->fileExists(this->logFile.c_str())) this->fresh = false;
this->flog.open(this->logFile.c_str(), fstream::out | fstream::app);
if (!this->flog.fail()){
printf("IP.logFile = %s\n", this->logFile.c_str());
}else
printf("IP.logFile = failed (%s)!\n", this->logFile.c_str());
}
}
Detected leak example:
---------- Block 528 at 0x0236DC58: 228 bytes ----------
Leak Hash: 0x2583A208 Count: 1
Call Stack:
f:\dd\vctools\crt_bld\self_x86\crt\src\realloc.c (85): test.exe!_realloc_base + 0x17 bytes
f:\dd\vctools\crt_bld\self_x86\crt\src\dbgheap.c (832): test.exe!realloc_help + 0x10 bytes
f:\dd\vctools\crt_bld\self_x86\crt\src\dbgheap.c (1040): test.exe!_realloc_dbg + 0x1B bytes
f:\dd\vctools\crt_bld\self_x86\crt\src\dbgheap.c (1107): test.exe!_recalloc_dbg + 0x19 bytes
f:\dd\vctools\crt_bld\self_x86\crt\src\setenv.c (250): test.exe!__crtsetenv + 0x39 bytes
f:\dd\vctools\crt_bld\self_x86\crt\src\wtombenv.c (72): test.exe!__wtomb_environ + 0xB bytes
f:\dd\vctools\crt_bld\self_x86\crt\src\getenv.c (131): test.exe!_getenv_helper_nolock + 0x5 bytes
f:\dd\vctools\crt_bld\self_x86\crt\src\tzset.c (165): test.exe!_tzset_nolock + 0xA bytes
f:\dd\vctools\crt_bld\self_x86\crt\src\tzset.c (95): test.exe!__tzset
f:\dd\vctools\crt_bld\self_x86\crt\src\loctim64.c (82): test.exe!_localtime64_s
c:\program files (x86)\microsoft visual studio 10.0\vc\include\time.inl (121): test.exe!localtime_s + 0xD bytes
c:\users\zzz\zzz\code\c++ projects\test\parser\logger.cpp (40): test.exe!logger::calibrateFile + 0xD bytes
c:\users\zzz\zzz\code\c++ projects\test\parser\parser.cpp (11): test.exe!Parser::Parser
c:\users\zzz\zzz\code\c++ projects\test\test\test.cpp (27): test.exe!wmain + 0x26 bytes
f:\dd\vctools\crt_bld\self_x86\crt\src\crt0.c (278): test.exe!__tmainCRTStartup + 0x19 bytes
f:\dd\vctools\crt_bld\self_x86\crt\src\crt0.c (189): test.exe!wmainCRTStartup
0x760F339A (File and line number not available): kernel32.dll!BaseThreadInitThunk + 0x12 bytes
0x772F9ED2 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x63 bytes
0x772F9EA5 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x36 bytes
Data:
50 D7 36 02 00 00 00 00 A0 41 20 00 FA 00 00 00 P.6..... .A......
C0 00 00 00 02 00 00 00 95 02 00 00 FD FD FD FD ........ ........
30 D0 36 02 78 B9 36 02 E0 B9 36 02 18 96 36 02 0.6.x.6. ..6...6.
E0 70 36 02 B0 71 36 02 28 72 36 02 C8 95 36 02 .p6..q6. (r6...6.
20 C8 36 02 80 C8 36 02 58 71 36 02 F8 C8 36 02 ..6...6. Xq6...6.
48 C9 36 02 B8 C9 36 02 08 CA 36 02 20 6B 36 02 H.6...6. ..6..k6.
88 6B 36 02 E0 6B 36 02 38 6C 36 02 88 6C 36 02 .k6..k6. 8l6..l6.
08 6D 36 02 60 6D 36 02 C0 6D 36 02 48 6E 36 02 .m6.`m6. .m6.Hn6.
98 72 36 02 28 67 36 02 80 67 36 02 80 66 36 02 .r6.(g6. .g6..f6.
90 68 36 02 E0 67 36 02 A8 69 36 02 20 6A 36 02 .h6..g6. .i6..j6.
F0 68 36 02 78 6A 36 02 B8 D1 36 02 F0 D0 36 02 .h6.xj6. ..6...6.
40 D1 36 02 00 D3 36 02 98 96 36 02 28 D2 36 02 @.6...6. ..6.(.6.
90 D2 36 02 50 D4 36 02 A0 D4 36 02 68 D3 36 02 ..6.P.6. ..6.h.6.
E8 D5 36 02 E8 D3 36 02 70 D7 36 02 00 00 00 00 ..6...6. p.6.....
FD FD FD FD ........ ........
#include <string>
#include <fstream>
#include <iostream>
#include <stdio.h>
#include <ctime>
#include <direct.h>
#define GetCurrentDir _getcwd
class logger
{
private:
ofstream flog;
bool fresh;
string logDir;
string logFile;
bool fileExists(const char* fname);
void directWrite(char* logline);
public:
void calibrateFile();
}
modified 7-Nov-11 3:32am.
|
|
|
|
|
The information being reported here is merely showing memory being reallocated as a string is manipulated and its size increased. The actual tidy up of reallocated and deallocated blocks will happen elsewhere, when the string destructor is called. Remember that tools like this are only pointing you to areas of your code that could be potential problems, it is up to you to verify whether they are real problems or not.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
Thanks for the tip 
|
|
|
|
|
Hi,
I want to use an unregistered tlb file. To achieve this I figured out that i will need to install the tlb file in WinSxS folder.
Now my problem is how do i create a manifest file with this tlb file. Mt.exe requires -dll option to be used if -tlb file is specified to it.
Can anyone please help me out
|
|
|
|
|
|
I have some third party code that has stopped working since I moved to VS2010.
A popup color picker now no longer pops up from it's source button. Ultimately, its CWnd::CreateEx call fails (technically the call to AfxCtxCreateWindowEx). GetLastError says 0x00000579 (Invalid menu handle). It doesn't have a menu.
The same code works in VS6.
Any suggestions?
My CREATESTRUCT in CWnd::CreateEx looks like this:
<edit -="" get="" the="" right="" one="" this="" time!="">
lpCreateParams 0x00000000 void *
hInstance 0x00400000 {unused=9460301 } HINSTANCE__ *
hMenu 0x00000000 {unused=??? } HMENU__ *
hwndParent 0x008a06be {unused=0 } HWND__ *
cy 294 int
cx 278 int
y 673 int
x 571 int
style -771751935 long
lpszName 0x00000000 <Bad Ptr> const char *
lpszClass 0x00168828 "Afx:00400000:800" const char *
dwExStyle 0 unsigned long
modified 24-Oct-11 17:58pm.
|
|
|
|
|
I see a menu handle in the above, but this may not be valid for some combinations of Window styles.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
You're right - I edited to put the right one in!
|
|
|
|
|
style -771751935
style 0xD2000001
and includes both WS_CHILD and WS_POPUP , which is an illegal combination according to the documentation[^].
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
Thanks Richard - that is a good lead! In the meantime I found that the invalid menu handle message was coming from PreCreateWindow.
This is because:
C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\WINCORE.CPP
BOOL CWnd::PreCreateWindow(CREATESTRUCT& cs)
{
if (cs.lpszClass == NULL)
{
VERIFY(AfxDeferRegisterClass(AFX_WND_REG));
ASSERT(cs.style & WS_CHILD);
cs.lpszClass = _afxWnd;
}
return TRUE;
}
but
C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\src\mfc\wincore.cpp
BOOL CWnd::PreCreateWindow(CREATESTRUCT& cs)
{
if (cs.lpszClass == NULL)
{
VERIFY(AfxDeferRegisterClass(AFX_WND_REG));
ASSERT(cs.style & WS_CHILD);
cs.lpszClass = _afxWnd;
}
if ((cs.hMenu == NULL) && (cs.style & WS_CHILD))
{
cs.hMenu = (HMENU)(UINT_PTR)this;
}
return TRUE;
}
|
|
|
|