|
|
Thankyou Guys for all your help and support.
I will try your provided suggestions and will update you all on the same.
Thanks once again. Take care.
PanB
|
|
|
|
|
Hey David.
Just tried that code, but it seems that .pdf file is not a compound file. Any pointers on this.
Thanks
PanB
|
|
|
|
|
Hi All,
I have converted my Mfc Application as Dll.. I have done following steps
to Make my MFC Application to DLL
a) the WinApp of my application i have made as the Win App Of the DLL
b) Rest All Required .h and .cpp i have added to Dll
c) Changed the Resources Accordingly
d) Created a Function which will be called from Dll (this Function is empty)
d)Created a Windows forms Application =>created a Form =>Added Button
=> On Click of Button i am Calling the dll function using pInvoke(DLLImport)
From the main Dll i call the serilisation of respective Dll.. the thing happening is like the my MFC Dll gives me Archieve Exception while retrieving the data.. the same does not happen if i am running the application not as Dll..
Please suggest me some help...
Thanks
Samir
|
|
|
|
|
What about trying to debug?
- ns ami -
|
|
|
|
|
Hi frnds, when i compile VC++ project on 32 bit machine then it wont work on 64 bit machine...can we compile the same code so that it will work on 32/64 bit machine?? someone told me abt compiler option..but i dont know abt cmd...if u know something, then plz share ur knowledge...Regards
http://nnhamane.googlepages.com/
|
|
|
|
|
|
The top thing here is 64 bit EXEs cannot load 32 bit DLLs and vice versa.
A 32 bit EXE will run normally on a 32 bit OS and inside the WOW64 shell on a 64 bit OS.
It will execute on both nevertheless.
A 64 bit EXE will run only on a 64 bit OS.
So your statement "when i compile VC++ project on 32 bit machine then it wont work on 64 bit machine" is not true.
And if you have installed the 64 bit compilers, you can use Configuration Manager to change the platform from Win32 to x64 to build 64 bit binaries.
«_Superman_»
|
|
|
|
|
Hi to all,
Someone helped me on other forum to convert a string in any language to it's bytes format, using following code.
string s = "François";
byte[] unicodeBytes = Encoding.Unicode.GetBytes(s);
byte[] aBytes = Encoding.Convert(Encoding.Unicode, Encoding.GetEncoding(28599), unicodeBytes);
He told me to use WideCharToMultiByte() in C++ for above C# code.
He help me a lot.
But I want to know that, is there any method to get the character code for given value in string s to convert that string in bytes?
Is there any software or dlls to release the application with some evalution period?
Regards,
Aniket A. Salunkhe
|
|
|
|
|
You can typecast each character using wchar_t to get the unicode value or using char to get the ascii value.
int i = wchar_t(s[0]);
int j = char(s[0]);
«_Superman_»
|
|
|
|
|
I am getting wrong output when I have string in Arabic Language.
I want to convert a string (in any langauge) to bytes format as geiven in Annex A of
ETSI EN 300 468 V1.9.1 (2008-11)
Digital Video Broadcasting (DVB) :
Specification for Service Information (SI) in DVB systems
For that someone has suggested to use System.Text.Encoding. But to use that, I must know the codepage before compilation.
So is there any method to retrieve codepage?
|
|
|
|
|
Aniket Salunkhe wrote: So is there any method to retrieve codepage?
You can get code page information using APIs like GetACP , GetCPInfo etc.
«_Superman_»
|
|
|
|
|
Hi,
Thanks for suggestion.
But if I am having two strings s1 & s2, each having value in 2 distinct languages, how can I use above functions to convert them (there characters) into byte format?
Thanks & Regards,
Aniket A. Salunkhe
|
|
|
|
|
Can someone help me with Visual C++ code for plugins for Internet Explorer/Mozilla Firefox for simple MP3 player that buffers and plays an audio file and uses a seperate decoder that has been developed.Decoder is available.Need to develop plugin that uses this decoder.A simple MP3 audio player that is a plugin for IE or any other browser will do.
Thanks,
Priya
|
|
|
|
|
|
I have displayed a messagebox with MB_RTLREADING flag.
The string that i tried to display is some thing like: "Name(First Name)"
However I am getting the display of "(Name ( First Name"
The syntex used for the messagebox was as follows:
MessageBox(NULL,"Name (FULL NAME)","good",MB_RTLREADING );
Please suggest what setting i am missing?
|
|
|
|
|
MessageBox("(Name( FULL NAME","good",MB_RTLREADING );
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
I tried using the same.
It produces the correct output.
But I think it is not good to Change the Strings. As in case of multiple closing brackets it will very cumbersome to edit the strings.
It should be any property/flag of the MessageBox that i am missing.
|
|
|
|
|
Given this program:
#include <Windows.h>
#pragma comment(lib, "user32")
int main(int argc, char** argv)
{
MessageBox(NULL,"Name (FULL NAME)","good",MB_RTLREADING );
}
I got exactly what you might expect - a message box with text reading left to right exactly as shown above (that's because I'm using the Latin Unicode subrange, not one of the right-to-left ones) but with all the adornments (icon, window caption buttons) mirrored compared to what I would usually see.
I don't get any strange bracketness like you've reported.
|
|
|
|
|
-> Latin Unicode subrange, not one of the right-to-left ones)
I do't feel that i could follow you well.
I am using english XP.
I also tried your code in two environments:
1. My Region and Languages set to Arabic
2. My Region and languages set to English(US)
In both the cases I am getting the same string as i mentioned in my first mail. "(Name(First Name".
I am not getting what's wrong is going on!
|
|
|
|
|
Do the parenthesis have some special meaning when used in Hebrew or Arabic systems? Have you tried other strings?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
I have inherited this MFC project that has been set to "Not Set" as far as its character set. I have run into couple of problems recently with incompatibility issues with new common controls because comctl32 is unicode compatible. My question, is should I force my project to be unicode or leave it as "Not Set"... Does any one have a good experience as far as the projections of Microsoft and what do you gain or lose out either way?
Thanks
sft
|
|
|
|
|
If you're only using English text and strings, you may as well leave it as "Not Set".
What are the problems that you came across?
Windows internally uses Unicode.
So there would be a slight overhead of converting the ASCII string to their Unicode counterparts.
«_Superman_»
|
|
|
|
|
I wonder is there any recognized C++ certification program?
I know about former VC++ certificates, but is there anything similar for plain C++?
|
|
|
|
|
Which are good VC++ certificates?
|
|
|
|