|
* "If you need to access a CDialog class then do a regular DLL which itself uses the extension DLL. " -
and this way dont good for delphi and another ??? Why ???
* "to use COM" -
Are you mean to ATL ?
|
|
|
|
|
|
Chill out, everyones questions are 'urgent'
ATL is a template library that simplifies creation of COM objects. I have a feeling I've answered this question several times by advising you that COM objects will not create themselves for you via a wizard and you need to go buy some books and learn some ATL if you want to do what you're intending. My advice on this front stands - I'm sure others as well as myself would be glad to keep helping, but you are *not* going to learn ATL from a post like this, you're going to learn it by reading a book and doing the examples in it. Richard Grimes books are good, the 'teach yourself in 24 hours' book is a better start if you're not confident or you get lost ( I resorted to it before going back to the Grimes book )
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
I second Christian's comments. I would recommend a book like "Inside COM" (from microsoft press at http://www.microsoft.com/mspress/) or "Professional DCOM Programming" by Richard Grimes, Wrox Press (http://www.wrox.co.uk/).
These should easily get you started. I know that Grimes was my bible during a big project no too long ago.
Sincerely Yours,
Brian Hart
"And that's the news from Lake Wobegon, where all the women are strong, the men are good-looking, and the children are above-average." - Garrison Keillor
|
|
|
|
|
I must it urgent , So I need book that teach quickly and clearly.
It seems that what I need is the book :
'teach yourself in 24 hours' is about ATL in fact ?
Who is the author ?
|
|
|
|
|
The book 'Teach yourself ATL in 24 hours' appears to be out of print, Fatbrain is not listing it. I would recommend
Creating Lightweight Components with Atl with Cdrom
By Jonathan Bates,Brad Jones,Matt Purcell ISBN: 0672315351
as a book more accessible than the Grimes books and which helped me enormously when I was trying to wrap my head around it all.
By all means ask questions if you get stuck.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
Wierd - a search for teach 24 did not list this book at Fatbrain, neither did ATL 24. But it's there - ISBN: 0672318679
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
Are you sure that I cant manage if I will do regular dll that use in extention dll ?
|
|
|
|
|
Bloody hell. Look, I don't know much about regular/extension dll's, but it seems obvious to me that given the whole idea of COM is language agnostic code, that it's the way to do what you want. You clearly know that yourself, you've been asking the same sort of questions for two weeks now and getting roughly the same answers.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
|
I have a settings dialog in my application.
In mIRC and Winamp they have a configuration file which has headings:
[Winamp]
visplugin_name=vis_avs.dll
visplugin_num=0
[WinampMini]
blah=0
etc etc
I want this in my program where when a user fills in an edit control it will save the string in the configuration file i specify like this
[SNEToptions]
Username=Ashman
Password=blah
Email=ashman@settlers.net
[SNETappearance]
Icon=4
Splash=No
and everytime I go into the Settings dialog, it will load up in each edit control or control each preference, like the Username edit box will say Ashman, the password will say blah etc etc....
If someone can help, or point me to a sample, Id appreciate it very much!
Thanks
Ashley 'Ashman' Rowe
www.settlers.net
|
|
|
|
|
You would load the information in the "OnInitDialog()" using:
DWORD GetPrivateProfileString(
LPCTSTR lpAppName, // points to section name
LPCTSTR lpKeyName, // points to key name
LPCTSTR lpDefault, // points to default string
LPTSTR lpReturnedString, // points to destination buffer
DWORD nSize, // size of destination buffer
LPCTSTR lpFileName // points to initialization filename
);
and write it using:
BOOL WritePrivateProfileString(
LPCTSTR lpAppName, // pointer to section name
LPCTSTR lpKeyName, // pointer to key name
LPCTSTR lpString, // pointer to string to add
LPCTSTR lpFileName // pointer to initialization filename
);
Once you get the information, use "GetDlgItem(IDC_EDIT...)->SetWindowText(Your-CString)".
Hopes this helps!
Thanks in advance,
Dan
|
|
|
|
|
I dont really understand.
Will that make the headings in a Configuration file outside of my program, like SnetDownload.ini?
In that file I want it to have:
[SNetUser]
Username=Ashman;
Password=Blah;
Email=Ashman@settlers.net;
Homepage=http://www.settlers.net;
[SNetDesign]
SplashScreen=1;
SysTrayIcon=4;
And then from there load into say the username edit control, IDC_NICK, Ashman
I not sure if thats what the above does that you showed me.
Thx
Ashman
|
|
|
|
|
CString csUsername;
// Get the Username from the INI file...
GetPrivatProfileString(..., csUsername, ...);
// Put the users name into the edit control...
GetDlgItem(IDC_NICK)->SetWindowText(csUsername);
........OR........
// Get the users name from the edit control...
GetDlgItem(IDC_NICK)->GetWindowText(csUsername);
// Put the Username into the INI file...
WritePrivatProfileString(..., csUsername, ...);
Am I on the wrong track or is there something I missed??
Thanks in advance,
Dan
|
|
|
|
|
How can I quickly transfer large files from one remote Server to a local Server (they are log files). They are updated when alerts come in so, is there also a way to update the file with just the new information
Thanks in advance,
Dan
|
|
|
|
|
I would keep the master log file on the server and just send updates from the client machine(s). Send the log update as a delimited string (if you're sending more than one log entry per update), like so:
"Log entry #1|Log entry #2|Log entry #3"
Of course, you'd have to choose an appropriate delimiter character, but that shouldn't be tough.
And on the server end, parse the string, add the entries to your log file (I assume it's text), and with for the next update to arrive.
I've posted a paitr of string parsing classes on this sight - one that uses MFC and one that uses STL and std::string - that you can use to both build and parse a delimited string.
Here's a link to the article:
http://www.codetools.com/useritems/cstringparser.asp
To hell with those thin-skinned pillow-biters. - Me, 10/03/2001
|
|
|
|
|
Hi Outlaw...thanks for the tip!
The file to transfer (part or full) is an alert log from an IDS system (Snort). How would I get just the new (last) entries?? An example of it is as follows:
[**] EXPLOIT Possible CodeRed Worm v3 [**]
08/13-05:05:27.577622 111.111.111.111:3363 -> 111.111.111.111:80
TCP TTL:111 TOS:0x0 ID:21504 IpLen:20 DgmLen:552 DF
***A**** Seq: 0x7E1432D1 Ack: 0xD2B81EDD Win: 0x4000 TcpLen: 20
[**] EXPLOIT Possible CodeRed Worm v3(X) [**]
08/13-05:15:22.742893 111.111.111.111:1645 -> 111.111.111.111:80
TCP TTL:102 TOS:0x0 ID:65028 IpLen:20 DgmLen:552 DF
***A**** Seq: 0xC0CDEBF4 Ack: 0xDF5B9FD5 Win: 0x4000 TcpLen: 20
[**] EXPLOIT Possible CodeRed Worm v3(X) [**]
08/13-05:15:28.099871 111.111.111.111 -> 111.111.111.111:80
TCP TTL:116 TOS:0x0 ID:26859 IpLen:20 DgmLen:552 DF
***A**** Seq: 0xEFCD649D Ack: 0xDF7D2101 Win: 0x4000 TcpLen: 20
[**] EXPLOIT Possible CodeRed Worm v3(X) [**]
08/13-05:15:30.137790 111.111.111.111:3061 -> 111.111.111.111:80
TCP TTL:116 TOS:0x0 ID:27031 IpLen:20 DgmLen:552 DF
***A**** Seq: 0xF03C1800 Ack: 0xDF86D0B7 Win: 0x4000 TcpLen: 20
This is just an example of the Alert.ids log. There are a lot of other alerts that could be in here!
Any ideas??
Thanks in advance,
Dan
|
|
|
|
|
I assumed you were the author of both ends of the software. I haven't got a clue as to what you have and what you want to do with it.
I've never heard of Snort.
As for getting the most recent entry, I guess you could just move the alert file to a different place and read it (moving it keeps you from having to lock it to prevent updates while you're reading it).
To hell with those thin-skinned pillow-biters. - Me, 10/03/2001
|
|
|
|
|
rsync is a program to keep files "synchronized" by transferring just the differences. See the rsync home page. See here for information on running rsync on Windows.
|
|
|
|
|
Who know how to transfer color value from classic office toolbar to OfficeXP toolbar?
|
|
|
|
|
All what I need is create dll file that will could to used by client program in every language .
I created dll in MFC and it is mismatched to another languages !
I want to cover it by ATL and it makes troubles .
What is the right way ???????????????????????????
|
|
|
|
|
ATL is the right way, but it's not exactly intuitive when you're starting. We can help moreif you post some code and tell us what's going wrong...
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
Thank you !
I will try .
|
|
|
|
|
The Borland Stable compilers and Microsoft Stable compilers use different formats when generating the dlls. You wil have problems if you are using a mixture of Borland products (e.g. Delphi) and Microsoft Products e.g. VC++. Best way to create a module is to use COM.
|
|
|
|
|
* "to use COM" -
Are you mean to ATL ?
Can I do a regular DLL which itself uses(import)a extension DLL ?
Is this way not good for delphi and another lamguages ??? Why ???
|
|
|
|