Hello everybody.
I need to encrypt a CString, I saw some classes but it gives me different results (for the same original string) in different computers, I need the same result for the same original string in any computer, also, it must be ANSI and UNICODE compliant.
Thanks in advance,
William
Hello everybody.
I have to read a string from registry, this string is ANSI, when I read it with ANSI version of my app, all is fine, but if I read it with UNICODE version of my app, the string obtained is wrong, so, how can I read a ANSI string (from registry) from a UNICODE app?.
Thansk in...
Hello everybody. I need the default program files directory ("C:\Program Files" or "C:\Archivos de programa" in spanish Windows), there are funtions to obtain another system dirs like GetCurrentDirectory(), GetSystemDirectory(), GetWindowsDirectory(); is there a function to obtain the program...
Hello, I have some VC6 DLLs and I want to use them with NET EXEs (MFC 7.0), but the linker give me many errors, especially in functios with CStrings (parameters or return); How can I fix it? or have I to recompile the DLLs in NET?
Thanks in advance,
William GS
Hello, I have a CFileDialog with multiple selection and open mode, when I select the files with click on the first one then shift+click on the last one and close the dialog with “Open” button, DoModal() returns IDCANCEL!!!, but when I select the files with Ctrl+Click it works fine. I work with...
Hi all, please help me with:
1) How can I change the app tittle? (not the project tittle), that tittle showed in the tittle bar, in the AfxMessageBox tittle, etc. I changed the IDR_MAINFRAME resource but it does not work.
2) How can I restore the normal state of a minimized view...
Hi all, please help me with:
1) I get the date format from Windows Control Panel with 'GetLocaleInfo()', these formats are:
dd/MM/yyyy
dddd, dd' de 'MMMM' de 'yyyy
But I have mi date in a COleDateTime object and COleDateTime::Format() does not work with these date formats, ¿How can I format...
Hi all, How do I obtain the regional cfg from control panel? I need the date format, the money format, the real numbers format, etc.
Thanks in advance,
William GS
Hi all. I have a modeless dialog (whithout tittle bar, without 'OK' and 'Cancel' Button) and I want to hide it when it loses focus or when the user clicks outside the dialog, I tried to catch WM_KILLFOCUS message, but it only is called when the dialog appears the first time, not when the dialog...
Hi all. I am learning COM+ and DCOM (with VC++), but I have manuals for advanced users, I need manuals for beginners, do you know where can I find it?
Thanks in advance,
William GS
Hi all. I have an app (VC 6.00) that works with an Access database and ADO, this app has worked fine, but it has problems only in one PC. My code is:
CoInitialize(NULL);
_ConnectionPtr con(__uuidof(Connection));
con->Open("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=dbTest.mdb"); //Here is...
Hi all. I have a Microsoft Acces database without password, I manage it with ADO and a C++ app; How can I open this DB (with ADO) if I put a password?; Is there another way to protect my access DB?.
Thanks in advance.
William GS.
Hi all. I am using CString::Format() to convert a double to string:
CString str;
str.Format("%f", 3.14); //The result is "3.14000000" ==> I want "3.14"
str.Format("%f", 202.141); //The result is "202.14100000" ==> I want "202.141"
I do not want the nonsignificant zeros. Is there a way to...
Hi all. I have a Regular DLL that writes and reads in a SQL Server Database using ADO; also, I have a member variable in the application class for the connection:
class CDatabaseMgrApp : public CWinApp
{
//
//...
public:
_ConnectionPtr m_pConnection;
//
//
}
BOOL...
Hi all. I am working in a Visual C++ program, and it reads and writes in a SQL Server Database and I am using 'autonumeric' IDs, but I have problems with that, so, I need a way to create unique IDs along the database. how can I do this? or, Is there a site with information about it?
Thanks in...
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.