Click here to Skip to main content
15,887,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Dialog size should change to the system screen size Pin
chikach19-May-10 14:38
chikach19-May-10 14:38 
AnswerRe: Dialog size should change to the system screen size Pin
Gary R. Wheeler15-May-10 2:00
Gary R. Wheeler15-May-10 2:00 
GeneralRe: Dialog size should change to the system screen size Pin
loyal ginger15-May-10 10:53
loyal ginger15-May-10 10:53 
AnswerRe: Dialog size should change to the system screen size Pin
zp200015-May-10 18:49
zp200015-May-10 18:49 
AnswerRe: Dialog size should change to the system screen size Pin
Xeqtr16-May-10 7:40
Xeqtr16-May-10 7:40 
GeneralRe: Dialog size should change to the system screen size Pin
chikach20-May-10 5:30
chikach20-May-10 5:30 
AnswerRe: Dialog size should change to the system screen size Pin
Xeqtr20-May-10 6:42
Xeqtr20-May-10 6:42 
QuestionUnmanaged C++ DLLs with Unicode via ASP or ASP.NET Pin
Toadlips14-May-10 12:27
Toadlips14-May-10 12:27 
Hello everyone,

I'm hoping someone can point me in the right direction with a little project I'm working on!

I have a collection of third-party C-style DLLs that I am using in my own UNmanaged C++ DLL. My goal was to wrap these functions into my own DLL and then write a VB6 COM based DLL to wrap my C-style DLL so that I can use these functions in a VBScript ASP page. Whether or not this makes sense, I've done this before and had good success, so I was going to try it again.

However, the third-party C-style DLLs are returning Unicode strings, and I actually NEED to support multiple languages. When I pass these Unicode strings to the VB6 app, they'll be converted to the ANSI character set for the locale of the IIS server (i.e. char* rather than wchar_t*), so presumably they will be converted to some Western European ANSI character set. I'm not sure how the .ASP page will handle passing the strings to/from the VB6 COM DLL wrapper, but I'm guessing it will be a straight Unicode call, so there is probably not a conversion problem there, but maybe I'm wrong about that!

Maybe I could handle the conversion of Unicode->ANSI (wchar_t -> char) myself, using the appropriate codepage for the user's language, and there also seem to be some workarounds using VarPtr or StrPtr to pass Unicode between VB6 and C++.

At this point, I'm pretty sure I could hack out some solution, but I was really looking for an elegant/"correct" way to handle this. I don't have much experience with the .NET solutions like ASP .NET, but I would be open to writing the small web page that I will need as a frontend in whatever language/framework is most appropriate.

Basically, I need to have a web page that is capable of calling these third party unmanaged C++ DLLs and to receive and display the results on a web page in multiple languages. Is (C++ DLL->ANSI)<-->(ANSI->Unicode->VB6 COM DLL->Unicode)<-->.ASP an appropriate way to go? Is there a better way than wrap my C++ DLL in the VB6 COM DLL? Should I use a .NET wrapper (using PInvoke, from what I've seen) on the third-party DLLs and use ASP .NET to call the managed .NET wrapper directly? Not sure exactly how to do that, so if that's a good choice, any pointers appreciated.

Thanks for your help!
Corey
AnswerRe: Unmanaged C++ DLLs with Unicode via ASP or ASP.NET Pin
Gary R. Wheeler15-May-10 2:02
Gary R. Wheeler15-May-10 2:02 
GeneralRe: Unmanaged C++ DLLs with Unicode via ASP or ASP.NET Pin
Toadlips17-May-10 3:49
Toadlips17-May-10 3:49 
QuestionOne-time initialization of an ActiveX control in CFormView-derived class Pin
sashoalm14-May-10 5:48
sashoalm14-May-10 5:48 
AnswerRe: One-time initialization of an ActiveX control in CFormView-derived class Pin
«_Superman_»14-May-10 6:35
professional«_Superman_»14-May-10 6:35 
QuestionHow to return 2-dimension array in a function Pin
akira3214-May-10 5:48
akira3214-May-10 5:48 
AnswerRe: How to return 2-dimension array in a function Pin
CPallini14-May-10 6:30
mveCPallini14-May-10 6:30 
AnswerRe: How to return 2-dimension array in a function [modified] Pin
Aescleal14-May-10 11:48
Aescleal14-May-10 11:48 
AnswerRe: How to return 2-dimension array in a function Pin
Richard MacCutchan14-May-10 21:32
mveRichard MacCutchan14-May-10 21:32 
GeneralRe: How to return 2-dimension array in a function Pin
Aescleal15-May-10 7:22
Aescleal15-May-10 7:22 
AnswerRe: How to return 2-dimension array in a function Pin
sashoalm15-May-10 2:25
sashoalm15-May-10 2:25 
GeneralRe: How to return 2-dimension array in a function Pin
akira3218-May-10 6:06
akira3218-May-10 6:06 
QuestionVirtual keyboard API or code that runs on WinXP and/or Vista? Pin
KellyR14-May-10 3:49
KellyR14-May-10 3:49 
QuestionProblem with writeprivateprofilestring() Pin
Shivanand Gupta14-May-10 3:29
Shivanand Gupta14-May-10 3:29 
QuestionRe: Problem with writeprivateprofilestring() Pin
David Crow14-May-10 7:58
David Crow14-May-10 7:58 
AnswerRe: Problem with writeprivateprofilestring() Pin
Shivanand Gupta14-May-10 20:31
Shivanand Gupta14-May-10 20:31 
QuestionRAPI funcion generate problem in CFileDialog handling. Pin
Le@rner14-May-10 2:32
Le@rner14-May-10 2:32 
AnswerRe: RAPI funcion generate problem in CFileDialog handling. Pin
Cedric Moonen14-May-10 4:13
Cedric Moonen14-May-10 4:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.