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...
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
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...
At present in my application
I change the images on a speed button by calling loadfromfile.
the problem with this is he users are able to edit the .bmp files.
Is it possible to load a new picture file onto a speed button using an Imagelist or Image already containing the desired bitmap ...
I dynamically create frames at run time and put them in a panel.
The frame has a button on it to allow the user to delete the frame.
What code should I use to delete the frame ?
delete (this); is causing random errors.
At the moment I have a work around but I'd like to know the "proper" way...
Iam using a TOpenDialog box to select ttf files.
When I go into the system font folder
I am not presented with a list of font file names but
a list of fonts. When I click on a font I do not see a filename appear. So for this folder the OpenDialog doesnt seem to work.
Has anyone come across...
I am trying to convert the following code (freely available on the net) into C++ Builder..
Its used to find the Name of a ttf font file. I have posted my attempt at the end ( I nearly have it done).
The code I am stuck on converting is this.
csTemp.ReleaseBuffer();
if(csTemp.GetLength() > 0)
{...
Hi,
I am trying to install a component that I have the
.pas source for into c++ builder.
The component is available at http://www.roossoftware.nl/downloads/RsRuler40.zip
Basically its a ruler.
When I do install component on the pascal file I get "Unresolved External" errors.
Can anyone...
Hi,
I am using borland builder v6.
If I have the name of a font file (from c:\windows\fonts) to find the name of that font file in borland builder ?
Or is there a way to do the opposite, find a font file given a font name.
Thanks
TBlue
Hi,
I have been using this component for a while to do
serial communications.
Can anyone explain or show how to switch on RTS/CTS hardware handshaking.
Thanks.
TBlue.
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.