count spots in first line of a .txt file and then count number of lines
I have been coding a game, and I have the mechanics done for the most part (player, health, weapons, enemies, collectibles, etc.), but I have been having a hard time getting levels to load externally....
View ArticleModal dialog box hangs with multiple keyboard languages in Window 7
My VC++ application is a multi-thread .Threads within the application communicate with each other using SendMessage() .Inside Thread 2 :SendMessage(WM_OPEN_FILE)Inside Thread 1:...
View Articlescreensaver misbehaves
Over the years I've developed a couple of screensavers and noticed that they misbehave (just since win 7?) When the ss is running and a scheduled application starts (virus scan, backup etc) the screen...
View ArticleEdit two form2 from form1 ?
hi,I'm not sure if i can explain this right but here it goes....how can i able to edittwo form2 ? Let say I have a form1 and then after i clicked button1, form2 will show up, and when i clicked it...
View ArticleConverting a Visual Studio 6 (Visual C++) project to visual studio 2010/2012...
Hi,I have a freakin huge (really really huge)bussiness logic layer developed in C++ (Visual Studio 6) that generates dll files that will be used by a lot (and i really mean a lot) of...
View Articlewrong type being passed to safearray?
I have a subroutine below Iam passing a variant safearray with VT_UI1 or BYTE data inside of it. If I use a pre-built sub that has my values configured for HIDDescriptor my result is a emulated device...
View Articledata sort in Visual c++
i write two numbers23and i want sort it in order to , bigger numer will first .
View Articlecl.exe: how to setup path for objects dir (/Fo), which contains spaces?
Hello, Everyone,I use cl.exe MSVC compiler from command line. What I would like to do is:Only compile sources to objects files (/c)Pass multiple source files to the compilerTell the compiler, where is...
View ArticleC++ GUI
I have some python executable files. I want to design a button in GUI in C++ language. When I would click the button, those python executable file should be opened. Please help me figure out this task.
View ArticleCatalogue files in a folder
HiI'm after advice on the best way to catalogue the files in a large folder inc subfolders.I can search for the extensions I'm interested in [ 16 of them ] and list the files no problem. My issue is...
View ArticleGetting handle of a DLL
Hi All,I am writing a DLL which is called by some other process, on which i am not having any control. My DLL is not having DLLMain function. It contains a string table, in order to extract the...
View ArticleGetting the correct DLL handle
Lets see if I can explain this.I have an app.exe (basically a test app) which loads, via LoadLibrary, mainDLL (which exports c-style functions as an api) that uses libraryDLL which contains class...
View ArticleMFC mulit-tab text editor
Hi,I am new to MFC and C++. I have used the wizard to create a tabbed document, Using "Office 2007 Aqua Theme". How do I insert a multi-line text editor and make it appear in all new tabs that are...
View ArticleSpeach marks in CEditView
Hi,I am new to C++. I have created a multi-document MFC application, using CEditView. When I use speech marks ("), within CEditView, and open the same file in notepad; the speech marks are two...
View ArticleHWND SetWindowPos after Create but before ShowWindow
I can set the initial size and location of a window in the CreateWindowEx function and all is happy. I can also set it using SetWindowPos after a ShowWindow call, yet more happiness.However if I call...
View Articlecomponent VC++ : *IUnknown->Release() is working in mode debug but crashes in...
I release my components with it's *IUnknown1) IUnknown->Release() seems to work well in mode debug but crashes in mode release.(after le AfxOleUnlockApp, by deletion of the com)2) other symptom,...
View ArticleTrying to use Thread pool api in a Class
I'm trying to handle thread pool in a class. below is my code.#include<Windows.h>classClassA{public:// user APIClassA(){}~ClassA(){}public://my muiti-thread funcvoid...
View ArticleColourful console application
Hello, I am making a C++ console application in Visual Studio 2008 and I want to make the text colourful and I was to position the text where ever I wast on the screen. Are there any libraries...
View ArticleHow to add a tooltips in a dialog based window added to an activex control.
Hi peopleI have a dialog based window added in an activex Project named CEthernetShow. I need to add a tooltip to this window and I find a sample on sitehttp://support.microsoft.com/kb/141871/en-us,but...
View ArticleInteroperability error between C++ dll and .net application due to DEP...
This issue happens when using DLLImport from C# code to C++ DLL which was compiled with DEP flag (the C++ DLLwas compiled with the security DEP flag). Sometimes when using the x64 version of the DLL,...
View Article