Hi,
I am using WinCE 6.0 with VS2005
We have fitted a new size screen to our board and set it up in the registry.
Angle = Angle % 360;
RegistryKey reg = Registry.LocalMachine.OpenSubKey(@"\System\GDI\Rotation", true);
reg.SetValue("Angle", Angle...
Ansi string to widestring conversion..
Why does this work using ansistring ?
char s[20],t[20];
AnsiString aW;
strcpy(s,t); // Works
strcpy(s,aW.c_str()); Works.
And this does not work using widestring ?
wchar_t s[20],t[20];
WideString aW;
wcscpy(s,t); // This works...
Iam using Borland Builder C++ 6.
I am trying to convert a large program from using WideString to AnsiString so that it will support unicode languages.
I have the Tnt unicode components for builder.
I need to know how to replace the ansi string functions that are not supported.
1. UpperCase...
Using WritePrivateProfileString to setup and ini file.
It can be used by users or administrator on a PC.
If the administrator uses it first then it locks the file out because of access rights.
If I check for fileExists I could write the file with access rights to all before calling...
Hello Hennep,
Don't you need to resize the bitmap as well.
int iTopMost = 1000, iLeftMost = 1000;
Image2->Canvas->Draw(100, 100, Image1->Picture->Graphic);
// Extra code to change bitmap size.
Image2->Picture->Bitmap->Width= iLeftMost + Image1->Width...
I have a couple of functions that write ansistring to a file or to an internal buffer.
I have been trying to figure out how to convert them to use widestring , can anyone help, Im stuck!
I still need the internal buffer to stay as char.
Thankyou.
void __fastcall...
I want to change the message dialog text for different localities.
At the moment the text shows "OK" , "Yes" ,"No" or "Cancel"
You don't get to enter the text .. ?
The alternative is to create my own form that has these buttons and icons.. But I hoped there might be an easy way.
/Blue
I had to store the file as UNICODE to get it to work.
Then rewrite my routine for loading from ini files so that it could handle wide strings. e.g
WideString __fastcall TFormDeveloper::GetProfilePieceWide(AnsiString aName,char*sLanguage,char *sFileName)
{
wchar_t...
Hi,
I have an existing application that uses text files to store the different languages.
I store them using the component object name and property
e.g
[ImageRotation Hint]
ENGLISH=Rotation
FRENCH=Rotation
GERMAN=Drehung
Then use GetPrivateProfileString to load the language that the user...
Hi,
I create some text files in Linux. I copy them over and attempt to open them with my borland builder application.
The bcb application uses FileExists to check that the file is there before opening it. On windows files named in the same way all works fine.
I guess its some unicode...
Hi,
I have a borland builder c++ 6 application that has english text.
When a new language is selected I load from a text file the new language and swap the text shown on the current form components. This works fine with german,french,spanish.
My question is this, I have been asked to add...
I wanted to create a debug version of my application.
How can I create a macro that is compiled in only when I create the debug version. I would like to pass messages to a memo when in debug mode, but dont want any residual code when not in use.
Heres what I have so far...
#define DEBUG...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.