|
Check out CDragListBox which supports reordering the list items.
--Mike--
http://home.inreach.com/mdunn/
Sometimes, arming yourself with a big pointy stake just won't do you any good.
|
|
|
|
|
Is there a way to send email (with attachments too) without calling an smtp server? Is there an article for this or an API call or code somewhere? I'll bet this a pretty frequently asked question but I can't find any answers.
Thank you!
Alex Griffing
|
|
|
|
|
I know with this article, you have to specify an SMTP server, but perhaps the code will get you going in the right direction.
PJ Naughter's CSMTPConnection.
Jon Sagara
"Go Banana!" -- Ralph Wiggum
|
|
|
|
|
Hi all,
I added an ActiveX to my project ...
Now, i want to use of that, in CMainFrm class ...
It mean, i want to use of ActiveX in SDI ...
How can i do that ?
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
i want get the dns server ip in net setting of w2k.
read it from registry. but i can't find a way to do.
pls help me.
in fact, i didn't like progromming too much...
|
|
|
|
|
I have developed a small VC program using ODBC to access MSAccess database. after I got the release version. I found whenever I want the program run on another computer, I have to manually set the DSN of the database on that computer( by setting->control panel -> ODBC source->....), I think there should have some way to do this automatically, for examle, done by some "setup.exe" like program. would you please give me some clue about this? your help will be highly appreciated
jason
jason
|
|
|
|
|
you will find answer in http://code.72net.com/bbs
|
|
|
|
|
Hi
I have a Dialog Box "A" inside which I have a CListCtrl say "A.1" . Now , I want to trap the Mouse move event within the Clistctrl which I don't see when I try using the classwizard.
Any Idea would be great help.
Thanx
regards
Sankar
|
|
|
|
|
|
I have been using a mfc dll for some functions I call from winrunner scripts for testing. I decided to create a dialog for the test in a new MFC appwizard exe project. Now I have the gui set up and a bit of code working behind it how can I put this inside my origional dll?
I can see where the form is created:
CGUITestDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
If I put this code inside inside a function in my dll will calling it make the form popup? Im new to the VC6 interface and am not sure if I can just copy the code or merge the projects somehow???
Thanks
|
|
|
|
|
I have a problem related to my project.
The project is designed like this:
Two different users(Super user & normal user) have two different menu. If I login as a normal user first. Some menu items will be deleted according to limitation of normal user. Then I logoff and login again as a super user(notice: without closing the window and application). Then it should show the whole menu items(since super user can see anything) if I use file open or file new. But unfortunatly the menu still is the non superuser menu.
This happens becsause MFC initiates the frame or menu once and then uses the shared menu later on.
I'm think of reloading the menu or frame from rc file again to solve this problem. But I wondered how I can do it or if you guys can think another way to solve this problem.
Thanks in advance!
Thanks very much
Amber
Thanks very much
Amber
|
|
|
|
|
Before the menu is displayed you need to check who is logged on and then use InsertMenu or RemoveMenu as necessary.
if( Super )
{
menu.InsertMenu(...)
}
else
{
menu.RemoveMenu(...)
}
|
|
|
|
|
I need to do the same thing that the javascript unescape function does but in C++. Is there a library function or , some class that can do this for me?
e.g hello+this+is+the+message
would become: hello this is the message
but of course there are all the special characters %0D ect
Thanks.
JAred.
|
|
|
|
|
The URLUnEscapse function will do it for you but it requires Windows 2000 or IE5 to be installed see following MSDN docs
UrlUnEscape
[This is preliminary documentation and subject to change.]
Converts escape sequences back into ordinary characters.
HRESULT UrlUnEscape(
LPTSTR pszURL,
LPTSTR pszUnEscaped,
LPDWORD pcchUnEscaped,
DWORD dwFlags
);
Parameters
pszURL
[in/out] Pointer to a NULL-terminated string with the URL. If dwFlags is set to URL_UNESCAPE_INPLACE, the converted string is returned through this parameter.
pszUnEscaped
[out] Pointer to a NULL-terminated string containing the unescaped version of pszURL. If URL_UNESCAPE_INPLACE is set in dwFlags, this parameter is ignored.
pcchUnEscaped
[in/out] Number of characters in the buffer pointed to by pszEscaped. On entry, the value pcchEscaped points to is set to the size of the buffer. When the function returns, the value pcchEscaped points to is set to the number of characters written to that buffer, not counting the terminating NULL character. If an E_POINTER error code is returned, the buffer was too small, and the value pcchEscaped points to is set to the required number of characters in the buffer. If any other errors are returned, the value that pcchEscaped points to is undefined.
dwFlags
[in] Flags that control which characters are unescaped. It can be a combination of the following flags. Flag Description
URL_DONT_UNESCAPE_EXTRA_INFO Don't convert the # or ? character, or any characters following them in the string.
URL_UNESCAPE_INPLACE Use pszURL to return the converted string instead of pszUnEscaped.
Return Values
Returns an OLE success code if successful. If the URL_UNESCAPE_INPLACE flag is not set, the value pointed to by pcchUnEscaped will be set to the number of characters in the output buffer pointed to by pszEscaped. Returns E_POINTER if the URL_UNESCAPE_INPLACE flag is not set and the output buffer is too small. The pcchUnEscaped parameter will be set to the required buffer size. Otherwise, returns an OLE error value.
|
|
|
|
|
Hi all,
In my program, given a process ID, I want to know what resources (esp. ports) the process or threads under that process are using. How do I do this? Any help,suggestions,links will be useful.
TIA.
I'm an alien, I'm an alien
it's a beautiful life....
Bush
|
|
|
|
|
Hi everyone!
I'm trying to learn stl, resisting the temptation to reinvent the wheel repeatedly, but I'm running into an initial problem.
typedef std::list<socket*> SOCKLIST;
function(SOCKLIST sockets_) {
SOCKLIST::iterator it;
for (it=sockets_.begin(); it<sockets_.end(); it++)="" {
...
}
}
this="" makes="" an="" error="" in="" the="" 'for="" (...'="" line.="" i="" think="" it="" doesn't="" like="" it<sockets_.end()="" statement.="" cryptic="" (to="" me)="" message="" follows:
bool="" __cdecl="" std::operator="" <(const="" class="" std::list<_ty,_a=""> &,const class std::list<_Ty,_A> &)' : could not deduce template argument for 'const class std::list<_Ty,_A> &' from 'class std::list
|
|
|
|
|
Ok sorry.
the < should be a !=
|
|
|
|
|
You are missing a type
typedef std::list<type> SOCKLIST;
where type can be int, char, string, a class, structure etc.
|
|
|
|
|
The forum ate my code. Since it probably ate your code to I'm not sure if this is the correct answer to your problem.
'typedef std::list<type> SOCKLIST;'
|
|
|
|
|
Yeah the forum ate my code. The type was, let's try to do this explicitly,
typedef std::list<Socket *> SOCKLIST;
but I fixed the problem, so it's OK. Thanks for the feedback!
|
|
|
|
|
Hi all,
I'd like to create the flat toolbar button effect using VC 5, can it be done? I know that this is a feature that wasn't added until VC 6, but doesn't the toolbar class just call COMMCTRL32.DLL anyway?
Under C++ Builder I recall being able to set new styles by overriding the window creation process, I assume this can be done with VC 5, I'm just not sure where? Also, VC 5 doesn't have the necessary defines, so I'd need the numbers as well. I think the necessary defines are CBRS_GRIPPER and TBSTYLE_FLAT, which I'd insert into the SetBarState(...) during creation of my FrameWnd???
Thanks
Jonathan
|
|
|
|
|
How can my program work in another computer without VC++ installed?
When i copy all the files from DEBUG directory and try to run the program in another computer, it always said missing some DLL files.......
How can I solve this problem??? I don't want to copy the DLL files everytime....
Thanks
|
|
|
|
|
go to Project / Settings / General / MFC and choose "Use MFC in a static library".
this will link all of the MFC and C-runtime stuff into your app so you won't have to distribute the DLLs.
-c
------------------------------
Smaller Animals Software, Inc.
http://www.smalleranimals.com
|
|
|
|
|
I did!!!!! I did set it using static library....but still doesn't work...
Also, one of my another program works succesfully in another computer, but it cannot show some dialog box!!!!! What happened??? What is the procedure my copying the program to another computer??????
|
|
|
|
|
Which DLLs are reported as missing? If linking statically with the CRT doesn't solve it, you'll need to copy those DLLs over along with your app.
--Mike--
http://home.inreach.com/mdunn/
Sometimes, arming yourself with a big pointy stake just won't do you any good.
|
|
|
|