|
how to make a toolbar support 32 bit colour in VC++ 6.0?
|
|
|
|
|
how do i use unicode support in MFC to create menu in other international spoken language that has support only as uniocode characters.i am not an expert in VC++ so please have a beginners approach.i use VC++ 6.0 and winxp operating system
|
|
|
|
|
First you'll need to define UNICODE and _UNICODE. After that you'll need to use Unicode-aware functions, methods, and types (e.g., LPTSTR ) . CString is already Unicode-aware so nothing special needs to be done with it. For string literals, prepend them with an L.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
In addition you also have to set the entry point symbol to wWinMainCRTStartup . This can be done in the Project->Settings menu->Link tab->Output Category->Entry-point symbol.
Also IMO, one is better off using the TCHAR macros rather then hard coding the unicode functions and string literals.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
Within you lies the power for good - Use it! Honoured as one of The Most Helpful Members of 2004
|
|
|
|
|
hi there, i am trying to obtain the 8-bit code for an image. I have found the edge map of an object so i now have black pixels showing the outline of the object on a white background.
I am wondering how I can extrct the bitmap code that contains the coordinates of the pixels that are black in the image.
I am using paintshop pro.
I am using a mathematical method known as the Hausdorff distance method to compare two images and recognise objects, in particular human faces.
If anyone is interested in my work I would be happy to post it on this site.
Hope someone can help me!
|
|
|
|
|
need to use the method Update() in order to modify fileds values.
In VB are not problem, but in VC++ how can I use it?
Can help me with any example?
Thanks a lot
Xavier
|
|
|
|
|
I use the WebBrowser ActiveX to play my PowerPoint, and every thing is ok except the scrollbar, exactly, I want to make the scrollbar invisible. But it seems that the scrollbar is not the general windows scrollbar.
Can anyone help me, Thanks very much!
|
|
|
|
|
CString str(_T("abc"));
TCHAR* buff=str.GetBuffer(-1);
//is this okey to pass -1 to getbuffer if im not goin
//to modifiy the size the received buffer ?
|
|
|
|
|
I feel it should be
TCHAR* buff=str.GetBuffer(0);
suhredayan There is no spoon.
|
|
|
|
|
According to MSDN, -1 is not a valid parameter. What exactly is it that you are trying to do?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
How to find a DLL's Memory Usage on run-time ?
thanks in advance
|
|
|
|
|
I believe the information you are after must be tracked through the owning application since the application's stack and heap are shared by the DLL. Unless there were internal counters in place within the EXE, I know of no way to distinguish between memory allocated by the EXE vs. memory allocated by the DLL.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Why my program runs more slower when it is built in Unicode mode which is supposed to be more faster?
Lisoft
|
|
|
|
|
lisoft wrote:
Why my program runs more slower when it is built in Unicode mode which is supposed to be more faster?
using unicode should not make your software faster, and should not make your software go slower either.
maybe you are spending (too much) time converting unicode strings to non-unicode strings, or vice-versa.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
This is not necessarily True.
MOST of the Win32 API calls involving strings that are used by an ANSI program have to first pass through interal code to CONVERT those strings to Unicode before calling the native UNICODE functions in the WIN32 API and then back into ANSI upon returning any strings. Microsoft has consistently stated that a UNICODE application with a lot of string processing towards WIN32 API function calls would be faster if it were built to use UNICODE.
So the question makes sense, why is it slower in UNICODE?
I don't really know why.
|
|
|
|
|
hi,
I just want to bring the application to system tray when it was minimized,
thanks,
suri
|
|
|
|
|
|
Thank you
|
|
|
|
|
Hi,
Please give me information about how to link between two projects created in a workspace in VC++.I am using project did in win32 cosole application.Where i can get information about these.
Nowshad.M.C
nowshadmc@rediffmail.com
|
|
|
|
|
I have a Distance Structure that includes Miles, Feet, and Inches. The user inputs these amounts 3 digits for miles, 4 digits for feed and 2 digits for inches. Not all of the time the user will input this number of digits, when the user doesn't input the full number of digits to display the output I need to back fill the numbers with zero's. Like 97 for miles would be display 097. I need some ideas on how to incorporate the back fill zero into a function. Thanks.
Thanks!
|
|
|
|
|
int i = 97;
TCHAR str[4];
_stprintf(str, _T("%03d"), i);
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
"my application is dialog base application"
and i using sample dll.
i execute this application..
following error appear...
i don't know this error type.
Debug Assertion Failed
Program:debug\My.exe
File:dbgheap.c
Line:1011
Expression:_CrtIsValidHeapPointer(pUserData)
Debug Assertion Failed
Program:debug\My.exe
File:dbgheap.c
Line:1076
Expression:_pFirstBlock(pHead)
Application Error
The instruction at "0x10008ba5" refrenced memory at "0xddddddf1":The memory could not be "read".
|
|
|
|
|
Your program is trying to free (or delete) a memory location that hasn't been allocated or has already been freed.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
my code here--------->
test.h
------
TEST_API void TestCStringArray(CStringArray* _testarray);
test.cpp
--------
TEST_API void TestCStringArray(CStringArray* _testarray)
{
_testarray->Add("test1");
_testarray->Add("test2");
_testarray->Add("test3");
_testarray->Add("test4");
}
============================================================
using dll code here------>
typedef void (*EXTERNAL_TESTCSTRINGARRAY) (CStringArray* _testarray);
EXTERNAL_TESTCSTRINGARRAY dll_testcstringarray;
CStringArray _testarray;
dll_testcstringarray(&_testarray);
for (int i=0;i<_testarray.GetSize();i++)
{
m_ist.AddString(_testarray.GetAt(i));
}
what i missing?
i don't know?
how can i solve this error???
|
|
|
|
|
Are your DLL and exe both using the same heap? If not your exe may be trying to delete a pointer on its heap which was allocated on the DLLs heap.
If you vote me down, my score will only get lower
|
|
|
|