Hi! Can I use CFileDirectory to select one directory and not a file? How? /Ola Carlsson
Ola Carlsson
Posts
-
Select directory in CFileDialog -
How can I make textlinks in my dialogsthank you very much! /Ola Carlsson
-
How can I make textlinks in my dialogsHi, How can I make simple textlinks in my AboutDlg? For example; "Visit my homepage at http://icc.makes.it" Thanks /Ola Carlsson
-
Delete files that are in useHi, I need to delete files that are in use. I can´t restart my computer or neither exit programs that are using them. Any suggestions? Need to work on NT/2000 server. /Ola Carlsson
-
Delete files that are in useHi, I need to delete files that are in use. I can´t restart my computer or neither exit programs that are using them. Any suggestions? Need to work on NT/2000 server. /Ola Carlsson
-
Create Exchange account from existing NT-accountHi, I need some help to create mailboxes from existing NT-accounts. This code does'nt work: DirectoryEntry entry = new DirectoryEntrt(LDAP_DOMAIN); DirectorySearcher searcher = new DirectorySearcher(entry); SearchResult result = searcher.FindOne(); DirectoryEntry dirEntry= result.GetDirectoryEntry(); DirectoryEntry adOrganization = dirEntry.Parent; DirectoryEntry newUser = adOrganization.Children.Add("cn=Ola.Carlsson", "user"); newUser.CommitChanges(); ---------------------------------- COMException (0x8007200a)..... does'nt exist... Is SchemaClassName wrong? /Ola
-
Microsoft Exchange programmingHi! I need some programming examples about programming MS Exchange server 5.5. Also wonder if I Can I use ADSI for this purpose? I’m using C# ASP .Net. Thanks /Ola Carlsson
-
How can I make my app to use less memoryHi, I have some problems with my apps memory usage. They use a lot of memory. How can I make my app to use less memory? Does it matter if I use semantic { CMyClass c; : } or { CMyClass *c; c = new CMyClass(); : delete c; } Do Windows use some kind of garbage collection? Then my app has been running for a while the memory usage is lesser. Why? Grateful for all help I can get. /Ola Carlsson, Sweden
-
SystemTray tooltip text limitHi, How can I use SystemTray tooltip text up to 256 characters (or more)? Today it seems to only support 64 characters. Thanks Ola Carlsson
-
Valid e-mail addressHi, Does anyone now a function/class to check if an e-mail address is valid? /Ola Carlsson
-
MFC Thread problemHi all, I’m trying to make use of some threads in my programs. Then I try to build my project(MFC), this error turn up. “fatal error LNK1561: entry point must be defined” My code is similar: UINT CTestDlg::threadProc(LPVOID p) { CTestDlg * me = (CTestDlg *)p; me->classProc("ThreadTest"); return 0; } void CTestDlg::classProc(const CString mesage) { AfxMessageBox(message); } void CTestDlg::OnOkButton() { HWND hWnd = GetSafeHwnd(); AfxBeginThread( threadProc, hWnd, THREAD_PRIORITY_NORMAL ); } Can you help me what to do? Thanks, Ola Carlsson olaca428@student.liu.se
-
How to restart DHCPShould work on Win98, ME, 2000 and XP /Ola
-
How to restart DHCPHi All! Does somebody know how to restart DHCP? Thanks, Ola Carlsson
-
CInternetSession::OpenURLHow can I use OpenURL and set max retries, timeout etc… If I use OpenURL and my connection doesn’t exist, the program crash. Thanks Ola Carlsson
-
How to select text in CEdit ControlText in edit box is not visible selected. Cursor starts blinking, and if I use m_editbox1.Cut(); text disappear. If I write some, text in edit box are not replaced. Code example: void CMyClass::OnSetfocusBox1() { m_box1.SetSel(1,10); m_box1.SetFocus(); // m_box1.Cut(); works, but text in box are never visable selected. } Ola
-
How to select text in CEdit Controlhmm... I still can't get the text marked blue. /Ola
-
How to select text in CEdit ControlHow can I select the text in a CEdit control. I have tried the SetSel(first_pos, last_pos) but the text don't be "blue". SetSel() works fine to cut or paste... but i want the text to be marked whit the blue line, as when using mouse. regards, Ola