|
It s to good to answer one's own question: InternetCombineUrl suits my needs perfectly
R.
|
|
|
|
|
Hi,
I need to add to my application some stuff for html generation and editing, I'm thinking about using MSHTML ( and make an small editor, with some basic stuff), or using Front Page Automation ...
Is Front Page automation more or less ok ? ( I mean Word Automation is not that bad... but outlook automation seems to be hell...).
Thanks in advance, greetings
Braulio
|
|
|
|
|
If you use VC7 with MFC than you have a very handy class called CHtmlEditView which provides just what it promises: simple Html editing capability.
R.
|
|
|
|
|
Hi,
I try to show a bitmap in my dialog based app. using the static control. I use this code:
CBitmap bmp_1;
bmp_1.LoadBitmap(IDB_BITMAP_1);
m_Bmp.SetBitmap(bmp_1);
m_Bmp.Invalidate();
UpdateData(FALSE);
This works good under Windows XP but not under windows 98.
What do i wrong??
Thnks
|
|
|
|
|
What kind of data type is m_Bmp ??
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
A static picture control (CStatic).
|
|
|
|
|
Use CPictureBox insted, or what the nbame is..
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
I know it's a little bit simple, but i can't do it.
Thanks
|
|
|
|
|
How can I create an non Modal Dialog (CColorDialog, CFontDialog,...)
Thank You a lot!
|
|
|
|
|
|
Hi Nishant!
I think the problem to create a NON MODAL CColorDialog, CFontDialog, ... is that there is no template id for the Create(...) function! The DoModal() function of this dialogs will end in an API call!
CModeLess *m_pmodeless = new CModeLess(this);
m_pmodeless->Create(CModeLess::IDD);
m_pmodeless->ShowWindow(SW_SHOW);
For CColorDialog or CFontDialog there is no IDD!
Daniel
---------------------------
Never change a running system!
|
|
|
|
|
Here is a rather sneaky way of showing a modeless color dialog :-
void CYourDlg::OnBnClickedButton1()
{
CHOOSECOLOR cc;
ZeroMemory(&cc, sizeof(CHOOSECOLOR));
static COLORREF acrCustClr[16];
cc.lStructSize = sizeof(CHOOSECOLOR);
cc.hwndOwner = NULL;
cc.lpCustColors = (LPDWORD) acrCustClr;
cc.Flags = CC_FULLOPEN | CC_RGBINIT;
ChooseColor(&cc);
}
Regards,
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Review by Shog9
Click here for review[NW]
|
|
|
|
|
Thanks! Realy good! I didn't remember that there is a owner member in the CHOOSECOLOR struct!
Daniel
---------------------------
Never change a running system!
|
|
|
|
|
Serial port communcations? I will spare the code for now but I'm having a problem I cant finger out. Not sure if overlapping will help either. I'm new to serial comm routines... If you think you can help send an email to mfeik@comporium.net. If you would like to look at my code I'll send it.. I thought this was going to be a simple dialog box interface but my reads are not proving this to be the case
---------------------------------------------
Be good! But if you can't be good, at least be good at it and try not to get any on ya!
-mjf
|
|
|
|
|
There is a serial MFC class here (somewhere, sorry I'm to lazy to search the link). I used it to communicate with a microcontroller once and exchange data, it worked well.
|
|
|
|
|
i used several years ago, i can't remember everything, but:
u must use overlapped, must use EV_CHAR and EV_EMPTY 2 events.
includeh10
|
|
|
|
|
you don't happen to remember WHY I must use overlapped do you? I have a serious problem with what I thought was going to be a simple app.
---------------------------------------------
Be good! But if you can't be good, at least be good at it and try not to get any on ya!
-mjf
|
|
|
|
|
Developed about 30+ serial apps. due to the industry I work in.
"well that software is just like a polished turd" -
somebody in my office referring to a VB App.
|
|
|
|
|
Any chance you have a little time you might be able to lend me? I have a program that I'm having problems with. I'll leave the details dependent upon your response.
thanks
-Mel
---------------------------------------------
Be good! But if you can't be good, at least be good at it and try not to get any on ya!
-mjf
|
|
|
|
|
Lets say I have two extension dlls Dll1 and Dll2 and an Application MyApp. Now following is the scenario.
Dll1 uses Dll2.
MyApp requires Functions from Dll1 and some functions from Dll2.
Now the question(s)
1) In case of Extension Dlls , where does this Dll gets loaded? withing the memory space of MyApp ? or outside the memory space of MyApp ?
2) Since Dll2 is used twice , a) directly from MyApp, 2) indirectly through Dll1. So is it going to cost any how on performance ? in terms of memory or any other way ?
If yes then what should be the alternative ?
Abhishek Narula
|
|
|
|
|
No, the OS uses memory mapping. Each DLL is loaded once into a global memory space and then the required DLL memory is mapped onto the applications process space. So no matter what you do each DLL will only ever be loaded once.
Asim Hussain
e: asim@jawache.net
w: www.jawache.net
|
|
|
|
|
I have to implement a list that stores 2 strings and a pointer.
I have created a struct that hold this things:
struct TEST
{
CString s1;
CString s2;
int* pInt;
};
The struct holds the 2 strings and a pointer.
(CString because it's easy to handle in UNICODE and non UNICODE systems)
As next I have created a list with the STL vector class:
vector<TEST> myArray;
So, I can work very simple with my struct (example):
for (...)
{
TEST t;
t.s1 = _T("string 1");
t.s2 = _T("string 2");
t.pInt = NULL;
myArray.push_back(t);
}
Do you think it's a good implementation or is there something I could do better (memory, make something faster, ...) ???
Daniel
---------------------------
Never change a running system!
|
|
|
|
|
reserve() memory for elements or you have lots of (expensive) relocations. alternatively you can use a std::list.
|
|
|
|
|
Daniel S. wrote:
Do you think it's a good implementation or is there something I could do better (memory, make something faster, ...) ???
Looks good to me.
Nick Parker
May your glass be ever full.
May the roof over your head be always strong.
And may you be in heaven half an hour before the devil knows you’re dead. - Irish Blessing
|
|
|
|
|
I want to design a TabControl with 3 tabs, for each tab
i will get a different page, in these pages i will place any Activex Controls etc. for my application purpose.
Beasue i tried with property sheets?pages, but when placed a ActiveX control in one of the PropertyPage, it's not initiating.
How can i dot this ?
Any help on this....
Thank you
|
|
|
|