|
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
|
|
|
|
|
Did you remember to call AfxOleInit( ) or CoInitialize( ) at startup?
Wenn ist das Nunstück git und Slotermeyer? Ja! Beierhund das oder die Flipperwaldt gersput!
|
|
|
|
|
Hi,
I have to make an COM component with ATL, that needs some fancy GUI interface, it seems that WTL is the best thing to develop something cute and lightweight, but.... I'm wondering... Why Microsoft doesn't support that ? Is there something wrong on there ? Would be a better idea to try to make it with .net framework and forget ATL ?
Thanks in advance, Greetings
Braulio
|
|
|
|
|
They never supported WTL.
Braulio Díez wrote:
Would be a better idea to try to make it with .net framework and forget ATL ?
The questions here are: do you use MS support? Will you use MS support?
How long does this project will last? If a long time project, IMHO, don't use WTL, or you'll be using VC 6.0 in your 22GHz 128-bit processor in 2008, running Microsoft Linux.
Q261186 - Computer Randomly Plays Classical Music
|
|
|
|
|
Yes you are right, now we in some part of the project tied up to the VS 6.0, I would'nt like to tie me up to that....
Thanks for the tip, greetings
Braulio
|
|
|
|
|
Eh? Misinformation! WTL isn't compiler specific so your comment about having to stick with VC6 is incorrect. WTL is a bunch of templates in header files - works fine in VC7 and there is no reason that it won't continue to work with future MS compilers. The guy is using ATL so WTL is surely the obvious choice for adding a GUI.
MS Linux. he he he.
Faith. Believing in something you *know* isn't true.
|
|
|
|
|
Robert Edward Caldecott wrote:
Eh? Misinformation! WTL isn't compiler specific so your comment about having to stick with VC6 is incorrect. WTL is a bunch of templates in header files - works fine in VC7 and there is no reason that it won't continue to work with future MS compilers.
Try to compile some old DOS C++ code with <iostreams.h> on VC7 to generate a console application and you'll soon understand what I meant. I did it last week. On the long term, unfortunately, if MS does not support WTL, it will fade away, and probably will not compile on VC12.0
Q261186 - Computer Randomly Plays Classical Music
|
|
|
|
|
Mmmm. As long as MS continues to support ATL (any reason why they would stop?) then there is no reason for WTL to stop working. And, looking at how rich ATL7 is, MS is still very much behind it...
Faith. Believing in something you *know* isn't true.
|
|
|
|
|
Why do you need MS support for it? You get all the source code so any bugs can be fixed yourself. WTL has a large user community who can help better than MS ever would. WTL is great for adding UI to ATL components.
Michael
"I've died for a living in the movies and tv.
But the hardest thing I'll ever do is watch my leading ladies,
Kiss some other guy while I'm bandaging my knee."
-- The Unknown Stuntman
|
|
|
|
|
Thanks but...
The main problem comes, if later I have to port the project to Visual Studio 7 ....
Braulio
|
|
|
|
|
Braulio Díez wrote:
The main problem comes, if later I have to port the project to Visual Studio 7 ....
WTL works just as well in Visual Studio 7, I use it all the time!
--
Simon Steele
Programmers Notepad - http://www.pnotepad.org/
|
|
|
|
|
There are two versions of WTL, 3.1 (which is easy to use with VC6, and has an AppWizard for it), and WTL 7, which is usable with both. I'd go for WTL 7, since there are appwizards for VC6 and VC.NET
Steve S
[This signature space available for rent]
|
|
|
|
|
I'm Making simple http server, and I don'ät know how to
transfer pictures from it. So does anybody know, how
to send those pictures to browser. Any example code or
article to read
Regards
Janne
|
|
|
|
|
Just add the right mimetype in your HTTP headers :
Content-Type: image/jpeg
How low can you go ? (MS rant)
|
|
|
|
|
We've created an application that uses Winsock API. Now i want to create a separate application that intercepts the Connect() call made by the first application, do something with this call and then pass the control to the original Connect() of the Winsock API.
Is this possible ? Is this the topic of API hooking ?? Is there any other altranative to achieve my goal ?? Is there any article or sample source concerning this topic of Winsock API interception, you aware of ???
|
|
|
|
|
It did that already a few times, it is possible, and: It is very easy to accomplish
I use the Microsoft Detours library for that purpose, although it has some limitiations in it license. Take a look at
http://research.microsoft.com/sn/detours/
The libarary has a few examples, and I learnt to use that library withinh a few minutes
regards
Greg
modified 12-Sep-18 21:01pm.
|
|
|
|