Thanks!!!
Matthias 0
Posts
-
Forgot your password? Click here! -
Setup Q: How to install a DSNHello, I've got a question regarding setup. I need to create a setup for my application and the application is using a SQL server to log some data. How do I install support for the SQL server (if required) and the DSN? I would appreceate any tips or links to some documentation. Matthias
-
Anybody seen an ATL/MMC snap in tutorial?Hello, I need to write an MMC snapin in ATL. I've scanned the MSDN, but the samples are kind of tough. Does anybody know about a beginner tutorial? Or if anybody with experiences in writing MMC snapins can answer me some questions. Would be very helpfull. Thanks a lot, Matthias
-
NT Service Event Messages. Where do they go?I've found, that putting the binary messages into a dummy DLL works fine. All you do is create a dummy DLL, edit the Registry key for EventLog\Application to point at your DLL and it should work. Just a suggestion. Matthias p.s.: I'm currently writing a simple tutorial "A total idiots guide to the Event Log". I will be posting it till the end of the week. So if you are patient enough...
-
Recently seen a Newsreader app sample?Well, some guy from Dundas has straightly mailed me with a link to their page. I'd like to write the newsreader to test my programming skills (yes, I'm in the C++ club for only 8 month). So the Dundas solution is too big for my wallet. Unfortunately I don't have the C++ Builder (eventhough I would like to try it!). So this is no option. Frank has said he's seen somewhere a sample he could send me. I'll have a look at it and come back if needed. As for your question, on of the reasons why I want to write a simple Newsreader is that I got fed up of Outlook express. I mean, this application is really not worth the trouble. It's neither userfriendly nor reliable and I simply don't use it anymore. I've found a shareware NewsReader called Gravity (if somebody is interested I'll post a link), which does a much better job, but with an interface that screams for redesign. Generally I think that newsgroups will not be replaced quickly by their http equivalents (message boards, like this one). I believe this for the following reasons: 1. I think that there are still alot of people that can't afford to be online to browse, read and answer their mail. I have a 56K modem and I still find it a pain in the butt to download the asp's. 2. The codeproject messageboard is one of the best ones I've seen around. Not many of them are at such a hight standard. 3.A good NewsReader should make it an easy task to archive messages in a structured manner so that you can build yourself a small knowledge base. This is my aim with my variation of such an app. :-) But this is my personal opinion only. Best wishes, Matthis
-
Recently seen a Newsreader app sample?That would be very helpfull! Matthias
-
Recently seen a Newsreader app sample?Hello! Does anyone know of a NewsReader app (in C++ with MFC, preferably) with source code or of any sample that shows the basic steps to take when developing a NewsReader? I'd like to do exactly that but don't have a starting point. Thanks in advance. Matthias
-
Implementing "Parent" properties in the OO LandWell, a simple answer for you (I guess ) with a big effect for me. Thanks for your help! Matthias
-
Implementing "Parent" properties in the OO LandHello, in the OO-Land (where we all like to live) it's common to implement Object Models, e.g. this one: CCompany >CEmployees >CEmployee For the sake of simplicity we'll say that the company class has a member of type CTypedPtrArray (it's the CEmployees collection). Now I'd like to design my hierarchy so, that each employee has got reference (pointer) to it's parent (company). Now my problem: Let's say I my CCompany looks somewhat like this: #include "employee.h" // my employee class class CCompany{ public: // details ommitted CEmployee& AddEmployee(const CEmployee& newemp, CCompany* parent); private: CTypedPtrArray m_aEmployees; } In this class I need to #include "employee.h". This is fine so far. Now the CEmployee class: #include "company.h" class CEmployee{ // details ommitted private: CCompany* m_ptrParent; } This code doesn't compile. Yes, not even if it is correctly implemented. If you include header A into header B and header B into header A, funny things happen. How do I get this working? What I'm asking for is rather a general answer on how to design such a thing rather then a void*-type-of solution. Many thanx for your time Matthias
-
Fast algorithm for padding nulls into a stringAnd can't figure out how it should be working. There are flags for append 0's but I can't see flags for prefixing 0's. Can you provide some code? Matthias
-
Fast algorithm for padding nulls into a stringHello, I need to create a string from an int. The string should be always 6 characters long and prefixed by "0"'s if the int doesn't have 6 digits. For example: 5 should become "000005" 8940 should become "008940" I hope this explains what I'm going to do. Problem is, the algorithm will be executed very heavily, so I need the fastest solution available. Thanks for your help Matthias
-
Beginner needs help with sorting objects in a CTypedPtrArrayHello, I need a fast algorithm to sort a CTypedPtrArray, that is, the pointers it contains. Here is roughly the class which is stored in the Array. It's called CClient: class CClient{ public: CClient(); ~CClient(); ULONG GetID(){return m_ID;}; CString GetName() {return m_Name;}; private: CString m_Name; ULONG m_ID; } Now in my code I attach to a given datasource (which contains quite a large amount of data) and start adding new CClients to the array. I would like to know what is the most effective way to insert each new CClient pointer so, that the items in the array are sorted descending by the m_ID member variable of the CClient class. Thank you for your time.
-
Need an ideaThis already exists and is called Includes Browser. I don't know whether this application is available on this site. I have found it at the www.codeguru.com. Thanks for help anyway,
-
Need an ideaHello, I'm a beginner (since about 8 month with c++) and I would like to write a small application, which I can use as a reference. Problem is, I don't have an idea what app to write! The application should not be network dependend (because I don't have a client/server at home), should not need MAPI or the internet (cause I have dialup and that would be a pain in the butt). The last limitation is the database. I would prefer an application that doesn't use a database. After all these limitations, does anybody still have and idea? Preferable something that would be of use for daily development (like the includes browser, which is excellent). So, any wild ideas are very welcome. Please note that I will do this in my free time. If the project is too large, I could only do it in tandem with somebody different. Thanks in advance Matthias
-
plain text article versions for saving/printing?Hello, great job your doing! But I've said this already once I guess. One more suggestion I have: I think it would be practical to offer a version of an article description in text format for printing / saving. Just a thought. Matthias
-
User Profiles and GalleriesI would like to suggest to keep track of User Profiles. Users can log on, and settings like how many message per window they prefer to see get activated. Besides I find a gallery with the users nice. I've often found myself in the situation that I'd like to know more about the person which has written this excellent article. To make things perfect, the User Settings should be "roaming" (I often switch computers). Just a thought
-
How about indicating each article's rating?I think it rather motivates people to not post crap code. If code is usefull and working it will get rated good. If not, shouldn't have been posted it in the first place.
-
Copy Constructor and member pointers - Beginner Q.thx.
-
executing some other exeHi, you can do so by launching a process (with ::CreateProcess) and waiting until it's finished (with ::WaitForSingleObject). Here is how it could look like. This code is raw, add checks on return values and errorhandling. STARTUPINFO startupi; PROCESS_INFORMATION processi; ::CreateProcess(NULL, _T("C:\myexe.exe"), NULL, NULL, FALSE, NORMAL_PRIORITY_CLASS, NULL, NULL, &startupi, &processi); ::WaitForSingleObject(processi.hProcess, INFINITE); Check for the retval of the CreateProcess() function! Hope that helps!
-
executing some other exeHi, you can do so by launching a process (with ::CreateProcess) and waiting until it's finished (with ::WaitForSingleObject). Here is how it could look like. This code is raw, add checks on return values and errorhandling. STARTUPINFO startupi; PROCESS_INFORMATION processi; ::CreateProcess(NULL, _T("C:\myexe.exe"), NULL, NULL, FALSE, NORMAL_PRIORITY_CLASS, NULL, NULL, &startupi, &processi); ::WaitForSingleObject(processi.hProcess, INFINITE); Check for the retval of the CreateProcess() function! Hope that helps!