Abebe
Posts
-
how do u do this???? -
what should be the salary of an exp vc++ sw developerit itches like crazy Er zit een korstje op mijn aars.
-
what should be the salary of an exp vc++ sw developer:laugh: Er zit een korstje op mijn aars.
-
new to dlls!Well one of the advantages is that with a DLL you can just add the library to your project and include the corresponding header file and then you are able to access the functionality in that DLL. It seems annoying to constantly copy the same header+implementation file to you project. Er zit een korstje op mijn aars.
-
to webmaster of the siteWell...i sort of agree with you i guess. You obviously have the possibility to set certain options, like no. posts per page and you can search the forums, but there is a lot of posting in this forum, so your post will quickly disappear from the main page. Most users only check the posts on the main page and don't take the time to browse through the older pages/posts. If you decide to create different C++ topics/forums, then a problem will arise as to where you need to add your post. You'll get a lot of discussion that certain posts do not belong in the current forum and more rules need to be made up to keep everything organised. Even now certain users are already posting questions in the wrong forums. Imagine what would happen if you have like 5 or 10 different C++ forums. Er zit een korstje op mijn aars.
-
new starsWell...i don't post that much, but i just HAD to reply to this one ;) Er zit een korstje op mijn aars.
-
new starsThis is the coolest post i've read in the Visual C++ forum for quite some time. Er zit een korstje op mijn aars.
-
Environment Variablei have to admit that his answer was more clear, so i think it does not qualify as spam. Er zit een korstje op mijn aars.
-
Assertion error in OnDrawPerhaps you can provide us with the code of the OnDraw function? Er zit een korstje op mijn aars.
-
How to print message on console in mfc program?You can use debug statements in your MFC application, using 'OutputDebugString()' (if i remember correctly). The strings supplied as an argument will be displayed in the 'Output' section of Visual Studio (assuming that you use VS ofcourse :)). You can also use an external debugging application that is able to capture output generated by 'OutputDebugString()'. You can use 'windbg' for example to receive the debugging output. Er zit een korstje op mijn aars.
-
running a programWindows' calculator program location: %SystemRoot%\System32\calc.exe. You can use 'spawn' to start new processes from your own program code. Er zit een korstje op mijn aars.
-
Structures in VCyou can use bitwise operators (>>, &, |, <<) to copy certain bytes from a buffer to the corresponding field in the structure. Er zit een korstje op mijn aars.
-
Solve errorThe libraries you are linking (myExceptionTester, myHostInfoTester + myLogTester) probably already have a 'main' function. Check your libraries and remove the 'main' functions. You don't need these anyway, since these are libraries, which are used in other applications. Er zit een korstje op mijn aars.
-
Linked ListsWhy? I always automatically use 'new' and 'delete' in C++, but i'm just curious what your 'motivations' are for not using 'malloc' and 'free' in C++. Er zit een korstje op mijn aars.
-
Sample source code for TCP programmingI'm sure this site hosts one or two Winsock/TCP programming articles. Just use the search functionality...it's really not that hard. .. .. .. .. .. .. .. http://www.codeproject.com/internet/winsockintro02.asp[^] Er zit een korstje op mijn aars.
-
Worker Thread notification in the middle.There are several methods to do this: 1) Use a global variable that stores the data you want to send to the worker thread; 2) Use a singleton; 3) Use files; I'd go with a singleton, that seems the be the most 'clean'. Remember to synchronise your data, since it will most likely be accessed by multiple threads (avoid corrupt data!). There are probably some other methods you can use. Er zit een korstje op mijn aars.
-
MFC MDI default Child Frame creationWell....i found the reason for this behaviour. The 'CCommandLineInfo' class, which is commonly created in the 'InitInstance' of the 'CWinApp' derived class, contains a 'CCommandLineInfo::FileNew' command by default. You can prevent a child frame from being created by assigning a 'FileNothing' command to the 'm_nShellCommand' attribute:
CCommandLineInfo cmdInfo; cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing; ParseCommandLine(cmdInfo);
Er zit een korstje op mijn aars. -
MFC MDI default Child Frame creationI have created a simple MFC MDI application using the MFC application wizard and apparently it creates a child window when I start the application. The application I'm writing ONLY provides the possibility to open certain files. This means that I do NOT want a child window when i start the application. Is there some way i can avoid this 'default' behaviour, without having to create child windows myself (through 'Create' or 'LoadFrame')? Any help will be greatly appreciated. Er zit een korstje op mijn aars.
-
How to tokenize the stringPerhaps its wiser to choose a different form of formatting your strings. Why use '##' and '#', they already cause problems trying to distinguish them during parsing. How about using '$' and '%' or something like that. '##' and '#' clearly mean different things to you, so why use such similar signs? Er zit een korstje op mijn aars.
-
Catch 'kill interrupt'Hi, I've registered an application, under Windows XP, using 'instsrv.exe' and 'srvany.exe'. This all works fine, but when i stop the service i want to clean up any used resource, and this is where it gets 'tricky'. The service is completely shutdown, no destructors called or anything like that. I'm also not able to catch some kind of 'kill' interrupt using 'signal' (used to catch SIGINT (CTRL-C) interrupts). Does anyone know a solution or another 3rd party service registration tool that provides some method of catching a stop service command? Many thanks Er zit een korstje op mijn aars.