J
Josemi
Hi!,
I've got a great problem, and I don't have any idea how can I to
solve it. I hope that there is a solution to solve it . Well. I've
got an App UNICODE that call a routine in a dll MBCS:
App UNICODE
CString dir;
bDameValorINI (dir, "Directorios", "Ejecutables", "C:\", true);
Routine dll MBCS
bool bDameValorINI (CString &valor, const CString &clave, const
CString &variable,
const CString &nombre_ficheroINI, bool
obligatorio);
When I try to call to that function, I can see with Debug that clave
is only "D" and variable = "E" into bDameValorINI. I tried to pass
with several ways:
1. bDameValorINI (dir, (char *) "Directorios", (char *)
"Ejecutables", "C:\", true);
2. char p1[25], p2[45];
strcpy (p1, "Directorios");
strcpy (p2, "Ejecutables");
bDameValorINI (dir, p1, p2, "C:\", true);
And all results are the same, :-(. clave = "D" and variable = "E"
My God, How can I do to solve it?
Many thanks in advance
Josemi
P.D.: I use VC++ v6.0. I can't to built the dll in MBCS mode
I've got a great problem, and I don't have any idea how can I to
solve it. I hope that there is a solution to solve it . Well. I've
got an App UNICODE that call a routine in a dll MBCS:
App UNICODE
CString dir;
bDameValorINI (dir, "Directorios", "Ejecutables", "C:\", true);
Routine dll MBCS
bool bDameValorINI (CString &valor, const CString &clave, const
CString &variable,
const CString &nombre_ficheroINI, bool
obligatorio);
When I try to call to that function, I can see with Debug that clave
is only "D" and variable = "E" into bDameValorINI. I tried to pass
with several ways:
1. bDameValorINI (dir, (char *) "Directorios", (char *)
"Ejecutables", "C:\", true);
2. char p1[25], p2[45];
strcpy (p1, "Directorios");
strcpy (p2, "Ejecutables");
bDameValorINI (dir, p1, p2, "C:\", true);
And all results are the same, :-(. clave = "D" and variable = "E"
My God, How can I do to solve it?
Many thanks in advance
Josemi
P.D.: I use VC++ v6.0. I can't to built the dll in MBCS mode