|
what about using CStdioFile::WriteString!
use CStdioFile::Open to open file
and CStdioFile::WriteString! to write string into file
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
Hi all,
I need to implement some thing similiar to 'power toys' in VC++ which would support thumbnail viewing of the opened dialogs when we press ALT+TAB (or any defined keys).
I thing Shell programming should be applied to achieve this.
As i dont have any idea abt that any help from you on this is very much appreciated...
Thanks in advance.
Selva
|
|
|
|
|
if The power toy has anthing to do the last thing would be use shell script. It is windows application using GDI(i think). you can develop such Application in .NET. Try out Googling first.
There are only two kinds of people who are really fascinating-people who know absolutely everything, and people who know absolutely nothing.
Oscar Wilde (1854-1900)
Regards...
Shouvik
|
|
|
|
|
Logically thinking, you can achieve this easily creating the bitmap buttons dynamically in a resizable dialog box. Not a very tough job, if i understood your problem correctly.
Anurag Gandhi.
http://www.softgandhi.co.nr
|
|
|
|
|
|
Hello everyone,
I am writing a pure C/C++ program to convert from UCS-2 to UTF-8 character string. I can not find enough information from Google -- the mapping tables (formula) between UCS-2 and UTF-8.
I want to develop the program through pure bit operations (&, | and shifting), and I do not want to invoking any OS specific APIs.
Any reference samples or the mapping tables (formula) between UCS-2 and UTF-8?
thanks in advance,
George
|
|
|
|
|
George_George wrote: Any reference samples or the mapping tables (formula) between UCS-2 and UTF-8?
For instance, this[^]. Also, you can take a look at my utf8-cpp[^] library to see an example of actual implementation.
|
|
|
|
|
Thanks Nemanja!
Good reference and I have looked into the document. But I can not find the mapping table or formula between UCS-2 and UTF-8. Could you kindly point them out please?
regards,
George
|
|
|
|
|
I have created a MFC regular dll whose dll export function takes the parameter as a CString and also returns a CString object.
I doubt it can be called from other language which don't have CString class.
The prototype function is like this:
<br />
extern "C" __declspec(dllexport) CString IndentCCode(CString strMyString)<br />
Any solution/ comment(s) whether it will work with other language?
I can use char* but pointer is also not supported in many language.
I will appreciate any help.
Thanking you in advance.
Anurag Gandhi.
http://www.softgandhi.co.nr
|
|
|
|
|
If you want it to work with other languages you will have to make it a COM dll and use BSTRs.
"a child will grow up to become an adult, but you can never stop the adult from acting like a child"
|
|
|
|
|
swathi m wrote: If you want it to work with other languages you will have to make it a COM dll
Not necessarily: if the dll just exposes C style functions, you can easily use them from another language.
|
|
|
|
|
Surprising!!! if a dll (not COM dll) uses C style functions, can it be used in VB/ASP language??? I think it can only be used in C language.
|
|
|
|
|
Refer this[^].
Prasad
MS MVP - VC++
|
|
|
|
|
mandanani wrote: Surprising!!! if a dll (not COM dll) uses C style functions, can it be used in VB/ASP language??? I think it can only be used in C language.
it can be used., just read my reply to swasti
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
How can we handle strings?? If we use char* for the strings, will we be able to call/use those from languages that dont support pointers??
"a child will grow up to become an adult, but you can never stop the adult from acting like a child"
|
|
|
|
|
We can use any class or object supported by that language in dll within the dll.
The only problem is it should return the datatype or object which is understood by other language.
Anurag Gandhi.
http://www.softgandhi.co.nr
|
|
|
|
|
Exactly, thats the reason why i suggested COM and BSTRs.
But i was asking if theres a way to use c style functions in other languages that dont support pointers.
"a child will grow up to become an adult, but you can never stop the adult from acting like a child"
|
|
|
|
|
Anurag Gandhi wrote: We can use any class or object supported by that language in dll within the dll.
The only problem is it should return the datatype or object which is understood by other language.
for that COM concept is there.. and it's very nice and well documented.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
swathi m wrote: If you want it to work with other languages you will have to make it a COM dll and use BSTRs.
simple win32 dll could be read by many other langauge for example you kernel32.dll, user32.dll and gdi32.dll are not com dll. still it used in VB app
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
swathi m wrote: If you want it to work with other languages you will have to make it a COM dll and use BSTRs.
This is the most apt solution. Go ahead with it. It will give you higher interoperability over different platforms.
There are only two kinds of people who are really fascinating-people who know absolutely everything, and people who know absolutely nothing.
Oscar Wilde (1854-1900)
Regards...
Shouvik
|
|
|
|
|
MFC DLLs can be used only by MFC programs...
if you want it to be largely used, use the STL classes, or get down to the CRT with COM interface
|
|
|
|
|
toxcct wrote: use the STL classes
For other languages ? The OP wanted to use the DLL in other languages.
|
|
|
|
|
na for C++
but i proposed COM too
|
|
|
|
|
I think MFC Regular dll can be used by other applications also if i have used extern "C" to it.
Please tell me if I am wrong.
Anurag Gandhi.
http://www.softgandhi.co.nr
|
|
|
|
|
just read the MSDN
|
|
|
|